:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fed7aa;
  --ink: #111827;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, 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%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.26);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.24);
}

.brand-name {
  font-size: clamp(20px, 3vw, 28px);
}

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

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

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(251, 146, 60, 0.26), transparent 32%), linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 56px;
  padding: 78px 0 96px;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.85;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags {
  margin-top: 24px;
}

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

.primary-button,
.ghost-button,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-box button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #f59e0b);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.35);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.search-box button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.1), rgba(249, 115, 22, 0.22));
  box-shadow: var(--shadow);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
  background: #ffffff;
}

.search-panel {
  width: min(1120px, calc(100% - 32px));
  margin: -40px auto 40px;
  padding: 22px;
  position: relative;
  z-index: 8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-size: 16px;
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.quick-links a {
  padding: 8px 13px;
  color: var(--brand-dark);
  background: var(--surface-soft);
}

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

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

.section-head h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
  color: var(--brand-dark);
  font-weight: 900;
}

.compact h2 {
  font-size: 28px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 950;
  color: var(--ink);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 28px;
}

.ranking-panel,
.side-card,
.detail-main,
.detail-side,
.page-hero {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 40px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row a:hover {
  background: #ffedd5;
  transform: translateX(2px);
}

.rank-row img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.rank-no,
.rank-number {
  color: var(--brand-dark);
  font-weight: 950;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--ink);
  font-size: 15px;
}

.rank-info em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.channel-card,
.category-tile {
  display: block;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.2);
}

.channel-card span,
.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
}

.channel-card p,
.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-tile {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.32;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.84));
}

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

.category-tile.small {
  min-height: 180px;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(28px, 6vw, 56px);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.simple-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.simple-hero p,
.category-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.wide-poster img {
  width: 150px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.wide-content h2 {
  margin: 4px 0 8px;
  font-size: 25px;
  font-weight: 950;
  color: var(--ink);
}

.wide-content p {
  color: var(--muted);
  line-height: 1.76;
}

.wide-meta {
  font-weight: 800;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
}

.pager:last-child {
  margin: 30px 0 0;
}

.pager a {
  min-width: 42px;
  padding: 10px 13px;
  border-radius: 999px;
  text-align: center;
  color: var(--brand-dark);
  background: #fff7ed;
  font-weight: 900;
}

.pager a:hover,
.pager .pager-current {
  color: #ffffff;
  background: var(--brand);
}

.player-section {
  padding: 34px 16px 0;
  background: #0f172a;
}

.player-wrap {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #f59e0b);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.detail-main,
.detail-side {
  padding: clamp(24px, 4vw, 38px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 900;
}

.detail-main h1 {
  margin-top: 14px;
  font-size: clamp(34px, 6vw, 58px);
}

.detail-subtitle {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.detail-main h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.detail-main p {
  color: #374151;
  line-height: 1.92;
  font-size: 17px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #ffedd5;
}

.side-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  box-shadow: none;
}

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

.search-hero .search-box {
  max-width: 760px;
  margin-top: 24px;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.search-result-item img {
  width: 70px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.search-result-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-result-item .primary-button {
  min-height: 40px;
}

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-grid p {
  max-width: 460px;
  line-height: 1.8;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

img.image-hidden {
  opacity: 0;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header-inner {
    height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .mobile-nav .nav-link {
    display: block;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 580px;
  }

  .hero-content {
    padding: 54px 0 90px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .search-panel {
    margin-top: -28px;
  }

  .search-box,
  .search-result-item,
  .wide-card {
    grid-template-columns: 1fr;
  }

  .search-box button {
    width: 100%;
  }

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

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

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

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

  .wide-poster img {
    width: 100%;
  }

  .search-result-item .primary-button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .small-grid,
  .category-list,
  .channel-grid,
  .category-grid,
  .category-grid.mini {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    justify-content: center;
    gap: 18px;
  }

  .hero-dots {
    display: none;
  }
}
