:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --cyan: #0891b2;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f0fdfa 0, #f8fafc 420px, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #073b3a;
  background: linear-gradient(135deg, var(--amber-light), #fde68a);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.06);
}

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

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #fde68a;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.nav-search input,
.big-search input,
.local-filter {
  width: 240px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  padding: 11px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.nav-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #0f172a;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-top: 8px;
}

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #052f35;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(4, 47, 46, 0.92) 0%, rgba(8, 145, 178, 0.64) 48%, rgba(2, 6, 23, 0.78) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.28), transparent 28%),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 680px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 56px;
  color: #fff;
  padding: 70px 0 100px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  padding: 7px 12px;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-tags,
.tag-row,
.detail-meta,
.page-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 800;
  background: #ccfbf1;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions,
.page-actions {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.primary-small {
  color: #0f172a;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.primary-small:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-radius: inherit;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 36px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
  background: var(--amber-light);
}

.section-wrap,
.inner-page,
.movie-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-wrap {
  padding: 70px 0;
}

.no-top {
  padding-top: 0;
}

.quick-panel {
  margin-top: -46px;
  position: relative;
  z-index: 8;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 34px;
  backdrop-filter: blur(16px);
}

.section-head,
.category-block-head,
.rank-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2,
.category-block h2,
.detail-content h2 {
  margin: 9px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-head a,
.rank-heading a,
.related-wrap a {
  color: var(--teal);
  font-weight: 900;
}

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

.category-tile {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d1fae5;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, #ecfeff, #ffffff);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-line:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  font-size: 1.18rem;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.score-badge,
.line-score {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #0f172a;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-line,
.card-body p,
.compact-card small,
.category-block p,
.line-main small {
  color: var(--muted);
}

.meta-line {
  margin: 5px 0 10px;
  font-size: 0.9rem;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 13px;
  font-size: 0.94rem;
}

.rank-panel {
  position: sticky;
  top: 92px;
  border-radius: 26px;
  padding: 20px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow);
}

.rank-heading {
  margin-bottom: 18px;
}

.rank-heading span {
  font-size: 1.32rem;
  font-weight: 900;
}

.rank-heading a {
  color: #fde68a;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 30px 48px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row img {
  width: 48px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-index {
  color: #fde68a;
  font-weight: 900;
}

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

.rank-row small {
  grid-column: 3;
  color: rgba(255, 255, 255, 0.64);
}

.inner-page,
.movie-detail {
  padding: 34px 0 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  padding: clamp(34px, 7vw, 74px);
  margin-bottom: 42px;
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.32), transparent 25%),
    linear-gradient(135deg, var(--teal-dark), var(--cyan));
  box-shadow: var(--shadow);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.big-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 26px;
}

.big-search input {
  width: 100%;
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card img {
  grid-row: 1 / span 2;
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card span {
  font-weight: 900;
}

.filter-bar {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 24px;
  background: var(--white);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.local-filter {
  width: 100%;
  background: #f1f5f9;
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.year-filters button {
  border: 0;
  cursor: pointer;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 8px 13px;
  background: #ccfbf1;
  font-weight: 800;
}

.year-filters button.active {
  color: #fff;
  background: var(--teal);
}

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

.ranking-line {
  position: relative;
  display: grid;
  grid-template-columns: 54px 64px 1fr 58px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-line img {
  width: 64px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.line-no {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.line-main strong {
  display: block;
  font-size: 1.08rem;
}

.line-score {
  position: static;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin: 8px 0 20px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 32px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.32), transparent 30%),
    linear-gradient(135deg, #0f172a, var(--teal-dark) 62%, var(--cyan));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.3);
}

.detail-info h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.detail-tags span {
  color: #0f172a;
  background: #fde68a;
}

.player-section {
  margin: 34px 0;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-box video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.6));
}

.player-cover.hide {
  display: none;
}

.play-icon {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0f172a;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.35);
}

.detail-content {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: var(--white);
}

.detail-content p {
  color: #334155;
  font-size: 1.04rem;
}

.related-wrap {
  width: 100%;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  margin-top: 50px;
  padding: 48px 0 24px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-grid div:not(:first-child) {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-grid strong,
.footer-brand {
  color: #fff;
}

.footer-grid a:hover {
  color: #fde68a;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.hidden-card {
  display: none;
}

@media (max-width: 1040px) {
  .nav-search {
    display: none;
  }

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

  .hero-poster,
  .rank-panel {
    position: relative;
    top: auto;
    max-width: 320px;
  }

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

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    height: 62px;
  }

  .hero-shell,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .hero-poster {
    max-width: 250px;
    transform: none;
  }

  .quick-panel {
    padding: 22px;
  }

  .section-head,
  .category-block-head,
  .rank-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .compact-card {
    grid-template-columns: 60px 1fr;
  }

  .compact-card img {
    width: 60px;
    height: 80px;
  }

  .big-search {
    flex-direction: column;
  }

  .ranking-line {
    grid-template-columns: 42px 56px 1fr;
  }

  .line-score {
    display: none;
  }

  .detail-hero {
    padding: 22px;
  }

  .detail-poster {
    max-width: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.18rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }
}
