/* ============================================================
   vidlyx — pink cinema archive
   ============================================================ */

:root {
  --bg: #0a070b;
  --bg-soft: #0f0a11;
  --surface: #141016;
  --surface-2: #1b131c;
  --surface-3: #221823;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7eef3;
  --muted: #b3a3ad;
  --dim: #8b7b85;
  --accent: #ff3d81;
  --accent-hi: #ff74a4;
  --accent-ink: #20060f;
  --accent-soft: rgba(255, 61, 129, 0.12);
  --accent-line: rgba(255, 61, 129, 0.35);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --max: 1320px;
  --gutter: 24px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(255, 61, 129, 0.1), transparent 68%),
    radial-gradient(760px 420px at -12% 22%, rgba(255, 61, 129, 0.055), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-watching {
  overflow-anchor: none;
}

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

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a070b;
}

::-webkit-scrollbar-thumb {
  background: #33232f;
  border: 2px solid #0a070b;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a3040;
}

/* ---------- utility ---------- */

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.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;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.5);
  animation: pulseDot 2.4s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 61, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(10, 7, 11, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 7, 11, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  display: inline-flex;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  transform: translateY(1px);
}

.brand-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 3px 5px;
  line-height: 1;
  transform: translateY(-7px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a.is-active {
  color: var(--text);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
  height: 42px;
  padding: 0 12px;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search:focus-within {
  border-color: var(--accent-line);
  background: var(--bg-soft);
  box-shadow: 0 0 0 3px rgba(255, 61, 129, 0.07);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--dim);
  flex: 0 0 auto;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

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

.search input::-webkit-search-cancel-button {
  display: none;
}

.search kbd {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 3px;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
}

.search-clear {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  flex: 0 0 auto;
}

.search-clear svg {
  width: 13px;
  height: 13px;
}

.search-clear:hover {
  color: var(--text);
  background: #2b1d2a;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn .icon-close {
  display: none;
}

.icon-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.icon-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.search-toggle {
  display: none;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  background: #0c080d;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mobile-menu a span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 300px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: #050406;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.8s ease;
  filter: blur(22px) saturate(0.8) contrast(1.05);
}

.hero-bg img.is-active {
  opacity: 0.34;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 4, 8, 0.94) 0%, rgba(7, 4, 8, 0.82) 48%, rgba(7, 4, 8, 0.62) 100%),
    linear-gradient(0deg, rgba(7, 4, 8, 0.9) 0%, rgba(7, 4, 8, 0.08) 62%, rgba(7, 4, 8, 0.3) 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 300px;
  padding: 24px 56px 32px;
}

.hero-poster {
  flex: 0 0 auto;
  display: block;
  width: 164px;
  max-height: 244px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  outline: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-poster:hover img {
  transform: scale(1.035);
}

.hero-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 18px;
}

.hero-info > * {
  animation: riseIn 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-info > :nth-child(1) { animation-delay: 0.02s; }
.hero-info > :nth-child(2) { animation-delay: 0.08s; }
.hero-info > :nth-child(3) { animation-delay: 0.14s; }
.hero-info > :nth-child(4) { animation-delay: 0.2s; }
.hero-info > :nth-child(5) { animation-delay: 0.26s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-title-link:hover .hero-title {
  color: var(--accent-hi);
}

.hero-title {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.hero.is-loading .hero-title {
  color: var(--dim);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta #heroTag {
  color: var(--accent-hi);
  font-weight: 500;
}

.hero-desc {
  max-width: 58ch;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.duration-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text);
}

.meta-sep {
  color: var(--dim);
}

.age-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.hero-actions .btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.hero-actions .btn svg {
  width: 15px;
  height: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hi);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(6, 4, 7, 0.55);
  color: var(--text);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero-arrow svg {
  width: 16px;
  height: 16px;
}

.hero-arrow:hover {
  border-color: var(--accent-line);
  background: rgba(255, 61, 129, 0.16);
}

.hero:hover .hero-arrow,
.hero:focus-within .hero-arrow {
  opacity: 1;
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 2;
  display: flex;
  justify-content: center;
  max-width: 100%;
  transform: translateX(-50%);
}

.hero-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 26px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active::before {
  width: 22px;
  background: var(--accent);
}

/* ---------- ticker ---------- */

.ticker {
  max-width: none;
  height: 48px;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.ticker-group span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--dim);
  white-space: nowrap;
}

.ticker-group i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

/* ---------- layout ---------- */

.page-layout {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.content-col {
  min-width: 0;
}

.catalog {
  margin-top: 40px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

/* ---------- section head ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-head--compact {
  margin-bottom: 16px;
}

.section-title-wrap {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--accent-line);
}

.section-head h2,
.related h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.clear-query {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.clear-query:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.clear-query svg {
  width: 13px;
  height: 13px;
}

.sort-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-control > span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.sort-control select {
  appearance: none;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.sort-control select option {
  background: var(--surface-2);
  color: var(--text);
}

.sort-control select:hover {
  border-color: var(--line-strong);
}

.sort-control svg {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: var(--dim);
  pointer-events: none;
}

/* ---------- filters ---------- */

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-label {
  margin-right: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-hi);
}

/* ---------- video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.video-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-sm);
  transition: transform 0.22s ease;
}

.video-card:hover {
  transform: translateY(-3px);
}

.thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 4, 7, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
  filter: saturate(0.9);
}

.video-card:hover .thumb img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.video-card:hover .thumb {
  border-color: var(--accent-line);
}

.thumb.is-missing {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 129, 0.14), transparent 55%),
    var(--surface-2);
}

.thumb.is-missing::before {
  content: "VIDLYX";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.duration-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(6, 4, 7, 0.82);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.card-play svg {
  width: 19px;
  height: 19px;
  margin-left: 2px;
}

.video-card:hover .card-play,
.video-card:focus-visible .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: block;
  padding-top: 12px;
}

.card-title {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease;
}

.video-card:hover .card-title {
  color: var(--accent-hi);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.card-meta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.video-card:hover .card-meta svg {
  transform: translateX(3px);
  color: var(--accent);
}

/* skeleton */

.video-card.skeleton {
  pointer-events: none;
}

.skeleton .thumb,
.skeleton .sk-line,
.trend-skeleton {
  background: linear-gradient(90deg, var(--surface) 20%, var(--surface-2) 44%, var(--surface) 68%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton .thumb::after {
  display: none;
}

.sk-line {
  height: 12px;
  margin-top: 12px;
  border-radius: 2px;
}

.sk-line.short {
  width: 52%;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* grid status / empty / error */

.grid-status {
  min-height: 20px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--dim);
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.empty-state .empty-mark,
.error-state .empty-mark {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
  opacity: 0.75;
}

.empty-state h3,
.error-state h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.empty-state p,
.error-state p {
  margin: 0 auto 20px;
  max-width: 44ch;
  font-size: 14px;
  color: var(--muted);
}

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

.load-more-wrap .btn {
  min-width: 220px;
}

/* ---------- sidebar panels ---------- */

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.panel-index {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.trend-list {
  display: grid;
  gap: 4px;
}

.trend-item {
  display: grid;
  grid-template-columns: 24px 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.trend-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trend-item:first-child {
  padding-top: 0;
}

.trend-item:hover .trend-title {
  color: var(--accent-hi);
}

.trend-index {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.trend-thumb {
  display: block;
  width: 72px;
  height: 44px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface-2);
}

.trend-thumb.is-missing {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 129, 0.14), transparent 60%),
    var(--surface-3);
}

.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-body {
  display: block;
  min-width: 0;
}

.trend-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.trend-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.trend-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  color: var(--dim);
}

.trend-skeleton {
  height: 56px;
  border-radius: var(--radius-sm);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag::before {
  content: "#";
  color: var(--dim);
  margin-right: 3px;
}

.tag:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.panel-about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(255, 61, 129, 0.13), transparent 70%),
    var(--surface-2);
}

.panel-about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.about-mark {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-about h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.panel-about p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- watch view ---------- */

.watch-view {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 var(--gutter) 24px;
}

.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

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

.back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.watch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.watch-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #030203;
}

.player-poster,
.player-overlay {
  position: absolute;
  inset: 0;
}

.player-poster {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 61, 129, 0.12), transparent 52%),
    #0d0910;
}

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(0.9);
  transform: scale(1.02);
}

.player-overlay {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background:
    radial-gradient(420px 240px at 50% 46%, rgba(255, 61, 129, 0.12), transparent 68%),
    linear-gradient(0deg, rgba(4, 2, 5, 0.55), rgba(4, 2, 5, 0.1));
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.play-big {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(255, 61, 129, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.play-big svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.play-big:hover:not(:disabled) {
  transform: scale(1.06);
  background: var(--accent-hi);
  box-shadow: 0 0 0 14px rgba(255, 61, 129, 0.1);
}

.play-big:disabled {
  opacity: 0.5;
  cursor: wait;
}

.player-hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

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

/* Tombol layar penuh milik halaman. Ini jalur utama di desktop karena
   kontrol di dalam iframe pihak ketiga tidak selalu bisa diandalkan. */
.player-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(8, 5, 9, 0.62);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.player-fs svg {
  width: 18px;
  height: 18px;
}

.player-fs .fs-icon-exit {
  display: none;
}

.player-fs[aria-pressed="true"] .fs-icon-enter {
  display: none;
}

.player-fs[aria-pressed="true"] .fs-icon-exit {
  display: block;
}

.player-fs:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.player-shell:fullscreen .player-fs,
.player-shell:-webkit-full-screen .player-fs,
.player-shell.is-pseudo-fullscreen .player-fs {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

/* Fullscreen native dan fallback untuk browser mobile yang tidak
   mengizinkan requestFullscreen pada elemen biasa (mis. iPhone). */
.player-shell:fullscreen,
.player-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}

.player-shell:fullscreen::backdrop,
.player-shell:-webkit-full-screen::backdrop {
  background: #000;
}

.player-shell:fullscreen .player-poster img,
.player-shell:-webkit-full-screen .player-poster img,
.player-shell.is-pseudo-fullscreen .player-poster img {
  object-fit: contain;
}

.player-shell.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}

.player-shell.is-pseudo-fullscreen iframe {
  width: 100%;
  height: 100%;
}

html.has-fullscreen-player,
body.has-fullscreen-player {
  overflow: hidden;
}

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

.player-loading {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 4, 7, 0.72);
  z-index: 3;
}

.player-loading span {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.player-shell.is-loading .player-loading {
  display: grid;
}

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

.watch-meta {
  margin-top: 24px;
}

.watch-meta h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.watch-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.share-actions {
  gap: 12px;
  margin-top: 24px;
}

.share-label {
  margin-right: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.share-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn:hover {
  color: var(--accent-hi);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.watch-download {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.watch-download svg {
  width: 16px;
  height: 16px;
}

.inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.inline-btn:hover {
  color: var(--accent-hi);
}

.inline-btn svg {
  width: 13px;
  height: 13px;
}

.watch-error {
  margin-top: 24px;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.watch-error h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.watch-error p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.related {
  margin-top: 48px;
}

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

.watch-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

.watch-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.note-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.watch-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 48px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 38ch;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-col a {
  width: fit-content;
  min-height: 24px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-hi);
}

.footer-word {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(88px, 19vw, 250px);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.07em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 61, 129, 0.18);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- bottom nav ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 7, 11, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-nav button svg {
  width: 20px;
  height: 20px;
}

.bottom-nav button.is-active {
  color: var(--accent);
}

body.is-watching .bottom-nav {
  display: none;
}

/* ---------- toast / noscript ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 400;
  padding: 16px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- search mode ---------- */

body.is-search-mode .hero,
body.is-search-mode .ticker {
  display: none;
}

body.is-search-mode .page-layout {
  margin-top: 40px;
}

body.is-search-mode .catalog {
  margin-top: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 30px;
  }

  .hero-content {
    gap: 22px;
    padding: 22px 44px 28px;
  }

  .hero-poster {
    width: 150px;
  }
}

@media (max-width: 1100px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-note {
    align-self: start;
  }

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

@media (max-width: 1000px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .panel-about {
    grid-column: span 2;
  }

  .catalog {
    margin-top: 32px;
  }
}

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

  .menu-toggle,
  .search-toggle {
    display: grid;
  }

  .search {
    display: none;
  }

  .site-header.search-open .search {
    display: flex;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 12px);
    width: auto;
    height: 48px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
  }

  .site-header.search-open .search kbd {
    display: none;
  }

  .hero-content {
    padding: 20px 48px 28px;
  }

  .hero-title {
    max-width: 40ch;
  }

  .bottom-nav {
    display: grid;
  }

  body {
    padding-bottom: 72px;
  }

  .toast {
    bottom: 96px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .page-grain {
    display: none;
  }

  .header-inner {
    gap: 16px;
  }

  .brand-word {
    font-size: 22px;
  }

  .brand-badge {
    display: none;
  }

  .hero {
    min-height: 220px;
    margin-top: 0;
    border-radius: var(--radius);
  }

  .hero-content {
    min-height: 220px;
    padding: 14px 14px 26px;
    gap: 14px;
  }

  .hero-poster {
    width: 112px;
    max-height: 176px;
    border-radius: 6px;
  }

  .hero-info {
    padding-bottom: 4px;
  }

  .hero-eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .hero-title {
    font-size: 17px;
    line-height: 1.25;
    -webkit-line-clamp: 3;
  }

  .hero-meta {
    margin-top: 7px;
    gap: 6px;
    font-size: 10px;
  }

  .hero-desc {
    display: none;
  }

  .hero-meta .duration-pill {
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .hero-meta .age-chip {
    height: 18px;
    font-size: 9px;
  }

  .hero-actions {
    margin-top: 10px;
    gap: 6px;
  }

  .hero-actions .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .hero-actions .btn svg {
    width: 13px;
    height: 13px;
  }

  .hero-actions .btn-ghost {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 2px;
  }

  .page-layout {
    margin-top: 16px;
    gap: 24px;
  }

  .catalog {
    margin-top: 24px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-tools {
    width: 100%;
    justify-content: space-between;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .card-body {
    padding-top: 10px;
  }

  .card-title {
    font-size: 13px;
    line-height: 1.4;
  }

  .card-meta {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .card-meta svg {
    width: 10px;
    height: 10px;
  }

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

  .panel-about {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .watch-view {
    margin-top: 16px;
  }

  .watch-layout {
    gap: 32px;
  }

  .play-big {
    width: 64px;
    height: 64px;
  }

  .play-big svg {
    width: 24px;
    height: 24px;
  }

  .player-fs {
    width: 44px;
    height: 44px;
  }

  .player-fs svg {
    width: 20px;
    height: 20px;
  }

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

  .watch-error {
    padding: 24px;
  }

  .footer-word {
    margin-top: 40px;
  }
}

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

  .hero-poster {
    width: 100px;
    max-height: 162px;
  }

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

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .filter-row {
    gap: 6px;
  }

  .chip {
    padding: 0 10px;
    font-size: 11px;
  }

  .sort-control {
    margin-left: auto;
  }

  .sort-control > span {
    display: none;
  }

  .watch-sub {
    gap: 8px;
  }
}

/* ---------- Pemutar HLS (versi PHP) ---------- */

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

.player-shell:fullscreen video,
.player-shell:-webkit-full-screen video,
.player-shell.is-pseudo-fullscreen video {
  width: 100%;
  height: 100%;
}

.player-shell.is-playing .player-hint {
  display: none;
}

.watch-desc {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
