:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-soft: #fff4e8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1d9c1;
  --brand: #ea580c;
  --brand-strong: #c2410c;
  --brand-soft: #fed7aa;
  --amber: #f59e0b;
  --dark: #111827;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.16);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf4 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.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.88);
  border-bottom: 1px solid rgba(234, 88, 12, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff4e8;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.mobile-nav a {
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff7ed;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: linear-gradient(135deg, #111827 0%, #7c2d12 52%, #f97316 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.55), transparent 24rem),
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.42), transparent 22rem),
    linear-gradient(110deg, rgba(17, 24, 39, 0.85), rgba(124, 45, 18, 0.42));
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: center;
  min-height: 650px;
  padding: 70px 0;
}

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

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

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

.hero-copy h1 {
  margin: 12px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fed7aa;
}

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

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span,
.rank-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button,
.page-search button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.page-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.primary-button.full {
  width: 100%;
}

.hero-poster,
.poster,
.detail-poster,
.rank-poster {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  border-radius: 34px;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.82)),
    var(--poster-image),
    linear-gradient(135deg, #fb923c, #7c2d12);
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-poster::before,
.poster::before,
.detail-poster::before,
.rank-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.hero-poster span,
.detail-poster span {
  position: relative;
  display: block;
  padding: 28px;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-panel strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 66px;
  line-height: 1;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search,
.page-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
}

.hero-search input,
.page-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}

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

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

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

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

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

.section-heading h2,
.rank-card h2,
.content-card h2,
.side-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.section-link,
.toolbar a {
  color: var(--brand);
  font-weight: 900;
}

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(234, 88, 12, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 10rem),
    #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile strong {
  color: #9a3412;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.category-tile span {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-tile.large {
  min-height: 240px;
}

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

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  min-height: 300px;
  border-radius: 0;
  box-shadow: none;
}

.poster-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.poster-title {
  position: relative;
  display: block;
  padding: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

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

.movie-meta-line span {
  background: #fff7ed;
  color: #9a3412;
}

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

.movie-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.rank-card,
.content-card,
.side-card,
.player-card {
  border: 1px solid rgba(234, 88, 12, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.rank-card {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.rank-card p,
.content-card p,
.side-card p {
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #1f2937, #7c2d12 62%, #f97316);
}

.compact-hero {
  padding: 76px 0;
}

.category-hero {
  padding: 76px 0 54px;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-search {
  width: min(460px, 100%);
  flex-shrink: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-poster {
  min-height: 190px;
  border-radius: 22px;
  box-shadow: none;
}

.rank-poster span {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(17, 24, 39, 0.62);
  font-weight: 900;
}

.rank-item h2 {
  margin: 10px 0;
  font-size: 28px;
}

.rank-item p {
  margin: 0 0 14px;
  color: var(--muted);
}

.rank-stats span {
  background: #fff7ed;
  color: #9a3412;
}

.detail-hero {
  min-height: 520px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 1), rgba(124, 45, 18, 0.7)),
    var(--poster-image),
    linear-gradient(135deg, #fb923c, #7c2d12);
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  min-height: 460px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-meta,
.detail-tags {
  margin: 20px 0;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #ffedd5;
}

.player-topline span {
  color: var(--brand);
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.34), transparent 18rem),
    rgba(2, 6, 23, 0.34);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.player-status {
  margin: 0;
  padding: 14px 20px 18px;
  color: var(--muted);
}

.content-card,
.side-card {
  padding: 24px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.side-card a {
  color: var(--brand);
}

.mini-link-list {
  display: grid;
  gap: 10px;
}

.mini-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.mini-link-list span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link-list em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  margin-top: 70px;
  padding: 50px 0 26px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  color: #fed7aa;
  font-size: 18px;
}

.site-footer a,
.site-footer p {
  display: block;
  color: #d1d5db;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-shell,
  .two-column-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .rank-card,
  .detail-side {
    position: static;
  }

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

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

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

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell,
  .detail-hero-inner {
    padding: 44px 0;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    min-height: 390px;
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .rank-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .rank-poster {
    min-height: 150px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

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

  .hero-slider {
    min-height: 700px;
  }

  .movie-grid,
  .dense-grid,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .toolbar,
  .player-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-poster {
    min-height: 260px;
  }
}
