:root {
  color-scheme: light;
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.14);
  --amber: #f59e0b;
  --rose: #f43f5e;
  --sky: #0284c7;
  --shadow: 0 24px 60px rgba(88, 28, 28, 0.16);
  --soft-shadow: 0 14px 36px rgba(88, 28, 28, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.95), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 228, 230, 0.92), transparent 38rem),
    linear-gradient(135deg, #fffbeb 0%, #fff1f2 48%, #f0f9ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #e11d48, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo::before,
.footer-logo::before {
  content: "▶";
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a,
.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.footer-links a:hover {
  color: #be123c;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #be123c;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(136, 19, 55, 0.9), rgba(12, 74, 110, 0.86)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 42px;
  padding: 70px 0 86px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7.4vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.78;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: #be123c;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
}

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

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.section {
  padding: 64px 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #e11d48, #f59e0b, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.page-title p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.68);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  min-width: 62px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.34);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  min-height: 52px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover {
  color: #e11d48;
}

.card-body p {
  margin: 10px 0 0;
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 228, 230, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 210px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 12%, rgba(244, 63, 94, 0.16), transparent 13rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 235, 0.86));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(88, 28, 28, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.rank-no {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  font-weight: 900;
}

.rank-item img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-info span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  margin: 28px 0 32px;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.toolbar input,
.toolbar select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(244, 63, 94, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.page-title {
  padding: 56px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: #be123c;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.22), transparent 22rem),
    rgba(15, 23, 42, 0.34);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.36);
  font-weight: 900;
}

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

.detail-panel,
.side-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  font-size: 13px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 28px 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.detail-panel p {
  color: #4b5563;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 98px;
  margin-top: 0;
}

.small-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.small-card img {
  grid-row: span 2;
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.small-card span {
  font-weight: 850;
  line-height: 1.45;
}

.small-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
}

.feature-panel {
  overflow: hidden;
  min-height: 430px;
  border-radius: 32px;
  position: relative;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.feature-panel .feature-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.feature-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.feature-stack {
  display: grid;
  gap: 16px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

.footer-inner p {
  color: var(--muted);
  margin: 0;
}

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

  .detail-layout,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
  }

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

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

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

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

@media (max-width: 540px) {
  .header-inner,
  .page-shell,
  .hero-content,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 640px;
  }

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

  .section {
    padding: 44px 0;
  }

  .card-body h3 {
    min-height: auto;
  }

  .card-body p {
    min-height: auto;
  }

  .detail-panel,
  .side-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .footer-inner {
    display: grid;
  }
}
