Files
2026-10-27 05:49:38 -05:00

208 lines
7.3 KiB
CSS

/*
base.css — reset, typography, layout shell (header, footer, tab bar), utilities.
*/
*, *::before, *::after { box-sizing: border-box; }
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
scrollbar-color: var(--surface-3) var(--bg);
background: var(--bg);
}
html.has-modal { overflow: hidden; }
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: var(--font);
font-size: var(--fs-base);
line-height: var(--lh);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
padding-bottom: var(--tabbar-h);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: var(--lh-tight); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only {
position: absolute !important;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0);
white-space: nowrap; border: 0;
}
.container {
width: 100%;
padding-inline: var(--gutter);
}
.muted { color: var(--text-3); }
.center { text-align: center; }
.skip-link {
position: fixed; top: 8px; left: 8px; z-index: 200;
padding: 10px 16px; border-radius: var(--r-md);
background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-bold);
transform: translateY(-150%);
transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }
.app { min-height: calc(100vh - 120px); }
.app:focus { outline: none; }
/* ---- header ------------------------------------------------------------------- */
.site-header {
position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
height: var(--header-h);
background: var(--overlay);
background-origin: border-box;
-webkit-backdrop-filter: saturate(160%) blur(18px);
backdrop-filter: saturate(160%) blur(18px);
border-bottom: 1px solid var(--border);
transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-over-hero:not(.is-solid) {
background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
-webkit-backdrop-filter: none;
backdrop-filter: none;
border-bottom-color: transparent;
box-shadow: none;
}
.site-header__inner {
height: 100%;
display: flex; align-items: center; gap: var(--sp-7);
}
.brand {
display: inline-flex; align-items: center; gap: 10px;
font-weight: var(--fw-heavy); font-size: 1.3rem; letter-spacing: -0.03em;
flex-shrink: 0;
}
.brand__mark {
display: block; width: 32px; height: 32px;
filter: drop-shadow(0 2px 10px var(--accent-glow));
}
.brand__word span { color: var(--accent); }
.brand--sm { font-size: 1rem; }
.brand--sm .brand__mark { width: 24px; height: 24px; filter: none; }
.site-nav { display: flex; gap: var(--sp-2); }
.site-nav__link {
position: relative;
padding: 8px 12px; border-radius: var(--r-md);
color: var(--text-2); font-weight: var(--fw-semi); font-size: 0.95rem;
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link.is-active { color: var(--text); }
.site-nav__link.is-active::after {
content: ""; position: absolute; left: 50%; bottom: 0;
width: 18px; height: 3px; border-radius: 3px; background: var(--accent);
transform: translateX(-50%);
}
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.header-search {
display: flex; align-items: center; gap: 8px;
width: 260px; height: 42px; padding: 0 10px 0 12px;
border-radius: var(--r-pill);
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--glass-border);
transition: width var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header-search:focus-within { width: 320px; background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.4); }
.header-search__icon { color: var(--text-2); display: grid; place-items: center; }
.header-search input {
flex: 1; min-width: 0; height: 100%;
background: none; border: 0; outline: none;
font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.header-search input::placeholder { color: var(--text-3); }
.header-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.header-search__kbd {
font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-3);
border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px;
}
.header-search:focus-within .header-search__kbd { display: none; }
.header-search-link { display: none !important; }
.icon-btn {
display: inline-grid; place-items: center;
width: 42px; height: 42px; border-radius: var(--r-pill);
color: var(--text-2);
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.icon-btn:hover, .icon-btn.is-active { color: var(--text); background: var(--glass); }
/* ---- footer ------------------------------------------------------------------- */
.site-footer {
margin-top: var(--sp-10);
border-top: 1px solid var(--border);
color: var(--text-3); font-size: var(--fs-xs);
}
.site-footer__inner {
display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-7);
padding-block: var(--sp-7);
}
.site-footer__note { flex: 1; min-width: 220px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
/* ---- mobile tab bar ------------------------------------------------------------- */
.tabbar { display: none; }
@media (max-width: 1080px) {
.site-header__inner { gap: var(--sp-5); }
.site-nav__link { padding-inline: 8px; }
.header-search, .header-search:focus-within { width: 200px; }
}
@media (max-width: 720px) {
.site-nav, .header-search { display: none; }
.header-search-link { display: inline-grid !important; }
.site-header__actions { gap: 0; }
.brand { font-size: 1.15rem; }
.brand__mark { width: 28px; height: 28px; }
.tabbar {
position: fixed; inset: auto 0 0 0; z-index: var(--z-tabbar);
display: grid; grid-template-columns: repeat(5, 1fr);
height: var(--tabbar-h);
padding-bottom: env(safe-area-inset-bottom, 0px);
background: rgba(12, 12, 15, 0.92);
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
border-top: 1px solid var(--border);
}
.tabbar__link {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
color: var(--text-3); font-size: var(--fs-2xs); font-weight: var(--fw-semi);
}
.tabbar__link.is-active { color: var(--text); }
.tabbar__link.is-active .icon { color: var(--accent); }
.site-footer { margin-top: var(--sp-8); }
}
/* the player takes over the screen; it renders its own chrome */
body[data-route="watch"] .site-header,
body[data-route="watch"] .site-footer,
body[data-route="watch"] .tabbar { display: none; }
body[data-route="watch"] { padding-bottom: 0; }