:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, .08);
  --orange: #f97316;
  --rose: #ec4899;
  --blue: #3b82f6;
  --dark: #080a12;
  --shadow: 0 24px 80px rgba(15, 23, 42, .12);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, .14), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, .14), transparent 34rem),
    var(--bg);
  color: var(--text);
}

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;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--blue));
  box-shadow: 0 14px 30px rgba(244, 63, 94, .28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--orange);
}

.search-form,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.search-form input,
.mobile-search input,
.hero-search input {
  min-width: 220px;
  border: 0;
  outline: none;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.search-form button,
.mobile-search button,
.hero-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  padding: 11px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.hero-slider {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: var(--dark);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: clamp(32px, 7vw, 86px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity .72s ease, transform .72s ease, visibility .72s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #9f1239;
  border-color: rgba(244, 63, 94, .15);
  background: rgba(244, 63, 94, .08);
  backdrop-filter: none;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 40px rgba(244, 63, 94, .32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.hero-poster img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 26px;
}

.hero-dots {
  position: absolute;
  left: clamp(32px, 7vw, 86px);
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

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

.section-head {
  margin-bottom: 24px;
}

.section-head span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: #ffffff;
  background: #111827;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .86);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.category-strip small {
  color: var(--muted);
  font-weight: 800;
}

.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: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, .13);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #312e81);
}

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
}

.movie-card:hover .cover-link img {
  transform: scale(1.08);
}

.duration,
.play-dot {
  position: absolute;
  z-index: 1;
  color: #ffffff;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(8px);
}

.duration {
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(.85);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--orange);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}

.category-tile span {
  font-size: 26px;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, .8);
}

.two-column,
.category-layout,
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  transition: transform .2s ease, border-color .2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(249, 115, 22, .28);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 900;
}

.rank-item img {
  width: 82px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

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

.region-card,
.side-panel,
.article-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.region-card > span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .12em;
}

.region-card h2,
.side-panel h2,
.article-card h2,
.info-card h2 {
  margin: 10px 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.region-card p,
.article-card p {
  color: var(--muted);
  line-height: 1.85;
}

.region-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.region-pill {
  display: inline-flex;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 12px;
  background: #f1f5f9;
}

.region-pill em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  min-height: 360px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  border-radius: 34px;
  padding: clamp(32px, 7vw, 70px);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #312e81);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .2);
}

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

.compact-strip {
  display: grid;
  gap: 10px;
}

.compact-strip a {
  justify-content: space-between;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 64px);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

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

.detail-copy {
  color: #ffffff;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
}

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

.video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, .08), rgba(0, 0, 0, .45));
  cursor: pointer;
}

.player-button span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 20px 60px rgba(244, 63, 94, .42);
  font-size: 32px;
}

.player-frame.is-started .player-button {
  display: none;
}

.article-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 900;
}

.info-card dd {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-weight: 800;
}

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

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

.ranking-layout {
  grid-template-columns: minmax(0, 1fr) 410px;
}

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

.hero-search {
  width: min(680px, 100%);
  margin-top: 26px;
}

.hero-search input {
  flex: 1;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.footer-brand {
  margin-bottom: 18px;
}

.site-footer p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  border-radius: 999px;
  padding: 10px 14px;
  background: #f1f5f9;
  font-weight: 800;
}

.image-missing {
  opacity: .08;
}

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

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

  .hero-slide,
  .detail-hero,
  .two-column,
  .category-layout,
  .detail-body,
  .ranking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .brand-name {
    font-size: 17px;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 30px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

  .hero-dots {
    left: 30px;
    bottom: 24px;
  }

  .section-wrap {
    margin: 46px auto;
  }

  .split-head {
    align-items: start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 16px;
  }

  .detail-hero,
  .page-hero {
    border-radius: 26px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .text-link {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 38px 64px minmax(0, 1fr);
  }

  .rank-item img {
    width: 64px;
    height: 48px;
  }

  .info-card dl {
    grid-template-columns: 1fr;
  }
}
