:root {
  --rose-950: #4c0519;
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --rose-50: #fff1f2;
  --amber-50: #fffbeb;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(136, 19, 55, 0.16);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--rose-50), var(--amber-50) 38%, var(--white));
}

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

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

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: linear-gradient(90deg, var(--rose-900), var(--rose-800), #78350f);
  box-shadow: 0 10px 30px rgba(76, 5, 25, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, var(--amber-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.main-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown:hover > a {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: var(--white);
  color: var(--gray-700);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--rose-800);
  background: var(--rose-50);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px 10px 18px;
  background: transparent;
  color: var(--gray-800);
}

.nav-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--rose-900);
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  color: var(--white);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

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

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(640px, 100%);
  color: var(--white);
}

.eyebrow,
.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 26px;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-list,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.tag-list span,
.detail-meta span {
  background: var(--amber-50);
  color: #92400e;
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.28);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost.light {
  border-color: rgba(255, 255, 255, 0.5);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 32px;
  background: #fbbf24;
}

.content-section {
  padding: 58px 0;
}

.soft-section {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.9), rgba(254, 243, 199, 0.75));
}

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

.section-heading h2,
.panel-title h2,
.detail-card h1,
.detail-card h2 {
  margin: 0;
  color: var(--gray-800);
  letter-spacing: -0.03em;
}

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

.section-heading p {
  margin: 8px 0 0;
  max-width: 620px;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more,
.text-link,
.panel-title a {
  color: var(--rose-700);
  font-weight: 800;
}

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-600));
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.56));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-thumb::after {
  opacity: 1;
}

.movie-badge,
.movie-duration {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.movie-badge {
  top: 10px;
  left: 10px;
  background: var(--rose-600);
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  color: var(--gray-800);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta em,
.movie-meta i {
  font-style: normal;
}

.movie-meta em {
  color: var(--rose-800);
  font-weight: 800;
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-thumb-horizontal {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-compact .movie-info {
  padding: 12px;
}

.movie-card-compact .movie-desc {
  display: none;
}

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

.channel-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.channel-card img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-card img {
  position: absolute;
  inset: 0;
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(76, 5, 25, 0.86), rgba(120, 53, 15, 0.5));
}

.channel-card span {
  position: relative;
  z-index: 1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.channel-card strong {
  font-size: 24px;
}

.channel-card em {
  margin-top: 8px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.55;
}

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

.ranking-panel,
.detail-card,
.search-panel,
.toolbar,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-row a:hover {
  background: var(--rose-50);
}

.rank-no {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  font-weight: 900;
}

.rank-cover {
  display: block;
  width: 72px;
  height: 46px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gray-100);
}

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

.rank-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rank-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-body em,
.rank-heat {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.cta-section {
  padding: 66px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-900), #78350f);
}

.cta-card {
  display: grid;
  gap: 10px;
}

.cta-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.cta-card p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  padding: 70px 0;
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.24), transparent 32%), linear-gradient(90deg, var(--rose-900), #78350f);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.category-overview-card {
  min-height: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.category-cover {
  display: block;
  min-height: 220px;
  background: var(--gray-100);
}

.category-overview-card div {
  padding: 24px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-800);
  font-size: 13px;
}

.toolbar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 24px;
}

.toolbar label,
.search-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-weight: 700;
}

.toolbar input,
.toolbar select,
.search-panel input,
.search-panel select {
  min-height: 42px;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  outline: 0;
  padding: 0 14px;
  background: var(--white);
  color: var(--gray-800);
}

.search-panel input {
  flex: 1 1 320px;
}

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

.ranking-page-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.detail-hero {
  padding: 28px 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 58px;
}

.watch-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.36);
  font-size: 30px;
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

.detail-card h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
  line-height: 1.9;
}

.lead-text {
  font-size: 18px;
  font-weight: 700;
}

.detail-meta {
  margin-bottom: 16px;
}

.tag-list {
  margin-bottom: 18px;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.side-cover img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.side-cover div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.side-cover strong {
  font-size: 18px;
}

.side-cover span {
  color: var(--rose-800);
  font-size: 13px;
  font-weight: 800;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #111827;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

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

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

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

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-page-panel,
  .sticky-panel {
    position: static;
    max-height: none;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: 560px;
  }

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

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

  .category-cover {
    min-height: 180px;
  }

  .footer-grid {
    display: grid;
  }
}

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

  .site-logo span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 86px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.86));
  }

  .hero-actions,
  .section-heading,
  .toolbar,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .toolbar input,
  .toolbar select,
  .search-panel input,
  .search-panel select {
    width: 100%;
  }

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

  .movie-card-horizontal .movie-card-link {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .movie-card-horizontal .movie-desc {
    -webkit-line-clamp: 2;
  }

  .rank-row a {
    grid-template-columns: 30px 64px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

  .detail-card {
    padding: 20px;
  }
}
