:root {
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-panel: #ffffff;
  --color-amber: #d97706;
  --color-amber-dark: #92400e;
  --color-orange: #c2410c;
  --color-border: #e5e7eb;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
}

body {
  min-height: 100vh;
  color: var(--color-ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 48%, #fff7ed 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 52%, #7c2d12 100%);
  box-shadow: 0 12px 40px rgba(120, 53, 15, 0.28);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fde68a;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-search {
  width: min(320px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.nav-search button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: #7c2d12;
  background: #fde68a;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav-inner {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.mobile-nav .nav-search {
  width: 100%;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.24), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 96px 0 108px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fffbeb;
  background: rgba(217, 119, 6, 0.86);
}

.hero-content h1,
.hero-content h2 {
  max-width: 900px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.46);
}

.hero-content p {
  max-width: 690px;
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.90);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.38);
}

.btn-primary:hover {
  background: #b45309;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #d97706;
}

.page-hero {
  color: #ffffff;
  padding: 64px 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(90deg, #78350f, #9a3412 48%, #111827);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.section {
  padding: 64px 0;
}

.section.is-warm {
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.88), rgba(255, 247, 237, 0.82));
}

.section.is-dark {
  color: #ffffff;
  background: #111827;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: #d97706;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 560px;
  color: var(--color-muted);
  line-height: 1.75;
}

.section.is-dark .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.view-link {
  flex: 0 0 auto;
  font-weight: 900;
  color: #b45309;
}

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

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
  transition: opacity 0.25s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: #d97706;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: #111827;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 20px;
  background: rgba(217, 119, 6, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
}

.card-body h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: #b45309;
}

.card-body p {
  display: -webkit-box;
  margin-top: 9px;
  color: var(--color-muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.info-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.card-tags span {
  padding: 5px 8px;
  color: #92400e;
  background: #fef3c7;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #92400e, #c2410c 56%, #111827);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.category-card span {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 900;
  color: #fde68a;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #d97706, #9a3412);
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #fef3c7;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  font-size: 19px;
  font-weight: 950;
}

.rank-info p {
  margin-top: 6px;
  color: var(--color-muted);
  line-height: 1.6;
}

.rank-action {
  color: #b45309;
  font-weight: 950;
}

.filter-panel {
  margin-top: -26px;
  margin-bottom: 34px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel-inner {
  display: grid;
  gap: 16px;
}

.filter-search {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 9px 13px;
  color: #374151;
  background: #f3f4f6;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #92400e;
  background: #fef3c7;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  border-radius: 18px;
  color: var(--color-muted);
  background: #ffffff;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.38;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(217, 119, 6, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48));
}

.detail-head {
  position: relative;
  z-index: 1;
  padding: 38px 0 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

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

.detail-title h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-title p {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.info-chip {
  padding: 8px 12px;
  color: #fffbeb;
  background: rgba(217, 119, 6, 0.80);
}

.player-section {
  padding: 42px 0 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.30);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28));
  transition: opacity 0.2s ease;
}

.player-overlay[hidden] {
  display: none;
}

.player-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: #d97706;
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.38);
  transform: translateZ(0);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-overlay:hover .player-button {
  background: #b45309;
  transform: scale(1.06);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 800;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0 64px;
}

.content-panel,
.side-panel {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.content-panel {
  padding: 30px;
}

.content-panel + .content-panel {
  margin-top: 20px;
}

.content-panel h2,
.side-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 950;
}

.content-panel h2::before,
.side-panel h2::before {
  content: "";
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: #d97706;
}

.content-panel p {
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.review-panel {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.side-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  height: fit-content;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 900;
}

.info-list dd {
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-cloud span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  background: #fef3c7;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p,
.footer-grid a {
  line-height: 1.85;
  color: #d1d5db;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  background: #d97706;
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.32);
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-search {
    display: none;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    padding: 82px 0 104px;
  }

  .hero-arrow {
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .hero-arrow:hover {
    transform: scale(1.06);
  }

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

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

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

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

  .side-panel {
    position: static;
  }

  .rank-row {
    grid-template-columns: 46px 64px 1fr;
  }

  .rank-action {
    grid-column: 3;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 0;
  }

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

  .card-body h3 {
    font-size: 17px;
  }

  .content-panel {
    padding: 22px;
  }

  .player-button {
    width: 74px;
    height: 74px;
  }
}
