:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fed7aa;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand-dark);
  background: #fff7ed;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-menu {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.mobile-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-dark);
}

.mobile-search {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 5px;
}

.mobile-search input {
  width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    radial-gradient(circle at 15% 12%, rgba(251, 146, 60, 0.2), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.24;
  pointer-events: none;
}

.hero-glow-one {
  left: 7%;
  top: 12%;
  background: var(--brand);
}

.hero-glow-two {
  right: 8%;
  bottom: 4%;
  background: var(--amber);
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 64px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  color: var(--brand-dark);
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 30px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.secondary-button {
  color: #374151;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.86);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.26);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 38px;
  background: var(--brand);
}

.section-block {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-white {
  background: transparent;
}

.section-soft,
.section-warm {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1240px) / 2));
  padding-right: max(16px, calc((100% - 1240px) / 2));
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.no-top-space {
  padding-top: 20px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.left-heading {
  margin-left: 0;
  text-align: left;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-heading h2,
.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
  font-weight: 900;
  transition: 0.2s ease;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.movie-play,
.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--brand-dark);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span,
.detail-meta span {
  color: #6b7280;
  font-size: 13px;
}

.movie-tags {
  margin-top: 14px;
}

.movie-tags span,
.detail-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(245, 158, 11, 0.88));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.22);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-7px);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.58));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.category-icon {
  font-size: 42px;
}

.category-tile strong {
  margin: 8px 0;
  font-size: 22px;
  font-weight: 950;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

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

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

.full-rank {
  max-width: 980px;
  margin: 0 auto;
}

.rank-card {
  display: grid;
  grid-template-columns: 62px 94px minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #fff7ed;
}

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

.rank-info a {
  display: inline-block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-info span {
  color: #9ca3af;
  font-size: 12px;
}

.rank-card strong {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 950;
  text-align: right;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(251, 146, 60, 0.24), transparent 24%),
    linear-gradient(135deg, #fff7ed, #fffbeb);
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
}

.category-overview {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
  display: grid;
  gap: 32px;
}

.category-preview {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.category-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-preview-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 950;
}

.category-preview-head p {
  margin: 0;
  color: var(--muted);
}

.toolbar-section {
  width: min(1240px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 3;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  background: #fff;
  padding: 0 14px;
}

.filter-toolbar input {
  flex: 1 1 280px;
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 42px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.18), transparent 28%),
    linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: #fff7ed;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.18);
}

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

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

.detail-one-line {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

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

.player-section,
.detail-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.6));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.big-play {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

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

.story-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.related-section {
  margin-top: 0;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  color: #fff;
}

.footer-inner p {
  max-width: 560px;
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }

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

  .compact-rank {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-section,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 0 92px;
  }

  .hero-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .hero-dots {
    bottom: 34px;
  }

  .split-heading,
  .category-preview-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid-large,
  .movie-grid-medium,
  .movie-grid-small,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .detail-poster {
    width: min(340px, 100%);
    margin: 0 auto;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 48px 82px minmax(0, 1fr);
  }

  .rank-card strong {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 22px, 1240px);
  }

  .site-logo {
    font-size: 19px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid-large,
  .movie-grid-medium,
  .movie-grid-small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar {
    border-radius: 20px;
  }

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

  .result-count {
    margin-left: 0;
  }

  .section-block {
    padding: 52px 0;
  }

  .rank-card {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}
