:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --white: #ffffff;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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: linear-gradient(135deg, rgba(28, 25, 23, 0.97), rgba(120, 53, 15, 0.97), rgba(28, 25, 23, 0.97));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
}

.brand-text,
.footer-brand {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--amber-100), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  color: var(--amber-100);
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--amber-600);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.mobile-menu.is-open {
  display: grid;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), #78350f, var(--stone-800));
}

.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;
  z-index: 1;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-kicker,
.section-title span,
.detail-kicker,
.page-hero span,
.filter-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-title span::before,
.detail-kicker::before,
.page-hero span::before,
.filter-copy span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber-400);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.7);
}

.hero-content h1,
.hero-content h2 {
  margin: 16px 0 20px;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 26px;
  color: var(--stone-200);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--amber-100);
  border: 1px solid rgba(252, 211, 77, 0.24);
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.page-actions a,
.promo-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.promo-banner a {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--amber-700));
  box-shadow: var(--shadow-lg);
}

.ghost-button,
.page-actions a {
  color: var(--amber-100);
  border: 1px solid rgba(252, 211, 77, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.page-actions a:hover,
.promo-banner a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-400);
}

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

.section-wrap.compact-top {
  padding-top: 36px;
}

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

.section-band.warm {
  background: linear-gradient(135deg, var(--stone-100), var(--amber-100));
}

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

.section-title h2,
.filter-copy h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
  color: var(--stone-800);
}

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

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

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

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

.masonry-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 100%;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
  aspect-ratio: 3 / 4;
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  min-height: 260px;
}

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

.movie-card:hover .poster {
  transform: scale(1.08);
  opacity: 0.82;
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 0 28px rgba(217, 119, 6, 0.5);
}

.rank-badge {
  left: 14px;
  top: 14px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  background: rgba(28, 25, 23, 0.76);
  border: 1px solid rgba(252, 211, 77, 0.45);
}

.card-body {
  padding: 18px;
}

.meta-row {
  color: var(--amber-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber-50);
}

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--stone-800);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
}

.category-tile span,
.category-head span {
  display: block;
  color: var(--stone-800);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile span,
.category-tile p {
  padding: 0 18px;
}

.category-tile span {
  padding-top: 18px;
}

.category-tile p,
.category-overview-card p {
  color: var(--stone-600);
}

.category-tile p {
  margin: 8px 0 20px;
}

.category-overview-card {
  padding: 22px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-head strong {
  color: var(--amber-700);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mini-list a {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--stone-100);
  color: var(--stone-700);
  font-weight: 700;
}

.mini-list a:hover {
  color: var(--white);
  background: var(--amber-600);
}

.promo-banner,
.page-hero {
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(252, 211, 77, 0.34), transparent 28%),
    linear-gradient(135deg, var(--amber-600), var(--amber-700));
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.promo-banner {
  padding: 42px;
  margin-bottom: 56px;
  text-align: center;
}

.promo-banner h2,
.promo-banner p {
  margin: 0 auto 18px;
  max-width: 860px;
}

.promo-banner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 900;
}

.promo-banner p {
  color: var(--amber-100);
  font-size: 1.08rem;
}

.promo-banner a {
  background: var(--white);
  color: var(--amber-700);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 56px;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p {
  max-width: 840px;
  margin: 0;
  color: var(--amber-100);
  font-size: 1.08rem;
}

.category-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.28), transparent 32%),
    linear-gradient(135deg, var(--stone-900), var(--amber-800), var(--stone-800));
}

.filter-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  margin-bottom: 30px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-input,
.filter-type,
.filter-year {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

.filter-input:focus,
.filter-type:focus,
.filter-year:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stone-600);
  font-weight: 700;
}

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

.watch-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.watch-info,
.detail-content article {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.player-card {
  background: var(--stone-900);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.24), transparent 48%), var(--stone-900);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: var(--stone-900);
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 0 38px rgba(217, 119, 6, 0.55);
  font-size: 2rem;
}

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

.watch-info {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px;
}

.detail-cover {
  width: 150px;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
}

.watch-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.16;
  font-weight: 900;
}

.watch-copy p {
  margin: 0 0 16px;
  color: var(--stone-600);
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-800);
  font-weight: 800;
  font-size: 0.86rem;
}

.detail-content {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
}

.detail-content article {
  padding: 34px;
}

.detail-content h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 1.65rem;
  font-weight: 900;
}

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  margin: 0;
  color: var(--stone-700);
  font-size: 1.04rem;
  line-height: 1.9;
}

.detail-tags {
  margin-top: 26px;
}

.detail-tags span {
  color: var(--amber-800);
  background: var(--amber-50);
}

.related-wrap {
  padding-top: 46px;
}

.site-footer {
  margin-top: 48px;
  background: var(--stone-900);
  color: var(--stone-400);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-inner p {
  margin: 10px 0 0;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--stone-200);
  font-weight: 700;
}

.footer-links a:hover {
  background: var(--amber-700);
  color: var(--white);
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .feature-grid,
  .three-grid,
  .four-grid,
  .masonry-grid,
  .category-grid,
  .overview-grid,
  .ranking-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .masonry-feature {
    grid-column: span 2;
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .feature-grid,
  .three-grid,
  .four-grid,
  .masonry-grid,
  .category-grid,
  .overview-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry-feature {
    grid-column: span 2;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 38px 24px;
  }

  .watch-info {
    grid-template-columns: 120px 1fr;
  }

  .detail-cover {
    width: 120px;
    height: 176px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .page-hero,
  .breadcrumb,
  .watch-layout,
  .detail-content,
  .footer-inner,
  .mobile-menu {
    width: min(100% - 20px, 1280px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .mobile-menu {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a,
  .page-actions a {
    width: 100%;
  }

  .feature-grid,
  .three-grid,
  .four-grid,
  .masonry-grid,
  .category-grid,
  .overview-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .masonry-feature {
    grid-column: span 1;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch-info {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .detail-content article {
    padding: 24px;
  }
}
