:root {
  color-scheme: light;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
  --soft-shadow: 0 12px 28px rgba(120, 53, 15, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 44%, #fff 100%);
  color: var(--ink-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-800);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-700), #f59e0b);
  color: white;
  box-shadow: 0 12px 22px rgba(180, 83, 9, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a {
  transition: color .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-700);
}

.top-search {
  width: min(320px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.top-search input,
.mobile-nav input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
}

.top-search button,
.mobile-nav button,
.hero-search button,
.filter-bar button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.top-search button,
.mobile-nav button,
.hero-search button,
.primary-button {
  background: var(--amber-700);
  color: white;
}

.top-search button {
  padding: 8px 14px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-800);
  font-size: 28px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--ink-700);
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.mobile-nav button {
  padding: 10px 14px;
}

.hero-shell {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .58) 46%, rgba(0, 0, 0, .16) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .62fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

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

.hero-kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.92);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-title-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 850;
}

.hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-meta {
  margin: 22px 0;
  color: white;
}

.hero-meta span,
.card-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 52px;
  box-shadow: 0 18px 30px rgba(180, 83, 9, .28);
}

.primary-button:hover,
.top-search button:hover,
.hero-search button:hover,
.mobile-nav button:hover {
  background: var(--amber-800);
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(255, 255, 255, .14);
  color: white;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(610px, 100%);
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.hero-search input {
  color: white;
  padding: 0 8px;
}

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

.hero-search button {
  padding: 12px 20px;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  transition: transform .2s ease, background .2s ease;
}

.spotlight-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, .20);
}

.spotlight-card img {
  width: 92px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.spotlight-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 850;
}

.spotlight-card p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.55;
}

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

.section-tight {
  padding-top: 44px;
}

.band-section {
  background: linear-gradient(90deg, var(--orange-50), var(--amber-50));
}

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

.section-heading h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-card p,
.detail-lead {
  color: var(--ink-500);
  line-height: 1.75;
}

.section-link {
  color: var(--amber-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #451a03, #fbbf24);
  box-shadow: var(--soft-shadow);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .56) 100%);
  opacity: .85;
}

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

.poster-type,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-type {
  top: 10px;
  left: 10px;
  background: rgba(180, 83, 9, .92);
}

.poster-year {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, .62);
}

.rank-badge {
  right: 10px;
  top: 10px;
  min-width: 34px;
  min-height: 34px;
  background: linear-gradient(135deg, #f59e0b, var(--amber-800));
  box-shadow: 0 12px 20px rgba(120, 53, 15, .32);
}

.movie-card-body {
  padding: 12px 2px 0;
}

.movie-card h3 {
  margin: 0 0 7px;
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  color: var(--ink-500);
  font-size: 12px;
}

.movie-card-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #d1d5db;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120, 53, 15, .95), rgba(251, 191, 36, .70));
  color: white;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .24), transparent 34%), radial-gradient(circle at 16% 78%, rgba(255, 255, 255, .16), transparent 30%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

.page-hero h1,
.page-hero p {
  color: white;
}

.page-hero p {
  max-width: 740px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .84);
}

.page-hero-poster {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, .15);
  box-shadow: var(--shadow);
}

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

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

.category-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 23px;
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
}

.filter-bar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 150px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.filter-bar label {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  background: white;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  font-weight: 650;
}

.filter-empty {
  display: none;
  padding: 30px;
  border: 1px dashed #f59e0b;
  border-radius: 22px;
  background: var(--amber-50);
  color: var(--amber-900);
  font-weight: 750;
  text-align: center;
}

.filter-empty.is-visible {
  display: block;
}

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

.breadcrumbs {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--ink-500);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-700);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-bottom: 72px;
}

.player-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: opacity .22s ease, visibility .22s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .08), rgba(0, 0, 0, .64));
}

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

.play-orb {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-700);
  color: white;
  font-size: 34px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, .36);
  transform: translateZ(0);
}

.detail-aside {
  padding: 26px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.detail-title {
  margin: 18px 0 12px;
}

.detail-lead {
  margin: 0 0 18px;
  font-size: 16px;
}

.detail-meta span {
  background: var(--amber-100);
  color: var(--amber-900);
}

.card-tags {
  margin-top: 18px;
}

.card-tags span {
  background: #f3f4f6;
  color: var(--ink-700);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 32px;
}

.article-panel,
.side-panel {
  border-radius: 28px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.article-panel {
  padding: 32px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 22px;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.95;
}

.side-panel {
  padding: 24px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 72px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 850;
}

.related-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 16px;
  color: white;
  font-weight: 900;
}

.footer-inner p,
.footer-inner li {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner a:hover {
  color: #f59e0b;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #d1d5db;
  font-size: 12px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #6b7280;
  text-align: center;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-inner,
  .page-hero-inner,
  .player-block,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-aside {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav-container {
    min-height: 64px;
  }

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

  .hero-inner {
    padding: 52px 0;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-side,
  .movie-grid,
  .movie-grid-wide,
  .rank-list,
  .category-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search,
  .section-heading,
  .filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-search {
    display: grid;
  }

  .section,
  .page-section {
    padding: 48px 0;
  }

  .page-hero-inner {
    padding: 54px 0;
  }

  .page-hero-poster {
    display: none;
  }

  .filter-bar {
    position: static;
  }

  .player-shell {
    border-radius: 20px;
  }

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

@media (max-width: 520px) {
  .hero-side,
  .movie-grid,
  .movie-grid-wide,
  .rank-list,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    grid-template-columns: 82px 1fr;
  }

  .spotlight-card img {
    width: 82px;
    height: 112px;
  }
}
