:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 191, 36, 0.26);
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --brand-dark: #92400e;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 38rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.98), rgba(234, 88, 12, 0.98));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 24px rgba(120, 53, 15, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

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

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

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: #ffffff;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-main {
  min-height: 60vh;
}

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

.section {
  padding: 66px 0;
}

.section-tight {
  padding: 40px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: var(--brand-dark);
  background: #ffedd5;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  color: #111827;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.hero-track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 46px;
  align-items: center;
}

.hero-copy h1,
.hero-copy .hero-title-main {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h2:not(.hero-title-main) {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 40px);
  color: #fde68a;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions,
.card-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.22);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.btn-soft {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-side-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(16px);
}

.hero-side-meta strong {
  display: block;
  font-size: 18px;
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.search-box {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.55fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 191, 36, 0.32);
  backdrop-filter: blur(18px);
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.search-box input:focus,
.search-box select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover,
.movie-card a:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(146, 64, 14, 0.2);
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

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

.movie-card a:hover .poster img,
.movie-card a:focus-visible .poster img {
  transform: scale(1.06);
}

.badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.rating {
  color: #78350f;
  background: #fde68a;
}

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

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

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

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

.channel-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover,
.channel-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.channel-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 900;
}

.channel-card h2,
.channel-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.channel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover,
.rank-item:focus-visible {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 900;
}

.rank-poster img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 74px 0 50px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 28rem),
    linear-gradient(120deg, #f59e0b, #ea580c);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fff7ed;
  font-weight: 800;
}

.breadcrumbs a {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.7fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.info-card,
.related-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button-core {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.player-caption,
.info-card,
.related-card {
  padding: 24px;
}

.player-caption h2,
.info-card h2,
.related-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.player-caption p,
.info-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
}

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

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

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffedd5;
}

.detail-meta span:first-child {
  color: var(--muted);
}

.detail-meta span:last-child {
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud span,
.tag-cloud a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

.related-mini {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
}

.related-mini img {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.related-mini strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.related-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 30px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.footer-inner p,
.footer-inner a {
  color: #9ca3af;
  font-size: 14px;
}

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

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

.empty-result {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.1);
}

.empty-result.is-visible {
  display: block;
}

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

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

  .hero-side-card {
    max-width: 360px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

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

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

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

  .rank-poster img {
    width: 56px;
  }

  .rank-score {
    grid-column: 2 / -1;
  }

  .player-caption,
  .info-card,
  .related-card {
    padding: 18px;
  }
}
