
* {
  box-sizing: border-box;
}

:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50), #ffffff 36%, #ffffff);
  line-height: 1.65;
}

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

img {
  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: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.header-search input,
.search-box-large input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.search-box-large button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose-600), var(--rose-500));
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.24);
}

.header-search input:focus,
.search-box-large input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--gray-800);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

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

.mobile-panel nav,
.mobile-categories {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.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.78), rgba(0, 0, 0, 0.50) 46%, rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: #ffffff;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.90);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--rose-700);
  background: var(--rose-100);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy h3 {
  margin: 16px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta {
  margin-top: 20px;
}

.hero-meta span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn,
.quick-links a,
.section-more,
.category-preview-title a,
.category-tile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
  padding: 12px 20px;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--rose-500));
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.btn.ghost.dark {
  color: var(--rose-700);
  border-color: rgba(225, 29, 72, 0.22);
  background: #ffffff;
}

.btn:hover,
.quick-links a:hover,
.section-more:hover,
.category-preview-title a:hover,
.category-tile:hover span {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

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

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-panel {
  margin-top: -64px;
  position: relative;
  z-index: 5;
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.panel-copy h2 {
  margin: 18px 0 10px;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.panel-copy p {
  margin: 0;
  color: var(--gray-600);
}

.quick-links a,
.section-more,
.category-preview-title a,
.category-tile span {
  padding: 10px 16px;
  color: var(--rose-700);
  background: var(--rose-50);
}

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

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

.wide-section {
  padding: 72px 0;
  background: linear-gradient(90deg, var(--amber-50), var(--rose-50));
}

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

.section-heading span {
  color: var(--rose-600);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 6px 0 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--gray-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: var(--shadow-card);
}

.poster-link {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-100));
}

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

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

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

.movie-meta {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3,
.movie-card h4 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h4 {
  font-size: 16px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card.compact .movie-card p {
  font-size: 13px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.category-stack {
  display: grid;
  gap: 38px;
}

.category-preview {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

.category-preview-title h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 24px;
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.90), transparent 34%), linear-gradient(135deg, #881337, #78350f);
}

.simple-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

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

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

.category-tile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-tile h2 {
  margin: 4px 0 8px;
  color: var(--gray-900);
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-100));
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.filter-bar input,
.filter-bar select {
  padding: 12px 14px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--gray-100);
  text-align: center;
}

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

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

.rank-list {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.rank-list h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--gray-50);
}

.rank-list span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  font-size: 12px;
  font-weight: 900;
}

.rank-list strong {
  color: var(--gray-900);
  font-size: 14px;
}

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

.search-box-large {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  margin-bottom: 28px;
}

.search-box-large input {
  padding: 14px 18px;
}

.detail-hero {
  padding: 36px 0 70px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.92), transparent 38%), linear-gradient(135deg, #111827, #78350f);
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-100));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-line {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.detail-intro {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-main {
  margin-top: -46px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

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

.play-overlay span {
  width: 78px;
  height: 78px;
  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.38);
  font-size: 30px;
}

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

.detail-article {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: var(--gray-700);
  font-size: 17px;
}

.related-section {
  margin-top: 48px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff, var(--gray-100));
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--gray-900);
}

.site-footer p,
.site-footer a {
  color: var(--gray-600);
}

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

.site-footer a:hover {
  color: var(--rose-600);
}

.footer-bottom {
  padding: 18px;
  color: var(--gray-600);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .panel-grid,
  .ranking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-list {
    position: static;
  }

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

@media (max-width: 820px) {
  .hero-slider {
    min-height: 620px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .panel-cards,
  .movie-grid.four,
  .movie-grid.three,
  .category-grid,
  .category-tile,
  .detail-layout,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .home-panel {
    margin-top: 0;
  }

  .panel-grid {
    width: 100%;
    border-radius: 0;
  }

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

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

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

  .nav-bar {
    height: 62px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-copy h3 {
    font-size: 26px;
  }

  .content-section,
  .wide-section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 66px 0;
  }

  .detail-hero {
    padding-bottom: 54px;
  }

  .detail-article {
    padding: 22px;
  }

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