/* Static movie site styles generated from the uploaded volcanic/lava/ash visual system. */
:root {
  --ash-50: #f8f9fa;
  --ash-100: #f1f3f5;
  --ash-200: #dee2e6;
  --ash-300: #ced4da;
  --ash-400: #adb5bd;
  --ash-500: #6c757d;
  --ash-600: #495057;
  --ash-700: #343a40;
  --ash-800: #212529;
  --ash-900: #0d0f12;
  --volcanic-50: #fef5f1;
  --volcanic-100: #fdeae1;
  --volcanic-200: #fbd5c3;
  --volcanic-600: #f07f4a;
  --volcanic-700: #ee692c;
  --volcanic-800: #e84118;
  --volcanic-900: #b92d12;
  --lava-100: #ffe6b3;
  --lava-400: #ffb81a;
  --lava-600: #e68a00;
  --shadow-card: 0 16px 50px rgba(13, 15, 18, 0.12);
  --shadow-volcanic: 0 10px 40px -15px rgba(232, 65, 24, 0.55);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ash-900);
  background: linear-gradient(180deg, var(--ash-50), #ffffff 38%, var(--volcanic-50));
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--volcanic-800), var(--volcanic-900));
  box-shadow: 0 12px 30px rgba(13, 15, 18, 0.2);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ash-900);
  background: var(--lava-400);
  box-shadow: 0 0 30px rgba(255, 184, 26, 0.45);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--volcanic-200);
  font-size: 12px;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links,
.nav-category-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-category-links {
  max-width: 360px;
  overflow: hidden;
}

.nav-link {
  color: #ffffff;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lava-400);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.nav-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: #ffffff;
  background: transparent;
}

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

.nav-search button,
.large-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}

.nav-search button {
  padding: 8px 16px;
  color: var(--ash-900);
  background: var(--lava-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--ash-900);
}

.hero-stage,
.hero-slide,
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media.image-missing,
.hero-slide.image-missing .hero-media,
.detail-bg.image-missing,
.poster-frame.image-missing,
.category-thumbs .image-missing,
.player-cover.image-missing {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 184, 26, 0.35), transparent 34%),
    linear-gradient(135deg, var(--volcanic-900), var(--ash-900) 55%, var(--volcanic-700));
}

.poster-frame.image-missing::after,
.category-thumbs .image-missing::after,
.player-cover.image-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 12px 12px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-slide.image-missing .hero-media::after,
.detail-bg.image-missing::after {
  content: attr(data-title);
  position: absolute;
  right: 8vw;
  bottom: 16vh;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(42px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.95;
}

.hero-overlay {
  background:
    linear-gradient(0deg, rgba(13, 15, 18, 0.98), rgba(13, 15, 18, 0.35) 55%, rgba(13, 15, 18, 0.08)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.88), rgba(13, 15, 18, 0.34), rgba(13, 15, 18, 0.15));
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 76px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lava-400);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--ash-200);
  font-size: 18px;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--volcanic-900);
  background: var(--volcanic-100);
  font-size: 12px;
  font-weight: 750;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-800));
  box-shadow: var(--shadow-volcanic);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: var(--lava-400);
}

.content-section {
  padding: 56px 0;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.section-title-row p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--ash-600);
}

.section-link,
.text-link {
  color: var(--volcanic-800);
  font-weight: 850;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(232, 65, 24, 0.1);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.intro-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.intro-panel p {
  margin: 0;
  color: var(--ash-600);
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--volcanic-100);
  border-radius: 999px;
  background: var(--volcanic-50);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}

.large-search button {
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-800));
}

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

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

.movie-card,
.category-card,
.detail-side-card,
.detail-article,
.player-card,
.table-wrap {
  border: 1px solid rgba(13, 15, 18, 0.08);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(13, 15, 18, 0.08);
  overflow: hidden;
}

.movie-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ash-900), var(--volcanic-800));
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ash-900);
  background: var(--lava-400);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ash-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--ash-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-card a {
  display: block;
  min-height: 100%;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 150px;
  background: var(--ash-900);
}

.category-thumbs span {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--volcanic-800), var(--ash-900));
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p {
  min-height: 68px;
  margin: 0 0 10px;
  color: var(--ash-600);
  font-size: 14px;
}

.category-card strong {
  color: var(--volcanic-800);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 184, 26, 0.28), transparent 28%),
    linear-gradient(135deg, var(--volcanic-900), var(--ash-900) 52%, var(--volcanic-800));
}

.compact-page-hero {
  padding: 70px 0;
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ash-200);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--ash-200);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
}

.filter-bar span {
  color: var(--ash-500);
  font-weight: 800;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--ash-900);
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  opacity: 0.62;
  filter: blur(1px) saturate(1.05);
}

.detail-overlay {
  background:
    linear-gradient(0deg, var(--ash-900), rgba(13, 15, 18, 0.72) 45%, rgba(13, 15, 18, 0.2)),
    linear-gradient(90deg, rgba(13, 15, 18, 0.92), rgba(13, 15, 18, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 600px;
  padding: 70px 0;
}

.detail-poster .poster-frame {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.detail-copy {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ash-300);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--lava-400);
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.detail-one-line {
  max-width: 860px;
  color: var(--ash-200);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #050608;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050608;
}

.player-card.is-playing .player-cover {
  display: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: blur(1px);
}

.play-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--ash-900);
  background: var(--lava-400);
  box-shadow: 0 0 0 16px rgba(255, 184, 26, 0.16), 0 20px 50px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.07);
}

.play-button span {
  margin-left: 4px;
  font-size: 34px;
}

.player-message {
  margin: 0;
  padding: 12px 18px;
  color: var(--ash-300);
  background: #050608;
  font-size: 14px;
}

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

.detail-article,
.detail-side-card {
  padding: 26px;
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--ash-700);
  font-size: 16px;
}

.detail-side-card dl {
  margin: 0;
}

.detail-side-card dt {
  margin-top: 12px;
  color: var(--ash-500);
  font-size: 13px;
  font-weight: 800;
}

.detail-side-card dd {
  margin: 2px 0 0;
  color: var(--ash-900);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ash-200);
  text-align: left;
}

.ranking-table th {
  color: var(--ash-700);
  background: var(--ash-100);
}

.ranking-table a {
  color: var(--volcanic-800);
  font-weight: 800;
}

.search-page-form {
  margin-bottom: 18px;
  border-radius: 18px;
}

.search-status {
  color: var(--ash-600);
  font-weight: 700;
}

.site-footer {
  margin-top: 44px;
  padding: 48px 0;
  color: var(--ash-300);
  background: var(--ash-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand p {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--ash-400);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

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

.is-hidden-by-filter {
  display: none !important;
}

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

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

  .nav-category-links {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--volcanic-900), var(--ash-900));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-links,
  .nav-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
  }

  .nav-search {
    width: 100%;
  }

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

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

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

  .detail-hero-inner {
    gap: 24px;
    align-items: center;
    padding-top: 40px;
  }

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

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

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

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .hero-actions,
  .large-search,
  .section-title-row,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .movie-card h3,
  .movie-card.compact h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .category-thumbs {
    min-height: 115px;
  }
}
