:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --cream: #fff7ed;
  --paper: #fffbeb;
  --line: rgba(120, 53, 15, 0.16);
  --text: #1f2937;
  --muted: #6b7280;
  --shadow: 0 20px 50px rgba(69, 26, 3, 0.14);
}

* {
  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(--text);
  background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 42%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-950), var(--amber-950) 55%, var(--stone-900));
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.3);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.22);
  font-size: 24px;
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--amber-200, #fde68a), #fff7cc);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  display: block;
  margin-top: 4px;
  color: #fde68a;
  font-style: normal;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #fde68a;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(251, 191, 36, 0.18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.95));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #fff7cc, var(--amber-300));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 16px;
  color: #fff7ed;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 30px;
  color: #fde68a;
  font-size: 17px;
}

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

.primary-button,
.ghost-button,
.small-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 12px 26px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.32);
}

.ghost-button {
  padding: 12px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--amber-900), var(--stone-950));
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

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

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

.hero-dot.active {
  background: var(--amber-400);
}

.section {
  padding: 72px 0;
}

.section-light {
  background: #fff;
}

.section-warm {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.section-more,
.small-button {
  color: var(--amber-800);
  background: var(--amber-100);
}

.section-more {
  padding: 11px 20px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(69, 26, 3, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: radial-gradient(circle at top, rgba(251, 191, 36, 0.34), rgba(69, 26, 3, 0.95));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28, 25, 23, 0.74));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.82);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

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

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #78716c;
  font-size: 13px;
}

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

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

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.channel-panel,
.info-card,
.detail-copy {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(69, 26, 3, 0.08);
}

.category-card {
  padding: 24px;
}

.category-card a:first-child {
  display: block;
}

.category-mark,
.channel-main span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.category-card h3,
.channel-main h2 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 24px;
}

.category-card p,
.channel-main p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-card ul {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.category-card li + li {
  margin-top: 8px;
}

.category-card li a:hover,
.channel-links a:hover,
.footer-grid a:hover {
  color: var(--amber-700);
}

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

.rank-card {
  position: relative;
}

.rank-number {
  position: absolute;
  z-index: 4;
  top: -14px;
  left: -12px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
  font-size: 22px;
  font-weight: 900;
}

.compact-card .card-body p {
  min-height: auto;
}

.page-hero {
  padding: 76px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-950), var(--amber-950) 52%, var(--orange-700));
}

.soft-hero {
  background: linear-gradient(135deg, var(--stone-950), var(--amber-900));
}

.channel-hero,
.rank-hero {
  background: linear-gradient(135deg, var(--amber-950), var(--stone-950));
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  color: #fde68a;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #fde68a;
  font-size: 14px;
}

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

.search-panel {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  box-shadow: 0 12px 30px rgba(69, 26, 3, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
}

.search-box span {
  color: var(--amber-700);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--stone-900);
  background: transparent;
}

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

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--amber-800);
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.channel-panel {
  overflow: hidden;
}

.channel-main {
  display: flex;
  gap: 18px;
  padding: 24px;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.channel-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-800);
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 80px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(69, 26, 3, 0.06);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-900), var(--stone-950));
}

.ranking-cover img {
  width: 80px;
  height: 112px;
  object-fit: cover;
}

.ranking-index {
  color: var(--amber-700);
  font-size: 28px;
  font-weight: 900;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.small-button {
  padding: 8px 16px;
}

.detail-top {
  padding: 34px 0 72px;
  background: linear-gradient(180deg, var(--stone-950), var(--amber-950) 390px, #fff 390px);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-cover[hidden] {
  display: none;
}

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.32);
  font-size: 36px;
}

.play-cover strong {
  max-width: min(720px, 80%);
  font-size: clamp(22px, 4vw, 40px);
  text-align: center;
}

.detail-copy {
  margin-top: 24px;
  padding: 28px;
}

.detail-copy h1 {
  margin-bottom: 14px;
}

.detail-lead {
  margin: 0 0 24px;
  color: var(--amber-800);
  font-size: 19px;
  font-weight: 800;
}

.detail-copy h2 {
  margin: 28px 0 10px;
  color: var(--stone-900);
  font-size: 24px;
}

.detail-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-900), var(--stone-950));
  box-shadow: var(--shadow);
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: #78716c;
}

.info-card dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 800;
}

.wide-tags span {
  background: var(--amber-100);
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, var(--stone-950), var(--amber-950), var(--stone-900));
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-300);
  font-size: 20px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  color: #fde68a;
}

.footer-grid li {
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.is-hidden,
.image-hidden {
  display: none !important;
}

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

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

  .menu-button {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .large-grid,
  .rank-grid,
  .category-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ranking-index,
  .ranking-row .small-button {
    display: none;
  }
}

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

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy em {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    gap: 24px;
    padding: 42px 0 90px;
  }

  .hero-summary {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-grid,
  .large-grid,
  .rank-grid,
  .category-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
  }

  .ranking-cover img {
    width: 70px;
    height: 98px;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .detail-top {
    background: linear-gradient(180deg, var(--stone-950), var(--amber-950) 310px, #fff 310px);
  }
}
