:root {
  color-scheme: dark;
  --ink-950: #080912;
  --ink-900: #0c0e1a;
  --ink-850: #111421;
  --ink-800: #171a2a;
  --ink-700: #25283b;
  --paper: #f6f3ff;
  --paper-soft: #d8d3e8;
  --muted: #9a96aa;
  --coral: #ff6f69;
  --coral-hot: #ff4f58;
  --lavender: #aa91ff;
  --lavender-soft: #d1c4ff;
  --mint: #6fe7c1;
  --warning: #ffc970;
  --danger: #ff777d;
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 16%);
  --glass: rgb(12 14 26 / 84%);
  --shadow-sm: 0 8px 24px rgb(0 0 0 / 24%);
  --shadow-lg: 0 30px 80px rgb(0 0 0 / 42%);
  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.35rem;
  --content: 76rem;
  --header-height: 4.25rem;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-700) var(--ink-950);
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% -10%, rgb(170 145 255 / 12%), transparent 27rem),
    radial-gradient(circle at -10% 28rem, rgb(255 111 105 / 9%), transparent 25rem),
    var(--ink-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 2.2%) 1px, transparent 1px);
  background-size: 100% 4rem;
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

img,
video {
  height: auto;
}

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

button,
select {
  cursor: pointer;
}

button,
input,
select,
textarea {
  border-radius: 0;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

::selection {
  background: var(--lavender);
  color: var(--ink-950);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lavender-soft);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-950);
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.page-main,
main {
  min-height: 58vh;
}

.section {
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.section--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.section-heading__copy {
  max-width: 47rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-title,
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.7vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-copy,
.page-intro {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--lavender-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.text-link:hover {
  color: var(--paper);
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(0.22rem);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 1px rgb(0 0 0 / 35%);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0 32%, var(--lavender) 32% 68%, transparent 68%);
  content: "";
}

.header-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--content));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  gap: 1.5rem;
}

.brand,
.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 2rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 35% 65% 58% 42% / 46% 36% 64% 54%;
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  box-shadow: 0 0 0 4px rgb(170 145 255 / 9%);
}

.brand-mark::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  transform: translate(-42%, -50%);
  border-top: 0.35rem solid transparent;
  border-bottom: 0.35rem solid transparent;
  border-left: 0.55rem solid var(--ink-950);
  content: "";
}

.brand-accent {
  color: var(--coral);
}

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

.desktop-nav a,
.nav-link {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--paper-soft);
  font-size: 0.86rem;
  font-weight: 720;
  transition: background-color 150ms ease, color 150ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgb(255 255 255 / 7%);
  color: var(--paper);
}

.desktop-nav a.telegram-link,
.mobile-menu a.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #79d5ff;
}

.desktop-nav a.telegram-link {
  margin-left: 0.2rem;
  border: 1px solid rgb(121 213 255 / 25%);
  background: rgb(38 165 229 / 9%);
}

.desktop-nav a.telegram-link:hover,
.mobile-menu a.telegram-link:hover {
  background: rgb(38 165 229 / 16%);
  color: #b7eaff;
}

.telegram-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.header-search {
  position: relative;
  width: min(17rem, 25vw);
  margin-left: 0.5rem;
}

.header-search input {
  width: 100%;
  height: 2.55rem;
  padding: 0 2.7rem 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--paper);
  font-size: 0.86rem;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 0.32rem;
  display: grid;
  width: 1.95rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--ink-950);
}

.menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  margin-left: auto;
  padding: 0.68rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 5%);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 0.24rem;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.36rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.36rem) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  top: var(--header-height);
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100dvh - var(--header-height));
  padding: 1rem;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: rgb(8 9 18 / 98%);
  box-shadow: var(--shadow-lg);
}

.mobile-menu[data-open="true"] {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 0.35rem;
}

.mobile-menu a {
  display: flex;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
  font-weight: 750;
}

/* Hero: the offset signal rail is the visual signature. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero.hero--copy-only {
  grid-template-columns: minmax(0, 1fr);
}

.hero--copy-only .hero__copy {
  max-width: 58rem;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -7rem;
  width: min(34vw, 29rem);
  aspect-ratio: 1;
  transform: rotate(11deg);
  border: 1px solid rgb(170 145 255 / 24%);
  border-radius: 44% 56% 51% 49% / 60% 40% 60% 40%;
  background: linear-gradient(135deg, rgb(255 111 105 / 18%), rgb(170 145 255 / 6%));
  box-shadow: inset 0 0 5rem rgb(170 145 255 / 8%);
  content: "";
}

.hero__inner {
  display: grid;
  width: min(calc(100% - 2rem), var(--content));
  min-height: clamp(24rem, 53vw, 39rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.hero__copy {
  position: relative;
  max-width: 48rem;
}

.hero__copy::before {
  position: absolute;
  top: 0.15rem;
  bottom: 0.25rem;
  left: -1.3rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--coral) 0 42%, transparent 42% 48%, var(--lavender) 48% 100%);
  content: "";
}

.hero__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6.75rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero__title em {
  color: var(--coral);
  font-style: normal;
}

.hero__lede {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero__actions {
  display: flex;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__aside {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%));
  box-shadow: var(--shadow-lg);
}

.hero__aside::before {
  position: absolute;
  top: -0.45rem;
  right: 1.4rem;
  left: 1.4rem;
  height: 0.45rem;
  border-radius: 0.45rem 0.45rem 0 0;
  background: linear-gradient(90deg, var(--coral), var(--lavender));
  content: "";
}

.hero-stat {
  display: flex;
  padding: 0.85rem 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-child {
  border-bottom: 0;
}

.hero-stat__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stat__value {
  color: var(--lavender-soft);
  font-family: var(--font-data);
  font-size: 1.05rem;
  font-weight: 800;
}

.button,
.btn {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: #16090b;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: #ff827d;
}

.button--ghost,
.btn--ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 5%);
  color: var(--paper);
}

.button--ghost:hover,
.btn--ghost:hover {
  border-color: rgb(170 145 255 / 48%);
  background: rgb(170 145 255 / 10%);
}

/* Breadcrumbs and taxonomy */
.breadcrumbs {
  display: flex;
  padding: 1.15rem 0 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs li:not(:last-child)::after {
  color: rgb(255 255 255 / 30%);
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--lavender-soft);
}

.chips,
.chip-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 3.5%);
  color: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 720;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.chip:hover,
.chip[aria-current="page"],
.chip.is-active {
  border-color: rgb(170 145 255 / 50%);
  background: rgb(170 145 255 / 12%);
  color: var(--paper);
}

.chip__count {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.7rem;
}

/* Video cards */
.video-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.video-card {
  position: relative;
  min-width: 0;
}

.video-card > a,
.video-card__link {
  display: block;
  height: 100%;
}

.video-card__media,
.card-media,
[data-preview-host] {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-850);
  box-shadow: var(--shadow-sm);
}

.video-card__media::after,
.card-media::after,
[data-preview-host]::after {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgb(5 6 12 / 74%));
  content: "";
  pointer-events: none;
}

.video-card__media img,
.card-media img,
[data-preview-host] img,
.trailer-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__media img,
.card-media img,
[data-preview-host] img {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.video-card:hover .video-card__media img,
.video-card:hover .card-media img,
.video-card:hover [data-preview-host] img,
.video-card:focus-within .video-card__media img,
.video-card:focus-within .card-media img,
.video-card:focus-within [data-preview-host] img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.trailer-preview {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: var(--ink-950);
  animation: trailer-in 180ms ease both;
  pointer-events: none;
}

.video-card__media::before,
.card-media::before,
[data-preview-host]::before {
  position: absolute;
  z-index: 4;
  top: 0.65rem;
  left: 0.65rem;
  width: 1.2rem;
  height: 0.24rem;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 1.55rem 0 var(--lavender);
  content: "";
  pointer-events: none;
}

@keyframes trailer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-card__duration,
.duration-badge {
  position: absolute;
  z-index: 5;
  right: 0.55rem;
  bottom: 0.5rem;
  padding: 0.22rem 0.38rem;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 0.35rem;
  background: rgb(5 6 12 / 78%);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.video-card__badge,
.card-badge {
  position: absolute;
  z-index: 5;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--coral);
  color: #1c090b;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.video-card__body {
  padding: 0.85rem 0.15rem 0.2rem;
}

.video-card__title,
.card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 780;
  letter-spacing: -0.012em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card:hover .video-card__title,
.video-card:hover .card-title,
.video-card:focus-within .video-card__title,
.video-card:focus-within .card-title {
  color: var(--lavender-soft);
}

.video-card__meta,
.card-meta {
  display: flex;
  margin: 0.45rem 0 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.69rem;
}

.video-card__meta > * + *::before,
.card-meta > * + *::before {
  margin-right: 0.65rem;
  color: rgb(255 255 255 / 24%);
  content: "•";
}

/* Pagination */
.pagination {
  display: flex;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 2.55rem;
  height: 2.55rem;
  padding-inline: 0.55rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 3%);
  color: var(--paper-soft);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
}

.pagination a:hover {
  border-color: rgb(170 145 255 / 45%);
  background: rgb(170 145 255 / 10%);
  color: var(--paper);
}

.pagination [aria-current="page"],
.pagination .current {
  border-color: var(--coral);
  background: var(--coral);
  color: #19090b;
}

.pagination .is-disabled,
.pagination [aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}

.pagination__ellipsis {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--muted) !important;
}

/* Player and detail page */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #03040a;
  box-shadow: var(--shadow-lg);
}

.player-shell::before {
  display: block;
  padding-top: 56.25%;
  content: "";
}

.player-shell video,
.player-shell iframe,
.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #03040a;
  object-fit: contain;
}

.player-status {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  padding: 1.5rem;
  place-items: center;
  background: rgb(3 4 10 / 88%);
  color: var(--paper-soft);
  text-align: center;
}

.player-status[data-visible="true"] {
  display: grid;
}

.player-sources {
  display: flex;
  margin: 0.8rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.player-source,
[data-player-source] {
  min-height: 2.25rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  color: var(--paper-soft);
  font-size: 0.77rem;
  font-weight: 780;
}

.player-source:hover,
[data-player-source]:hover,
.player-source.is-active,
[data-player-source][aria-pressed="true"] {
  border-color: var(--coral);
  color: var(--paper);
}

.watch-heading {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.watch-meta {
  display: flex;
  margin: 0;
  padding-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.73rem;
}

.watch-description,
.prose {
  max-width: 75ch;
  margin-top: 1.35rem;
  color: var(--paper-soft);
}

.watch-description a,
.prose a {
  color: var(--lavender-soft);
  text-decoration: underline;
  text-decoration-color: rgb(170 145 255 / 42%);
  text-underline-offset: 0.2em;
}

.sidebar-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 3%);
}

.sidebar-panel + .sidebar-panel {
  margin-top: 1rem;
}

.sidebar-title {
  margin: 0 0 0.8rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Search, empty and 404 */
.search-panel {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
}

.search-form {
  display: flex;
  width: min(100%, 45rem);
  gap: 0.6rem;
}

.search-form input,
.form-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--paper);
}

.search-form input:focus,
.form-control:focus {
  border-color: var(--lavender);
}

.search-form button {
  flex: 0 0 auto;
}

.empty-state,
.not-found {
  display: grid;
  min-height: min(35rem, 65vh);
  padding: clamp(2rem, 7vw, 5rem) 1rem;
  place-items: center;
  text-align: center;
}

.empty-state__inner,
.not-found__inner {
  max-width: 40rem;
}

.not-found__code {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.75;
  -webkit-text-stroke: 1px rgb(170 145 255 / 52%);
}

.not-found__code::after {
  position: absolute;
  right: 9%;
  bottom: 2%;
  left: 9%;
  height: 0.45rem;
  transform: rotate(-2deg);
  border-radius: 99px;
  background: var(--coral);
  content: "";
}

.empty-state h1,
.empty-state h2,
.not-found h1 {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.empty-state p,
.not-found p {
  color: var(--muted);
}

/* Ads stay visually stable before the deferred script arrives. */
.ad-slot,
[data-ad-script] {
  display: grid;
  min-height: 5.5rem;
  margin-block: 1.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgb(255 255 255 / 10%);
  border-radius: var(--radius-sm);
  color: rgb(255 255 255 / 28%);
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  background: rgb(5 6 12 / 54%);
}

.site-footer::before {
  position: absolute;
  top: -1px;
  left: max(1rem, calc((100% - var(--content)) / 2));
  width: min(12rem, 33vw);
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--lavender));
  content: "";
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.5fr) repeat(3, minmax(8rem, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-about {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-title {
  margin-bottom: 0.8rem;
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.footer-links li + li {
  margin-top: 0.5rem;
}

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

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

.footer-bottom {
  display: flex;
  margin-top: 2.75rem;
  padding-top: 1.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.67rem;
}

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

  .menu-toggle {
    display: block;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.55fr);
  }

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

  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .sidebar-panel + .sidebar-panel {
    margin-top: 0;
  }
}

@media (max-width: 48rem) {
  :root {
    --header-height: 3.85rem;
  }

  .container,
  .shell,
  .header-inner,
  .hero__inner {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 4.25rem 3.5rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero__copy {
    padding-left: 0.75rem;
  }

  .hero__copy::before {
    left: 0;
  }

  .hero__title {
    font-size: clamp(2.65rem, 15vw, 4.6rem);
  }

  .hero__aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-stat {
    display: block;
    padding: 0.5rem;
    border: 0;
  }

  .hero-stat__label,
  .hero-stat__value {
    display: block;
  }

  .hero-stat__value {
    margin-top: 0.3rem;
  }

  .video-grid,
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .video-card__body {
    padding-top: 0.65rem;
  }

  .video-card__title,
  .card-title {
    font-size: 0.86rem;
  }

  .video-card__meta,
  .card-meta {
    font-size: 0.62rem;
  }

  .player-shell {
    margin-inline: -0.625rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .hero__aside,
  .watch-sidebar,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }

  .pagination a,
  .pagination span {
    min-width: 2.35rem;
    height: 2.35rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .button:hover,
  .btn:hover,
  .video-card:hover .video-card__media img,
  .video-card:hover .card-media img,
  .video-card:hover [data-preview-host] img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .video-card__media,
  .card-media,
  .player-shell,
  .chip,
  .button,
  .btn {
    border: 1px solid CanvasText;
  }
}

/* Eta template bindings */
[hidden] {
  display: none !important;
}

.page-stack {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.brand span,
.brand b {
  font: inherit;
}

.brand b {
  color: var(--coral);
}

.brand i {
  position: relative;
  width: 1.7rem;
  aspect-ratio: 1;
  margin-left: 0.1rem;
  border-radius: 35% 65% 58% 42% / 46% 36% 64% 54%;
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  box-shadow: 0 0 0 4px rgb(170 145 255 / 9%);
}

.brand i::after {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  transform: translate(-42%, -50%);
  border-top: 0.27rem solid transparent;
  border-bottom: 0.27rem solid transparent;
  border-left: 0.43rem solid var(--ink-950);
  content: "";
}

.partner-menu {
  position: relative;
}

.partner-menu summary {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--paper-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  list-style: none;
}

.partner-menu summary::-webkit-details-marker {
  display: none;
}

.partner-menu[open] summary,
.partner-menu summary:hover {
  background: rgb(255 255 255 / 7%);
  color: var(--paper);
}

.partner-menu > div {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid;
  width: 12rem;
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ink-850);
  box-shadow: var(--shadow-lg);
}

.partner-menu > div a {
  padding: 0.65rem 0.7rem;
}

.mobile-partners {
  display: flex;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mobile-partners a {
  min-height: auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.75rem;
}

.hero {
  display: grid;
  min-height: clamp(28rem, 57vw, 42rem);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(0rem, 3vw, 2.5rem) 7rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.96fr);
  gap: clamp(2rem, 6vw, 6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(255 255 255 / 4%), transparent 55%);
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6.75rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--coral);
  font-style: normal;
}

.hero__feature {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  transform: rotate(1.5deg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
  box-shadow: var(--shadow-lg);
}

.hero__feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 44%, rgb(4 5 11 / 92%));
  content: "";
}

.hero__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__feature:hover img {
  transform: scale(1.035);
}

.hero__feature > span {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
}

.hero__feature b,
.hero__feature strong {
  display: block;
}

.hero__feature b {
  margin-bottom: 0.4rem;
  color: var(--coral);
  font-family: var(--font-data);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero__feature strong {
  font-size: clamp(1rem, 2.3vw, 1.5rem);
  line-height: 1.18;
}

.hero__rail {
  position: absolute;
  right: 1.5rem;
  bottom: 1.15rem;
  left: 1.5rem;
  display: flex;
  padding-top: 0.95rem;
  gap: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.hero__rail span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
}

.hero__rail b {
  margin-right: 0.25rem;
  color: var(--paper);
  font-size: 0.82rem;
}

.button--quiet {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 5%);
  color: var(--paper);
}

.hub-strip {
  display: flex;
  padding: 0.75rem 0;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-strip::-webkit-scrollbar {
  display: none;
}

.hub-strip > span {
  position: sticky;
  left: 0;
  flex: 0 0 auto;
  padding-right: 0.5rem;
  background: var(--ink-950);
  color: var(--coral);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-strip a,
.sort-links a {
  flex: 0 0 auto;
  padding: 0.48rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-soft);
  font-size: 0.75rem;
  font-weight: 720;
}

.hub-strip a:hover,
.sort-links a:hover,
.sort-links a[aria-current="page"] {
  border-color: rgb(170 145 255 / 44%);
  background: rgb(170 145 255 / 10%);
  color: var(--paper);
}

.hub-strip small {
  color: var(--muted);
  font-family: var(--font-data);
}

.catalog-section,
.link-atlas {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.sort-links {
  display: flex;
  padding-bottom: 0.1rem;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.video-card__wash {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(transparent 58%, rgb(4 5 11 / 48%));
  pointer-events: none;
}

.video-card__brand {
  position: absolute;
  z-index: 5;
  bottom: 0.6rem;
  left: 0.6rem;
  color: rgb(255 255 255 / 78%);
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-card__body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 780;
  letter-spacing: -0.012em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card:hover .video-card__body h3,
.video-card:focus-within .video-card__body h3 {
  color: var(--lavender-soft);
}

.video-card__body p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.atlas-grid a,
.entity-grid > a {
  display: flex;
  min-width: 0;
  padding: 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2.5%);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.atlas-grid a:hover,
.entity-grid > a:hover {
  border-color: rgb(170 145 255 / 40%);
  background: rgb(170 145 255 / 8%);
}

.atlas-grid span {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-grid small,
.entity-grid small {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.63rem;
}

.archive-header {
  position: relative;
  max-width: 58rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  border-left: 4px solid var(--coral);
}

.archive-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.archive-header > p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.archive-header > strong {
  display: inline-block;
  margin-top: 1rem;
  color: var(--lavender-soft);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.entity-grid > a {
  justify-content: flex-start;
}

.entity-grid__image {
  display: grid;
  width: 4.7rem;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, rgb(255 111 105 / 16%), rgb(170 145 255 / 16%));
  color: var(--lavender-soft);
}

.entity-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entity-grid > a > span:last-child {
  display: grid;
  min-width: 0;
}

.entity-grid strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination__gap {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--muted) !important;
}

.player-controls {
  position: absolute;
  z-index: 5;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.player-controls button,
.player-controls [data-player-status] {
  padding: 0.38rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0.4rem;
  background: rgb(3 4 10 / 78%);
  color: var(--paper-soft);
  font-family: var(--font-data);
  font-size: 0.64rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.player-controls button[aria-pressed="true"] {
  border-color: var(--coral);
  color: var(--paper);
}

.player-controls [data-player-status] {
  margin-left: auto;
  pointer-events: none;
}

.player-controls [data-player-status][data-visible="false"] {
  display: none;
}

/* Custom TurkBest media controls; native controls remain the no-JS fallback. */
.player-brand,
.player-loader,
.player-center,
.player-gesture,
.player-ui {
  display: none;
}

.player-shell.is-enhanced {
  isolation: isolate;
  user-select: none;
  touch-action: manipulation;
}

.player-shell.is-enhanced:focus-visible {
  outline: 3px solid var(--lavender-soft);
  outline-offset: 3px;
}

.player-shell.is-enhanced .player-brand {
  position: absolute;
  z-index: 4;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  padding: 0.38rem 0.58rem;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 999px;
  background: rgb(3 4 10 / 57%);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.player-brand i {
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0.22rem rgb(255 111 105 / 14%);
}

.player-brand b {
  color: var(--coral);
}

.player-shell.is-enhanced .player-center {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(3.7rem, 8vw, 5rem);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(255 111 105 / 94%), rgb(255 79 88 / 94%));
  color: #19090b;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 45%), 0 0 0 0.5rem rgb(255 255 255 / 5%);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

.player-shell.is-enhanced .player-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-shell.is-playing .player-center {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  pointer-events: none;
}

.player-icon,
.player-control svg,
.player-center svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.player-center svg {
  width: 2rem;
  height: 2rem;
}

.player-icon--pause,
.player-icon--muted,
.player-icon--collapse {
  display: none;
}

.player-shell.is-playing .player-icon--play,
.player-shell.is-muted .player-icon--volume,
.player-shell.is-fullscreen .player-icon--expand {
  display: none;
}

.player-shell.is-playing .player-icon--pause,
.player-shell.is-muted .player-icon--muted,
.player-shell.is-fullscreen .player-icon--collapse {
  display: block;
}

.player-shell.is-enhanced .player-loader {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 3rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 50%;
  background: rgb(3 4 10 / 62%);
  pointer-events: none;
}

.player-shell.is-buffering .player-loader {
  display: grid;
}

.player-loader i {
  width: 1.45rem;
  aspect-ratio: 1;
  border: 2px solid rgb(255 255 255 / 25%);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: player-spin 700ms linear infinite;
}

@keyframes player-spin {
  to { transform: rotate(360deg); }
}

.player-shell.is-enhanced .player-gesture {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 4.5rem;
  min-height: 4.5rem;
  transform: translate(-50%, -50%) scale(0.82);
  place-items: center;
  border-radius: 50%;
  background: rgb(3 4 10 / 74%);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
}

.player-gesture.is-visible {
  animation: player-gesture 650ms ease;
}

@keyframes player-gesture {
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

.player-shell.is-enhanced .player-status {
  position: absolute;
  z-index: 8;
  inset: auto auto 5.35rem 50%;
  display: none;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.48rem 0.72rem;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(3 4 10 / 82%);
  color: var(--paper-soft);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.player-shell.is-enhanced .player-status[data-visible="true"] {
  display: block;
}

.player-shell.is-enhanced .player-ui {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 4.5rem 0.85rem 0.75rem;
  background: linear-gradient(to bottom, transparent, rgb(3 4 10 / 90%));
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-shell.is-controls-hidden .player-ui,
.player-shell.is-controls-hidden .player-brand {
  opacity: 0;
  transform: translateY(0.45rem);
  pointer-events: none;
}

.player-progress {
  display: block;
  padding-block: 0.45rem;
}

.player-progress input,
.player-volume__range input {
  width: 100%;
  height: 0.28rem;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--coral) 0 var(--played, 0%), rgb(255 255 255 / 38%) var(--played, 0%) var(--buffered, 0%), rgb(255 255 255 / 16%) var(--buffered, 0%) 100%);
  cursor: pointer;
}

.player-progress input::-webkit-slider-thumb,
.player-volume__range input::-webkit-slider-thumb {
  width: 0.82rem;
  height: 0.82rem;
  appearance: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}

.player-progress input::-moz-range-thumb,
.player-volume__range input::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.player-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.28rem;
}

.player-control {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--paper);
}

.player-control:hover,
.player-control:focus-visible {
  background: rgb(255 255 255 / 10%);
}

.player-toolbar__space {
  min-width: 0.25rem;
  flex: 1 1 auto;
}

.player-time {
  flex: 0 0 auto;
  color: var(--paper-soft);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-volume {
  display: flex;
  align-items: center;
}

.player-volume__range {
  display: flex;
  width: 4.2rem;
  align-items: center;
}

.player-volume__range input {
  --played: var(--volume, 100%);
  --buffered: var(--volume, 100%);
  height: 0.22rem;
}

.player-select {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 800;
}

.player-select select {
  height: 2.15rem;
  padding: 0 1.65rem 0 0.55rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 7%);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 0.64rem;
  font-weight: 800;
}

.player-source-select select {
  max-width: 6.7rem;
}

.player-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.player-shell:fullscreen::before {
  display: none;
}

@media (max-width: 42rem) {
  .player-shell.is-enhanced .player-ui {
    padding: 3.75rem 0.55rem max(0.48rem, env(safe-area-inset-bottom));
  }

  .player-skip,
  .player-pip,
  .player-volume__range,
  .player-source-select > span {
    display: none;
  }

  .player-time {
    font-size: 0.6rem;
  }

  .player-control {
    width: 2.2rem;
    height: 2.2rem;
  }

  .player-select select {
    height: 2rem;
    padding-left: 0.42rem;
    padding-right: 1.3rem;
  }

  .player-shell.is-enhanced .player-brand {
    top: 0.55rem;
    left: 0.55rem;
  }
}

.watch-title {
  margin-top: 1.4rem;
}

.watch-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.watch-title > div {
  display: flex;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
}

.watch-aside {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 3%);
}

.aside-links {
  display: grid;
}

.aside-links a {
  display: flex;
  padding: 0.68rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
  font-size: 0.83rem;
  font-weight: 750;
}

.aside-links a:hover,
.aside-links b {
  color: var(--lavender-soft);
}

.aside-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.chips-section {
  margin-top: 1.5rem;
}

.chips-section h2 {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips a {
  display: inline-flex;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 3.5%);
  color: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 720;
}

.chips a:hover {
  border-color: rgb(170 145 255 / 50%);
  background: rgb(170 145 255 / 12%);
  color: var(--paper);
}

.search-form button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: #16090b;
  font-weight: 850;
}

.search-form--large {
  width: min(100%, 50rem);
}

.result-count {
  margin: -2rem 0 0;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.empty-state > a {
  color: var(--lavender-soft);
  font-weight: 750;
}

.not-found {
  align-content: center;
}

.not-found > span:first-child {
  position: relative;
  display: inline-block;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.75;
  -webkit-text-stroke: 1px rgb(170 145 255 / 52%);
}

.not-found > h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.not-found > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer .footer-grid > div > p {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer .footer-grid > nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.5rem;
}

.site-footer .footer-grid > nav a {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer .footer-grid > nav a:hover {
  color: var(--lavender-soft);
}

.footer-base {
  display: flex;
  margin-top: 2.5rem;
  padding-top: 1rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.65rem;
}

@media (max-width: 68rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  }

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

@media (max-width: 48rem) {
  .page-stack {
    gap: 2.5rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0.85rem 6.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    padding-left: 0.75rem;
  }

  .hero__feature {
    transform: none;
  }

  .hero__rail {
    right: 0.85rem;
    left: 0.85rem;
    overflow-x: auto;
  }

  .hero__rail span {
    flex: 0 0 auto;
  }

  .sort-links {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .watch-aside {
    position: static;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .entity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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