:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --red-900: #7f1d1d;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  --soft-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 35%, var(--slate-50));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-800), var(--amber-700), var(--amber-900));
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.25);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--amber-900);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.22);
}

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

.nav-link,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.9);
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
  color: var(--amber-100);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 180px;
  display: none;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.dropdown-panel a:hover {
  background: rgba(245, 158, 11, 0.2);
  color: var(--white);
}

.nav-dropdown:hover .dropdown-panel {
  display: block;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
}

.hero-amber {
  background: linear-gradient(135deg, var(--amber-900), var(--amber-700) 45%, var(--red-900));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 80% 30%, #ffffff 0 1px, transparent 1px);
  background-size: 58px 58px, 42px 42px;
  animation: floatPattern 16s linear infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
}

.hero-glow-a {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 80px;
  background: rgba(253, 230, 138, 0.26);
}

.hero-glow-b {
  width: 440px;
  height: 440px;
  right: -160px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 58px 24px 74px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  min-height: 500px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-200);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 950;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.mini-tags,
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span,
.genre-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.wide-link,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--amber-900);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.ghost-btn {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.wide-link:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border: 10px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-800), var(--slate-900));
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 900;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.content-section.compact {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--slate-800);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-more,
.text-link,
.wide-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  box-shadow: var(--soft-shadow);
}

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

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.small-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-700), var(--slate-900));
}

.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-shade {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  color: var(--amber-900);
  background: var(--amber-100);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--amber-700);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
}

.movie-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mini-tags span {
  padding: 4px 8px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 12px;
}

.category-band {
  background: linear-gradient(135deg, #172554, #312e81, var(--slate-900));
}

.category-band .section-head h2,
.category-band .section-head p {
  color: var(--white);
}

.category-grid,
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.category-tile,
.category-card-large {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.category-tile span,
.category-card-title {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.category-card-grid .category-card-large {
  color: var(--slate-800);
  background: var(--white);
  border-color: var(--slate-200);
  box-shadow: var(--soft-shadow);
}

.category-card-grid .category-card-large p {
  color: var(--slate-600);
}

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

.category-samples a {
  color: var(--slate-700);
  font-size: 14px;
}

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

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

.hot-panel,
.text-card,
.player-card,
.filter-panel {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.hot-panel {
  padding: 22px;
}

.panel-title,
.player-title {
  margin-bottom: 16px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 950;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
}

.rank-row:hover {
  background: var(--amber-50);
}

.rank-number {
  color: var(--amber-700);
  font-weight: 950;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-200);
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  color: var(--slate-800);
}

.rank-text em {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.rank-go {
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 900;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--amber-700), var(--red-900));
}

.page-hero {
  padding: 74px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.slim-hero {
  padding-top: 54px;
  padding-bottom: 54px;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
  margin-bottom: 28px;
}

.filter-panel label span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

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

.empty-note {
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  background: var(--amber-50);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(16px);
  transform: scale(1.08);
}

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

.detail-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: var(--white);
}

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

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-pills span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.85;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.player-card,
.text-card {
  padding: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.video-player.is-playing .video-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--amber-100);
  text-align: center;
}

.text-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 28px;
}

.text-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.95;
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
  border: 1px solid var(--amber-100);
}

.info-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.info-table div {
  padding: 14px;
  border-radius: 14px;
  background: var(--slate-50);
}

.info-table span {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-500);
  font-size: 13px;
}

.info-table strong {
  color: var(--slate-800);
}

.sticky-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--amber-200);
}

.footer-links {
  columns: 2;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-700);
  box-shadow: var(--soft-shadow);
}

.back-top.is-visible {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPattern {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(58px, 58px, 0);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-dropdown {
    display: none;
  }

  .hero-slide,
  .detail-grid,
  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
  }

  .sticky-panel {
    position: static;
    max-height: none;
  }

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

@media (max-width: 640px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .content-section {
    padding: 46px 16px;
  }

  .hero-inner {
    padding: 42px 16px 72px;
  }

  .hero-slide {
    gap: 26px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead,
  .detail-one-line {
    font-size: 17px;
  }

  .movie-grid,
  .library-grid,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-info p,
  .mini-tags {
    display: none;
  }

  .page-hero {
    padding: 48px 16px;
  }

  .detail-shell {
    padding: 24px 16px 44px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .player-card,
  .text-card,
  .hot-panel {
    padding: 18px;
  }

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

  .rank-go {
    display: none;
  }
}
