:root {
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.10);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}

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

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-size: 13px;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-900));
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.28);
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 28px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav a,
.mobile-nav a {
  font-weight: 650;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.menu-toggle,
.top-search button,
.hero-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
}

.search-toggle {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-800);
}

.search-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 14px 0;
}

.search-panel.open {
  display: block;
}

.top-search {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.top-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: var(--white);
}

.top-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.13);
}

.top-search button,
.hero-search button {
  padding: 0 24px;
  border-radius: 12px;
  color: var(--white);
  background: var(--amber-700);
  font-weight: 800;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  align-items: flex-start;
}

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

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--gray-950);
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.45fr);
  align-items: center;
  gap: 48px;
  padding: 70px 0;
}

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

.hero-badge,
.section-heading span,
.section-kicker,
.page-hero span,
.detail-copy .breadcrumb,
.category-overview-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--white);
  background: rgba(180, 83, 9, 0.92);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

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

.hero-copy p {
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
  max-width: 650px;
}

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

.hero-meta {
  margin-top: 24px;
  color: var(--white);
}

.hero-meta i {
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.34);
}

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

.btn-primary,
.btn-secondary,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  min-height: 52px;
  padding: 0 30px;
  color: var(--white);
  background: var(--amber-700);
  box-shadow: 0 18px 32px rgba(180, 83, 9, 0.34);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-800);
}

.btn-glass {
  min-height: 52px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-panel {
  color: var(--white);
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-panel strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-panel p {
  color: #f3f4f6;
  line-height: 1.75;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span,
.section-kicker,
.page-hero span,
.category-overview-head span {
  color: var(--amber-800);
  background: var(--amber-100);
}

.section-heading h2,
.section-topline h2,
.category-card-list h2,
.rank-side h2,
.story-card h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--gray-900);
}

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

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

.text-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.tiny-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

.movie-card-wide .movie-cover {
  aspect-ratio: 16 / 9;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.cover-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 800;
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 83, 9, 0.92);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

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

.movie-meta {
  justify-content: space-between;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta span:first-child {
  color: var(--amber-800);
  background: var(--amber-50);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 800;
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.rank-no {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--amber-700);
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-type,
.rank-heat {
  color: var(--gray-600);
  font-size: 13px;
}

.rank-heat {
  color: var(--amber-700);
  font-weight: 850;
}

.btn-secondary {
  margin-top: 22px;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--amber-700);
}

.category-card-list,
.rank-side,
.story-card,
.category-overview-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card-list a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-200);
}

.category-card-list a:last-child {
  border-bottom: 0;
}

.category-card-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-900);
  font-weight: 850;
}

.category-card-list em {
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  color: var(--white);
  padding: 92px 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 30%), linear-gradient(135deg, var(--gray-950), var(--amber-900));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.75;
}

.category-overview {
  display: grid;
  gap: 26px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-overview-head a {
  color: var(--amber-700);
  font-weight: 850;
}

.category-overview-card p {
  color: var(--gray-600);
  margin: 0 0 20px;
  line-height: 1.75;
}

.filter-bar {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--gray-600);
  border-radius: 18px;
  background: var(--gray-100);
}

.empty-state.show {
  display: block;
}

.movie-card.is-hidden {
  display: none;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-list-large {
  gap: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--gray-950);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.15));
  backdrop-filter: blur(2px);
}

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

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy {
  color: var(--white);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
}

.detail-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 820px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.player-section {
  padding-top: 50px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.92);
  box-shadow: 0 18px 42px rgba(180, 83, 9, 0.34);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card p {
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}


.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
  font-weight: 850;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .split-section,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .rank-side {
    order: -1;
  }

  .detail-hero-inner {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .container,
  .nav-shell,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .search-toggle {
    display: none;
  }

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

  .hero-content {
    padding: 62px 0 44px;
  }

  .hero-actions,
  .hero-search,
  .top-search {
    flex-direction: column;
  }

  .top-search button,
  .hero-search button {
    min-height: 46px;
  }

  .section {
    padding: 44px 0;
  }

  .section-topline,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-line {
    display: none;
  }

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

  .rank-type,
  .rank-heat {
    display: none;
  }

  .filter-bar {
    top: 70px;
    grid-template-columns: 1fr;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }

  .page-hero {
    padding: 64px 0;
  }
}
