:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.14);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fffdf8 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-dark);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.05em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

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

.site-nav a {
  padding: 10px 15px;
  color: #78350f;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.site-nav a:hover {
  color: white;
  background: var(--amber);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #78350f;
  background: rgba(251, 191, 36, 0.18);
  font-size: 22px;
}

.home-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding: 56px 20px 36px;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 48%, #fef9c3 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-one {
  width: 240px;
  height: 240px;
  left: 7%;
  top: 10%;
  background: #f59e0b;
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  right: 4%;
  bottom: 5%;
  background: #fb923c;
}

.hero-slider {
  position: relative;
  max-width: 1200px;
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 46px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 247, 237, 0.82) 42%, rgba(67, 20, 7, 0.66) 100%),
    var(--hero-image) center / cover no-repeat;
  opacity: 0;
  transform: translateX(34px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 10px;
  color: #78350f;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #9a3412;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 22px;
  color: #7c2d12;
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags,
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.btn-light {
  color: #92400e;
  background: white;
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.1);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(67, 20, 7, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(251, 191, 36, 0.22);
}

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 22px auto 0;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.24);
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 20px;
}

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

.section-head h2,
.section-mini-head h3 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
}

.section-mini-head h3 {
  font-size: 24px;
}

.more-link,
.section-mini-head a {
  color: var(--amber);
  font-weight: 900;
}

.section-band {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 253, 245, 0.8));
}

.warm-band {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(254, 249, 195, 0.8));
}

.quick-search {
  padding-top: 34px;
  padding-bottom: 20px;
}

.search-banner,
.search-panel,
.local-filter {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.search-banner label {
  display: block;
  margin-bottom: 12px;
  color: #92400e;
  font-weight: 900;
}

.search-banner div,
.search-panel {
  display: flex;
  gap: 12px;
}

.search-banner input,
.search-panel input,
.local-filter input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 18px;
  background: white;
  color: #1f2937;
  outline: none;
}

.search-banner input:focus,
.search-panel input:focus,
.local-filter input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-banner button {
  min-width: 112px;
  border-radius: 18px;
  color: white;
  background: var(--amber);
  font-weight: 900;
}

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

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

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

.poster-card {
  min-width: 0;
}

.poster-link {
  display: block;
  overflow: hidden;
  height: 100%;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(146, 64, 14, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(249, 115, 22, 0.18));
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster-link:hover img {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
}

.poster-type,
.rank-mark {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  right: 12px;
  background: rgba(146, 64, 14, 0.84);
}

.rank-mark {
  left: 12px;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.poster-body {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.poster-body strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.meta-line {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

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

.row-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 14px;
  background: white;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.07);
  transition: all 0.25s ease;
}

.row-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(30, 64, 175, 0.13);
}

.row-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(191, 219, 254, 0.35);
}

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

.row-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.row-body strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-body span:not(.tag-chip) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.catalog-shortcuts a,
.catalog-tile {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 7px;
  color: #92400e;
  background: linear-gradient(135deg, white, rgba(255, 247, 237, 0.84));
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.08);
  transition: all 0.25s ease;
}

.catalog-tile span {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.catalog-shortcuts a:hover,
.catalog-tile:hover {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-4px);
}

.catalog-tile:hover span {
  color: rgba(255, 255, 255, 0.82);
}

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

.region-column {
  padding: 22px;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.compact-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.compact-link:hover {
  background: rgba(254, 243, 199, 0.78);
}

.compact-poster {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.18);
}

.compact-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.compact-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-body strong {
  overflow: hidden;
  color: #1f2937;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body em {
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fef3c7, #ffedd5 48%, #fef9c3);
}

.compact-hero h1 {
  max-width: 980px;
  margin: 12px auto 14px;
  color: #78350f;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #7c2d12;
  font-size: 18px;
  line-height: 1.8;
}

.local-filter {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 14px;
}

.search-hero .search-panel {
  max-width: 860px;
  margin: 30px auto 0;
  flex-direction: column;
}

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

.filter-pill {
  padding: 9px 16px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-weight: 900;
}

.filter-pill.is-active {
  color: white;
  background: var(--amber);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: white;
  background: #1c1917;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.78) 50%, rgba(28, 25, 23, 0.48) 100%),
    var(--detail-image) center / cover no-repeat;
  filter: saturate(1.05);
  transform: scale(1.03);
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

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

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(251, 191, 36, 0.22);
}

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 13px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0c0a09;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.32), rgba(12, 10, 9, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #92400e;
  background: white;
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 950;
}

.player-cover em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 800;
}

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

.detail-text article {
  padding: 28px;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-text h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 26px;
  font-weight: 950;
}

.detail-text p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  padding: 34px 20px;
  color: #7c2d12;
  background: #fffbeb;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner strong {
  color: #92400e;
  font-size: 20px;
  font-weight: 950;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

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

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 251, 235, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .home-hero {
    min-height: 760px;
    padding-top: 26px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 26px;
  }

  .hero-poster {
    max-width: 210px;
    margin: 0 auto;
  }

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

  .rank-grid,
  .row-list,
  .region-layout,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner {
    padding: 12px 16px;
  }

  .section-shell {
    padding: 42px 16px;
  }

  .home-hero {
    min-height: 700px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

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

  .catalog-shortcuts,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

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

  .search-banner div,
  .search-panel {
    flex-direction: column;
  }

  .detail-shell {
    padding: 28px 16px 52px;
  }

  .detail-info h1 {
    font-size: 40px;
  }
}
