
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.32);
  font-size: 15px;
}

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

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.header-search input {
  width: 160px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 7px 8px 7px 12px;
}

.header-search button,
.primary-btn,
.ghost-btn,
.section-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}

.header-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.header-search button {
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 18px 18px;
}

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

.hero-carousel {
  position: relative;
  min-height: clamp(620px, 88vh, 840px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.015);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.34) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 44%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: clamp(620px, 88vh, 840px);
  margin: 0 auto;
  padding: 118px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d1d5db;
  font-size: clamp(17px, 1.8vw, 22px);
}

.meta-pills,
.tag-cloud,
.card-tags,
.card-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-pills {
  margin-top: 26px;
}

.meta-pills span,
.tag-cloud span,
.card-tags span {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.hero-actions {
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.ghost-btn,
.section-link {
  border: 1px solid var(--line);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.hero-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(30, 41, 59, 0.8));
  box-shadow: var(--shadow);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
  padding: 12px 14px;
  font-weight: 900;
}

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

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

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

.section-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px;
}

.alt-block {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(2, 6, 23, 0));
}

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

.section-heading h2,
.footer-links h2,
.article-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

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

.movie-card,
.category-card,
.article-card,
.rank-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 10%, rgba(245, 158, 11, 0.35), transparent 45%),
    linear-gradient(135deg, #1e293b, #020617);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.055);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
  pointer-events: none;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-tags {
  gap: 7px;
  min-height: 31px;
  margin-bottom: 10px;
}

.card-tags span {
  padding: 5px 9px;
  font-size: 11px;
}

.movie-card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #fbbf24;
}

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

.card-meta {
  justify-content: space-between;
  color: var(--subtle);
  font-size: 13px;
}

.movie-card.compact .card-body {
  padding: 14px;
}

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

.movie-card.compact p {
  min-height: auto;
}

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

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

.category-card a {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 24px;
}

.category-card-top {
  display: grid;
  gap: 8px;
}

.category-card-top span {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

.category-card-top strong {
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-samples span {
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  padding: 6px 10px;
  font-size: 12px;
}

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

.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 104px 22px 34px;
}

.small-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-height: 320px;
}

.channel-hero {
  border-bottom: 1px solid var(--line);
}

.filter-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
  padding: 12px;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 16px;
}

.filter-panel input {
  flex: 1;
}

.filter-panel select {
  width: 180px;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  padding: 30px;
  text-align: center;
}

.rank-page {
  padding-top: 38px;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 78px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-index {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: rgba(245, 158, 11, 0.18);
  font-weight: 900;
}

.rank-row img {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: #1e293b;
}

.rank-row h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-row strong {
  color: #fbbf24;
  font-size: 24px;
  text-align: right;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px 70px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.detail-poster {
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.tag-cloud {
  margin-top: 20px;
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 72px;
}

.player-shell {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.18), transparent 28rem),
    #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.34);
  font-size: 30px;
  text-indent: 4px;
}

.two-column-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  padding-top: 0;
}

.article-card {
  padding: 30px;
}

.article-card p {
  color: #cbd5e1;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.info-list span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding-bottom: 10px;
}

.info-list strong {
  color: #fff;
}

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

.site-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-brand p,
.footer-bottom {
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 14px;
}

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

.footer-links h2 {
  margin-bottom: 8px;
  font-size: 17px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 20px 22px 28px;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-hero,
  .two-column-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-poster {
    max-width: 330px;
  }

  .small-hero,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row a {
    grid-template-columns: 48px 64px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }

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

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

  .hero-actions,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .section-link,
  .filter-panel select {
    width: 100%;
  }

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

  .section-block {
    padding: 52px 16px;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-body {
    padding: 14px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

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

  .rank-row img {
    display: none;
  }

  .rank-row strong {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid,
  .category-grid,
  .large-category-grid,
  .rank-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
