:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #f8fafc;
  --subtext: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-2: #0891b2;
  --blue: #2563eb;
  --gold: #f59e0b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 36rem), var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.07) rotate(-2deg);
}

.brand-icon span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav > a,
.nav-dropdown > a {
  color: var(--subtext);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown:hover > a,
.desktop-nav .active,
.nav-dropdown > .active {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: -20px;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--subtext);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-panel a:hover {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
}

.header-search {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-search input,
.mobile-menu input,
.local-search-bar input,
.filter-panel input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-menu input:focus,
.local-search-bar input:focus,
.filter-panel input:focus,
.search-page-form input:focus {
  border-color: rgba(6, 182, 212, 0.75);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.header-search button,
.mobile-menu button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: white;
  padding: 10px 16px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-menu button:hover,
.search-page-form button:hover {
  background: var(--cyan-2);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--subtext);
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
  padding-top: 8px;
}

.hero-slider {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.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-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.18) 46%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  color: var(--subtext);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--subtext);
  padding: 4px 10px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  background: var(--cyan);
  color: white;
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.22);
}

.btn-primary:hover {
  background: var(--cyan-2);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(6, 182, 212, 0.55);
}

.hero-score {
  color: #fbbf24;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: min(40px, 5vw);
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(30, 41, 59, 0.9);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 18px;
  height: 5px;
  border-radius: 99px;
  padding: 0;
  background: rgba(148, 163, 184, 0.75);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.section-block {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.1));
}

.section-block:nth-of-type(even) {
  background: rgba(15, 23, 42, 0.58);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.with-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.final-card p,
.feature-panel p,
.text-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 290px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.16);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
  pointer-events: none;
}

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

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

.score-badge,
.duration-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: white;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.score-badge {
  top: 10px;
  right: 10px;
  color: #fbbf24;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

.rank-mark {
  top: 10px;
  left: 10px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
  color: #67e8f9;
}

.card-body p {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
}

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

.rail-buttons {
  display: flex;
  gap: 10px;
}

.rail-buttons button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  font-size: 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rail-buttons button:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.48);
}

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

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

.category-card {
  position: relative;
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.86);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  transition: opacity 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.55);
}

.category-card:hover::before {
  opacity: 0.28;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--subtext);
  font-size: 14px;
}

.category-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.tone-cyan::before { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tone-emerald::before { background: linear-gradient(135deg, #10b981, #0f766e); }
.tone-violet::before { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tone-orange::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.tone-pink::before { background: linear-gradient(135deg, #ec4899, #e11d48); }
.tone-indigo::before { background: linear-gradient(135deg, #6366f1, #2563eb); }
.tone-green::before { background: linear-gradient(135deg, #22c55e, #059669); }
.tone-amber::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 38px 62px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(30, 41, 59, 0.88);
}

.ranking-row img {
  width: 62px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.ranking-num {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.ranking-title {
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  font-size: 13px;
}

.ranking-score {
  color: #fbbf24;
  font-weight: 900;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
}

.feature-panel div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 28px;
}

.feature-panel span {
  color: #67e8f9;
  font-weight: 800;
}

.feature-panel h3 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.78));
  padding: 36px;
}

.final-card h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.local-search-bar,
.filter-panel,
.search-page-form {
  margin-top: 24px;
  max-width: 720px;
}

.filter-panel {
  display: grid;
  gap: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--subtext);
  padding: 8px 13px;
}

.filter-chips button.active,
.filter-chips button:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--subtext);
  padding: 0 12px;
}

.pagination a:hover,
.pagination .current {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.18);
  color: white;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
  opacity: 0.52;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.3)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 52%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin-top: 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--subtext);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--subtext);
  padding: 6px 11px;
}

.detail-tags {
  margin: 18px 0 26px;
}

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  aspect-ratio: 16 / 9;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.16), rgba(0, 0, 0, 0.48));
  color: white;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.32);
  font-size: 36px;
  text-indent: 4px;
}

.player-layer strong {
  font-size: 18px;
}

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

.text-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  padding: 28px;
}

.text-panel h2 {
  font-size: 28px;
}

.text-panel p {
  font-size: 16px;
}

.search-page-form {
  display: flex;
  gap: 10px;
}

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

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 540px;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--subtext);
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  color: #64748b;
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
}

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

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

  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

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

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

  .split-layout,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-list.expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    height: 64px;
  }

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

  .brand-text em {
    display: none;
  }

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

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

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 104px;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
    left: 16px;
    justify-content: space-between;
  }

  .section-block {
    padding: 48px 0;
  }

  .section-heading.with-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.wide,
  .movie-grid.related-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .movie-rail .movie-card {
    flex-basis: 84vw;
  }

  .ranking-row {
    grid-template-columns: 32px 56px minmax(0, 1fr) auto;
  }

  .ranking-meta {
    display: none;
  }

  .final-card,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-hero-inner {
    padding-top: 36px;
  }

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

  .detail-one-line {
    font-size: 17px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
