:root {
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-700: #495057;
  --mist-800: #343a40;
  --mist-900: #212529;
  --fog-50: #f0f9ff;
  --fog-100: #e0f2fe;
  --fog-400: #38bdf8;
  --fog-600: #0284c7;
  --fog-700: #0369a1;
  --cocoon-100: #dcfce7;
  --cocoon-600: #16a34a;
  --white: #ffffff;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 16px 42px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist-900);
  background:
    radial-gradient(circle at 8% 8%, rgba(56, 189, 248, 0.16), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(22, 163, 74, 0.13), transparent 30%),
    linear-gradient(180deg, var(--mist-50), #ffffff 44%, var(--fog-50));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  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: 50;
  border-bottom: 1px solid rgba(222, 226, 230, 0.78);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 330px);
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--fog-600), var(--cocoon-600));
  border-radius: 13px;
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.22);
}

.brand-name {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-link {
  padding: 9px 13px;
  color: var(--mist-700);
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fog-700);
  background: var(--fog-100);
  transform: translateY(-1px);
}

.site-search {
  position: relative;
}

.site-search-input,
.local-filter {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  color: var(--mist-900);
  background: rgba(248, 249, 250, 0.95);
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-input:focus,
.local-filter:focus {
  border-color: var(--fog-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, 88vw);
  max-height: 440px;
  overflow: auto;
  padding: 10px;
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--mist-200);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.site-search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--fog-50);
}

.search-result-item img {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-200);
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-item span {
  color: var(--mist-700);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--fog-50);
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--fog-700);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 20, 34, 0.92), rgba(4, 20, 34, 0.62) 48%, rgba(4, 20, 34, 0.18)),
    linear-gradient(0deg, rgba(4, 20, 34, 0.78), rgba(4, 20, 34, 0.08) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 118px 0 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #dff7ff;
  background: rgba(240, 249, 255, 0.12);
  border: 1px solid rgba(224, 242, 254, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 24px 0 10px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-content p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.movie-tags span,
.tag-cloud span {
  padding: 6px 10px;
  color: var(--fog-700);
  background: var(--fog-50);
  border: 1px solid var(--fog-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f7ff;
  background: rgba(224, 242, 254, 0.12);
  border-color: rgba(224, 242, 254, 0.22);
}

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

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

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

.btn-primary,
.btn-small {
  color: var(--white);
  background: linear-gradient(135deg, var(--fog-600), var(--fog-700));
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.25);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: #dff7ff;
  border: 1px solid rgba(224, 242, 254, 0.32);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

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

.hero-dot.is-active {
  background: var(--white);
}

.quick-panel,
.page-hero,
.category-overview-card,
.story-card {
  border: 1px solid rgba(222, 226, 230, 0.9);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.quick-panel {
  position: relative;
  z-index: 5;
  margin-top: -52px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  gap: 24px;
  align-items: center;
}

.quick-panel h2,
.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.story-card h2 {
  margin: 0;
  color: var(--mist-900);
  letter-spacing: -0.03em;
}

.quick-panel h2,
.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.quick-panel p,
.section-heading p,
.page-hero p,
.category-overview-head p,
.story-card p,
.movie-card p,
.ranking-row p,
.site-footer p {
  color: var(--mist-700);
  line-height: 1.75;
}

.section-block,
.category-strip {
  padding: 76px 0 0;
}

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

.section-heading p {
  margin: 8px 0 0;
}

.section-more {
  color: var(--fog-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 132, 199, 0.24);
  box-shadow: var(--shadow-card);
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: var(--mist-200);
}

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

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

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: rgba(22, 163, 74, 0.92);
}

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

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-row h2 a:hover {
  color: var(--fog-700);
}

.movie-card p {
  min-height: 52px;
  margin: 0;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--mist-700);
  font-size: 13px;
}

.movie-meta strong,
.ranking-score {
  margin-left: auto;
  color: var(--cocoon-600);
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact h2 {
  font-size: 16px;
}

.movie-card-compact p {
  min-height: auto;
  font-size: 13px;
}

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

.category-tile {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--fog-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile > span,
.page-hero > span,
.category-overview-head span {
  width: fit-content;
  padding: 6px 10px;
  color: var(--cocoon-600);
  background: var(--cocoon-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.category-tile h2 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--mist-700);
  line-height: 1.7;
}

.category-tile div {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--fog-700);
  font-size: 14px;
  font-weight: 700;
}

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

.page-main {
  padding: 36px 0 84px;
}

.breadcrumb {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--mist-700);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--fog-700);
  font-weight: 700;
}

.page-hero {
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92));
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 52px);
}

.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  font-size: 17px;
}

.local-search-wrap.wide {
  max-width: 520px;
  margin-top: 24px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin-top: 12px;
  font-size: 28px;
}

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

.ranking-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 76px 1fr 68px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mist-200);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--fog-600), var(--cocoon-600));
  border-radius: 16px;
  font-weight: 900;
}

.ranking-thumb img {
  width: 76px;
  height: 102px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--mist-200);
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0 0 10px;
}

.ranking-score {
  justify-self: end;
  font-size: 22px;
}

.detail-main {
  padding-top: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.detail-copy {
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a, #12364d 58%, #0f5132);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-facts span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.detail-facts strong {
  color: #86efac;
}

.detail-tags span {
  color: #dff7ff;
  background: rgba(224, 242, 254, 0.12);
  border-color: rgba(224, 242, 254, 0.2);
}

.detail-poster-card {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.detail-poster-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--mist-200);
}

.player-section {
  margin: 28px 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.20);
}

.movie-video,
.play-cover,
.play-cover img,
.play-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.play-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

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

.play-cover img {
  object-fit: cover;
  opacity: 0.82;
}

.play-cover-shade {
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.76));
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--fog-600), var(--cocoon-600));
  border-radius: 50%;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  font-size: 34px;
}

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

.story-card {
  padding: 26px;
}

.story-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
}

.meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mist-200);
}

.meta-card dt {
  color: var(--mist-700);
  font-weight: 700;
}

.meta-card dd {
  margin: 0;
  font-weight: 700;
}

.tag-cloud {
  margin-top: 18px;
}

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

.site-footer {
  margin-top: 90px;
  padding: 54px 0 26px;
  color: var(--mist-300);
  background: var(--mist-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

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

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

.footer-links a:hover {
  color: var(--fog-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  padding-top: 22px;
  color: var(--mist-300);
  border-top: 1px solid rgba(233, 236, 239, 0.12);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
    order: 3;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--mist-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-search {
    justify-self: stretch;
  }

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

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

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

  .detail-poster-card img {
    max-height: 620px;
  }
}

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

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    grid-template-columns: 1fr auto;
  }

  .site-search {
    grid-column: 1 / -1;
  }

  .brand-name {
    font-size: 18px;
  }

  .main-nav {
    top: 124px;
  }

  .hero-slider,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: -38px;
    padding: 22px;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 64px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    justify-self: start;
  }

  .ranking-thumb img {
    width: 64px;
    height: 86px;
  }

  .detail-copy {
    padding: 28px;
  }

  .detail-poster-card img {
    min-height: 0;
  }

  .play-icon {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid,
  .mini-grid,
  .rank-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .main-nav.is-open {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }
}
