:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --amber: #fbbf24;
  --orange: #f97316;
  --rose: #e11d48;
  --pink: #ec4899;
  --slate: #0f172a;
  --gray: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: var(--slate);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.25);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--slate);
  background: var(--amber);
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.35);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

.brand-text {
  font-size: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 650;
}

.main-nav > a,
.nav-dropdown > a {
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown:hover > a {
  color: var(--amber);
  opacity: 1;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: -24px;
  width: 190px;
  padding: 10px 0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--gray);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-panel a:hover {
  color: var(--teal);
  background: #ecfeff;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search input,
.mobile-search input,
.filter-box input {
  width: 245px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--slate);
  font-weight: 800;
  background: var(--amber);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.mobile-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 6px 0 14px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 9px 0;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--orange), var(--pink), var(--rose));
}

.hero-stage,
.hero-slide {
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(251, 191, 36, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.48) 48%, rgba(225, 29, 72, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 540px;
  margin: 0 auto;
  padding: 80px 24px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff7ed;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content strong {
  display: block;
  max-width: 760px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-content p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.panel-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.panel-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--teal);
  background: #ecfeff;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--amber);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading .section-kicker {
  color: var(--teal);
  background: #ccfbf1;
}

.section-heading h2 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.section-more,
.panel-link {
  color: var(--teal);
  background: #ecfeff;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

.region-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.55);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--teal);
}

.movie-card-body p {
  margin: 0;
  min-height: 3.2em;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #475569;
  font-size: 12px;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-card-compact .movie-card-body h3 {
  min-height: auto;
  font-size: 16px;
}

.movie-card-compact .movie-card-body p {
  -webkit-line-clamp: 1;
  min-height: auto;
}

.category-band {
  background: linear-gradient(90deg, #ecfdf5, #ecfeff);
}

.category-band-inner {
  padding-top: 58px;
  padding-bottom: 58px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: var(--slate);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.35s ease;
}

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong,
.category-tile p,
.category-overview-card div {
  position: relative;
  z-index: 1;
}

.category-tile span,
.category-overview-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--slate);
  background: var(--amber);
  font-weight: 850;
  font-size: 13px;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 58px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-overview-card {
  display: flex;
  align-items: end;
  min-height: 280px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-title span {
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ranking-title h2 {
  margin: 6px 0 18px;
  font-size: 28px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-no {
  color: var(--amber);
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.rank-meta {
  grid-column: 3;
  color: #cbd5e1;
  font-size: 12px;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 46px;
}

.simple-hero,
.category-hero,
.search-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #ffffff;
  background: linear-gradient(110deg, var(--orange), var(--pink), var(--rose));
}

.category-hero {
  background: linear-gradient(110deg, #0d9488, #0891b2, #0f766e);
}

.search-hero {
  background: linear-gradient(110deg, #4f46e5, #0891b2, #0f766e);
}

.ranking-hero {
  background: linear-gradient(110deg, #0f172a, #7f1d1d, #e11d48);
}

.page-hero h1 {
  margin: 16px 0 10px;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-box {
  margin-top: 26px;
}

.filter-box input {
  width: min(100%, 560px);
  padding: 14px 20px;
}

.wide-filter input {
  width: min(100%, 760px);
}

.full-rank-list {
  display: grid;
  gap: 12px;
}

.full-rank-row {
  display: grid;
  grid-template-columns: 56px 110px minmax(0, 1fr) minmax(170px, 250px);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.full-rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.full-rank-no {
  color: var(--rose);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.full-rank-row img {
  width: 110px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
}

.full-rank-main strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.full-rank-main em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.full-rank-side {
  color: #475569;
  text-align: right;
  font-size: 14px;
}

.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 700;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  font-weight: 850;
  font-size: 18px;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.35);
  font-size: 30px;
}

.detail-info {
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
}

.detail-info .hero-kicker {
  color: var(--teal);
  background: #ccfbf1;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-info p {
  margin: 0;
  color: #475569;
  font-size: 18px;
}

.detail-info .detail-tags span {
  color: var(--teal);
  background: #ecfeff;
}

.detail-content {
  padding-top: 18px;
}

.prose-card,
.prose-section,
.help-grid article {
  border-radius: var(--radius);
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.prose-card h2,
.prose-section h2,
.help-grid h2 {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 26px;
}

.prose-card h2:not(:first-child),
.prose-section h2:not(:first-child) {
  margin-top: 26px;
}

.prose-card p,
.prose-section p,
.help-grid p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}

.info-list div {
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-block p {
  margin: 0;
  max-width: 520px;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-block a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-stage,
  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding: 70px 18px 100px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .content-section,
  .page-hero,
  .detail-layout,
  .breadcrumbs {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 18px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .full-rank-row {
    grid-template-columns: 44px 84px minmax(0, 1fr);
  }

  .full-rank-row img {
    width: 84px;
    height: 58px;
  }

  .full-rank-side {
    grid-column: 3;
    text-align: left;
  }

  .info-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-info,
  .prose-card,
  .prose-section,
  .help-grid article {
    padding: 22px;
  }
}
