:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-strong: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #22d3ee;
  --yellow: #facc15;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.13), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
}

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

img.image-missing {
  opacity: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #062219;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(120deg, var(--emerald-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.nav-dropdown-panel a,
.mobile-menu a {
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown-panel a:hover,
.mobile-menu a:hover {
  color: var(--emerald-bright);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  width: 210px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-dropdown-panel a:hover {
  background: rgba(16, 185, 129, 0.12);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(320px, 26vw);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.nav-search input {
  padding: 11px 14px;
}

.nav-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #052e21;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
}

.nav-search button {
  align-self: stretch;
  padding: 0 18px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-menu a,
.mobile-search {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-search {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.mobile-search button {
  padding: 0 16px;
  border-radius: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

.hero-stage {
  min-height: 620px;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-slide::before,
.detail-hero::before,
.movie-cover::before,
.category-card::before,
.category-overview-cover::before,
.ranking-cover::before,
.detail-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.26), rgba(34, 211, 238, 0.14)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 26%),
    #0f172a;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.7) 44%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 50%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 56px;
  padding: 72px 0 120px;
}

.hero-label,
.detail-label,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.86rem;
}

.hero-actions,
.detail-copy .primary-button {
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #052e21;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.28);
}

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

.ghost-button {
  margin-left: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #052e21;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.hero-thumb,
.hero-arrow {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  text-align: left;
}

.hero-thumb img {
  width: 58px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-card-strong);
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted-strong);
}

.hero-thumb.is-active {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(16, 185, 129, 0.16);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.content-section,
.footer-shell,
.page-main > .page-hero,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-kicker {
  margin-bottom: 10px;
}

.section-more {
  color: var(--emerald-bright);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.movie-cover,
.category-card,
.category-overview-cover,
.ranking-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-strong);
}

.movie-cover {
  display: block;
  aspect-ratio: 16 / 9;
}

.movie-cover img,
.category-card img,
.category-overview-cover img,
.ranking-cover img,
.detail-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e21;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.region-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #052e21;
  background: rgba(52, 211, 153, 0.95);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.movie-card-body h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.movie-card-body h3 a:hover,
.ranking-main h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--emerald-bright);
}

.movie-meta,
.ranking-meta,
.category-count {
  color: var(--emerald-bright);
  font-size: 0.86rem;
  font-weight: 800;
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.2em;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
}

.is-compact .movie-card-body h3 {
  min-height: 2.9em;
  font-size: 1rem;
}

.is-compact .movie-line {
  -webkit-line-clamp: 1;
  min-height: auto;
}

.category-band {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100% - 1280px) / 2)) 72px;
  margin-top: 72px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.8));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.3));
}

.category-card strong {
  font-size: 1.45rem;
}

.category-card small {
  color: var(--emerald-bright);
  font-weight: 800;
}

.category-card p {
  color: var(--muted-strong);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.home-aside,
.story-card,
.filter-panel,
.search-panel,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.home-aside {
  position: sticky;
  top: 96px;
  padding: 32px;
}

.home-aside h2,
.story-card h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
}

.home-aside p,
.story-card p {
  color: var(--muted-strong);
  line-height: 1.8;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 88px 52px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.ranking-number {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 1000;
}

.ranking-row.is-top .ranking-number {
  color: var(--yellow);
}

.ranking-main h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.ranking-main p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--emerald-bright);
  font-size: 1.5rem;
}

.ranking-score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  padding: 76px 0 28px;
}

.page-hero div {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.8;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-title {
  align-self: center;
  color: var(--text);
  font-weight: 900;
}

.filter-panel label,
.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
}

.filter-count,
#siteSearchCount {
  color: var(--emerald-bright);
  font-weight: 900;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.category-overview-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.category-overview-card p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sample-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.86rem;
}

.search-panel {
  grid-template-columns: 1fr;
}

.search-panel-row {
  display: flex;
  gap: 12px;
}

.search-panel button {
  min-width: 110px;
  border-radius: 12px;
}

.detail-page {
  padding-bottom: 64px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.4) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 48%, rgba(2, 6, 23, 0.78) 100%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 34px 0 76px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--emerald-bright);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 840px;
  color: var(--muted-strong);
  font-size: 1.25rem;
  line-height: 1.8;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.detail-meta-list li {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
}

.detail-meta-list span,
.detail-meta-list strong {
  display: block;
}

.detail-meta-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta-list strong {
  margin-top: 4px;
  color: var(--text);
}

.player-section {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e21;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 22px 55px rgba(16, 185, 129, 0.32);
  font-size: 2rem;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.68);
  font-size: 0.88rem;
}

.detail-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.story-card {
  padding: 28px;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
}

.footer-shell {
  padding: 48px 0 30px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-grid a:hover {
  color: var(--emerald-bright);
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .two-column-section,
  .detail-article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-aside {
    position: static;
  }

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .nav-shell {
    height: 64px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .hero-carousel,
  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 48px 0 150px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.05em;
  }

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

  .hero-thumb:nth-child(n+4) {
    display: none;
  }

  .hero-thumb img {
    display: none;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 80vw);
  }

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

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

  .ranking-score {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .content-section {
    padding-top: 46px;
  }

  .hero-carousel,
  .hero-stage,
  .hero-content {
    min-height: 570px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .hero-controls {
    align-items: stretch;
  }

  .hero-arrow {
    display: none;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n+2) {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

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

  .player-status {
    display: none;
  }
}
