@import url('data:text/css,');

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #08060c;
  --panel-raised: #0e0b14;
  --line: #23202a;
  --text: #f3f1f7;
  --muted: #9893a4;
  --purple: #a77bff;
  --purple-deep: #7447d8;
  --red: #ff3e62;
  --sidebar: 224px;
  --topbar: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); min-height: 100vh; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.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; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--topbar);
  display: grid; grid-template-columns: var(--sidebar) minmax(240px, 620px) 1fr; align-items: center; gap: 28px;
  padding: 0 24px; background: rgba(0,0,0,.88); border-bottom: 1px solid rgba(35,32,42,.8); backdrop-filter: blur(20px);
}
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.035em; font-size: 18px; }
.brand img { filter: drop-shadow(0 0 13px rgba(167,123,255,.34)); }
.brand strong { color: var(--purple); font-weight: 760; }
.search-wrap { height: 42px; display: flex; align-items: center; gap: 10px; background: #09080b; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
.search-wrap:focus-within { border-color: var(--purple-deep); box-shadow: 0 0 0 3px rgba(116,71,216,.12); }
.search-wrap svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-wrap input::placeholder { color: #6f6a78; }
.search-wrap kbd { color: #77717f; border: 1px solid var(--line); background: #111014; padding: 2px 7px; border-radius: 5px; font: 11px ui-monospace, monospace; }
.zentr-link { justify-self: end; text-decoration: none; color: var(--muted); font: 12px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.zentr-link:hover { color: var(--purple); }

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; padding-top: var(--topbar); }
.sidebar { position: fixed; top: var(--topbar); bottom: 0; width: var(--sidebar); padding: 22px 16px; border-right: 1px solid var(--line); background: #020203; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 13px; margin-bottom: 5px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 580; }
.nav-item svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: var(--text); background: var(--panel-raised); }
.nav-item.active { color: var(--text); border-color: #2e263d; background: linear-gradient(100deg, rgba(116,71,216,.2), rgba(14,11,20,.9)); }
.nav-item.active svg { color: var(--purple); }
.sidebar-rule { height: 1px; margin: 22px 9px; background: var(--line); }
.server-card { display: flex; gap: 10px; padding: 10px 12px; }
.server-card strong, .server-card span { display: block; }
.server-card strong { font-size: 12px; }
.server-card div > span { margin-top: 5px; color: var(--muted); font: 10px/1.45 ui-monospace, monospace; }
.live-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; background: #6ee7a8; border-radius: 50%; box-shadow: 0 0 10px rgba(110,231,168,.65); }

main { grid-column: 2; width: 100%; max-width: 1580px; min-width: 0; margin: 0 auto; padding: 28px clamp(20px, 3.25vw, 50px) 72px; }
.hero { position: relative; min-height: min(420px, 42vw); display: flex; align-items: end; overflow: hidden; isolation: isolate; border: 1px solid #2a2238; border-radius: 14px; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.08) 72%), linear-gradient(0deg, rgba(0,0,0,.8), transparent 55%); }
.hero-art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 45%, rgba(116,71,216,.45), transparent 28%), linear-gradient(135deg, #170c25, #050506 60%); background-position: center; background-size: cover; filter: saturate(.85); transform: scale(1.01); }
.hero-content { width: min(620px, 70%); padding: clamp(28px, 4vw, 54px); }
.eyebrow { margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font: 700 10px ui-monospace, monospace; }
.eyebrow span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); vertical-align: 1px; }
.hero h1 { margin: 0; max-width: 560px; font-size: clamp(34px, 5vw, 66px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero-content > p:not(.eyebrow) { color: #bbb6c4; margin: 18px 0 24px; max-width: 460px; line-height: 1.6; }
.primary-button { display: inline-flex; align-items: center; gap: 9px; color: #0b0710; background: var(--text); border: 0; border-radius: 8px; padding: 11px 17px; font-weight: 750; cursor: pointer; box-shadow: 0 8px 30px rgba(255,255,255,.1); }
.primary-button:hover { background: #fff; transform: translateY(-1px); }
.primary-button svg { width: 18px; fill: currentColor; }

.library { padding-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.video-count { color: var(--muted); font: 11px ui-monospace, monospace; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px 16px; }
.video-card { min-width: 0; }
.thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); cursor: pointer; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, filter .35s; }
.thumbnail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.4), transparent 50%); opacity: .7; }
.thumbnail:hover img { transform: scale(1.035); filter: brightness(.82); }
.play-badge { position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(116,71,216,.88); transform: translate(-50%,-45%) scale(.88); opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 10px 25px rgba(0,0,0,.4); }
.thumbnail:hover .play-badge { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-badge svg { width: 21px; fill: white; }
.duration { position: absolute; right: 7px; bottom: 7px; z-index: 2; color: white; background: rgba(0,0,0,.86); border-radius: 4px; padding: 3px 5px; font: 10px ui-monospace, monospace; }
.card-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 12px 2px 0; }
.card-body > div { min-width: 0; }
.avatar { width: 42px; height: 42px; display: block; object-fit: cover; background: var(--panel-raised); border: 1px solid #342b42; border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.card-body h3 { display: -webkit-box; min-height: 38px; margin: 0 0 5px; overflow: hidden; color: var(--text); font-size: 14px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-body p { margin: 0 0 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.card-body .metadata { margin-top: 3px; font-family: ui-monospace, monospace; font-size: 10px; }
.skeleton { aspect-ratio: 16/10.5; border-radius: 10px; background: linear-gradient(100deg, #0c0a10 20%, #17121f 40%, #0c0a10 60%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.empty-state { text-align: center; margin: 80px auto; max-width: 440px; color: var(--muted); }
.empty-state h3 { color: var(--text); }
.empty-icon { margin: auto; width: 58px; height: 42px; display: grid; place-items: center; color: white; background: var(--purple-deep); border-radius: 12px; }

.player-dialog { width: min(1100px, calc(100vw - 36px)); max-height: calc(100vh - 36px); padding: 0; color: var(--text); background: #070609; border: 1px solid #31283e; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.85), 0 0 60px rgba(116,71,216,.12); }
.player-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(10px); }
.player-shell { max-height: calc(100vh - 38px); overflow: auto; border-radius: inherit; }
.close-button { position: absolute; z-index: 30; right: 12px; top: 12px; width: 34px; height: 34px; color: var(--text); background: rgba(23,19,29,.92); border: 1px solid #4a3d5c; border-radius: 50%; font-size: 23px; line-height: 1; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.45); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: black; }
.video-frame .video-js { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; color: var(--purple); font-size: 13px; }
.video-frame .vjs-tech { width: 100%; height: 100%; object-fit: contain; }
.video-frame .vjs-loading-spinner { top: 50%; left: 50%; }
.video-frame .vjs-poster { background-size: cover; }
.video-frame .vjs-control-bar { height: 4em; background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.48)); }
.video-frame .vjs-play-progress, .video-frame .vjs-volume-level { background: var(--purple); }
.video-frame .vjs-big-play-button { width: 72px; height: 52px; margin: -26px 0 0 -36px; border: 0; border-radius: 12px; background: rgba(116,71,216,.9); line-height: 52px; box-shadow: 0 10px 36px rgba(0,0,0,.55); }
.video-frame .vjs-big-play-button:hover { background: var(--purple-deep); }
.player-details { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px 24px; }
.player-details h2 { margin: 0; font-size: clamp(18px, 3vw, 28px); letter-spacing: -.03em; }
.source-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font: 10px ui-monospace, monospace; }
.source-pill span { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 8px #6ee7a8; }

.comments { padding: 2px 24px 28px; border-top: 1px solid var(--line); }
.comments-heading { display: flex; align-items: baseline; gap: 10px; padding: 22px 0 18px; }
.comments-heading h3 { margin: 0; font-size: 18px; }
.comments-heading span { color: var(--muted); font: 10px ui-monospace, monospace; }
.comment-login { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding: 16px 18px; border: 1px solid #30283d; border-radius: 10px; background: linear-gradient(110deg, rgba(116,71,216,.14), rgba(14,11,20,.7)); }
.comment-login strong, .comment-login span { display: block; }
.comment-login strong { margin-bottom: 4px; font-size: 13px; }
.comment-login span { color: var(--muted); font-size: 11px; }
.comment-form { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; margin-bottom: 26px; }
.comment-avatar-wrap { position: relative; width: 38px; height: 38px; }
.comment-avatar, .comment-initial { width: 38px; height: 38px; border: 1px solid #342b42; border-radius: 50%; background: var(--panel-raised); object-fit: cover; }
.comment-avatar { position: absolute; inset: 0; z-index: 1; }
.comment-fields { min-width: 0; }
.comment-fields label { display: block; }
.comment-fields textarea { width: 100%; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #37313f; outline: 0; }
.comment-fields textarea { display: block; min-height: 44px; padding: 7px 0; resize: vertical; line-height: 1.45; }
.comment-fields textarea:focus { border-color: var(--purple); }
.comment-identity { display: flex; align-items: center; gap: 10px; margin: 1px 0 4px; }
.comment-identity strong { font-size: 12px; }
.comment-identity button { padding: 0; color: var(--muted); background: none; border: 0; font-size: 10px; cursor: pointer; }
.comment-identity button:hover { color: var(--purple); }
.comment-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 40px; padding-top: 8px; }
#comment-status { margin-right: auto; color: var(--muted); font-size: 11px; }
.comment-button { padding: 8px 14px; color: #0b0710; background: var(--purple); border: 0; border-radius: 999px; font-size: 12px; font-weight: 750; cursor: pointer; }
.comment-button:hover { background: #bd9cff; }
.comment-button:disabled { opacity: .5; cursor: wait; }
.comments-list { display: grid; gap: 22px; }
.comment { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
.comment-initial { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7447d8, #38215e); font-size: 13px; font-weight: 800; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; margin: 1px 0 5px; }
.comment-meta strong { font-size: 12px; }
.comment-meta time { color: var(--muted); font: 10px ui-monospace, monospace; }
.comment-message { margin: 0; color: #d5d1dc; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-empty { margin: 0; padding: 8px 0 4px 50px; color: var(--muted); font-size: 12px; }

@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 960px) {
  :root { --sidebar: 78px; }
  .topbar { grid-template-columns: 50px minmax(200px, 1fr) auto; }
  .brand span, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; }
  .nav-item svg { flex: 0 0 auto; }
  .server-card { display: none; }
  main { padding-inline: clamp(18px, 3vw, 30px); }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  :root { --topbar: 62px; }
  .topbar { grid-template-columns: auto 1fr; gap: 14px; padding: 0 16px; }
  .brand img { width: 32px; }
  .search-wrap kbd, .zentr-link, .sidebar { display: none; }
  .shell { display: block; }
  main { padding: 14px 12px 52px; }
  .hero { min-height: 430px; border-radius: 12px; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.08) 78%); }
  .hero-content { width: 100%; padding: 24px 20px; }
  .hero h1 { font-size: 38px; }
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .library { padding-top: 30px; }
  .section-heading { margin-bottom: 14px; }
  .player-details { align-items: start; }
  .source-pill { display: none; }
  .comments { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
