/*
  Static movie site styles.
  The visual system follows the uploaded site's slate + teal gradient,
  large hero screen, rounded cards, shadow layers and responsive layout.
*/

:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;
  --color-teal-600: #0d9488;
  --color-teal-500: #14b8a6;
  --color-teal-400: #2dd4bf;
  --color-teal-100: #ccfbf1;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-slate-900);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--color-slate-50), var(--color-white) 42%, var(--color-slate-100));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.84);
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-slate-950);
}

.site-logo {
  font-size: 20px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-slate-800));
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--color-slate-600);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-slate-950);
  background: rgba(20, 184, 166, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  color: var(--color-slate-800);
  background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.hero-control,
.play-overlay,
.filter-panel button {
  border: 0;
  cursor: pointer;
}

.header-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.36);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: var(--color-slate-800);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-slate-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(45, 212, 191, 0.24), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 92px 0 78px;
}

.hero-copy {
  width: min(660px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-teal-100);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-teal-400);
}

.hero-copy h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 54em;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.82;
}

.hero-tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.hero-actions {
  margin-top: 32px;
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 52px;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100% - 48px));
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

.hero-mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-mini-card span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.main-section {
  padding: 72px 0;
}

.main-section.tight {
  padding-top: 40px;
}

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

.section-heading .eyebrow {
  color: var(--color-teal-600);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-slate-950);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--color-slate-600);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--color-teal-700);
  background: rgba(20, 184, 166, 0.12);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.66);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-teal-600));
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.76));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--color-slate-950);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  min-height: 3.2em;
  color: var(--color-slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--color-teal-700);
  background: rgba(20, 184, 166, 0.11);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), transparent 12rem),
    var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-slate-950);
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--color-slate-600);
  line-height: 1.7;
}

.category-card span {
  color: var(--color-teal-700);
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--color-slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  color: var(--color-slate-800);
  background: var(--color-white);
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(20, 184, 166, 0.84);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-result {
  margin: 12px 0 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 76px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-teal-600));
}

.ranking-row img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.ranking-row p {
  margin: 0;
  max-width: 720px;
  color: var(--color-slate-600);
  line-height: 1.65;
}

.heat-pill {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--color-teal-700);
  background: rgba(20, 184, 166, 0.12);
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  padding: 22px 0 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

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

.detail-hero {
  padding: 42px 0 58px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.28), transparent 22rem),
    linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.82;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

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

.player-section {
  padding: 56px 0 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-slate-950);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  color: var(--color-white);
  background:
    radial-gradient(circle, rgba(20, 184, 166, 0.24), rgba(2, 6, 23, 0.64));
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-status {
  margin: 12px 0 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

.content-panel {
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.content-panel + .content-panel {
  margin-top: 18px;
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--color-slate-950);
  font-size: 25px;
}

.content-panel p {
  margin: 0;
  color: var(--color-slate-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: var(--color-white);
  font-size: 22px;
}

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

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

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

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

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

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

  .hero-panel {
    display: none;
  }

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

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 66px;
    padding: 12px 0;
  }

  .mobile-menu-button {
    display: inline-flex;
    justify-content: center;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
  }

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

  .site-nav a {
    border-radius: 12px;
  }

  .header-search {
    order: 5;
    width: 100%;
  }

  .header-search input {
    flex: 1;
    width: auto;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

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

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

  .ranking-row {
    grid-template-columns: 50px 72px 1fr;
  }

  .ranking-row img {
    width: 72px;
    height: 96px;
  }

  .heat-pill {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

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

  .movie-grid,
  .category-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    display: grid;
    grid-template-columns: 116px 1fr;
  }

  .movie-card.compact .poster-link {
    aspect-ratio: 3 / 4;
  }

  .movie-card.compact p,
  .movie-card.compact .tag-list {
    display: none;
  }

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

  .content-panel {
    padding: 22px;
  }
}
