:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: rgba(30, 41, 59, 0.72);
  --bg-card: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --blue: #38bdf8;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(249, 115, 22, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.12), transparent 28rem),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(249, 115, 22, 0.95);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(30, 41, 59, 0.88);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--line);
}

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

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-shade,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88) 70%, rgba(15, 23, 42, 1)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.82));
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 0 0 86px;
}

.hero-text {
  max-width: 720px;
}

.hero-kicker,
.section-eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.hero-text h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.78);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px) scale(1.02);
}

.primary-button.slim,
.ghost-button {
  min-height: 42px;
  border-radius: 12px;
}

.ghost-button {
  border: 1px solid rgba(248, 250, 252, 0.24);
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
}

.ghost-button:hover {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.16);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.active {
  width: 40px;
  background: var(--orange);
}

main {
  min-height: 60vh;
}

.section-block,
.page-main {
  padding-top: 64px;
  padding-bottom: 28px;
}

.section-block.tinted {
  padding: 42px;
  border-radius: 30px;
  background: rgba(30, 41, 59, 0.34);
}

.intro-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.intro-block h2,
.page-heading h1,
.section-title h2,
.player-section h2,
.detail-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.intro-block p,
.page-heading p {
  max-width: 780px;
  color: var(--muted-strong);
  line-height: 1.85;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title > span:first-child {
  color: var(--orange);
  font-weight: 900;
}

.section-title a {
  margin-left: auto;
  color: var(--orange);
  font-weight: 700;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-grid.six-cols,
.listing-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.82);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1e293b;
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .movie-poster::after {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(14, 165, 233, 0.82);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card h2 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.movie-card h2 a:hover,
.ranking-item h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--orange);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  gap: 7px;
}

.movie-meta span {
  padding: 4px 8px;
}

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

.wide-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease;
}

.wide-card:hover {
  transform: translateY(-5px) scale(1.01);
}

.wide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2));
}

.wide-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.wide-card h2 {
  margin: 14px 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.wide-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted-strong);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-meta {
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
}

.category-tile {
  min-height: 210px;
  padding: 24px;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.38));
}

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

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  max-width: 360px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.page-main {
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted-strong);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.55);
}

.page-heading {
  margin-bottom: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.56));
  box-shadow: var(--shadow);
}

.channel-heading {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.78));
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
}

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

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0 13px;
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.category-overview-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px;
}

.category-cover {
  display: block;
  min-height: 180px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.text-link {
  min-height: 36px;
  padding: 0;
  color: var(--orange);
}

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

.ranking-list.mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
}

.rank-number {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.rank-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #1e293b;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-item p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  padding: 76px 0 54px;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 310px) 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #1e293b;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta,
.tag-row {
  margin-bottom: 18px;
}

.player-section {
  padding-top: 54px;
}

.player-section h2 {
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 36px;
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.36);
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  font-weight: 700;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 44px;
}

.detail-copy article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
}

.detail-copy h2 {
  font-size: 28px;
}

.detail-copy p {
  color: var(--muted-strong);
  line-height: 1.95;
  font-size: 16px;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 26px;
}

.prev-next a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.56);
  color: var(--muted-strong);
  font-weight: 700;
}

.prev-next a:last-child {
  text-align: right;
}

.prev-next a:hover {
  border-color: var(--orange);
  color: #fff;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid.six-cols,
  .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .ranking-list.mini {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    padding-bottom: 78px;
  }

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

  .hero-control {
    display: none;
  }

  .intro-block,
  .detail-layout,
  .detail-copy,
  .prev-next,
  .footer-grid,
  .filter-bar,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .intro-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid.four-cols,
  .movie-grid.six-cols,
  .listing-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-block.tinted,
  .page-heading {
    padding: 22px;
  }

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

  .movie-card h2 {
    font-size: 14px;
  }

  .movie-line {
    display: none;
  }

  .wide-card,
  .wide-card-link {
    min-height: 230px;
  }

  .ranking-item {
    grid-template-columns: 42px 70px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .detail-hero {
    padding-top: 48px;
  }

  .detail-cover {
    max-width: 250px;
  }

  .prev-next a:last-child {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .movie-grid.four-cols,
  .movie-grid.six-cols,
  .listing-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1,
  .detail-info h1 {
    font-size: 36px;
  }

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