* {
  box-sizing: border-box;
}

:root {
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --orange: #f97316;
  --pink: #ec4899;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 420px, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.25);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4b5563;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: var(--orange);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 8px 11px 18px;
  color: var(--text);
}

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 18px;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.hero-track,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, transform 4s ease;
  transform: scale(1.02);
}

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.1vw, 23px);
}

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

.hero-tags span,
.detail-meta span {
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  padding: 14px 28px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 35px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  padding: 13px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ghost-btn.dark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  font-size: 42px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 20px 72px;
}

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

.channel-cards a,
.category-card,
.search-panel,
.filter-bar,
.article-section,
.player-section,
.rank-panel {
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.channel-cards a {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.channel-cards strong {
  color: #111827;
  font-size: 18px;
}

.channel-cards span {
  color: var(--muted);
  font-size: 14px;
}

.content-section,
.rank-panel {
  margin-bottom: 76px;
}

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

.section-heading h2,
.category-strip h2,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p,
.category-strip p,
.article-section p,
.category-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--orange);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #fce7f3 48%, #111827 100%);
}

.movie-card.small .poster-link {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover img {
  transform: scale(1.06);
}

.score-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.score-badge {
  top: 12px;
  left: 12px;
  background: rgba(245, 158, 11, 0.94);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta-row {
  color: #6b7280;
  font-size: 14px;
}

.movie-meta-row span + span::before {
  content: "·";
  margin-right: 10px;
  color: #d1d5db;
}

.tag-row {
  margin-top: 12px;
}

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

.tag-row.large span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.category-strip {
  margin-bottom: 76px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.category-strip-head a {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 30% 20%, rgba(251, 146, 60, 0.85), transparent 30%), linear-gradient(135deg, #111827, #7c2d12 45%, #831843);
}

.inner-hero.slim {
  min-height: 300px;
}

.inner-hero > div {
  max-width: 960px;
  padding: 80px 20px;
  text-align: center;
}

.inner-hero span {
  color: #fde68a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.inner-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.inner-hero p {
  margin: 0 auto 24px;
  max-width: 720px;
  color: #f3f4f6;
  font-size: 18px;
}

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

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

.category-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.category-cover-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 25px;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.filter-input-wrap input,
.large-search input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  background: #ffffff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  border: 1px solid #fed7aa;
  padding: 9px 13px;
  color: #9a3412;
  background: #fff7ed;
  border-radius: 999px;
  font-weight: 800;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.empty-state {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 24px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.search-panel {
  margin-bottom: 28px;
  padding: 24px;
}

.large-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.large-search button {
  min-width: 120px;
  border-radius: 999px;
  font-weight: 900;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.45;
}

.movie-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.32));
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  background: #111827;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #fde68a;
  margin-bottom: 18px;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

.detail-page {
  padding-top: 42px;
}

.player-section {
  margin-bottom: 42px;
  padding: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.45), rgba(124, 45, 18, 0.52));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.38);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 22px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.player-message:empty {
  display: none;
}

.article-section {
  margin-bottom: 34px;
  padding: 30px;
}

.article-section p {
  color: #374151;
  font-size: 17px;
}

.meta-article dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px 20px;
  margin: 18px 0 0;
}

.meta-article dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-article dd {
  margin: 0;
  color: #111827;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
}

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

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

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

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

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    min-width: 220px;
  }

  .mobile-nav.open {
    display: flex;
  }

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

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

  .category-overview-grid,
  .rank-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    gap: 12px;
  }

  .header-search {
    display: none;
  }

  .hero-slider {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    padding: 70px 20px 96px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid.five,
  .movie-grid.four,
  .movie-grid.three,
  .channel-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 20px;
  }

  .movie-grid.five,
  .movie-grid.four,
  .movie-grid.three,
  .channel-cards {
    grid-template-columns: 1fr;
  }

  .category-strip,
  .article-section,
  .player-section,
  .search-panel {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .large-search {
    flex-direction: column;
  }
}
