:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --blue: #2563eb;
  --rose: #fb7185;
  --amber: #fbbf24;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1280px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 20%, rgba(37, 99, 235, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 84%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100%, var(--max-width));
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.brand.compact .brand-icon {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #e0f2fe, var(--sky) 40%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(30, 41, 59, 0.78);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.header-search input,
.local-filter input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  height: 40px;
  padding: 0 14px;
}

.header-search input:focus,
.local-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(56, 189, 248, 0.76);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.95);
}

.header-search button,
.primary-button,
.ghost-button,
.menu-toggle,
.hero-controls button,
.search-result-heading button,
.load-more-wrap button {
  border: 0;
  cursor: pointer;
}

.header-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.26);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.62);
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.46);
  background: rgba(14, 165, 233, 0.13);
  transform: translateY(-1px);
}

.small-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: white;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(100%, var(--max-width));
  min-height: 650px;
  margin: 0 auto;
  padding: 32px 24px 42px;
}

.hero-slider {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-image,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.16)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, 90%);
  padding: 58px;
}

.hero-kicker,
.card-topline,
.detail-meta-grid span,
.player-note,
.search-result-heading,
.breadcrumb,
.rank-row {
  display: flex;
  align-items: center;
}

.hero-kicker {
  gap: 12px;
  margin-bottom: 18px;
  color: var(--amber);
}

.hero-kicker span,
.kicker {
  color: var(--sky);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker strong {
  color: #fde68a;
}

.hero-content h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

.hero-review {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

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

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

.hero-tags span,
.genre-row span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}

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

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

.hero-controls button:hover {
  background: rgba(14, 165, 233, 0.4);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}

.hero-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42) !important;
}

.hero-dot.active {
  width: 26px !important;
  background: var(--sky) !important;
}

.hero-side-panel,
.ranking-panel,
.text-card,
.player-panel,
.search-panel,
.category-overview-card,
.sitemap-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.24);
}

.hero-side-panel {
  align-self: stretch;
  padding: 24px;
}

.hero-side-panel h2,
.ranking-panel h2,
.section-heading h2,
.text-card h2,
.category-overview-card h2,
.sitemap-group h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

.hero-side-list,
.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.tight-list {
  gap: 10px;
}

.content-section,
.page-main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.content-section {
  padding: 54px 24px;
}

.content-section.shaded {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0));
}

.content-section.shaded > * {
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--sky);
  font-weight: 700;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 24px 58px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}

.card-link,
.horizontal-link {
  display: block;
}

.poster-frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.32), transparent 18rem),
    linear-gradient(135deg, #0f172a, #1e293b 58%, #020617);
}

.poster-frame::after,
.hero-image::after,
.detail-backdrop::after,
.category-cover::after,
.category-tile::after,
.video-shell::after {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  content: attr(data-fallback-title);
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.28), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
}

.image-frame.is-missing::after {
  display: flex;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

.poster-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.poster-frame figcaption,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.poster-frame figcaption {
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  background: rgba(14, 165, 233, 0.88);
}

.rank-badge {
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

.card-body {
  padding: 16px;
}

.card-topline {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-topline span + span::before {
  content: "•";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.45);
}

.card-body h3,
.horizontal-body h3 {
  margin: 8px 0 0;
  color: white;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--sky);
}

.card-body p,
.horizontal-body p,
.text-card p,
.category-overview-card p,
.footer-brand p,
.footer-column p {
  color: var(--muted);
  line-height: 1.78;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.category-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  color: var(--sky);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
}

.horizontal-card {
  border-radius: 16px;
}

.horizontal-link {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  min-height: 120px;
}

.poster-frame.wide {
  min-height: 120px;
}

.poster-frame.wide img {
  min-height: 120px;
}

.horizontal-body {
  padding: 14px 14px 14px 0;
}

.horizontal-body h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0;
  overflow: hidden;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.68;
  transform: scale(1.08);
}

.category-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.92));
}

.category-tile span,
.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(14, 165, 233, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong {
  margin-top: 84px;
  font-size: 22px;
}

.category-tile small {
  margin-top: 8px;
  color: var(--muted-strong);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.category-split {
  grid-template-columns: 340px minmax(0, 1fr);
}

.sticky-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow);
}

.compact-hero {
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 52px;
}

.compact-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--sky);
}

.local-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin-top: 26px;
}

.local-filter input {
  height: 48px;
  padding: 0 16px;
}

.local-filter span {
  flex: 0 0 auto;
  color: var(--sky);
  font-weight: 800;
}

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

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

.category-cover {
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.category-overview-card h2 a:hover {
  color: var(--sky);
}

.category-overview-card small {
  color: var(--muted);
}

.ranking-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.rank-row {
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
}

.rank-row:hover {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(15, 23, 42, 0.86);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  border-radius: 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  font-weight: 900;
}

.rank-row a {
  flex: 1;
  font-weight: 800;
}

.rank-row a:hover {
  color: var(--sky);
}

.rank-row em,
.rank-row small {
  color: var(--muted);
  font-style: normal;
}

.detail-main {
  width: 100%;
  max-width: none;
}

.detail-hero {
  min-height: 560px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 64%);
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 48px 24px 70px;
}

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

.detail-poster {
  min-height: 390px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
}

.detail-poster img {
  min-height: 390px;
}

.detail-info h1 {
  max-width: 860px;
  margin: 10px 0 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 850px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.78;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 24px 0;
}

.detail-meta-grid span {
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.player-section {
  margin-top: -44px;
}

.player-panel {
  overflow: hidden;
  background: rgba(2, 6, 23, 0.78);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.74)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.86));
}

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

.play-icon {
  display: inline-grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.32);
  font-size: 30px;
}

.play-cover strong {
  font-size: 22px;
}

.play-cover small {
  color: var(--muted-strong);
}

.player-note {
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-strong);
}

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

.text-card {
  padding: 28px;
}

.text-card.tags-card {
  grid-column: 1 / -1;
}

.detail-tags {
  margin-top: 16px;
}

.detail-tags a:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.46);
  background: rgba(14, 165, 233, 0.16);
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-panel input,
.search-panel select {
  height: 46px;
  padding: 0 14px;
}

.search-result-heading {
  justify-content: space-between;
  margin: 24px 0;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

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

.sitemap-group {
  padding: 22px;
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0;
  list-style: none;
}

.sitemap-group li {
  display: grid;
  gap: 2px;
}

.sitemap-group a {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-group a:hover {
  color: var(--sky);
}

.sitemap-group span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 48px 24px 30px;
}

.footer-column h3 {
  margin: 0 0 14px;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-bottom a {
  color: var(--muted);
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--sky);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-side-panel {
    display: none;
  }

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

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

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-shell {
    min-height: auto;
    padding: 18px 16px 26px;
  }

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

  .hero-content {
    width: 100%;
    padding: 34px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.42));
  }

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .split-section,
  .category-split,
  .detail-text-section,
  .category-overview-grid,
  .sitemap-wrap,
  .footer-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .compact-hero {
    width: calc(100% - 32px);
    padding: 34px 24px;
  }

  .detail-content {
    padding-top: 32px;
  }

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

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

  .footer-bottom,
  .section-heading,
  .player-note,
  .search-result-heading,
  .local-filter {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 24px;
  }

  .hero-content h1,
  .detail-info h1,
  .compact-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-tags span {
    max-width: 100%;
  }

  .hero-controls {
    right: 18px;
    bottom: 16px;
  }

  .content-section {
    padding: 34px 16px;
  }

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

  .poster-frame.wide,
  .poster-frame.wide img {
    min-height: 112px;
  }

  .sitemap-group ul {
    grid-template-columns: 1fr;
  }
}
