:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --surface: #15191c;
  --surface-2: #1d2327;
  --surface-3: #242c30;
  --text: #f4f7f6;
  --muted: #9ca9ae;
  --line: #30383c;
  --accent: #55d6c2;
  --accent-strong: #24bda7;
  --coral: #ff6b5f;
  --gold: #ffd166;
  --green: #69db7c;
  --danger: #ff6b6b;
  --header: rgba(11, 13, 15, 0.9);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--header);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
  font-size: 17px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand.active .brand-copy,
.brand:hover .brand-copy {
  color: #fff;
}

.brand-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.nav-link {
  padding: 9px 11px;
  border-radius: 6px;
  color: #c5ced1;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions,
.actions,
.button-row,
.chips,
.inline-meta,
.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-btn,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn {
  width: 42px;
  padding: 0;
}

.icon-btn:hover,
.button:hover {
  border-color: #526065;
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.button {
  padding: 0 16px;
  font-size: 14px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #07110f;
}

.button.primary:hover {
  border-color: #7ce4d4;
  background: #7ce4d4;
}

.button.coral {
  border-color: var(--coral);
  background: var(--coral);
  color: #1c0907;
}

.button.ghost {
  background: transparent;
}

.avatar-button {
  overflow: hidden;
  background: var(--coral);
  color: #210907;
  font-weight: 900;
}

.mobile-menu-button {
  display: none;
}

.mobile-drawer {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.72);
}

.mobile-drawer.open {
  display: block;
}

.drawer-panel {
  width: min(360px, 88vw);
  height: 100%;
  padding: 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer-group {
  margin-top: 22px;
}

.drawer-label,
.eyebrow,
.overline,
.field-label,
.table-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.drawer-links {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.drawer-links a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #dce2e4;
}

.drawer-links a:hover {
  background: var(--surface-2);
}

.page-shell {
  min-height: 100vh;
  padding-top: 68px;
}

.home-hero,
.detail-hero,
.kids-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #171b1d center / cover no-repeat;
}

.home-hero::before,
.detail-hero::before,
.kids-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 10, 0.96) 0%, rgba(7, 9, 10, 0.72) 43%, rgba(7, 9, 10, 0.18) 76%), linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}

.home-hero::after,
.detail-hero::after,
.kids-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
}

.home-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111516;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
  background: #171b1d center / cover no-repeat;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 10, 0.96) 0%, rgba(7, 9, 10, 0.7) 44%, rgba(7, 9, 10, 0.14) 78%), linear-gradient(0deg, var(--bg) 0%, transparent 44%);
}

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

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.slider-controls {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: max(16px, calc((100vw - 1280px) / 2 + 16px));
  right: max(16px, calc((100vw - 1280px) / 2 + 16px));
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider-controls .icon-btn {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(5, 7, 8, 0.18);
  color: #fff;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.slider-controls .icon-btn:hover {
  background: rgba(5, 7, 8, 0.34);
  border-color: rgba(255, 255, 255, 0.44);
}

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

.slider-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  transition: background 0.2s ease, width 0.2s ease;
}

.slider-dot.active {
  width: 44px;
  background: var(--accent);
}

.hero-content {
  width: min(720px, 100%);
  padding: 92px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 16px;
  max-width: 680px;
  font-size: 62px;
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 22px;
  color: #d7dfe1;
  font-size: 18px;
  line-height: 1.55;
}

.inline-meta {
  margin-bottom: 18px;
  color: #dce3e5;
  font-size: 14px;
  font-weight: 750;
}

.match {
  color: var(--green);
}

.age-badge,
.quality-badge,
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  color: #dce3e5;
  font-size: 12px;
  font-weight: 800;
}

.chip {
  min-height: 34px;
  padding: 7px 12px;
  background: var(--surface);
}

.chip.active,
.chip:hover {
  border-color: var(--accent);
  background: rgba(85, 214, 194, 0.12);
  color: var(--accent);
}

.section-band {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-band.alt {
  background: #101315;
}

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

.section-title,
.page-title,
.panel-title {
  margin: 0;
  font-weight: 860;
}

.section-title {
  font-size: 25px;
}

.section-subtitle,
.muted,
.helper {
  color: var(--muted);
}

.section-subtitle {
  margin: 5px 0 0;
  font-size: 14px;
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.media-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

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

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.02) 0%, rgba(5, 7, 8, 0.34) 46%, rgba(5, 7, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%);
}

.category-tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #fff;
}

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

.category-tile-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.search-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.search-filter-row .select {
  min-width: 210px;
}

.download-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.download-info-grid div {
  padding: 14px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.download-info-grid strong {
  font-size: 24px;
}

.download-info-grid span,
.download-note p {
  color: var(--muted);
}

.download-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.download-note p {
  margin: 0;
  line-height: 1.6;
}

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

.download-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.download-poster {
  position: relative;
  min-height: 136px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
}

.download-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.download-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.download-copy h3 {
  margin: 0;
  font-size: 20px;
}

.download-progress {
  display: grid;
  gap: 6px;
}

.download-progress > span {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.download-progress > span span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.download-progress small {
  color: var(--muted);
  font-weight: 800;
}

.download-ready {
  border-color: rgba(61, 220, 151, 0.45);
}

.media-card {
  min-width: 0;
}

.poster-wrap,
.landscape-wrap,
.episode-image,
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.landscape-wrap,
.episode-image,
.gallery-item {
  aspect-ratio: 16 / 9;
}

.poster-wrap img,
.landscape-wrap img,
.episode-image img,
.gallery-item img,
.preview-image,
.portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.media-card:hover img,
.episode-row:hover img {
  transform: scale(1.035);
}

.card-rank {
  position: absolute;
  left: 8px;
  bottom: -7px;
  color: #fff;
  font-size: 58px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 2px 18px #000;
}

.card-rating,
.card-age,
.card-status {
  position: absolute;
  top: 8px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(6, 8, 9, 0.82);
  font-size: 11px;
  font-weight: 850;
}

.card-rating {
  right: 8px;
  color: var(--gold);
}

.card-age {
  left: 8px;
}

.card-status {
  left: 8px;
  color: var(--accent);
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
}

.card-play .icon-btn {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.media-card:hover .card-play {
  opacity: 1;
}

.card-copy {
  padding: 10px 2px 0;
}

.card-title {
  margin: 0;
  overflow: hidden;
  color: #f1f4f4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
}

.progress-bar {
  height: 100%;
  background: var(--coral);
}

.page-intro {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--line);
  background: #101315;
}

.page-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-title {
  margin-top: 6px;
  font-size: 40px;
}

.page-description {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.search-box {
  width: min(600px, 100%);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.select,
.field-input,
.field-textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
}

.select {
  padding: 0 34px 0 12px;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 10px 12px;
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus,
.select:focus {
  border-color: var(--accent);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.detail-hero {
  min-height: 610px;
}

.detail-hero .hero-content {
  max-width: 700px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 36px;
  align-items: start;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact {
  min-height: 92px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.poster-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(110px, 0.65fr);
  gap: 12px;
}

.poster-pair figure {
  margin: 0;
}

.poster-pair img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.poster-pair .wide-poster {
  aspect-ratio: 16 / 9;
}

.poster-pair .vertical-poster {
  aspect-ratio: 2 / 3;
}

.poster-pair figcaption {
  margin: 0 0 7px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

.recommendation-box,
.share-preview,
.empty-panel,
.summary-panel,
.price-card,
.profile-card,
.device-row,
.notification-row,
.episode-row,
.admin-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.recommendation-box,
.share-preview,
.summary-panel,
.empty-panel {
  padding: 20px;
}

.recommendation-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
}

.score-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 8px solid rgba(85, 214, 194, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.share-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.preview-image {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.share-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.player-shell {
  background: #050606;
}

.player-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030404 center / cover no-repeat;
}

.real-player-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background: #000;
}

.real-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.real-player-stage .player-top {
  z-index: 6;
  padding: 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.real-player-stage .player-center {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.real-player-stage.is-playing .player-center {
  opacity: 0;
  pointer-events: none;
}

.real-player-stage.is-ended .player-center {
  opacity: 0;
  pointer-events: none;
}

.real-player-stage .player-controls {
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 24px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.real-player-stage.controls-hidden {
  cursor: none;
}

.real-player-stage.controls-hidden .player-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.real-player-stage.controls-hidden .player-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.real-player-stage.controls-hidden .player-center {
  opacity: 0;
  pointer-events: none;
}

.real-player-stage.is-ended {
  cursor: default;
}

.real-player-stage .timeline {
  position: relative;
  overflow: visible;
  cursor: pointer;
  touch-action: none;
}

.real-player-stage .timeline span {
  position: relative;
  width: 0;
  border-radius: 99px;
}

.real-player-stage .timeline span::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
}

.real-player-stage .timeline:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 7px;
}

.player-title-block {
  min-width: 0;
}

.player-title-block strong {
  display: block;
  overflow: hidden;
  max-width: 48vw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-source-note {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.player-quality-select {
  width: 96px;
  min-height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.player-speed-select {
  width: 78px;
  font-variant-numeric: tabular-nums;
}

.player-volume {
  width: 96px;
  accent-color: var(--coral);
  cursor: pointer;
}

.player-error {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: none;
  width: min(520px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--danger);
  border-radius: 7px;
  background: rgba(15, 17, 18, 0.94);
  text-align: center;
  transform: translate(-50%, -50%);
}

.player-error.show {
  display: block;
}

.player-ended {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: none;
  width: min(560px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(10, 12, 13, 0.94);
  text-align: center;
  transform: translate(-50%, -50%);
}

.player-ended.show {
  display: block;
}

.player-ended h2 {
  margin: 8px 0;
  font-size: 24px;
}

.player-ended p {
  margin: 0 0 18px;
  color: var(--muted);
}

.player-ended .button-row {
  justify-content: center;
}

.player-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.player-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.player-play {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #fff;
  color: #080a0b;
}

.player-top,
.player-controls {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-top {
  top: 24px;
}

.player-controls {
  bottom: 22px;
  flex-wrap: wrap;
}

.timeline {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.timeline span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--coral);
}

.player-control-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.episode-list,
.device-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.episode-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
}

.episode-image {
  width: 240px;
}

.episode-number {
  color: var(--muted);
  font-weight: 850;
}

.episode-copy h3 {
  margin: 0;
  font-size: 17px;
}

.episode-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.profile-card {
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.profile-avatar {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 44px;
  font-weight: 900;
}

.profile-avatar.coral { background: var(--coral); color: #210907; }
.profile-avatar.teal { background: var(--accent); color: #06110f; }
.profile-avatar.gold { background: var(--gold); color: #211500; }
.profile-avatar.green { background: var(--green); color: #071207; }

.kids-hero {
  min-height: 520px;
}

.kids-hero .hero-title {
  color: #fff7c7;
}

.account-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
}

.side-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  color: #bec8cb;
  font-size: 14px;
  font-weight: 750;
}

.side-nav a:hover,
.side-nav a.active {
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.side-nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: #bec8cb;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.side-nav-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.admin-login-wrap {
  max-width: 520px;
}

.admin-login-form {
  box-shadow: var(--shadow);
}

.form-error {
  margin: 10px 0 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.site-footer a[href^="#/admin"],
.mobile-drawer a[href^="#/admin"],
.page-map-grid a[href^="#/admin"] {
  display: none;
}

.content-stack {
  display: grid;
  gap: 20px;
}

.summary-panel h2,
.admin-card h2,
.empty-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.summary-row,
.device-row,
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.device-row,
.notification-row {
  padding: 15px;
}

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

.price-card {
  position: relative;
  padding: 22px;
}

.price-card.featured {
  border-color: var(--accent);
}

.price {
  margin: 18px 0;
  font-size: 34px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  color: #c9d1d4;
  font-size: 14px;
}

.feature-list li {
  display: flex;
  gap: 9px;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

.admin-shell {
  background: #0d1012;
}

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

.stat-card {
  padding: 16px;
}

.stat-number {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 900;
}

.trend {
  margin-top: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.admin-card {
  padding: 18px;
  overflow: hidden;
}

.bar-chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 24px;
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  flex: 1;
  min-width: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.bar:nth-child(3n + 2) { background: var(--coral); }
.bar:nth-child(3n) { background: var(--gold); }

.bar span {
  position: absolute;
  inset: auto 0 -24px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.warn { background: var(--gold); }
.status-dot.off { background: var(--danger); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 46px;
  align-items: start;
}

.legal-article {
  color: #cbd3d5;
  line-height: 1.72;
}

.legal-article h2 {
  margin: 30px 0 10px;
  color: var(--text);
  font-size: 21px;
}

.legal-article p,
.legal-article li {
  font-size: 15px;
}

.legal-note {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(229, 9, 20, 0.32);
  background: rgba(229, 9, 20, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 42px 0 94px;
  border-top: 1px solid var(--line);
  background: #090b0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  z-index: 75;
  inset: auto 0 0;
  height: 66px;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.96);
  backdrop-filter: blur(14px);
}

.mobile-bottom-nav a {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border: 1px solid #5a666b;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  background: #f5f8f7;
  color: #101416;
  font-size: 14px;
  font-weight: 800;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  width: min(520px, 100%);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.page-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-map-group {
  padding: 16px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.page-map-group h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.page-map-group a {
  display: block;
  padding: 7px 0;
  color: #cbd3d5;
  font-size: 13px;
}

.page-map-group a:hover {
  color: var(--accent);
}

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

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-actions {
    justify-self: end;
  }

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

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

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

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

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

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

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .hero-title {
    font-size: 46px;
  }

  .home-hero,
  .detail-hero {
    min-height: 590px;
  }

  .home-slider {
    min-height: 590px;
  }

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

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

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

  .detail-layout,
  .account-layout,
  .admin-layout,
  .legal-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .side-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .side-nav a.active {
    border-bottom-color: var(--accent);
  }

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

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

  .gallery-grid .gallery-item:first-child {
    grid-column: 1 / -1;
  }

  .episode-row {
    grid-template-columns: 180px 1fr auto;
  }

  .episode-image {
    width: 180px;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 60px;
  }

  .page-shell {
    padding-top: 60px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-copy small,
  .header-search-button,
  .header-notification-button {
    display: none;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .icon-btn {
    width: 38px;
    min-height: 38px;
  }

  .home-hero,
  .detail-hero,
  .kids-hero {
    min-height: 540px;
    background-position: 66% center;
  }

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

  .hero-slide {
    background-position: 66% center;
  }

  .hero-slide::before {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 10, 0.22) 67%), linear-gradient(90deg, rgba(7, 9, 10, 0.88) 0%, rgba(7, 9, 10, 0.14) 100%);
  }

  .slider-controls {
    left: 10px;
    right: 10px;
  }

  .slider-controls .icon-btn {
    width: 42px;
    height: 42px;
  }

  .slider-dots {
    bottom: 12px;
  }

  .slider-dot {
    width: 20px;
  }

  .slider-dot.active {
    width: 32px;
  }

  .home-hero::before,
  .detail-hero::before,
  .kids-hero::before {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 10, 0.28) 66%), linear-gradient(90deg, rgba(7, 9, 10, 0.86) 0%, rgba(7, 9, 10, 0.18) 100%);
  }

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

  .hero-title {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .button {
    min-height: 40px;
  }

  .section-band {
    padding: 28px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .page-intro {
    padding: 30px 0 22px;
  }

  .page-intro-row,
  .section-head {
    align-items: flex-start;
  }

  .page-title {
    font-size: 30px;
  }

  .media-rail {
    grid-auto-columns: minmax(142px, 42vw);
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

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

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

  .download-poster {
    min-height: 180px;
  }

  .search-filter-row .select {
    width: 100%;
  }

  .facts-grid,
  .form-grid,
  .price-grid,
  .page-map-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster-pair {
    grid-template-columns: 1fr 118px;
  }

  .recommendation-box,
  .share-preview {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 78px;
    height: 78px;
  }

  .episode-row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
  }

  .episode-image {
    width: 116px;
  }

  .episode-row > .button,
  .episode-row > .icon-btn {
    display: none;
  }

  .episode-copy p {
    display: none;
  }

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

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-card {
    overflow-x: auto;
  }

  .data-table {
    min-width: 620px;
  }

  .player-stage {
    min-height: calc(100vh - 60px);
  }

  .real-player-stage {
    min-height: calc(100vh - 60px);
  }

  .real-player-stage .player-controls {
    padding: 56px 14px 78px;
  }

  .real-player-stage .player-control-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .real-player-stage .player-control-row .actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .real-player-stage .player-control-row .actions:last-child {
    justify-content: space-between;
  }

  .real-player-stage .player-volume {
    min-width: 48px;
    flex: 1;
  }

  .real-player-stage .player-quality-select {
    width: 86px;
    padding-right: 22px;
    padding-left: 8px;
  }

  .real-player-stage .player-speed-select {
    width: 70px;
  }

  .player-ended {
    padding: 18px;
  }

  .player-ended h2 {
    font-size: 20px;
  }

  .player-ended .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .player-title-block strong {
    max-width: 62vw;
  }

  .player-source-note,
  .real-player-stage .player-control-row .actions > span {
    display: none;
  }

  .player-top,
  .player-controls {
    left: 14px;
    right: 14px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .toast {
    bottom: 82px;
  }
}

@media (max-width: 390px) {
  .header-actions {
    gap: 5px;
  }

  .hero-title {
    font-size: 32px;
  }

  .inline-meta {
    gap: 7px;
    font-size: 12px;
  }

  .poster-pair {
    grid-template-columns: 1fr;
  }

  .poster-pair .vertical-poster {
    max-width: 180px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}
