
:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #f59e0b;
  --orange: #f97316;
  --brown: #78350f;
  --dark: #1c1206;
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf0 42%, #ffffff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brown);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand {
  font-size: 1.25rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav a,
.mobile-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #5f3a13;
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: #ffedd5;
  color: #9a3412;
}

.top-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-search input,
.page-search input {
  width: 15rem;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search button,
.page-search button,
.primary-button,
.ghost-button,
.more-link,
.mobile-menu-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.page-search button,
.primary-button {
  padding: 0.78rem 1.2rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.top-search button:hover,
.page-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  padding: 0.65rem 0.9rem;
  color: var(--brown);
  background: #ffedd5;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 1.25rem 1.15rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-shell {
  max-width: 1380px;
  margin: 1.2rem auto 0;
  padding: 0 1.25rem;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.45fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.32), transparent 20rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 45%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  color: #f59e0b;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: clamp(2.25rem, 5.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 1.3rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.hero-meta span,
.detail-meta span {
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.hero-poster {
  align-self: stretch;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-dots button {
  width: 2.6rem;
  height: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: #fed7aa;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.quick-channels,
.section-block {
  max-width: 1380px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.quick-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.channel-card {
  min-height: 145px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.9));
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover,
.movie-card:hover,
.rank-item:hover,
.text-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.channel-card span,
.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card span {
  color: var(--orange);
  font-weight: 900;
}

.channel-card strong {
  margin: 0.65rem 0 0.35rem;
  color: var(--brown);
  font-size: 1.05rem;
  line-height: 1.35;
}

.channel-card small {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin: 0.15rem 0 0.35rem;
  color: var(--brown);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.more-link {
  color: var(--brown);
  background: #ffedd5;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 2rem;
  align-items: start;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 54%);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 1rem;
}

.meta-line {
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 0.4rem;
  color: #d97706;
}

.card-body h3 {
  margin: 0.45rem 0 0.38rem;
  color: #111827;
  font-size: 1.06rem;
  line-height: 1.38;
}

.card-body h3 a:hover,
.rank-main h3 a:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 3.6em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag-row span {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 700;
}

.hot-sidebar .sticky-panel {
  position: sticky;
  top: 5.5rem;
}

.sticky-panel,
.text-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
}

.sticky-panel {
  padding: 1.25rem;
}

.compact-heading h2 {
  font-size: 1.6rem;
}

.full-button {
  width: 100%;
  margin-bottom: 1rem;
}

.mini-rank {
  display: grid;
  gap: 0.75rem;
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.full-rank-list {
  max-width: 1080px;
  margin: 0 auto;
}

.rank-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.mini-rank .rank-score {
  display: none;
}

.rank-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #78350f;
}

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

.rank-cover span {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-main h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.rank-main p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-score {
  min-width: 5rem;
  text-align: center;
  color: var(--brown);
}

.rank-score strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.rank-score span {
  color: var(--muted);
  font-size: 0.78rem;
}

.page-hero,
.detail-hero {
  max-width: 1380px;
  margin: 1.2rem auto 0;
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
  border-radius: 0 0 36px 36px;
}

.page-hero {
  min-height: 320px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(251, 191, 36, 0.42), transparent 24rem),
    linear-gradient(135deg, #431407, #92400e 52%, #f97316);
}

.page-search {
  max-width: 680px;
  margin-top: 1.5rem;
}

.page-search input {
  flex: 1;
  width: auto;
}

.breadcrumb {
  max-width: 1380px;
  margin: 1.15rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #b45309;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.32), transparent 22rem),
    linear-gradient(135deg, #1c1206, #78350f 58%, #f97316);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info .lead-text {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.player-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

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

.big-play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.big-play-button span {
  margin-left: 0.28rem;
  font-size: 2.2rem;
}

.player-shell.is-playing .big-play-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.86rem;
  backdrop-filter: blur(10px);
}

.detail-text-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.text-card {
  padding: 1.5rem;
}

.text-card h2 {
  margin: 0 0 0.75rem;
  color: var(--brown);
}

.text-card p {
  margin: 0.6rem 0;
  color: #374151;
}

.narrow-block {
  max-width: 900px;
}

.site-footer {
  margin-top: 2rem;
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.site-footer p,
.footer-links a,
.footer-bottom {
  color: #fed7aa;
}

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

.footer-links {
  display: grid;
  gap: 0.5rem;
}

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

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  border-top: 1px solid rgba(255, 237, 213, 0.18);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .top-search input {
    width: 12rem;
  }

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

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

  .hot-sidebar .sticky-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .top-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .top-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-poster {
    min-height: 280px;
    transform: none;
  }

  .quick-channels,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .detail-text-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .detail-poster {
    max-width: 280px;
  }
}
