:root {
  --page-bg: #fffaf1;
  --surface: #ffffff;
  --surface-soft: #fff7e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --brand: #b45309;
  --brand-dark: #78350f;
  --brand-soft: #f59e0b;
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 45%, #fffbeb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(120, 53, 15, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-soft));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #4b5563;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transition: right 0.25s ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.site-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff8e7;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--brand-dark);
  border-radius: 99px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.9)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.56), transparent 38rem);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.28);
  filter: blur(20px);
  pointer-events: none;
}

.hero-stage {
  position: relative;
}

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

.hero-slide {
  display: none;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 46px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

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

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: #fff7ed;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 247, 237, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.28);
}

.btn-ghost {
  color: #78350f;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid rgba(180, 83, 9, 0.22);
}

.btn-plain {
  color: #fff7ed;
  border: 1px solid rgba(255, 237, 213, 0.42);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 380px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 247, 237, 0.14);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  width: 30px;
  background: #fbbf24;
  border-radius: 999px;
}

.section-block,
.search-section {
  padding: 54px 0;
}

.search-section {
  padding-bottom: 12px;
}

.search-panel,
.rank-panel,
.content-card,
.info-card,
.category-overview-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 24px;
  padding: 28px;
}

.search-panel h2,
.section-heading h2,
.rank-copy h2,
.page-hero h1,
.content-card h2,
.info-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.search-panel .filter-panel {
  margin: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 15px;
  outline: none;
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.06);
}

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

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select {
  min-width: 132px;
}

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

.section-heading p,
.page-hero p,
.rank-copy p,
.content-card p,
.info-card dd,
.movie-card-body p,
.category-overview-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.76;
}

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
}

.section-more,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

.channel-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: #ffffff;
  background: #78350f;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.13);
}

.channel-image {
  position: absolute;
  inset: 0;
}

.channel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(40, 20, 8, 0.88));
}

.channel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.channel-card:hover .channel-image img,
.movie-card:hover img {
  transform: scale(1.055);
}

.channel-info {
  position: relative;
  display: grid;
  gap: 8px;
}

.channel-info strong {
  font-size: 1.22rem;
}

.channel-info em {
  color: rgba(255, 247, 237, 0.82);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 28px 60px rgba(120, 53, 15, 0.14);
}

.movie-poster,
.ranking-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(120, 53, 15, 0.1));
}

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

.poster-badge,
.ranking-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 48px;
  padding: 7px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-meta-line span {
  padding: 3px 8px;
  background: #fff7ed;
  border-radius: 999px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.movie-card-body p {
  min-height: 4.9em;
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.tag-row {
  margin-bottom: 14px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.rank-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.92)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.44), transparent 26rem);
  color: #fff7ed;
}

.rank-copy h2,
.rank-copy p {
  color: #fff7ed;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.rank-list a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.rank-num {
  color: #fbbf24;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: rgba(255, 247, 237, 0.72);
  font-size: 0.85rem;
}

.page-hero {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.88)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.4), transparent 34rem);
  color: #fff7ed;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 247, 237, 0.86);
  font-size: 1.06rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-cover-stack {
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(120, 53, 15, 0.12);
}

.category-cover-stack img:nth-child(2) {
  height: 220px;
}

.category-cover-stack img:nth-child(3) {
  height: 170px;
}

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

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

.ranking-card .movie-card-body p {
  min-height: 5.4em;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 52px;
  color: #fff7ed;
  background: #2c1608;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(24px) saturate(1.15);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 22, 8, 0.96), rgba(120, 53, 15, 0.86));
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 247, 237, 0.74);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 5.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.lead-text {
  max-width: 820px;
  color: rgba(255, 247, 237, 0.88);
  font-size: 1.14rem;
  line-height: 1.8;
}

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  border-radius: 30px;
  border: 1px solid rgba(255, 237, 213, 0.24);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.1rem;
}

.player-overlay[hidden],
.player-shell.is-playing .player-overlay {
  display: none;
}

.play-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #78350f;
  background: #fbbf24;
  border-radius: 50%;
  font-size: 2.3rem;
  box-shadow: 0 18px 44px rgba(251, 191, 36, 0.34);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 54px 0 18px;
}

.content-card {
  padding: 28px;
  margin-bottom: 24px;
}

.content-card p {
  margin-bottom: 0;
  color: #374151;
  font-size: 1rem;
}

.info-card {
  align-self: start;
  padding: 24px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.info-card dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: #92400e;
  font-weight: 900;
}

.info-card dd {
  margin: 4px 0 0;
}

.related-section {
  padding-top: 18px;
}

.site-footer {
  margin-top: 60px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937 58%, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  color: #fbbf24;
  font-size: 1.4rem;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

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

.footer-links a {
  color: #d1d5db;
}

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

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

.is-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .channel-grid,
  .category-movie-grid,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .hero-slide,
  .detail-grid,
  .rank-panel,
  .search-panel,
  .detail-content,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-track,
  .hero-slide {
    min-height: 0;
  }

  .hero-visual {
    width: min(100%, 320px);
    justify-self: start;
    transform: none;
  }

  .hero-controls {
    position: static;
    margin-top: 20px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(100%, 320px);
  }
}

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

  .header-inner {
    height: 70px;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text em {
    display: none;
  }

  .hero-carousel,
  .page-hero {
    padding: 38px 0 26px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .section-block,
  .search-section {
    padding: 34px 0;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .channel-grid,
  .category-movie-grid,
  .ranking-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-list a {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .player-shell {
    border-radius: 18px;
  }
}
