:root { color-scheme: dark; --bg: #111315; --panel: #191c1f; --line: #2b2f33; --text: #f0f1ed; --muted: #8c9399; --accent: #c4ee85; --accent-dark: #202b1b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .32; }
button, a, select, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app { max-width: 1536px; margin: 0 auto; padding: 0 48px; }
.topbar { display: flex; align-items: center; gap: 32px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 29px; font-weight: 750; letter-spacing: -1.2px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--bg); }
.brand-mark .icon { width: 27px; height: 27px; transform: translateX(-1px); }
.brand-dot { color: var(--accent); }
.header-label { color: #727980; font-size: 10px; letter-spacing: 2px; border-left: 1px solid var(--line); padding-left: 30px; }
.library-badge { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 12px; color: #b0b7bc; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 43px 0 29px; }
.eyebrow { margin: 0 0 8px; font-size: 10px; font-weight: 550; color: var(--muted); letter-spacing: 1.7px; }
h1 { font-size: clamp(27px, 3vw, 38px); font-weight: 600; letter-spacing: -1.4px; line-height: 1.2; margin: 0; }
.refresh-button { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #34393d; color: #c2c8ca; background: transparent; padding: 10px 14px; border-radius: 8px; font-size: 12px; transition: background .2s, border-color .2s; }
.refresh-button .icon { width: 16px; height: 16px; }
.refresh-button:hover { border-color: #687262; background: var(--panel); }
.refresh-button[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 27px; align-items: start; }
.watch-column { min-width: 0; }
.player { background: #1a1d20; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.video-stage { background: #080a0c; aspect-ratio: 16 / 9; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
video { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: radial-gradient(ellipse at 50% 45%, #1b2520 0, #0d1112 50%, #080a0c 100%); }
.placeholder-icon { color: var(--accent); background: #c4ee850c; border: 1px solid #c4ee8520; border-radius: 18px; padding: 20px; margin-bottom: 8px; }
.placeholder-icon .icon { width: 34px; height: 34px; }
.stage-placeholder p { font-size: 18px; font-weight: 550; margin: 14px 0 5px; }
.stage-placeholder > span:last-child { color: var(--muted); font-size: 12px; }
.stage-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--bg); background: var(--accent); border: 1px solid #ffffff30; box-shadow: 0 4px 32px #0004; transition: background .2s, scale .2s; }
.stage-play:hover { background: #d5f9a0; scale: 1.05; }
.stage-play .icon { width: 36px; height: 36px; }
.stage-chip { position: absolute; top: 17px; left: 17px; display: flex; align-items: center; gap: 7px; background: #111315b8; backdrop-filter: blur(10px); padding: 5px 10px; border: 1px solid #ffffff14; border-radius: 5px; font-size: 10px; color: #e2e4e1; pointer-events: none; }
.video-message { position: absolute; bottom: 17px; left: 17px; right: 17px; width: fit-content; max-width: calc(100% - 34px); padding: 10px 14px; color: #f1e7d1; background: #25221cef; border: 1px solid #5b4e32; border-radius: 7px; font-size: 12px; }
.player-controls { padding: 15px 19px 17px; }
.timeline-row { display: flex; align-items: center; gap: 13px; }
.time { color: #bdc3c7; font-size: 11px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
input[type="range"] { --progress: 0%; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; height: 20px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), #42474b var(--progress)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: #42474b; }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin-top: -3.5px; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 0; background: var(--accent); border-radius: 50%; }
.timeline { width: 100%; min-width: 0; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.transport, .utility-controls, .volume-control { display: flex; align-items: center; gap: 10px; }
.icon-button { border: 0; background: transparent; color: #bcc4c9; width: 32px; height: 36px; border-radius: 7px; display: grid; place-items: center; padding: 5px; transition: color .2s, background .2s; }
.icon-button:hover:not(:disabled) { background: #ffffff0a; color: var(--accent); }
.seek-button { position: relative; }
.seek-button .icon { width: 25px; height: 25px; }
.seek-button span { position: absolute; font-size: 9px; top: 12px; left: 14px; font-weight: 650; pointer-events: none; }
.play-button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--bg); background: var(--accent); border: 0; border-radius: 50%; padding: 0; transition: background .2s; }
.play-button:hover:not(:disabled) { background: #daf7b3; }
.play-button .icon { width: 26px; height: 26px; }
.control-divider { height: 20px; width: 1px; background: #363b3f; margin: 0 4px; }
.volume-control { gap: 5px; }
#volume { width: 64px; --progress: 100%; }
.utility-controls { gap: 15px; }
.now-playing { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 26px; }
.video-heading { min-width: 0; }
.video-heading .eyebrow { color: var(--accent); font-size: 9px; margin-bottom: 7px; }
.video-heading h2 { font-size: 22px; line-height: 1.3; font-weight: 550; margin: 0 0 7px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.video-heading > p:last-child { font-size: 12px; color: var(--muted); margin: 0; }
.repeat-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #39462e; border-radius: 6px; color: var(--accent); font-size: 10px; padding: 5px 9px; white-space: nowrap; margin-top: 19px; }
.repeat-badge .icon { width: 14px; height: 14px; }
.keyboard-hints { margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: #727b83; font-size: 10px; }
.keyboard-hints > span { display: inline-flex; align-items: center; gap: 5px; }
kbd { border: 1px solid #343a40; border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; font-family: inherit; color: #a0a8ae; font-size: 10px; }
.library-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 23px 20px 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.panel-heading h2 { font-size: 17px; font-weight: 550; letter-spacing: -.3px; margin: 0; }
.count-badge { font-size: 10px; min-width: 24px; padding: 2px 6px; text-align: center; border: 1px solid #373e42; background: #24292c; color: #b7c0c5; border-radius: 5px; }
.playlist-label { display: block; font-size: 9px; letter-spacing: 1.2px; color: #7e878d; margin-bottom: 9px; }
.select-wrap { position: relative; display: flex; align-items: center; gap: 10px; background: #22272b; border: 1px solid #3c4448; border-radius: 7px; }
.select-wrap > .icon:first-child { width: 18px; height: 18px; position: absolute; left: 13px; color: var(--accent); pointer-events: none; }
.select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; color: #ecf0e7; border: 0; padding: 12px 35px 12px 41px; border-radius: 7px; font-size: 12px; cursor: pointer; text-overflow: ellipsis; }
.select-wrap select:disabled { opacity: .5; cursor: default; }
.select-wrap option { background: #22272b; color: var(--text); }
.select-chevron { width: 15px; height: 15px; position: absolute; right: 13px; color: #869097; pointer-events: none; }
.track-list-heading { display: flex; justify-content: space-between; color: #88929a; font-size: 11px; margin: 24px 0 12px; }
.track-list { list-style: none; margin: 0 -8px; padding: 0 4px 12px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444c50 transparent; }
.track { width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 10px 9px; background: transparent; color: var(--text); display: flex; align-items: center; gap: 11px; text-align: left; margin-bottom: 4px; transition: background .15s; }
.track:hover { background: #ffffff06; }
.track[aria-current="true"] { border-color: #62714966; background: #c4ee850c; }
.track-number { width: 26px; height: 31px; display: grid; place-items: center; color: #6e7b84; flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.track-number .icon { width: 19px; height: 19px; color: var(--accent); }
.track-copy { flex: 1; min-width: 0; }
.track-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.track[aria-current="true"] .track-name { color: var(--accent); }
.track-info { display: block; color: #7d8a91; font-size: 9px; margin-top: 3px; }
.track-duration { font-size: 10px; color: #b6bdb3; font-variant-numeric: tabular-nums; }
.library-empty { font-size: 12px; color: var(--muted); padding: 25px 5px 35px; line-height: 1.8; overflow-wrap: anywhere; }
.panel-footer { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); margin: 0 -20px; padding: 17px 20px; background: #16191c; }
.panel-footer .icon { color: #7b886e; width: 15px; height: 15px; margin-top: 3px; }
.panel-footer p { margin: 0; color: #707d85; font-size: 10px; line-height: 1.7; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; padding: 23px 0; border-top: 1px solid var(--line); font-size: 10px; color: #68727a; }
.source-label { display: flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.source-label .icon { width: 13px; height: 13px; }
.noscript { color: var(--accent); }
.player:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.player:fullscreen .video-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.player:fullscreen .player-controls { flex-shrink: 0; background: var(--panel); }
.player:-webkit-full-screen { width: 100%; height: 100%; display: flex; flex-direction: column; background: #000; }
.player:-webkit-full-screen .video-stage { flex: 1; min-height: 0; }
@media (min-width: 1450px) { .workspace { grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; } .track-list { max-height: 490px; } }
@media (max-width: 1100px) { .app { padding: 0 28px; } .workspace { grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; } .transport { gap: 4px; } .utility-controls { gap: 4px; } #volume { width: 46px; } .player-controls { padding-left: 13px; padding-right: 13px; } .keyboard-hints { gap: 12px; } }
@media (max-width: 850px) { .workspace { grid-template-columns: minmax(0, 1fr); gap: 27px; } .library-panel { padding-top: 20px; } .track-list { max-height: 310px; } .panel-heading { margin-bottom: 17px; } .topbar { min-height: 83px; } .page-heading { margin-top: 32px; } .transport { gap: 10px; } .utility-controls { gap: 15px; } #volume { width: 64px; } }
@media (max-width: 540px) { .app { padding: 0 16px; } .topbar { min-height: 73px; gap: 14px; } .brand { font-size: 25px; gap: 9px; } .brand-mark { width: 32px; height: 32px; border-radius: 9px; } .header-label { display: none; } .library-badge { font-size: 10px; } .page-heading { margin: 29px 0 23px; gap: 12px; } .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; } h1 { font-size: 29px; } .refresh-button { padding: 9px; } .refresh-button span { display: none; } .refresh-button .icon { width: 19px; height: 19px; } .player { border-radius: 9px; } .player-controls { padding: 11px 10px 13px; } .control-row { gap: 5px; margin-top: 9px; } .transport { gap: 3px; } .icon-button { width: 29px; } .utility-controls { gap: 3px; } .control-divider { margin: 0 2px; } #volume { display: none; } .play-button { width: 39px; height: 39px; } .stage-play { width: 58px; height: 58px; } .stage-play .icon { width: 30px; height: 30px; } .stage-chip { top: 10px; left: 10px; font-size: 9px; } .video-heading h2 { font-size: 19px; } .repeat-badge { padding: 4px 7px; font-size: 9px; } .keyboard-hints { display: none; } .now-playing { margin-top: 22px; } .footer { margin-top: 29px; font-size: 9px; } .stage-placeholder p { font-size: 14px; } .placeholder-icon { padding: 12px; margin: 0; } .placeholder-icon .icon { width: 27px; height: 27px; } }
@media (max-width: 360px) { .transport, .utility-controls { gap: 0; } .control-divider { margin: 0; } .control-row { gap: 2px; } .icon-button { width: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
