:root {
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --emerald-400: #34d399;
  --purple-600: #9333ea;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 36%, #f9fafb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(16px);
  color: var(--white);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 14px 32px rgb(225 29 72 / 0.35);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.header-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--amber-400);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

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

.mobile-nav a {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
}

.main-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: radial-gradient(circle at 15% 20%, rgb(244 63 94 / 0.55), transparent 30%), radial-gradient(circle at 80% 15%, rgb(245 158 11 / 0.45), transparent 34%), linear-gradient(135deg, #0f172a, #111827 48%, #450a0a);
  color: var(--white);
  box-shadow: var(--shadow-2xl);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.24));
  pointer-events: none;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 30%;
  height: 420px;
  background: linear-gradient(90deg, rgb(225 29 72 / 0.40), rgb(245 158 11 / 0.32));
  filter: blur(82px);
  transform: rotate(-6deg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 40px;
  align-items: center;
  min-height: 620px;
  padding: 64px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff, #fecdd3 42%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 18px 36px rgb(225 29 72 / 0.33);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.hero-poster-wrap {
  position: relative;
  justify-self: center;
}

.hero-poster {
  width: min(360px, 80vw);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgb(0 0 0 / 0.42);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-rank-card {
  position: absolute;
  right: -32px;
  bottom: 34px;
  width: 220px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-2xl);
}

.hero-rank-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fde68a;
}

.hero-rank-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.hero-controls {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  width: 56px;
  background: linear-gradient(90deg, var(--rose-400), var(--amber-400));
}

.hero-search {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search .btn {
  min-height: 38px;
  padding: 8px 14px;
}

.section {
  margin-top: 42px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.more-link {
  display: inline-flex;
  align-items: center;
  color: var(--rose-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 22px;
  border-radius: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--rose-700));
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgb(251 191 36 / 0.25);
}

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

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.filter-input,
.filter-select {
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  color: var(--gray-900);
  padding: 0 14px;
  outline: none;
  min-width: 160px;
}

.filter-input {
  flex: 1;
  min-width: 240px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgb(244 63 94 / 0.15);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.card-play {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
}

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

.rank-thumb {
  width: 82px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-desc {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px;
  border-radius: 34px;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgb(225 29 72 / 0.48), transparent 34%), linear-gradient(135deg, #020617, #1e1b4b 48%, #7f1d1d);
  box-shadow: var(--shadow-2xl);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 58px rgb(0 0 0 / 0.42);
}

.detail-info h1 {
  margin: 4px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-info p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--rose-700);
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 700;
}

.detail-info .tag {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow-2xl);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 24px 52px rgb(225 29 72 / 0.42);
  cursor: pointer;
  font-size: 34px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  margin-top: 28px;
}

.article-text {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
}

.article-text h2,
.panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-text p {
  margin: 0 0 18px;
  color: var(--gray-700);
  line-height: 1.9;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--gray-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-link:hover {
  transform: translateY(-3px);
  background: #fff1f2;
}

.side-link img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.side-link strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.side-link span {
  color: var(--gray-500);
  font-size: 13px;
}

.empty-result {
  display: none;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.site-footer {
  margin-top: 40px;
  padding: 34px 24px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--slate-950);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-links a:hover {
  color: var(--amber-400);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.hero-content,
.section,
.detail-hero,
.player-wrap,
.content-layout {
  animation: slideUp 0.55s ease both;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--rose-600), var(--amber-500));
  border-radius: 4px;
}

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

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

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

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 28px 116px;
  }

  .hero {
    min-height: auto;
  }

  .hero-poster-wrap {
    justify-self: start;
  }

  .hero-rank-card {
    right: -16px;
  }

  .hero-controls {
    left: 28px;
    right: 28px;
    bottom: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-layout,
  .content-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .main-shell {
    padding: 20px 14px 42px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .mobile-nav {
    padding: 0 14px 14px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-poster {
    width: min(260px, 76vw);
  }

  .hero-rank-card {
    position: static;
    margin-top: 14px;
    width: 100%;
  }

  .hero-search {
    width: 100%;
  }

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

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

  .filters {
    padding: 12px;
  }

  .filter-input,
  .filter-select {
    width: 100%;
    min-width: 0;
  }

  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-thumb {
    width: 64px;
    height: 88px;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .category-strip,
  .movie-grid {
    grid-template-columns: 1fr;
  }
}
