:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --dark: #0f172a;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.35);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #334155;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
}

.nav-search input,
.mobile-search input,
.filter-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: rgba(13, 148, 136, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 750;
}

.nav-search button,
.mobile-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.secondary-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 12px;
  color: #0f172a;
  cursor: pointer;
}

.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-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  font-weight: 650;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.hero-section {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(135deg, #134e4a, #164e63);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.48), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 44%);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 46px;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.86);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-title {
  margin: 0 0 18px;
  color: #ccfbf1;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 19px;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

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

.hero-panel {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.mini-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.68);
}

.mini-card img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  margin-top: 6px;
  line-height: 1.35;
}

.mini-card em {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-wide {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.section h1,
.section h2,
.page-hero h1 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.035em;
}

.section h1,
.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.section h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-desc,
.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #134e4a);
}

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

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

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  right: 12px;
  padding: 5px 10px;
  background: rgba(13, 148, 136, 0.92);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.28);
}

.movie-body {
  padding: 16px;
}

.movie-body h2,
.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  justify-content: space-between;
  color: #94a3b8;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.compact .movie-body h2 {
  font-size: 16px;
}

.movie-card.compact .movie-body p {
  display: none;
}

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

.category-card {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 210px;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #0f172a, #134e4a);
}

.category-posters img {
  width: 100%;
  height: 100%;
  min-height: 186px;
  object-fit: cover;
  border-radius: 12px;
}

.category-info {
  padding: 26px;
}

.category-info h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-info p {
  margin: 0 0 22px;
  color: var(--muted);
}

.category-info span {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfeff, #ffffff 48%, #f0fdfa);
  border-bottom: 1px solid #dbeafe;
}

.page-hero .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 26px 0 0;
}

.filter-note {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.rank-row h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.32), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-stage.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.34);
  font-size: 26px;
  padding-left: 4px;
}

.play-label {
  font-size: 18px;
  font-weight: 850;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
}

.player-message.show {
  display: block;
}

.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.detail-meta span {
  color: #0f766e;
  background: #ccfbf1;
  border: 0;
}

.detail-text {
  margin-top: 26px;
}

.detail-text h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.side-card {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.related-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-link img {
  width: 74px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link strong {
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-link span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

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

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

.footer-brand {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 20px;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #5eead4;
}

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

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

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

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

  .hero-panel,
  .side-card {
    position: relative;
    top: auto;
  }

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

  .category-card a {
    grid-template-columns: 1fr;
  }

  .category-posters img {
    min-height: 160px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

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

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    text-align: center;
  }

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

  .movie-body {
    padding: 12px;
  }

  .movie-body h2,
  .movie-body h3 {
    font-size: 15px;
  }

  .movie-body p,
  .tag-row {
    display: none;
  }

  .category-grid,
  .rank-list,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-row img {
    width: 74px;
    height: 100px;
  }

  .detail-card {
    padding: 20px;
  }
}
