:root {
  --ink: #000000;
  --panel: #111111;
  --panel-soft: #191919;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #a8a8a8;
  --acid: #ed0000;
  --acid-ink: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: #000;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

.app-shell {
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand, .gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.6px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(237,0,0, .45);
  border-radius: 8px;
  color: var(--acid);
  background: rgba(237,0,0, .09);
}

.brand-mark svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg path:first-child { fill: rgba(237,0,0,.12); }
.brand-logo { display: block; width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(237,0,0, .2);
  border-radius: 999px;
  color: #c7c9c2;
  background: rgba(237,0,0, .07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.secure-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(237,0,0, .1);
  animation: status-pulse 2.2s infinite;
}

@keyframes status-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.content {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 42px 18px 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.content > h1 {
  max-width: 520px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 9.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -1.8px;
}

.content > h1 em, .desktop-gate h1 em {
  color: var(--acid);
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 700;
}

.intro {
  max-width: 480px;
  margin: 17px 0 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.payment-gate { display: grid; gap: 10px; margin: 0 0 20px; padding: 20px; border: 1px solid rgba(237,0,0,.28); border-radius: 14px; background: linear-gradient(135deg, rgba(237,0,0,.1), #111 55%); }
.payment-gate h2 { margin: 0; font: 700 22px/1.2 "Manrope", sans-serif; }
.payment-gate p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.payment-gate strong { color: #fff; font: 800 21px/1.2 "Manrope", sans-serif; }
.payment-kicker { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.payment-panel { display: grid; justify-items: center; gap: 8px; margin-top: 5px; padding-top: 13px; border-top: 1px solid var(--line); text-align: center; }
.payment-panel small { color: #8e938e; font-size: 11px; }
.payment-status { color: #fff !important; font-weight: 700; }
.payment-qr { width: min(100%, 260px); aspect-ratio: 1; padding: 9px; border-radius: 12px; background: #fff; object-fit: contain; }
.payment-link { color: #fff; font-size: 12px; font-weight: 700; text-decoration: underline; }

.player-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #070908;
  touch-action: pan-y;
}
.r2-fullscreen-button { position: absolute; top: 10px; right: 10px; z-index: 10; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; color: #fff; background: rgba(0,0,0,.72); font-size: 25px; line-height: 1; cursor: pointer; }
.r2-fullscreen-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.player-page .video-frame.is-r2-fullscreen,
.player-page.is-album-player .video-frame.is-r2-fullscreen,
.player-page .video-frame:fullscreen,
.player-page.is-album-player .video-frame:fullscreen { position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100dvh; aspect-ratio: auto !important; border-radius: 0; background: #000; }
.video-frame.is-r2-fullscreen .r2-fullscreen-button,
.video-frame:fullscreen .r2-fullscreen-button { top: max(12px, env(safe-area-inset-top), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 12px)); right: max(12px, env(safe-area-inset-right), calc(var(--tg-content-safe-area-inset-right, 0px) + 12px)); }
.video-frame.is-media-loading::before,
.photo-frame.is-media-loading::before { content: ""; position: absolute; inset: 0; z-index: 20; background: #1c1e1d; pointer-events: none; }
.video-frame.is-media-loading::after,
.photo-frame.is-media-loading::after { content: ""; position: absolute; inset: 0; z-index: 21; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.08) 45%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.08) 55%, transparent 70%); transform: translateX(-100%); animation: media-viewer-shimmer 1.45s ease-in-out infinite; pointer-events: none; }
@keyframes media-viewer-shimmer { to { transform: translateX(100%); } }
.playback-fallback { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: #fff; background: rgba(0,0,0,.9); text-align: center; }
.playback-fallback[hidden] { display: none; }
.playback-fallback strong { font: 800 18px/1.25 "Manrope", sans-serif; }
.playback-fallback span { max-width: 390px; color: #aeb3ad; font-size: 12px; line-height: 1.55; }
.playback-fallback .primary-button { width: auto; min-width: 220px; }

#secureVideo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080a09;
}

.secure-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080a09;
}

#secureVideo::-webkit-media-controls,
#secureVideo::-webkit-media-controls-enclosure { display: none !important; }

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0a0c0b;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-cover-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.video-cover-play svg { width: 26px; height: 26px; }
.video-cover-play:active { transform: scale(0.94); }

.poster-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #1f2924;
  transition: opacity .45s ease, visibility .45s;
}

.poster-art.is-hidden { opacity: 0; visibility: hidden; }

.poster-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(300px) rotateX(56deg) scale(1.6) translateY(30%);
  transform-origin: center bottom;
  opacity: .35;
}

.poster-light { position: absolute; inset: -30% 35% 0 -30%; background: #91a988; filter: blur(80px); opacity: .44; transform: rotate(-18deg); }
.poster-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(226,255,151,.5); }
.orb-one { width: 180px; height: 180px; top: -60px; right: -12px; box-shadow: inset 0 0 70px rgba(237,0,0,.09), 0 0 50px rgba(237,0,0,.1); }
.orb-two { width: 60px; height: 60px; bottom: 36px; right: 86px; background: var(--acid); opacity: .7; filter: blur(.2px); }

.poster-copy { position: absolute; top: 28px; left: 27px; display: flex; flex-direction: column; }
.poster-copy span { color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.poster-copy strong { margin-top: -10px; color: rgba(255,255,255,.08); font-family: "Manrope", sans-serif; font-size: 110px; line-height: 1; letter-spacing: -10px; }

.dynamic-watermark {
  position: absolute;
  top: 17px;
  right: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 5px 7px;
  color: rgba(255, 255, 255, .45);
  background: rgba(0, 0, 0, .18);
  border-radius: 4px;
  font-size: 8px;
  line-height: 1.4;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: top .65s ease, right .65s ease, bottom .65s ease, left .65s ease;
}

.dynamic-watermark strong { font-weight: 700; letter-spacing: .1em; }
.dynamic-watermark span { font-variant-numeric: tabular-nums; }

.forensic-watermarks {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .12);
  font-size: clamp(8px, 2.5vw, 13px);
  font-weight: 800;
  letter-spacing: .12em;
  pointer-events: none;
  transform: rotate(-19deg) scale(1.14);
  mix-blend-mode: screen;
}

.forensic-watermarks span:nth-child(even) { transform: translateX(14px); }

.center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--acid-ink);
  background: var(--acid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform .18s ease, opacity .25s ease;
}

.center-play:active { transform: translate(-50%, -50%) scale(.94); }
.center-play svg { width: 24px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.center-play .play-icon { margin-left: 3px; }

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 0 15px 13px;
  transition: opacity .3s ease;
}

.progress-wrap { display: flex; align-items: center; height: 16px; }
.progress { width: 100%; height: 3px; margin: 0; border-radius: 999px; background: linear-gradient(90deg, var(--acid) var(--progress, 0%), rgba(255,255,255,.24) var(--progress, 0%)); appearance: none; -webkit-appearance: none; outline: none; }
.progress::-webkit-slider-thumb { width: 11px; height: 11px; border: 2px solid #121512; border-radius: 50%; background: var(--acid); appearance: none; -webkit-appearance: none; }
.progress::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #121512; border-radius: 50%; background: var(--acid); }

.controls-row { display: flex; align-items: center; min-height: 30px; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .play-icon { fill: currentColor; stroke: none; }
.pause-icon, .muted-icon { display: none; }
.exit-fullscreen-icon { display: none; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; fill: none; }
.is-muted .volume-icon { display: none; }
.is-muted .muted-icon { display: block; }
.is-fullscreen .enter-fullscreen-icon { display: none; }
.is-fullscreen .exit-fullscreen-icon { display: block; }
.time-label { margin-left: 6px; color: rgba(255,255,255,.8); font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.control-spacer { flex: 1; }
.fullscreen-button { margin-left: 2px; }
.quality-pill { margin-left: 5px; padding: 4px 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-size: 8px; font-weight: 800; }

.video-frame:fullscreen,
.video-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

.video-frame:fullscreen #secureVideo,
.video-frame:-webkit-full-screen #secureVideo { object-fit: contain; }

.video-frame:fullscreen .player-controls,
.video-frame:-webkit-full-screen .player-controls { padding: 0 max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }

.privacy-shield {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #090b0a;
  text-align: center;
}

.shield-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 12px; border: 1px solid rgba(237,0,0,.22); border-radius: 50%; color: var(--acid); background: rgba(237,0,0,.06); }
.shield-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.privacy-shield strong { font: 700 14px "Manrope", sans-serif; }
.privacy-shield span { margin-top: 5px; color: var(--muted); font-size: 10px; }

.security-note { display: flex; align-items: center; min-height: 75px; padding: 15px; }
.lock-small { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; margin-right: 11px; border-radius: 10px; color: var(--acid); background: rgba(237,0,0,.09); }
.lock-small svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-note strong { display: block; margin-bottom: 3px; font-family: "Manrope", sans-serif; font-size: 11px; }
.security-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.info-button { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; margin-left: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--muted); background: transparent; font: 600 11px var(--serif); cursor: pointer; }

.lesson-meta { display: flex; align-items: center; padding: 21px 3px; border-bottom: 1px solid var(--line); }
.mentor-avatar { display: grid; place-items: center; width: 39px; height: 39px; margin-right: 11px; border: 1px solid rgba(237,0,0,.25); border-radius: 50%; color: var(--acid); background: #20261d; font: 700 11px "Manrope", sans-serif; }
.lesson-meta span { display: block; margin-bottom: 4px; color: #70756f; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.lesson-meta strong { display: block; font: 600 11px "Manrope", sans-serif; }
.duration-meta { margin-left: auto; padding-left: 24px; text-align: right; border-left: 1px solid var(--line); }
.session-line { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 19px; color: #696e68; font-size: 9px; }
.session-line svg { width: 13px; fill: none; stroke: var(--acid); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Video library */
.library-shell { min-height: 100dvh; background: #000; }
.library-content { width: min(100%, 760px); margin: 0 auto; padding: 48px 18px 34px; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 29px; }
.library-heading-actions { justify-content: flex-end; }
.library-heading h1 { margin: 0; font: 800 clamp(32px, 8vw, 47px)/1.05 "Manrope", sans-serif; letter-spacing: -1.8px; }
.library-heading h1 em { color: var(--acid); font: inherit; font-style: normal; }
.library-heading p { max-width: 500px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.library-count { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; padding-bottom: 3px; color: var(--muted); }
.library-count strong { color: var(--acid); font: 800 28px/1 "Manrope", sans-serif; letter-spacing: -1px; }
.library-count span { margin-top: 4px; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 17px; }
.recommendation-label { width: 100%; padding: 7px 12px; border-radius: 7px; color: #fff; background: var(--acid); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.folder-section { margin: -4px 0 20px; }
.folder-list { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: thin; }
.folder-global-icon { display: inline-grid; flex: 0 0 24px; place-items: center; width: 24px; height: 30px; padding: 0; border: 0; color: var(--acid); background: transparent; cursor: pointer; }
.folder-global-icon:hover { color: #fff; }
.folder-global-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.folder-card { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 0; padding: 6px 2px 8px; border: 0; border-radius: 0; color: #a9aea8; background: transparent; text-align: left; cursor: pointer; transition: color .18s, transform .18s; }
.folder-card:hover, .folder-card.is-active { color: #fff; background: transparent; transform: none; }
.folder-card.is-active::after { content: ""; position: absolute; right: 2px; bottom: 2px; left: 2px; height: 2px; border-radius: 2px; background: var(--acid); }
.folder-card-copy { display: grid; gap: 3px; min-width: 0; }
.folder-card strong { max-width: 150px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.folder-empty { padding: 9px 0; color: #656b64; font-size: 10px; }
.folder-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; margin: 0 0 14px; color: #a9aea8; font-size: 11px; }
.loading-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--acid); border-radius: 50%; animation: folder-spin .7s linear infinite; }
.video-grid.is-folder-loading { opacity: .38; pointer-events: none; transition: opacity .15s ease; }
@keyframes folder-spin { to { transform: rotate(360deg); } }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.collection-heading span { color: #fff; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.collection-heading small { color: var(--muted); font-size: 12px; }
.search-field { display: flex; flex: 1; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; color: #788078; background: var(--panel); }
.search-field:focus-within { border-color: rgba(237,0,0,.45); }
.search-field svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-field input { width: 100%; padding: 15px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; user-select: text; -webkit-user-select: text; }
.search-field input::placeholder { color: #727970; }
.filter-row { display: flex; gap: 6px; }
.filter-chip { padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; color: #899089; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.filter-chip.is-active { border-color: var(--acid); color: var(--acid-ink); background: var(--acid); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 4px; }
.video-pagination[hidden] { display: none; }
.video-pagination span { min-width: 110px; color: var(--muted); font-size: 13px; text-align: center; }
.pagination-button { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #fff; background: rgba(255,255,255,.07); font: inherit; font-size: 13px; cursor: pointer; }
.pagination-button:hover:not(:disabled) { background: rgba(255,255,255,.13); }
.pagination-button:disabled { opacity: .4; cursor: default; }
.video-card { overflow: hidden; border: 0; border-radius: 10px; color: var(--text); background: #111; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.video-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,.35); transform: translateY(-3px); }
.video-card[hidden] { display: none; }
.video-thumb { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #161616; }
.video-thumb::after { content: ""; position: absolute; inset: 35% 0 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9)); pointer-events: none; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform .25s ease; }
.video-card:hover .video-thumb img { transform: scale(1.035); }
.thumb-storytelling { background: #151515; }
.thumb-grid { position: absolute; inset: 0; opacity: .33; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; transform: perspective(180px) rotateX(55deg) scale(1.5) translateY(25%); transform-origin: center bottom; }
.thumb-orb { position: absolute; width: 130px; height: 130px; top: -48px; right: -30px; border: 1px solid rgba(255,80,80,.45); border-radius: 50%; box-shadow: inset 0 0 55px rgba(237,0,0,.1); }
.thumb-label { position: absolute; top: 14px; left: 15px; color: rgba(255,255,255,.68); font-size: 7px; font-weight: 800; letter-spacing: .17em; }
.video-thumb > strong { position: absolute; bottom: -8px; left: 14px; color: rgba(255,255,255,.13); font: 800 85px/1 "Manrope", sans-serif; letter-spacing: -8px; }
.thumb-duration { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 6px; border-radius: 4px; color: #fff; background: rgba(0,0,0,.66); font-size: 9px; font-variant-numeric: tabular-nums; }
.album-media-counts { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 5px; }
.album-count-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 19px; box-sizing: border-box; padding: 4px 6px; border-radius: 4px; color: #fff; background: rgba(0,0,0,.66); font-size: 9px; line-height: 11px; font-variant-numeric: tabular-nums; }
.album-count-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thumb-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--acid-ink); background: var(--acid); transform: translate(-50%, -50%); transition: transform .2s ease; }
.video-card:hover .thumb-play { transform: translate(-50%, -50%) scale(1.08); }
.thumb-play svg { width: 16px; fill: currentColor; }
.video-card-body { padding: 9px 11px 10px; }
.video-card-topline { display: flex; align-items: center; gap: 6px; color: var(--acid); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.video-card-topline i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.video-card h2 { position: absolute; right: 10px; bottom: 12px; left: 10px; z-index: 2; margin: 0; color: #fff; font: 600 15px/1.3 "DM Sans", sans-serif; letter-spacing: -.25px; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.85); }
.poster-status { position: absolute; top: 8px; right: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 4px 6px; border-radius: 4px; color: #fff; background: rgba(5,19,31,.82); font-size: 8px; font-weight: 700; }
.video-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.video-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); color: #767d75; font-size: 9px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 11px; border-radius: 50%; color: var(--acid); background: rgba(237,0,0,.08); }
.empty-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.empty-state strong { color: var(--text); font: 700 13px "Manrope", sans-serif; }
.empty-state > span:last-child { margin-top: 5px; font-size: 10px; }
.library-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 33px; color: #616861; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.library-footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--acid); opacity: .6; }

/* Home catalogue — compact poster wall */
.home-topbar {
  width: min(100%, 1080px);
  height: 128px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  border-bottom: 0;
}
.home-brand { gap: 16px; font-size: clamp(22px, 4vw, 34px); letter-spacing: -1.4px; }
.home-brand-mark { position: relative; display: block; width: 76px; height: 76px; overflow: hidden; border: 1px solid rgba(237,0,0,.52); background: #000; }
.home-brand .brand-logo { position: absolute; top: -13%; left: -30%; width: 160%; height: 160%; max-width: none; border-radius: 0; }
.home-topbar .account-menu { gap: 18px; }
.home-topbar .header-icon-button, .home-topbar .menu-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.home-topbar .header-icon-button:hover, .home-topbar .menu-toggle:hover { color: #fff; background: transparent; transform: scale(1.04); }
.home-topbar .header-icon-button svg { width: 38px; stroke-width: 2.2; }
.home-topbar .menu-toggle svg { width: 46px; stroke-width: 2.8; }
.home-topbar .account-copy, .home-upload-utility { display: none !important; }
.home-topbar .header-search input { top: calc(100% + 8px); right: -66px; width: min(360px, calc(100vw - 30px)); font-size: 15px; }
.home-content { width: min(100%, 1080px); padding: 44px 18px 42px; }
.home-featured-data { display: none !important; }
.home-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(6px, 1.5vw, 16px); align-items: end; margin-bottom: 14px; }
.home-tab {
  position: relative;
  min-width: 0;
  padding: 14px 8px 17px;
  border: 0;
  color: #fff;
  background: transparent;
  font: 800 clamp(15px, 2.8vw, 23px)/1 "Manrope", sans-serif;
  letter-spacing: -.25px;
  white-space: nowrap;
  cursor: pointer;
}
.home-tab::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: rgba(255,255,255,.08); }
.home-tab.is-active::after { right: 20%; left: 20%; height: 3px; border-radius: 3px; background: var(--acid); box-shadow: 0 0 9px rgba(237,0,0,.55); }
.home-results-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-content .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.home-content .video-card { border-radius: 0; background: #111; }
.home-content .video-card:hover { box-shadow: none; transform: none; }
.home-content .video-thumb { aspect-ratio: 2 / 3.08; }
.home-content .video-thumb::after { inset: 48% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.88)); }
.home-content .video-card h2 {
  right: 10px;
  bottom: 10px;
  left: 10px;
  overflow: hidden;
  font: 700 clamp(12px, 2.4vw, 20px)/1.22 "DM Sans", sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-media-count, .home-access-badge { position: absolute; top: 10px; z-index: 3; }
.home-media-count { left: 10px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: clamp(11px, 2vw, 17px); font-weight: 700; text-shadow: 0 1px 5px #000; }
.home-media-count svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-access-badge { right: 10px; max-width: calc(100% - 64px); overflow: hidden; padding: 4px 7px; border-radius: 5px; color: #fff; font-size: clamp(9px, 1.8vw, 15px); font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.home-access-badge.is-free { background: #05b96e; }
.home-access-badge.is-paid { background: #f23438; }
.home-content .empty-state { margin-top: 6px; }
.group-type-badge { line-height: 1; }
.group-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #555; }
.group-card-placeholder svg, .group-cover svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.group-detail { width: min(100% - 32px, 950px); margin: 32px auto 72px; }
.group-back { display: inline-block; margin-bottom: 20px; color: #ddd; text-decoration: none; }
.group-cover { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #191919; color: #777; font-size: 72px; }
.group-cover svg { width: 100px; height: 100px; }
.group-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.group-information { padding: 25px 0; }
.group-information h1 { margin: 8px 0 12px; font-size: clamp(25px, 5vw, 42px); }
.group-information p { line-height: 1.6; white-space: pre-line; }
.group-actions { display: flex; align-items: stretch; gap: 10px; width: 100%; max-width: 560px; margin-top: 25px; }
.group-actions a, .group-actions button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; width: auto; min-height: 46px; padding: 11px 12px; text-align: center; text-decoration: none; }
.group-payment { max-width: 380px; margin-top: 22px; padding: 18px; background: #171717; }
.group-payment img { display: block; width: min(100%, 300px); margin: 12px auto; }
.group-payment img[hidden] { display: none; }
.group-payment a { color: var(--acid); }

.desktop-gate { min-height: 100dvh; padding: 40px 22px; display: grid; place-items: center; }
.gate-panel { width: min(100%, 620px); padding: 43px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.gate-brand { justify-content: center; margin-bottom: 42px; font-size: 19px; }
.phone-visual { position: relative; width: 112px; height: 166px; margin: 0 auto 35px; padding: 11px 7px 8px; border: 2px solid #484d48; border-radius: 23px; background: #080a09; transform: rotate(3deg); box-shadow: 16px 16px 0 rgba(237,0,0,.05); }
.phone-speaker { width: 28px; height: 3px; margin: -4px auto 8px; border-radius: 99px; background: #343835; }
.phone-screen { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; height: 142px; overflow: hidden; border-radius: 15px; background: #1a211d; }
.phone-screen::before { content: ""; position: absolute; width: 100px; height: 100px; border: 1px solid rgba(237,0,0,.25); border-radius: 50%; top: -45px; right: -45px; }
.phone-screen i { width: 48px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.12); }
.phone-screen i:last-child { width: 35px; }
.mini-lock { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 7px; border-radius: 50%; color: var(--acid); background: rgba(237,0,0,.1); }
.mini-lock svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gate-kicker { color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.desktop-gate h1 { margin: 13px 0 14px; font: 800 clamp(36px, 5vw, 55px)/1.05 "Manrope", sans-serif; letter-spacing: -2.4px; }
.desktop-gate p { max-width: 440px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.7; }
.gate-tip { display: flex; align-items: center; gap: 12px; max-width: 400px; margin: 30px auto 37px; padding: 14px 16px; border: 1px solid rgba(237,0,0,.13); border-radius: 12px; color: #c3c6bf; background: rgba(237,0,0,.045); text-align: left; font-size: 11px; line-height: 1.45; }
.gate-tip svg { flex: 0 0 auto; width: 20px; fill: none; stroke: var(--acid); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate-panel small { color: #555a55; font-size: 9px; }

.security-toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 30px); padding: 12px 16px; border: 1px solid rgba(237,0,0,.22); border-radius: 10px; color: #dfe1da; background: #1b201b; box-shadow: 0 15px 35px rgba(0,0,0,.4); font-size: 11px; opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: .25s ease; }
.security-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.security-toast svg { width: 18px; fill: none; stroke: var(--acid); stroke-width: 1.7; }

.security-dialog { width: min(calc(100% - 32px), 390px); padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; color: var(--text); background: #171a18; box-shadow: 0 25px 80px rgba(0,0,0,.65); text-align: center; }
.security-dialog::backdrop { background: rgba(4,6,5,.78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; color: #7f847e; background: transparent; font-size: 24px; cursor: pointer; }
.dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 14px; color: var(--acid); background: rgba(237,0,0,.09); }
.dialog-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dialog-kicker { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.security-dialog h2 { margin: 9px 0 10px; font: 700 23px "Manrope", sans-serif; letter-spacing: -.7px; }
.security-dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-button { width: 100%; margin-top: 24px; padding: 13px; border: 0; border-radius: 9px; color: var(--acid-ink); background: var(--acid); font-size: 12px; font-weight: 800; cursor: pointer; }

.noscript { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 30px; background: #0b0d0c; color: #fff; text-align: center; }

/* Fullscreen player layout, following the lightweight Vidiox-style stack. */
.player-page { position: fixed; inset: 0; z-index: 999; overflow: hidden; min-height: 100dvh; background: #000; color: #fff; }
.player-page .topbar { width: min(100%, 1280px); height: auto; min-height: 47px; margin: 0 auto; padding: 8px; border: 0; }
.player-topbar { justify-content: flex-start; gap: 10px; }
.player-back { appearance: none; padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); font-size: 14px; text-decoration: none; cursor: pointer; }
.player-back:hover { background: rgba(255,255,255,.12); }
.player-status { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.player-page .content { width: min(100%, 1280px); height: calc(100dvh - 47px); margin: 0 auto; padding: 0 8px 8px; }
.player-page .content > .eyebrow,
.player-page .content > h1,
.player-page .content > .intro,
.player-page .lesson-meta,
.player-page .session-line { display: none; }
.player-page .player-card { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.player-page .video-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; }
.player-page .secure-video { width: 100%; height: 100%; }
.player-now-playing { margin: 0 0 12px; color: #c6c9c2; font-size: 12px; }
.album-playlist { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #111; }
.album-playlist-heading { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.album-playlist-heading small { color: #777d77; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.album-playlist-filters { display: flex; gap: 6px; }
.album-playlist-filters[hidden] { display: none; }
.album-playlist-filters button { padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #9ca19b; background: #080808; font-size: 9px; font-weight: 700; cursor: pointer; }
.album-playlist-filters button:hover, .album-playlist-filters button.is-active { border-color: rgba(237,0,0,.7); color: #fff; background: rgba(237,0,0,.12); }
.album-playlist-filters button[hidden] { display: none; }
#albumPlaylistItems { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.album-playlist-item { display: block; min-width: 0; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #fff; background: #080808; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.album-playlist-item:hover:not(:disabled) { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.album-playlist-item.is-active { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 8px 24px rgba(237,0,0,.18); }
.album-playlist-thumb { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #1c1c1c; }
.album-playlist-thumb::after { content: ""; position: absolute; inset: 48% 0 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(0,0,0,.52)); pointer-events: none; }
.album-playlist-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-playlist-number { position: absolute; top: 8px; left: 9px; z-index: 2; color: var(--acid); font: 800 18px/1 "Manrope", sans-serif; text-shadow: 0 1px 5px rgba(0,0,0,.9); }
.album-playlist-meta { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.album-playlist-meta svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.album-playlist-meta .album-playlist-play { fill: currentColor; stroke: none; }
.album-playlist-item:disabled { cursor: not-allowed; opacity: .45; }
.album-preview-label { display: block; overflow: hidden; padding: 7px 8px 9px; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.album-preview-empty { grid-column: 1 / -1; margin: 0; padding: 20px 8px; color: #9ca19b; font-size: 12px; text-align: center; }
.album-preview-photo { display: block; width: 100%; height: 100%; max-height: 75dvh; object-fit: contain; background: #000; }
.album-media-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.album-media-navigation[hidden] { display: none; }
.album-media-navigation button { flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff; background: #111; font-size: 11px; font-weight: 700; cursor: pointer; }
.album-media-navigation button:hover:not(:disabled) { border-color: rgba(237,0,0,.7); background: rgba(237,0,0,.12); }
.album-media-navigation button:disabled { cursor: not-allowed; opacity: .35; }
.album-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 4px; }
.album-pagination[hidden] { display: none; }
.album-pagination button { padding: 7px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; background: #080808; font-size: 10px; font-weight: 700; cursor: pointer; }
.album-pagination button:hover:not(:disabled) { border-color: rgba(237,0,0,.7); background: rgba(237,0,0,.12); }
.album-pagination button:disabled { cursor: not-allowed; opacity: .4; }
.album-pagination span { min-width: 94px; color: #8d928c; font-size: 10px; text-align: center; }
.player-page.is-album-player { position: static; overflow: auto; }
.player-page.is-album-player .content { height: auto; min-height: calc(100dvh - 47px); padding: 22px 8px 30px; }
.player-page.is-album-player .content > .eyebrow,
.player-page.is-album-player .content > h1,
.player-page.is-album-player .content > .intro { display: block; }
.player-page.is-album-player .player-card { height: auto; min-height: 0; justify-content: center; }
.player-page.is-album-player .player-card:has(.video-frame:empty) { display: none; }
.player-page.is-album-player.is-photo-view .player-card { min-height: 0; }
.player-page.is-album-player .video-frame { height: auto; aspect-ratio: 16 / 9; }
.player-page.is-album-player .player-now-playing { display: block; }
.player-page.is-album-player .album-playlist { display: grid; }

@media (max-width: 600px) {
  .home-topbar { min-height: 104px; padding: 15px 16px 9px; }
  .home-brand { gap: 10px; font-size: clamp(18px, 6.6vw, 27px); letter-spacing: -1px; }
  .home-brand-mark { width: 58px; height: 58px; }
  .home-topbar .account-menu { gap: 8px; }
  .home-topbar .header-icon-button, .home-topbar .menu-toggle { width: 43px; height: 43px; }
  .home-topbar .header-icon-button svg { width: 31px; }
  .home-topbar .menu-toggle svg { width: 38px; }
  .home-topbar .header-search input { position: fixed; top: 88px; right: 10px; left: 10px; width: auto; }
  .home-content { padding: 13px 6px 30px; }
  .home-tabs { column-gap: 5px; margin: 0 5px 10px; }
  .home-tab { padding: 12px 2px 15px; font-size: clamp(10px, 3vw, 14px); letter-spacing: -.3px; }
  .home-tab.is-active::after { right: 16%; left: 16%; }
  .home-content .video-grid { gap: 5px; }
  .home-content .video-card { border-radius: 0; }
  .home-content .video-card h2 { right: 7px; bottom: 7px; left: 7px; font-size: clamp(10px, 3.2vw, 14px); }
  .home-media-count, .home-access-badge { top: 6px; }
  .home-media-count { left: 6px; gap: 4px; font-size: clamp(9px, 3.2vw, 13px); }
  .home-media-count svg { width: 18px; height: 18px; }
  .home-access-badge { right: 6px; max-width: calc(100% - 45px); padding: 3px 5px; border-radius: 4px; font-size: clamp(8px, 2.8vw, 12px); }
  .library-content { padding: 35px 15px 28px; }
  .library-content.home-content { padding: 13px 6px 30px; }
  .featured-section { margin-inline: -15px; }
  .featured-track { gap: 9px; padding-inline: 35px; }
  .featured-card { flex-basis: 135px; }
  .featured-arrow { width: 32px; height: 48px; font-size: 32px; }
  .library-heading { align-items: flex-start; }
  .library-heading p { font-size: 12px; }
  .library-tools { align-items: stretch; flex-direction: column; }
  .filter-row { overflow-x: auto; padding-bottom: 2px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .video-card { border-radius: 7px; }
  .video-card h2 { right: 6px; bottom: 8px; left: 6px; font-size: 11px; line-height: 1.25; }
  .thumb-duration, .album-media-counts { top: 5px; left: 5px; }
  .album-count-badge, .album-card-badge { min-height: 17px; }
  .album-card-badge { top: 5px; right: 5px; }
  .thumb-duration, .album-count-badge, .album-card-badge { padding: 3px 4px; font-size: 7px; line-height: 11px; }
  .player-page .topbar { min-height: 43px; padding: 6px; }
  .player-page .content { height: calc(100dvh - 43px); padding: 0 6px 6px; }
  .player-page .video-frame { border-radius: 10px; }
  .player-back { padding: 7px 11px; font-size: 13px; }
  .player-status { font-size: 13px; }
  .player-page.is-album-player .content { min-height: auto; padding: 12px 6px 24px; }
  .player-page.is-album-player .content > h1 { font-size: 30px; }
  .album-playlist { gap: 10px; padding: 10px; }
  #albumPlaylistItems { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .album-playlist-item { border-radius: 11px; }
  .album-playlist-number { top: 6px; left: 7px; font-size: 15px; }
  .album-playlist-meta { right: 4px; bottom: 4px; width: 21px; height: 21px; }
  .album-playlist-meta svg { width: 11px; height: 11px; }
}

@media (min-width: 601px) and (max-width: 820px) {
  #albumPlaylistItems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 821px) and (max-width: 1080px) {
  #albumPlaylistItems { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 740px) and (max-width: 1024px) {
  .content { padding-top: 65px; }
  .video-frame { aspect-ratio: 16/9; }
}

@media (max-width: 370px) {
  .topbar { padding-inline: 15px; }
  .content { padding-inline: 13px; }
  .secure-pill { font-size: 8px; }
  .intro { font-size: 13px; }
  .security-note { padding-inline: 12px; }
}

@media print {
  html, body { background: #000 !important; }
  body > * { display: none !important; }
  body::after { content: "Konten dilindungi"; position: fixed; inset: 0; display: grid; place-items: center; color: #555; background: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}

/* Account, authentication, and upload workspace */
button, input, textarea { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
.primary-button { appearance: none; width: 100%; padding: 13px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--acid); box-shadow: 0 8px 25px rgba(237,0,0,.16); font-weight: 800; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.primary-button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.primary-button.compact { width: auto; padding: 11px 17px; font-size: 12px; }
.ghost-button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #d7dad3; background: rgba(255,255,255,.04); cursor: pointer; }
.form-message { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(255,112,112,.28); border-radius: 9px; color: #ffb6b6; background: rgba(255,80,80,.08); font-size: 12px; line-height: 1.5; }

.auth-page { min-height: 100dvh; overflow-x: hidden; }
.auth-layout { position: relative; z-index: 1; width: min(100%, 590px); min-height: 100dvh; margin: 0 auto; padding: clamp(45px, 8vh, 92px) 20px 60px; }
.auth-intro { display: grid; place-items: center; }
.auth-brand { display: block; width: clamp(142px, 34vw, 185px); color: inherit; text-decoration: none; }
.auth-brand img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.auth-kicker, .auth-copy > span, .dialog-heading span { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.auth-intro h1 { max-width: 750px; margin: 20px 0; font: 800 clamp(40px, 5vw, 72px)/1.03 "Manrope", sans-serif; letter-spacing: -.055em; }
.auth-intro h1 em { color: var(--acid); font-family: inherit; font-style: normal; }
.auth-intro p { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.auth-trust { display: flex; gap: 25px; color: #7f857f; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.auth-trust span { display: flex; align-items: center; gap: 8px; }
.auth-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px rgba(237,0,0,.7); }
.auth-panel { margin-top: 26px; }
.auth-card { width: 100%; padding: clamp(27px, 6vw, 43px); border: 1px solid rgba(255,255,255,.38); border-radius: 24px; background: rgba(8,8,8,.88); box-shadow: 0 30px 80px rgba(0,0,0,.48); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 31px; padding: 4px; border-radius: 11px; background: #050505; }
.auth-tabs button { padding: 9px; border: 0; border-radius: 8px; color: #777d77; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-tabs button.is-active { color: #fff; background: var(--acid); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.auth-copy > span { color: #b9141b; font-size: 13px; }
.auth-copy h1, .auth-copy h2 { margin: 17px 0 31px; font: 700 clamp(30px, 7vw, 40px)/1.12 "Manrope", sans-serif; letter-spacing: -1.4px; }
.auth-copy p { margin: 0 0 26px; color: var(--muted); font-size: 12px; }
.auth-method { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 24px; padding: 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; color: #f2f2f2; text-align: center; }
.auth-method span, .auth-method strong { padding: 13px 9px; font-size: 16px; font-weight: 500; }
.auth-method strong { border-radius: 9px; background: linear-gradient(135deg, #1d1d1d, #0f0f0f); box-shadow: inset 0 1px 1px rgba(255,255,255,.06); }
.auth-form { display: grid; gap: 17px; }
.auth-form label, .upload-form > label { display: grid; gap: 10px; color: #e6e6e6; font-size: 14px; font-weight: 600; }
.auth-form input, .upload-form input, .upload-form textarea { width: 100%; padding: 15px 16px; border: 1px solid rgba(255,255,255,.34); border-radius: 11px; outline: none; color: #fff; background: #030303; font-size: 15px; transition: border-color .18s; }
.auth-form input:focus, .upload-form input:focus, .upload-form textarea:focus { border-color: rgba(237,0,0,.55); }
.auth-form .primary-button { min-height: 55px; border-radius: 11px; background: linear-gradient(90deg, #b50000, #cc0000, #a90000); font-size: 18px; }
.telegram-hint { margin: -6px 0 0; color: #777; font-size: 11px; line-height: 1.45; }
.telegram-change { justify-self: center; margin-top: -2px; border: 0; color: #aaa; background: transparent; text-decoration: underline; cursor: pointer; }
.auth-shortcuts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 15px; }
.auth-shortcuts a { display: grid; place-items: center; min-height: 49px; padding: 10px; border: 1px solid rgba(220,0,0,.72); border-radius: 11px; color: #f1f1f1; font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.auth-shortcuts a:hover { border-color: #ed0000; background: rgba(237,0,0,.08); }
.auth-verification { margin: 17px 0 0; color: #777; font-size: 12px; line-height: 1.65; text-align: center; }
.auth-verification span { color: #8d8d8d; }

/* Public catalog */
.catalog-page { min-height: 100dvh; background: #000; }
.catalog-topbar { position: sticky; top: 0; z-index: 20; border-color: rgba(255,255,255,.08); background: rgba(0,0,0,.88); backdrop-filter: blur(18px); }
.catalog-header-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.catalog-header-nav a { color: #9b9b9b; font-size: 12px; font-weight: 700; text-decoration: none; }
.catalog-header-nav a:hover { color: #fff; }
.catalog-login { margin-left: 26px; padding: 9px 16px; border: 1px solid #c90000; border-radius: 9px; color: #fff; background: #b60000; font-size: 12px; font-weight: 800; text-decoration: none; }
.catalog-main { width: min(100%, 980px); margin: 0 auto; padding: clamp(48px, 8vw, 85px) 20px 42px; }
.catalog-hero { max-width: 690px; }
.catalog-hero > span { color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.catalog-hero h1 { margin: 14px 0 13px; font: 800 clamp(38px, 7vw, 65px)/1.03 "Manrope", sans-serif; letter-spacing: -.055em; }
.catalog-hero p { max-width: 590px; margin: 0; color: #8c8c8c; font-size: 14px; line-height: 1.7; }
.catalog-tabs { display: flex; gap: 8px; margin: 37px 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.catalog-tabs a { padding: 10px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #888; font-size: 12px; font-weight: 800; text-decoration: none; }
.catalog-tabs a.is-active { border-color: #c80000; color: #fff; background: #b30000; }
.catalog-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.catalog-search { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 48px; padding: 0 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: #090909; }
.catalog-search:focus-within { border-color: rgba(237,0,0,.7); }
.catalog-search svg { flex: 0 0 auto; width: 17px; fill: none; stroke: #777; stroke-width: 1.8; stroke-linecap: round; }
.catalog-search input { width: 100%; padding: 13px 0; border: 0; outline: 0; color: #fff; background: transparent; user-select: text; -webkit-user-select: text; }
.catalog-toolbar > span { flex: 0 0 auto; color: #777; font-size: 11px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-height: 200px; }
.catalog-grid[aria-busy="true"] { opacity: .45; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #fff; background: #0c0c0c; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.catalog-card:hover { border-color: rgba(210,0,0,.55); box-shadow: 0 18px 45px rgba(0,0,0,.48); transform: translateY(-4px); }
.catalog-poster { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(circle at 70% 15%, rgba(210,0,0,.28), transparent 38%), linear-gradient(145deg, #1c1c1c, #090909); }
.catalog-poster::after { content: "K"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.055); font: 800 76px "Manrope", sans-serif; }
.catalog-poster img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.catalog-card:hover .catalog-poster img { transform: scale(1.035); }
.catalog-type, .catalog-access { position: absolute; z-index: 3; top: 9px; padding: 5px 7px; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.catalog-type { left: 9px; color: #fff; background: rgba(0,0,0,.72); }
.catalog-access { right: 9px; color: #fff; }
.catalog-access.is-free { background: #08783f; }
.catalog-access.is-paid { background: #b30000; }
.catalog-card-body { padding: 15px; }
.catalog-card-body h2 { overflow: hidden; margin: 0; font: 700 16px/1.35 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-body p { display: -webkit-box; min-height: 38px; overflow: hidden; margin: 7px 0 13px; color: #838383; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-card-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); color: #747474; font-size: 9px; }
.catalog-card-body > strong { display: block; margin-top: 13px; color: #e41a1a; font-size: 11px; }
.catalog-empty { margin-top: 5px; }
.catalog-error { margin-top: 18px; }
.catalog-footer { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 80px; border-top: 1px solid rgba(255,255,255,.07); color: #666; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.catalog-footer i { width: 4px; height: 4px; border-radius: 50%; background: #bd0000; }

.dashboard-topbar { gap: 20px; }
.account-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #fff; background: #111; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.header-icon-button:hover { border-color: rgba(237,0,0,.7); background: #1a1a1a; transform: translateY(-1px); }
.header-icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-upload-button { border-color: var(--acid); background: var(--acid); }
.header-upload-button:hover { background: #ff1515; }
.header-search { position: relative; }
.header-search input { position: absolute; top: calc(100% + 12px); right: 0; z-index: 20; width: min(280px, calc(100vw - 30px)); padding: 12px 14px; border: 1px solid rgba(237,0,0,.55); border-radius: 10px; outline: 0; color: #fff; background: #111; box-shadow: 0 15px 45px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; user-select: text; -webkit-user-select: text; }
.header-search.is-open input { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search.is-open .header-icon-button { border-color: var(--acid); color: var(--acid); }
.account-copy { display: grid; min-width: 120px; }
.account-copy strong { overflow: hidden; max-width: 180px; color: #e4e7e1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { overflow: hidden; max-width: 180px; color: #646a64; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.library-actions { display: flex; align-items: center; gap: 28px; }
.notice { margin: -5px 0 25px; padding: 12px 15px; border: 1px solid rgba(255,190,80,.2); border-radius: 10px; color: #e8c687; background: rgba(255,180,60,.06); font-size: 11px; }
.featured-section { position: relative; margin: 0 -18px 24px; }
.featured-track { display: flex; gap: 12px; overflow-x: auto; padding: 0 42px 5px; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x proximity; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-card { position: relative; flex: 0 0 clamp(125px, 24vw, 175px); aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; color: #fff; background: #151515; text-decoration: none; scroll-snap-align: center; }
.featured-card::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.92)); pointer-events: none; }
.featured-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.featured-card:hover img { transform: scale(1.04); }
.featured-card span { position: absolute; right: 9px; bottom: 10px; left: 9px; z-index: 1; font-size: 12px; line-height: 1.25; text-align: center; text-shadow: 0 2px 7px #000; }
.featured-skeleton { overflow: hidden; background: #1c1e1d; pointer-events: none; }
.featured-skeleton::after { inset: auto 10px 12px; height: 30px; border-radius: 5px; background: linear-gradient(#303331 0 0) 0 0 / 100% 9px no-repeat, linear-gradient(#292c2a 0 0) 50% 19px / 72% 8px no-repeat; }
.featured-skeleton::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.09) 45%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.09) 55%, transparent 70%); transform: translateX(-100%); animation: featured-shimmer 1.45s ease-in-out infinite; }
.featured-load-message { display: grid; place-items: center; flex: 1 0 100%; min-height: 180px; margin: 0; color: #777d78; font-size: 12px; text-align: center; }
@keyframes featured-shimmer { to { transform: translateX(100%); } }
.featured-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 4px; border: 0; border-radius: 7px; color: #000; background: #fff; font-size: 34px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.featured-arrow:disabled { display: none; }
.featured-prev { left: 8px; }
.featured-next { right: 8px; }
.video-card.is-processing { cursor: default; opacity: .76; }
.video-card.is-processing .thumb-play { color: var(--acid); animation: pulse 1.5s ease-in-out infinite; }
.video-card.is-photo { width: 100%; padding: 0; border: 0; font: inherit; cursor: zoom-in; }
@media (prefers-reduced-motion: reduce) { .featured-skeleton::before, .video-frame.is-media-loading::after, .photo-frame.is-media-loading::after { animation: none; } }
.album-card-badge { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; min-height: 19px; box-sizing: border-box; padding: 4px 6px; border-radius: 4px; color: #fff; background: var(--acid); font-size: 9px; font-weight: 800; line-height: 11px; letter-spacing: 0; }
.album-card-access { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 4px 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; color: #fff; background: rgba(0,0,0,.72); font-size: 9px; font-weight: 800; }
.thumb-0 { background: #171717; }
.thumb-1 { background: #202020; }
.thumb-2 { background: #131313; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.92); } }

.photo-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(4,6,5,.94); cursor: zoom-out; }
.photo-lightbox .photo-stage { position: relative; max-width: 100%; max-height: 100%; }
.photo-lightbox .photo-lightbox-canvas { display: block; max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.7); object-fit: contain; }
.photo-lightbox-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); font-size: 22px; line-height: 1; cursor: pointer; z-index: 3; }
.photo-lightbox[hidden] { display: none; }

.photo-frame { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #0b0b0b; }
.photo-frame.is-media-loading { width: 100%; min-height: min(72dvh, 720px); aspect-ratio: 16 / 9; }
.photo-frame .photo-stage { position: relative; width: 100%; display: grid; place-items: center; }
.photo-frame #photoCanvas { display: block; width: 100%; height: auto; max-height: 72dvh; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.photo-shield { position: absolute; inset: 0; z-index: 2; background: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.photo-frame[hidden] { display: none; }

.upload-dialog { width: min(calc(100% - 28px), 570px); max-height: calc(100dvh - 30px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: var(--text); background: #111; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.upload-dialog::backdrop { background: rgba(4,6,5,.82); backdrop-filter: blur(8px); }
.folders-dialog { width: min(calc(100% - 28px), 430px); max-height: calc(100dvh - 30px); padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: var(--text); background: #111; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.folders-dialog::backdrop { background: rgba(4,6,5,.82); backdrop-filter: blur(8px); }
.folders-dialog-heading { position: relative; display: flex; justify-content: space-between; margin-bottom: 18px; }
.folders-dialog-heading span { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.folders-dialog-heading h2 { margin: 5px 0 0; font: 700 22px "Manrope", sans-serif; }
.all-folder-list { display: grid; gap: 8px; max-height: min(60dvh, 430px); overflow-y: auto; }
.all-folder-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #a9aea8; background: #080808; text-align: left; cursor: pointer; }
.all-folder-item:hover, .all-folder-item.is-active { border-color: rgba(237,0,0,.7); color: #fff; background: rgba(237,0,0,.1); }
.all-folder-item.all-content-choice { grid-template-columns: minmax(0,1fr); }
.all-folder-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-form { display: grid; gap: 17px; padding: 30px; }
.dialog-heading { position: relative; display: flex; justify-content: space-between; }
.dialog-heading h2 { margin: 5px 0 0; font: 700 24px "Manrope", sans-serif; }
.upload-mode { display: flex; gap: 8px; margin: 0; padding: 4px; border: 0; border-radius: 10px; background: #050505; }
.upload-mode legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upload-mode label { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; border-radius: 7px; color: #777d77; font-size: 11px; font-weight: 700; cursor: pointer; }
.upload-mode label:has(input:checked) { color: #fff; background: var(--acid); }
.upload-mode input { position: absolute; opacity: 0; pointer-events: none; }
.upload-form textarea { resize: vertical; }
.upload-folder-picker { display: grid; gap: 8px; color: #cbd0c9; font-size: 11px; font-weight: 700; }
.upload-folder-row, .new-folder-field { display: flex; gap: 8px; }
.upload-folder-row select, .new-folder-field input { flex: 1; min-width: 0; padding: 12px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; outline: none; color: #fff; background: #050505; font-size: 13px; }
.upload-folder-row .ghost-button, .new-folder-field .ghost-button { flex: 0 0 auto; white-space: nowrap; }
.file-drop { padding: 15px; border: 1px dashed rgba(237,0,0,.27); border-radius: 11px; background: rgba(237,0,0,.025); }
.file-drop input { padding: 0; border: 0; background: transparent; }
.file-drop span, .file-drop small { color: #717771; font-weight: 400; }
.file-drop small { color: var(--acid); }
.file-title-list { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.025); }
.file-title-list > strong { color: #cbd0c9; font-size: 11px; }
.file-title-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 10px; }
.file-title-row span { overflow: hidden; color: #858b84; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-title-row input { min-width: 0; padding: 9px 10px; }
.upload-progress { display: grid; gap: 8px; }
.upload-progress div { display: flex; justify-content: space-between; color: #a9aea8; font-size: 11px; }
.upload-progress progress { width: 100%; height: 7px; accent-color: var(--acid); }

@media (max-width: 760px) {
  .auth-layout { padding: 35px 14px 40px; }
  .auth-panel { margin-top: 18px; }
  .auth-card { padding: 27px 22px; }
  .catalog-topbar { padding-inline: 15px; }
  .catalog-header-nav { display: none; }
  .catalog-login { margin-left: auto; }
  .catalog-main { padding: 42px 15px 32px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-card-body { padding: 11px; }
  .catalog-card-body h2 { font-size: 13px; }
  .catalog-card-body p { min-height: 34px; font-size: 10px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .catalog-toolbar > span { align-self: flex-end; }
  .dashboard-topbar { flex-wrap: wrap; height: auto; min-height: 72px; padding-block: 12px; }
  .account-menu { gap: 6px; }
  .header-icon-button { width: 34px; height: 34px; border-radius: 9px; }
  .header-search input { position: fixed; top: 78px; right: 12px; left: 12px; width: auto; }
  .account-copy { display: none; }
  .library-heading { gap: 25px; }
  .library-actions { width: 100%; justify-content: space-between; }
  .library-count { margin-left: auto; }
  .upload-form { padding: 23px 18px; }
}

@media (max-width: 600px) {
  .featured-section { margin-inline: -15px; }
  .featured-track { gap: 9px; padding-inline: 35px; }
  .featured-card { flex-basis: 135px; }
  .featured-arrow { width: 34px; height: 34px; font-size: 28px; }
  .album-card-badge { top: 5px; right: 5px; min-height: 17px; padding: 3px 4px; font-size: 7px; line-height: 11px; }
}

/* Sidebar and account workspaces */
.menu-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.menu-toggle:hover { color: var(--acid); }
.menu-toggle svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #303030; font-family: "Manrope", sans-serif; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-small { width: 38px; height: 38px; color: #fff; background: var(--acid); font-size: 12px; }
.sidebar-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(7,12,16,.78); backdrop-filter: blur(3px); animation: sidebar-fade .2s ease; }
.app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; display: flex; flex-direction: column; width: min(90vw, 350px); overflow: hidden; padding: 0; border-right: 1px solid rgba(255,255,255,.11); color: #fff; background: #595959; box-shadow: 24px 0 80px rgba(0,0,0,.45); transform: translateX(-102%); transition: transform .26s cubic-bezier(.22,.8,.25,1); }
.app-sidebar.is-open { transform: translateX(0); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 17px 19px 16px 22px; border-bottom: 1px solid rgba(255,255,255,.08); background: #30363a; }
.sidebar-brand { display: flex; align-items: center; min-width: 0; gap: 11px; color: #fff; text-decoration: none; }
.sidebar-brand-copy { display: grid; min-width: 0; gap: 7px; }
.sidebar-brand-copy { gap: 3px; }
.sidebar-brand-copy strong { overflow: hidden; font: 800 14px "Manrope", sans-serif; letter-spacing: -.35px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand-copy small { overflow: hidden; color: #d0d1d1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-close { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #294353; cursor: pointer; transition: color .18s, background .18s, transform .18s; }
.sidebar-close:hover { color: #fff; background: #34566b; transform: rotate(4deg); }
.sidebar-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sidebar-avatar { width: 44px; height: 44px; color: #fff; background: var(--acid); font-size: 13px; }
.sidebar-avatar svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; padding: 13px 16px 19px; scrollbar-width: thin; }
.sidebar-section-label { display: block; margin: 16px 12px 6px; padding-bottom: 8px; border-bottom: 2px solid rgba(32,62,82,.8); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.sidebar-contribution-label { margin-top: 22px; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 11px; color: #fff; background: transparent; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; transition: color .16s, background .16s, transform .16s; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.sidebar-link[aria-current="page"] { color: #fff; }
.sidebar-link svg:first-child { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link-label { min-width: 0; }
.sidebar-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: 9px; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); border-top: 0; background: #595959; }
.sidebar-footer .sidebar-link { min-height: 48px; }
.sidebar-logout { color: #f3292f; }
.sidebar-logout:hover { color: #ff5960; background: rgba(237,0,0,.08); }
.sidebar-help { justify-content: flex-end; gap: 8px; color: #fff; font-size: 11px; text-align: right; }
.sidebar-help .sidebar-link-label { max-width: 116px; text-align: center; }
.sidebar-help svg:first-child { order: 2; flex-basis: 22px; width: 22px; height: 22px; }
.sidebar-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1002; width: max-content; max-width: calc(100% - 32px); padding: 14px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; background: #27333b; box-shadow: 0 16px 40px rgba(0,0,0,.38); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .2s ease, transform .2s ease; }
.sidebar-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes sidebar-fade { from { opacity: 0; } }
.header-back-link { color: #9da39c; font-size: 11px; text-decoration: none; }
.header-back-link:hover { color: #fff; }
.account-shell { background: #000; }
.account-content { width: min(100%, 900px); margin: 0 auto; padding: 48px 18px 46px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.workspace-heading h1 { margin: 7px 0 8px; font: 800 clamp(32px, 8vw, 48px)/1.05 "Manrope", sans-serif; letter-spacing: -1.8px; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.workspace-heading-with-action { align-items: center; }
.workspace-heading-with-action .primary-button { flex: 0 0 auto; }
.profile-layout { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); gap: 14px; align-items: start; }
.profile-card, .content-panel { padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #111; }
.profile-card-heading, .content-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.profile-card-heading > span, .content-panel-heading > div > span { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.profile-card-heading h2, .content-panel-heading h2 { margin: 6px 0 0; font: 700 20px "Manrope", sans-serif; letter-spacing: -.5px; }
.profile-identity-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-identity-card .profile-card-heading { width: 100%; text-align: left; }
.profile-avatar-large { width: 116px; height: 116px; margin: 4px 0 14px; color: #fff; background: var(--acid); font-size: 34px; }
.profile-avatar-help { max-width: 190px; margin: 0 0 15px; color: #777d77; font-size: 11px; line-height: 1.5; }
.profile-file-button { position: relative; display: inline-block; overflow: hidden; }
.profile-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.text-button { margin-top: 10px; padding: 0; border: 0; color: #888e87; background: transparent; font-size: 11px; cursor: pointer; }
.text-button:hover { color: #fff; }
.profile-password-card { grid-column: 2; }
.workspace-form { display: grid; gap: 15px; }
.workspace-form label { display: grid; gap: 8px; color: #cbd0c9; font-size: 11px; font-weight: 700; }
.workspace-form input, .workspace-form textarea, .workspace-form select { width: 100%; padding: 12px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; outline: none; color: #fff; background: #050505; font-size: 13px; user-select: text; -webkit-user-select: text; }
.workspace-form textarea { resize: vertical; }
.workspace-form input:focus, .workspace-form textarea:focus, .workspace-form select:focus { border-color: rgba(237,0,0,.55); }
.workspace-form label small { margin-top: -3px; color: #777d77; font-size: 10px; font-weight: 400; }
.workspace-form .primary-button { margin-top: 2px; }
.form-message.is-success { border-color: rgba(94,220,130,.25); color: #a4e7b8; background: rgba(70,190,100,.08); }
.content-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.content-stat { min-height: 112px; padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #111; }
.content-stat span, .content-stat small { display: block; color: #858b84; font-size: 10px; }
.content-stat strong { display: block; margin: 12px 0 4px; color: #fff; font: 800 27px/1 "Manrope", sans-serif; letter-spacing: -1px; }
.content-stat small { color: var(--acid); font-size: 9px; }
.content-panel { margin-top: 14px; }
.content-panel-heading { align-items: center; margin-bottom: 14px; }
.content-panel-heading h2 { font-size: 19px; }
.managed-folders { display: grid; gap: 7px; }
.managed-empty-copy { margin: 2px 0; color: #777d77; font-size: 11px; line-height: 1.5; }
.managed-folder-row, .managed-content-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); }
.managed-folder-row:first-child, .managed-content-row:first-child { border-top: 0; }
.managed-folder-icon { display: grid; flex: 0 0 33px; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--acid); background: rgba(237,0,0,.1); font-size: 15px; }
.managed-folder-copy, .managed-content-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.managed-folder-copy strong, .managed-content-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.managed-folder-copy small, .managed-content-copy small { overflow: hidden; color: #777d77; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.managed-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.item-action { padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #bfc4bd; background: rgba(255,255,255,.04); font-size: 10px; cursor: pointer; }
.item-action:hover { border-color: rgba(237,0,0,.55); color: #fff; }
.item-action.is-danger:hover { border-color: rgba(255,100,100,.45); color: #ffb6b6; background: rgba(255,80,80,.08); }
.content-list-heading { margin-bottom: 8px; }
.content-filter-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: #050505; }
.content-filter { padding: 7px 9px; border: 0; border-radius: 6px; color: #777d77; background: transparent; font-size: 10px; cursor: pointer; }
.content-filter.is-active { color: #fff; background: var(--acid); }
.managed-content-marker { display: inline-grid; flex: 0 0 48px; place-items: center; height: 27px; border-radius: 6px; color: var(--acid); background: rgba(237,0,0,.1); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.managed-content-marker.is-album { color: #fff; background: #383838; }
.content-empty { min-height: 130px; margin-top: 8px; }
.collection-total-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.collection-total-grid article { padding: 19px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #111; }
.collection-total-grid span { display: block; color: #858b84; font-size: 11px; }
.collection-total-grid strong { display: block; margin-top: 8px; font: 800 30px/1 "Manrope", sans-serif; }
.collection-section { margin-top: 14px; padding: 21px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #111; }
.collection-section .content-panel-heading { margin-bottom: 9px; }
.collection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.collection-item { display: grid; gap: 5px; min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #fff; background: #080808; text-decoration: none; }
.collection-item:hover, .collection-item.is-selected { border-color: rgba(237,0,0,.65); background: rgba(237,0,0,.08); }
.collection-item strong, .collection-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-item strong { font-size: 12px; }
.collection-item small { color: #858b84; font-size: 10px; }
.workspace-dialog { width: min(calc(100% - 28px), 470px); max-height: calc(100dvh - 30px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: #fff; background: #111; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.workspace-dialog::backdrop { background: rgba(4,6,5,.82); backdrop-filter: blur(8px); }
.workspace-dialog .workspace-form { padding: 24px; }

@media (max-width: 760px) {
  .account-content { padding: 35px 15px 30px; }
  .workspace-heading, .workspace-heading-with-action { align-items: flex-start; flex-direction: column; }
  .workspace-heading-with-action .primary-button { width: auto; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-password-card { grid-column: auto; }
  .content-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-list { grid-template-columns: 1fr; }
  .menu-toggle { width: 34px; height: 34px; }
  .header-back-link { display: none; }
}

@media (max-width: 430px) {
  .profile-card, .content-panel { padding: 18px; }
  .content-panel-heading { align-items: flex-start; flex-direction: column; }
  .content-list-heading { align-items: flex-start; }
  .managed-content-row { align-items: flex-start; }
  .managed-content-row .managed-actions { flex-direction: column; }
  .managed-folder-row { align-items: flex-start; }
  .managed-folder-row .managed-actions { flex-direction: column; }
  .content-filter-tabs { width: 100%; }
  .content-filter { flex: 1; }
}

@media (max-width: 760px) {
  .dashboard-topbar.home-topbar { min-height: 104px; padding: 15px 16px 9px; }
  .home-topbar .account-menu { gap: 8px; }
  .home-topbar .menu-toggle { width: 43px; height: 43px; }
}
