/* =========================================================================
MeTube — an editing-suite identity: slate panels, phosphor amber, and
timecode-style monospace for every number in the interface.
========================================================================= */
:root {
--ink: #0E1420;
--ink-sunk: #0A0F19;
--panel: #161E2C;
--panel-2: #1D2637;
--line: #26314A;
--line-soft: #1E2739;
--paper: #E8EDF5;
--haze: #8A97AC;
--haze-dim: #64708A;
--amber: #F5A524;
--amber-dim: #B87A16;
--amber-wash: rgba(245, 165, 36, 0.14);
--mint: #3DD9A4;
--rose: #FF5D73;
--shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
--font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
--topbar-h: 60px;
--rail-w: 236px;
--rail-mini: 0px;
--radius: 14px;
--radius-sm: 9px;
--gutter: 24px;
--ease: cubic-bezier(0.32, 0.72, 0.29, 1);
}
:root[data-theme="light"] {
--ink: #F4F6FA;
--ink-sunk: #E9EDF4;
--panel: #FFFFFF;
--panel-2: #F0F3F9;
--line: #D8DFEA;
--line-soft: #E4E9F1;
--paper: #131A26;
--haze: #5C6880;
--haze-dim: #7B879E;
--amber: #B76E00;
--amber-dim: #8A5300;
--amber-wash: rgba(183, 110, 0, 0.12);
--mint: #007F5F;
--rose: #C81E3C;
--shadow: 0 14px 34px rgba(20, 30, 50, 0.13);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
min-height: 100vh;
background: var(--ink);
color: var(--paper);
font-family: var(--font-body);
font-size: 14px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible {
outline: 2px solid var(--amber);
outline-offset: 2px;
border-radius: 4px;
}
::selection { background: var(--amber); color: #0A0F19; }
.skip-link {
position: fixed; top: 8px; left: 8px; z-index: 200;
padding: 10px 16px; border-radius: var(--radius-sm);
background: var(--amber); color: #0A0F19; font-weight: 700;
transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
/* -------------------------------------------------------------- numerics -- */
/* Every count, duration and timestamp is set as timecode. */
.num {
font-family: var(--font-mono);
font-size: 0.92em;
font-variant-numeric: tabular-nums;
letter-spacing: -0.02em;
}
/* --------------------------------------------------------------- topbar -- */
.topbar {
position: sticky; top: 0; z-index: 60;
display: flex; align-items: center; gap: 16px;
height: var(--topbar-h); padding: 0 16px;
background: color-mix(in srgb, var(--ink) 86%, transparent);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--line-soft);
}
.topbar__left { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.iconbtn {
display: grid; place-items: center;
width: 38px; height: 38px; padding: 0;
border: 0; border-radius: 50%;
background: transparent; color: var(--paper);
cursor: pointer; transition: background 0.16s var(--ease);
}
.iconbtn:hover { background: var(--panel-2); }
#theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] #theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] #theme-toggle .icon-sun { display: block; }
.wordmark { display: flex; align-items: center; gap: 9px; padding: 4px 6px; }
/* Three bars that read as a filmstrip; the last one is the lit amber frame. */
.wordmark__mark { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.wordmark__mark i {
display: block; width: 5px; border-radius: 2px; background: var(--haze-dim);
transition: height 0.3s var(--ease), background 0.3s var(--ease);
}
.wordmark__mark i:nth-child(1) { height: 10px; }
.wordmark__mark i:nth-child(2) { height: 16px; }
.wordmark__mark i:nth-child(3) { height: 20px; background: var(--amber); }
.wordmark:hover .wordmark__mark i:nth-child(1) { height: 20px; background: var(--amber); }
.wordmark:hover .wordmark__mark i:nth-child(2) { height: 10px; }
.wordmark:hover .wordmark__mark i:nth-child(3) { height: 15px; background: var(--haze-dim); }
.wordmark__text {
font-family: var(--font-display);
font-size: 21px; font-weight: 800; letter-spacing: -0.035em;
}
.search {
position: relative; flex: 1 1 auto; max-width: 620px;
display: flex; align-items: center;
}
.search__icon {
position: absolute; left: 14px; width: 18px; height: 18px;
color: var(--haze-dim); pointer-events: none;
}
.search__input {
width: 100%; height: 40px;
padding: 0 40px 0 42px;
border: 1px solid var(--line); border-radius: 999px;
background: var(--ink-sunk); color: var(--paper);
transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.search__input::placeholder { color: var(--haze-dim); }
.search__input:focus { outline: none; border-color: var(--amber); background: var(--panel); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
position: absolute; right: 8px;
width: 26px; height: 26px; padding: 0;
border: 0; border-radius: 50%; background: transparent;
color: var(--haze); font-size: 19px; line-height: 1; cursor: pointer;
}
.search__clear:hover { background: var(--panel-2); color: var(--paper); }
/* --------------------------------------------------------------- shell --- */
.shell { display: flex; align-items: flex-start; }
.sidebar {
position: sticky; top: var(--topbar-h);
flex: 0 0 var(--rail-w); width: var(--rail-w);
height: calc(100vh - var(--topbar-h));
padding: 14px 10px 40px;
overflow-y: auto; overscroll-behavior: contain;
scrollbar-width: thin;
}
.sidebar.is-hidden { display: none; }
.main {
flex: 1 1 auto; min-width: 0;
padding: 22px var(--gutter) 72px;
}
.main:focus { outline: none; }
.navgroup { padding: 6px 0; }
.navgroup + .navgroup { border-top: 1px solid var(--line-soft); margin-top: 6px; }
.navgroup__title {
padding: 12px 12px 6px;
font-family: var(--font-mono);
font-size: 10.5px; font-weight: 700;
letter-spacing: 0.16em; text-transform: uppercase;
color: var(--haze-dim);
}
.navlink {
position: relative;
display: flex; align-items: center; gap: 14px;
padding: 9px 12px; margin-bottom: 2px;
border-radius: var(--radius-sm);
color: var(--paper);
transition: background 0.14s var(--ease);
}
.navlink:hover { background: var(--panel-2); }
.navlink svg { width: 21px; height: 21px; color: var(--haze); flex: 0 0 auto; }
.navlink span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navlink.is-active { background: var(--amber-wash); font-weight: 600; }
.navlink.is-active svg { color: var(--amber); }
.navlink.is-active::before {
content: ""; position: absolute; left: 0; top: 50%;
width: 3px; height: 20px; margin-top: -10px;
border-radius: 0 3px 3px 0; background: var(--amber);
}
.navlink__count { margin-left: auto; color: var(--haze-dim); }
.sidebar-scrim {
position: fixed; inset: var(--topbar-h) 0 0; z-index: 40;
background: rgba(6, 10, 18, 0.62);
}
/* -------------------------------------------------------------- avatars -- */
.avatar {
position: relative; flex: 0 0 auto;
display: grid; place-items: center;
width: 36px; height: 36px; border-radius: 50%;
background: linear-gradient(150deg, hsl(var(--hue) 62% 52%), hsl(calc(var(--hue) + 38) 58% 38%));
color: #0A0F19;
font-family: var(--font-mono); font-weight: 700; font-size: 13px;
letter-spacing: -0.03em; text-transform: uppercase;
user-select: none;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 78px; height: 78px; font-size: 27px; }
.avatar--xl { width: 112px; height: 112px; font-size: 38px; }
/* -------------------------------------------------------------- buttons -- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
height: 38px; padding: 0 17px;
border: 1px solid transparent; border-radius: 999px;
background: var(--panel-2); color: var(--paper);
font-weight: 600; white-space: nowrap; cursor: pointer;
transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(0.975); }
.btn svg { width: 19px; height: 19px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn--primary { background: var(--amber); color: #0A0F19; }
.btn--primary:hover { background: color-mix(in srgb, var(--amber) 84%, #fff); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--panel-2); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--danger { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); background: transparent; }
.btn--danger:hover { background: color-mix(in srgb, var(--rose) 14%, transparent); }
/* Subscribe reads as "armed" when off and "locked in" when on. */
.btn--subscribe { background: var(--paper); color: var(--ink); }
.btn--subscribe:hover { background: color-mix(in srgb, var(--paper) 86%, var(--amber)); }
.btn--subscribe.is-on { background: var(--panel-2); color: var(--paper); border-color: var(--line); }
.btn--subscribe.is-on:hover { background: var(--line); }
.upload-link span { display: inline; }
/* ---------------------------------------------------------------- chips -- */
.chips {
display: flex; gap: 9px;
margin: -4px 0 22px;
padding-bottom: 4px;
overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
flex: 0 0 auto;
height: 33px; padding: 0 15px;
border: 1px solid var(--line); border-radius: 999px;
background: var(--panel); color: var(--paper);
font-size: 13px; font-weight: 500; cursor: pointer;
transition: background 0.14s var(--ease), color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.chip:hover { background: var(--panel-2); }
.chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }
/* ----------------------------------------------------------- video grid -- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
gap: 30px 18px;
}
.grid--tight { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 24px 16px; }
.card { display: flex; flex-direction: column; gap: 11px; }
.card__frame {
position: relative;
aspect-ratio: 16 / 9;
border-radius: var(--radius);
overflow: hidden;
background: var(--ink-sunk);
isolation: isolate;
}
.card__frame img,
.card__frame video {
position: absolute; inset: 0;
width: 100%; height: 100%;
object-fit: cover;
}
.card__frame video { opacity: 0; transition: opacity 0.28s var(--ease); }
.card.is-previewing .card__frame video { opacity: 1; }
.card.is-previewing .card__frame img { opacity: 0.001; }
.card__placeholder {
position: absolute; inset: 0;
display: grid; place-items: center;
background: linear-gradient(140deg, var(--panel-2), var(--ink-sunk));
color: var(--haze-dim);
}
/* Signature: an amber hairline sweeps the frame while the preview plays. */
.card__sweep {
position: absolute; left: 0; bottom: 0; z-index: 3;
height: 3px; width: 0;
background: var(--amber);
box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 60%, transparent);
}
.card__time {
position: absolute; right: 8px; bottom: 8px; z-index: 2;
padding: 2px 6px; border-radius: 5px;
background: rgba(8, 12, 20, 0.86); color: #fff;
font-family: var(--font-mono); font-size: 12px; font-weight: 500;
font-variant-numeric: tabular-nums;
}
.card.is-previewing .card__time { background: var(--amber); color: #0A0F19; }
.card__save {
position: absolute; right: 8px; top: 8px; z-index: 3;
display: grid; place-items: center;
width: 32px; height: 32px; padding: 0;
border: 0; border-radius: 8px;
background: rgba(8, 12, 20, 0.78); color: #fff;
cursor: pointer; opacity: 0;
transition: opacity 0.16s var(--ease), background 0.16s var(--ease);
}
.card:hover .card__save, .card__save:focus-visible { opacity: 1; }
.card__save:hover { background: var(--amber); color: #0A0F19; }
.card__save.is-on { opacity: 1; color: var(--amber); }
.card__save.is-on:hover { color: #0A0F19; }
.card__save svg { width: 17px; height: 17px; }
.card__body { display: flex; gap: 12px; align-items: flex-start; }
.card__title {
margin: 0 0 4px;
font-family: var(--font-display);
font-size: 15px; font-weight: 600; line-height: 1.32;
letter-spacing: -0.012em;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden;
}
.card:hover .card__title { color: var(--amber); }
.card__channel { display: block; color: var(--haze); font-size: 13px; }
.card__channel:hover { color: var(--paper); }
.card__meta { color: var(--haze-dim); font-size: 13px; }
.card__meta .num { color: var(--haze); }
.card__menu { margin-left: auto; }
/* Compact card used in the watch-page rail and list views. */
.rowcard { display: flex; gap: 12px; }
.rowcard .card__frame { flex: 0 0 168px; width: 168px; border-radius: 10px; }
.rowcard__body { min-width: 0; padding-top: 1px; }
.rowcard .card__title { font-size: 14px; -webkit-line-clamp: 2; }
/* ---------------------------------------------------------- watch page --- */
.watch {
display: grid;
grid-template-columns: minmax(0, 1fr) 396px;
gap: 28px;
max-width: 1720px;
margin: 0 auto;
}
.player {
position: relative;
aspect-ratio: 16 / 9;
border-radius: var(--radius);
overflow: hidden;
background: #000;
box-shadow: var(--shadow);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch__title {
margin: 18px 0 14px;
font-family: var(--font-display);
font-size: 21px; font-weight: 700; line-height: 1.28;
letter-spacing: -0.02em;
}
.watch__bar {
display: flex; align-items: center; gap: 14px;
flex-wrap: wrap;
padding-bottom: 16px;
border-bottom: 1px solid var(--line-soft);
}
.channelline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channelline__name { font-weight: 600; display: block; letter-spacing: -0.01em; }
.channelline__name:hover { color: var(--amber); }
.channelline__subs { color: var(--haze); font-size: 12.5px; }
.watch__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
/* The vote control is a two-sided meter: amber for up, rose for down. */
.votes {
display: flex; align-items: stretch;
height: 38px;
border: 1px solid var(--line); border-radius: 999px;
background: var(--panel-2);
overflow: hidden;
}
.vote {
display: inline-flex; align-items: center; gap: 8px;
padding: 0 15px; border: 0; background: transparent;
color: var(--paper); font-weight: 600; cursor: pointer;
transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.vote:hover { background: var(--line); }
.vote + .vote { border-left: 1px solid var(--line); }
.vote svg { width: 19px; height: 19px; }
.vote.is-on { color: var(--amber); }
.vote.is-on svg { fill: color-mix(in srgb, var(--amber) 26%, transparent); }
.vote--down.is-on { color: var(--rose); }
.vote--down.is-on svg { fill: color-mix(in srgb, var(--rose) 26%, transparent); }
.ratio {
position: relative;
height: 3px; margin: 10px 0 0;
border-radius: 2px;
background: var(--line);
overflow: hidden;
}
.ratio__fill { position: absolute; inset: 0 auto 0 0; background: var(--amber); border-radius: 2px; }
.descbox {
margin-top: 14px; padding: 14px 16px;
border-radius: var(--radius);
background: var(--panel);
border: 1px solid var(--line-soft);
}
.descbox__meta {
display: flex; flex-wrap: wrap; gap: 10px;
margin-bottom: 8px;
font-weight: 600; font-size: 13.5px;
}
.descbox__meta .num { color: var(--paper); }
.descbox__tag {
padding: 1px 9px; border-radius: 999px;
background: var(--amber-wash); color: var(--amber);
font-family: var(--font-mono); font-size: 11px; font-weight: 700;
letter-spacing: 0.06em; text-transform: uppercase;
}
.descbox__body { white-space: pre-wrap; color: var(--paper); font-size: 13.5px; line-height: 1.62; }
.descbox__body.is-clamped {
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.descbox__more {
margin-top: 8px; padding: 0; border: 0; background: none;
color: var(--haze); font-weight: 700; font-size: 13px; cursor: pointer;
}
.descbox__more:hover { color: var(--amber); }
/* ------------------------------------------------------------- comments -- */
.comments { margin-top: 28px; }
.comments__head {
display: flex; align-items: center; gap: 18px;
margin-bottom: 20px;
}
.comments__count { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.sortlink {
padding: 4px 10px; border: 0; border-radius: 999px;
background: transparent; color: var(--haze);
font-family: var(--font-mono); font-size: 11px; font-weight: 700;
letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.sortlink:hover { color: var(--paper); }
.sortlink.is-on { background: var(--panel-2); color: var(--amber); }
.composer { display: flex; gap: 13px; margin-bottom: 30px; }
.composer__main { flex: 1 1 auto; min-width: 0; }
.composer__input {
width: 100%; padding: 7px 0; resize: none;
border: 0; border-bottom: 1px solid var(--line);
background: transparent; color: var(--paper);
font-family: inherit; line-height: 1.55;
transition: border-color 0.16s var(--ease);
}
.composer__input::placeholder { color: var(--haze-dim); }
.composer__input:focus { outline: none; border-bottom-color: var(--amber); }
.composer__actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.comment { display: flex; gap: 13px; margin-bottom: 22px; }
.comment__main { flex: 1 1 auto; min-width: 0; }
.comment__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.comment__author { font-weight: 600; font-size: 13px; }
.comment__author:hover { color: var(--amber); }
.comment__badge {
padding: 1px 7px; border-radius: 999px;
background: var(--amber); color: #0A0F19;
font-family: var(--font-mono); font-size: 10px; font-weight: 700;
letter-spacing: 0.05em; text-transform: uppercase;
}
.comment__when { color: var(--haze-dim); font-size: 12px; }
.comment__body { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.comment__actions { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.comment__replies { margin-top: 14px; padding-left: 6px; border-left: 1px solid var(--line-soft); }
.comment__replies .comment { padding-left: 14px; margin-bottom: 16px; }
.tinybtn {
display: inline-flex; align-items: center; gap: 6px;
height: 28px; padding: 0 10px;
border: 0; border-radius: 999px;
background: transparent; color: var(--haze);
font-size: 12.5px; font-weight: 600; cursor: pointer;
transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.tinybtn:hover { background: var(--panel-2); color: var(--paper); }
.tinybtn svg { width: 16px; height: 16px; }
.tinybtn.is-on { color: var(--amber); }
.tinybtn.is-on svg { fill: color-mix(in srgb, var(--amber) 26%, transparent); }
/* -------------------------------------------------------------- channel -- */
.channelhero {
display: flex; align-items: center; gap: 26px;
padding: 26px;
margin-bottom: 24px;
border-radius: 20px;
background:
radial-gradient(120% 160% at 8% 0%, hsl(var(--hue) 58% 46% / 0.34), transparent 62%),
var(--panel);
border: 1px solid var(--line-soft);
}
.channelhero__info { min-width: 0; }
.channelhero__name {
margin: 0 0 4px;
font-family: var(--font-display);
font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
}
.channelhero__handle { color: var(--haze); }
.channelhero__stats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; color: var(--haze); font-size: 13px; }
.channelhero__stats .num { color: var(--paper); font-weight: 500; }
.channelhero__bio { margin: 12px 0 0; max-width: 62ch; color: var(--haze); font-size: 13.5px; line-height: 1.6; }
.channelhero__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.tabs {
display: flex; gap: 4px;
margin-bottom: 22px;
border-bottom: 1px solid var(--line-soft);
}
.tab {
padding: 10px 16px;
border: 0; border-bottom: 2px solid transparent;
background: none; color: var(--haze);
font-weight: 600; cursor: pointer;
}
.tab:hover { color: var(--paper); }
.tab.is-on { color: var(--paper); border-bottom-color: var(--amber); }
/* ------------------------------------------------------- page furniture -- */
.pagehead {
display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
margin-bottom: 22px;
}
.pagehead__title {
margin: 0;
font-family: var(--font-display);
font-size: 27px; font-weight: 800; letter-spacing: -0.03em;
}
.pagehead__sub { color: var(--haze); font-size: 13.5px; }
.pagehead__actions { margin-left: auto; display: flex; gap: 9px; }
.eyebrow {
display: block; margin-bottom: 6px;
font-family: var(--font-mono);
font-size: 11px; font-weight: 700;
letter-spacing: 0.18em; text-transform: uppercase;
color: var(--amber);
}
.empty {
display: grid; place-items: center; gap: 8px;
padding: 72px 24px; text-align: center;
border: 1px dashed var(--line); border-radius: var(--radius);
background: var(--panel);
}
.empty__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.empty__text { color: var(--haze); max-width: 46ch; }
.empty svg { width: 34px; height: 34px; color: var(--amber); }
.spinner {
width: 26px; height: 26px; margin: 60px auto;
border: 2.5px solid var(--line); border-top-color: var(--amber);
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: var(--radius); background: var(--panel-2); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
/* ---------------------------------------------------------------- forms -- */
.panel {
padding: 24px;
border: 1px solid var(--line-soft); border-radius: var(--radius);
background: var(--panel);
}
.field { margin-bottom: 17px; }
.field__label {
display: block; margin-bottom: 6px;
font-family: var(--font-mono);
font-size: 11px; font-weight: 700;
letter-spacing: 0.12em; text-transform: uppercase;
color: var(--haze);
}
.field__hint { margin-top: 6px; color: var(--haze-dim); font-size: 12.5px; }
.input, .textarea, .select {
width: 100%; padding: 10px 13px;
border: 1px solid var(--line); border-radius: var(--radius-sm);
background: var(--ink-sunk); color: var(--paper);
transition: border-color 0.16s var(--ease);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--amber); }
.textarea { resize: vertical; min-height: 108px; line-height: 1.6; font-family: inherit; }
.select { appearance: none; cursor: pointer; background-image: none; }
.formerror {
margin-bottom: 15px; padding: 10px 13px;
border-radius: var(--radius-sm);
border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
background: color-mix(in srgb, var(--rose) 12%, transparent);
color: var(--rose); font-size: 13px; font-weight: 500;
}
/* ----------------------------------------------------------------- auth -- */
.auth { display: grid; place-items: center; min-height: calc(100vh - var(--topbar-h) - 60px); padding: 20px 0; }
.auth__card { width: 100%; max-width: 412px; }
.auth__head { text-align: center; margin-bottom: 22px; }
.auth__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.auth__sub { color: var(--haze); font-size: 13.5px; }
.auth__switch { margin-top: 18px; text-align: center; color: var(--haze); font-size: 13px; }
.auth__switch button {
padding: 0; border: 0; background: none;
color: var(--amber); font-weight: 700; cursor: pointer;
}
.auth__switch button:hover { text-decoration: underline; }
.auth__demo {
margin-top: 18px; padding: 12px 14px;
border: 1px dashed var(--line); border-radius: var(--radius-sm);
color: var(--haze); font-size: 12.5px; line-height: 1.6;
}
.auth__demo b { color: var(--paper); }
.auth__demo code {
font-family: var(--font-mono); font-size: 12px;
color: var(--amber);
}
/* ------------------------------------------------------------- uploader -- */
.dropzone {
display: grid; place-items: center; gap: 10px;
padding: 52px 24px; text-align: center;
border: 2px dashed var(--line); border-radius: var(--radius);
background: var(--ink-sunk); cursor: pointer;
transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--amber); background: var(--amber-wash); }
.dropzone svg { width: 38px; height: 38px; color: var(--amber); }
.dropzone__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.dropzone__hint { color: var(--haze); font-size: 13px; }
.filecard {
display: flex; align-items: center; gap: 14px;
padding: 14px;
border: 1px solid var(--line); border-radius: var(--radius);
background: var(--ink-sunk);
}
.filecard__icon {
display: grid; place-items: center;
width: 46px; height: 46px; border-radius: 10px;
background: var(--amber-wash); color: var(--amber);
}
.filecard__name { font-weight: 600; word-break: break-all; }
.filecard__size { color: var(--haze); }
.progress { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--amber); transition: width 0.2s var(--ease); }
.progress__label { display: flex; justify-content: space-between; margin-top: 8px; color: var(--haze); font-size: 12.5px; }
/* --------------------------------------------------------------- toasts -- */
.toasts {
position: fixed; left: 50%; bottom: 26px; z-index: 120;
display: flex; flex-direction: column; gap: 9px; align-items: center;
transform: translateX(-50%);
pointer-events: none;
}
.toast {
display: flex; align-items: center; gap: 10px;
max-width: min(90vw, 460px);
padding: 11px 17px;
border-radius: 999px;
border: 1px solid var(--line);
background: var(--panel-2); color: var(--paper);
box-shadow: var(--shadow);
font-size: 13.5px; font-weight: 500;
animation: toast-in 0.24s var(--ease);
}
.toast--error { border-color: color-mix(in srgb, var(--rose) 55%, transparent); color: var(--rose); }
.toast--good { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.toast.is-out { animation: toast-out 0.22s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
/* --------------------------------------------------------------- modals -- */
.modal-root:empty { display: none; }
.modal {
position: fixed; inset: 0; z-index: 100;
display: grid; place-items: center;
padding: 20px;
background: rgba(6, 10, 18, 0.68);
backdrop-filter: blur(3px);
animation: fade-in 0.16s var(--ease);
}
.modal__card {
width: 100%; max-width: 420px;
padding: 24px;
border: 1px solid var(--line); border-radius: 18px;
background: var(--panel);
box-shadow: var(--shadow);
animation: rise 0.22s var(--ease);
}
.modal__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.modal__text { color: var(--haze); margin: 0 0 20px; line-height: 1.6; }
.modal__actions { display: flex; justify-content: flex-end; gap: 9px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
/* ---------------------------------------------------------------- menus -- */
.menu { position: relative; }
.menu__panel {
position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
min-width: 196px; padding: 6px;
border: 1px solid var(--line); border-radius: 12px;
background: var(--panel-2);
box-shadow: var(--shadow);
animation: rise 0.14s var(--ease);
}
.menu__item {
display: flex; align-items: center; gap: 11px; width: 100%;
padding: 9px 11px;
border: 0; border-radius: 8px;
background: none; color: var(--paper);
font-size: 13.5px; text-align: left; cursor: pointer;
}
.menu__item:hover { background: var(--line); }
.menu__item svg { width: 17px; height: 17px; color: var(--haze); }
.menu__item--danger { color: var(--rose); }
.menu__item--danger svg { color: var(--rose); }
.menu__sep { height: 1px; margin: 5px 4px; background: var(--line); }
.menu__head { padding: 10px 11px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.menu__name { font-weight: 700; }
.menu__handle { color: var(--haze); font-size: 12.5px; }
/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1300px) {
.watch { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
.watch { grid-template-columns: minmax(0, 1fr); }
.watch__rail { margin-top: 8px; }
}
@media (max-width: 1000px) {
:root { --gutter: 18px; }
.sidebar {
position: fixed; top: var(--topbar-h); left: 0; z-index: 50;
width: 268px; flex-basis: 268px;
background: var(--ink);
border-right: 1px solid var(--line-soft);
transform: translateX(-100%);
transition: transform 0.24s var(--ease);
}
.sidebar.is-open { transform: none; }
.sidebar.is-hidden { display: block; transform: translateX(-100%); }
}
@media (max-width: 760px) {
:root { --gutter: 14px; }
.topbar { gap: 10px; padding: 0 10px; }
.upload-link span { display: none; }
.upload-link { padding: 0; width: 38px; }
.wordmark__text { display: none; }
.grid { grid-template-columns: 1fr; gap: 26px 0; }
.grid--tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.channelhero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
.channelhero__actions { margin-left: 0; }
.channelhero__name { font-size: 24px; }
.watch__title { font-size: 18px; }
.rowcard { flex-direction: row; }
.rowcard .card__frame { flex-basis: 148px; width: 148px; }
.main { padding: 16px var(--gutter) 60px; }
}
@media (max-width: 460px) {
.rowcard { flex-direction: column; }
.rowcard .card__frame { flex-basis: auto; width: 100%; }
.watch__actions { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}