:root {
  --bg: #fff8ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f5d49b;
  --brand: #d97706;
  --brand-dark: #92400e;
  --accent: #f97316;
  --gold: #fbbf24;
  --shadow: 0 18px 48px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fff 100%);
}

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: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.14);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--gold));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--brand-dark), var(--accent), #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3d6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  text-align: center;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.16) 100%),
    radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.36), transparent 28rem);
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(680px, 100%);
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 5vw, 4.3rem);
}

.hero-content p {
  max-width: 60ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fbbf24;
}

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

.home-section {
  padding: 64px 0 0;
}

.page-main {
  padding: 42px 0 70px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 900;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  margin: 10px 0 0;
}

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

.category-tile {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 9rem),
    #fff;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  font-size: 1.2rem;
  color: #78350f;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.65;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fde68a;
  font-weight: 900;
}

.movie-card-body {
  padding: 15px;
}

.movie-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-meta-line span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #78350f, #f97316);
  color: #fff;
  font-weight: 900;
}

.rank-row img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.rank-row h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin: 26px 0 28px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #78350f;
  font-weight: 900;
}

.search-box input,
.select-row select {
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-box input {
  width: 100%;
  padding: 0 16px;
}

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

.select-row select {
  padding: 0 34px 0 12px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumb .sep {
  color: #f59e0b;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.30), transparent 18rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: 0 22px 50px rgba(146, 64, 14, 0.20);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: #7c2d12;
}

.detail-info .one-line {
  margin: 18px 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.8;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-panel {
  margin-top: 34px;
  padding: 20px;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.32);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(120, 53, 15, 0.55));
  cursor: pointer;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
  padding-left: 5px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  margin-top: 34px;
}

.text-panel,
.side-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 12px 36px rgba(146, 64, 14, 0.08);
}

.text-panel h2,
.side-panel h2,
.related-section h2 {
  margin: 0 0 16px;
  color: #78350f;
  font-size: 1.45rem;
}

.text-panel p,
.side-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 900;
}

.compact-card img {
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 13px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  background: linear-gradient(135deg, #78350f 0%, #9a3412 48%, #713f12 100%);
  color: #fde68a;
  margin-top: 28px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: start;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.2);
  padding: 18px 16px;
  text-align: center;
  color: #fcd34d;
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .hero-slider {
    min-height: 620px;
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 86px;
  }

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

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

  .category-strip,
  .ranking-list,
  .content-grid,
  .detail-hero,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .page-main,
  .home-section,
  .footer-inner,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-slider {
    min-height: 590px;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 62px 1fr;
    gap: 10px;
  }

  .rank-row img {
    width: 62px;
  }

  .select-row {
    flex-direction: column;
  }

  .detail-hero,
  .text-panel,
  .side-panel,
  .player-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .video-wrap {
    border-radius: 18px;
  }
}
