:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.2);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --amber: #f59e0b;
  --shadow: 0 20px 60px rgba(249, 115, 22, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.15), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  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,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select,
.search-tools select {
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 18px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 240px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-tools select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-panel button,
.primary-button,
.card-button,
.rank-play {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-panel button {
  padding: 12px 20px;
}

.primary-button,
.secondary-button,
.card-button,
.rank-play,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button,
.secondary-button {
  padding: 14px 24px;
  font-weight: 900;
  border-radius: 999px;
}

.primary-button:hover,
.card-button:hover,
.rank-play:hover,
.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.28);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.secondary-button.light {
  color: var(--orange-dark);
  border-color: rgba(249, 115, 22, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14);
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  max-width: 1320px;
  min-height: 630px;
  margin: 28px auto 0;
  padding: 0 22px;
}

.hero-stage {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fdba74, #f472b6);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
  padding: 66px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.01);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.1);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(115deg, rgba(127, 29, 29, 0.72), rgba(190, 24, 93, 0.54), rgba(249, 115, 22, 0.68));
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: #ffedd5;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.38);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 3;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.section-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 62px 22px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: stretch;
}

.intro-panel,
.category-card,
.category-overview-card,
.story-card,
.player-card,
.filter-panel,
.search-tools,
.rank-row,
.nav-neighbor {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.1);
  backdrop-filter: blur(16px);
}

.intro-panel {
  padding: 34px;
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.story-card h2 {
  margin: 10px 0 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.intro-panel p,
.page-hero p,
.category-overview-head p,
.story-card p {
  color: var(--muted);
  line-height: 1.9;
}

.wide-search {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  box-shadow: var(--shadow);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
}

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

.section-heading > a,
.ghost-link {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(236, 72, 153, 0.16);
}

.movie-card.small h3 {
  font-size: 17px;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.poster-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-sample a:hover,
.nav-neighbor a:hover {
  color: var(--orange-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.68;
  flex: 1;
}

.movie-meta-line {
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.42);
  vertical-align: middle;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.8);
}

.card-button {
  margin-top: 16px;
  padding: 11px 18px;
  font-size: 14px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.category-card h3,
.category-overview-head h2 {
  margin-top: 0;
  font-size: 26px;
}

.category-card p,
.category-sample a {
  color: var(--muted);
}

.category-sample {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(236, 72, 153, 0.22));
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-row.compact-row {
  grid-template-columns: 46px 74px minmax(0, 1fr);
}

.rank-row.compact-row .rank-play {
  display: none;
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

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

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

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-play {
  padding: 10px 18px;
}

.page-hero {
  max-width: 1320px;
  margin: 28px auto 0;
  padding: 80px 44px;
  border-radius: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 6vw, 76px);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.page-hero .eyebrow {
  color: #ffedd5;
}

.filter-panel,
.search-tools {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label,
.search-tools label {
  display: grid;
  gap: 7px;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.mini-card a {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.12);
}

.fit {
  width: fit-content;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(14px) saturate(1.16);
  transform: scale(1.08);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 22px 80px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgba(127, 29, 29, 0.4);
}

.detail-copy h1 {
  margin: 12px 0 18px;
  max-width: 880px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0 8px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #111827;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.3), rgba(190, 24, 93, 0.28));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.42);
  font-size: 34px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.story-card {
  padding: 28px;
}

.story-card p {
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.nav-neighbor {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.nav-neighbor a {
  font-weight: 900;
  color: var(--text);
}

.site-footer {
  margin-top: 74px;
  padding: 48px 22px 26px;
  color: #fff7ed;
  background: linear-gradient(135deg, #7c2d12, #831843);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 32px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

.footer-bottom {
  max-width: 1320px;
  margin: 30px auto 0;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 48px;
  }

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

@media (max-width: 840px) {
  .hero-carousel,
  .hero-stage {
    min-height: 760px;
  }

  .hero-slide,
  .detail-layout,
  .intro-grid,
  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel,
  .search-tools,
  .nav-neighbor {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-play {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

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

  .hero-carousel {
    padding: 0 14px;
  }

  .hero-stage,
  .page-hero {
    border-radius: 24px;
  }

  .hero-slide {
    padding: 36px 24px 82px;
  }

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

  .section-wrap,
  .detail-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .page-hero {
    margin-left: 14px;
    margin-right: 14px;
    padding: 54px 24px;
  }

  .wide-search,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
}
