SPB Git

Repository Public

globals.css 6.6 KB 82 lines css

1@import "tailwindcss";23@theme {4  /* 4.0 « Noir » : neutral blacks, white as the only accent, colour kept for meaning (live, available, error, favourite). */5  --color-bg: #0a0a0b;6  --color-panel: #131315;7  --color-raised: #1c1c1f;8  --color-line: rgb(255 255 255 / 0.075);9  --color-ink: #f5f5f7;10  --color-dim: #a1a1a8;11  --color-faint: #6e6e76;12  --color-accent: #ffffff;13  --color-accent2: #f5f5f7;14  --color-up: #30d158;15  --color-down: #ff453a;16  --color-live: #ff453a;17  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;18}1920html { background: var(--color-bg); scroll-padding-top: 5rem; color: var(--color-ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }21h1, h2, h3 { letter-spacing: -0.022em; text-wrap: balance; }22::selection { background: rgb(255 255 255 / 0.22); }23body { min-height: 100dvh; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }24* { -webkit-tap-highlight-color: transparent; }25button, a, [role="button"] { touch-action: manipulation; }26button:not(:disabled), [role="button"] { cursor: pointer; }2728/* Remote-control friendly focus: always visible, never clipped. */29:focus { outline: none; }30:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; box-shadow: none; }31/* Phones: the focus ring is for remotes and keyboards, not for a control focused by the page itself. */32@media (max-width: 639px) and (pointer: coarse) { :focus-visible { outline: none; } }33input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1.5px solid rgb(255 255 255 / 0.5); outline-offset: 0; box-shadow: none; }3435/* Primary surface: plain white, black text. (The class keeps its historical name.) */36.grad { background: #fff; color: #0a0a0b; }37.grad:hover { background: #e9e9ec; }38.grad-text { color: var(--color-faint); font-weight: 500; }39.glass { background: rgb(14 14 16 / 0.86); backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7); }40@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgb(14 14 16 / 0.97); } }41.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }42.logo-img { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.55)); }43.tile { background: linear-gradient(160deg, #202023 0%, #151517 60%, #101012 100%); }44.safe-b { padding-bottom: env(safe-area-inset-bottom); }45.skeleton { background: linear-gradient(90deg, #131315 0%, #1c1c1f 50%, #131315 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }46@keyframes sk { to { background-position: -200% 0; } }47@keyframes spin { to { transform: rotate(360deg); } }48.spinner { width: 44px; height: 44px; border-radius: 9999px; border: 4px solid rgb(255 255 255 / 0.18); border-top-color: #fff; animation: spin 0.8s linear infinite; }49@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }50.fadein { animation: fadein 0.25s ease-out backwards; }51@media (prefers-reduced-motion: reduce) { .fadein, .skeleton { animation: none; } * { scroll-behavior: auto !important; } }52input[type="range"] { accent-color: #fff; }53select { background-image: none; }5455/* --- 2.0 visual language ------------------------------------------------------------------------------------------ */56body { background: linear-gradient(to bottom, rgb(255 255 255 / 0.028), transparent 22rem), var(--color-bg); background-attachment: fixed; }57.poster { background: linear-gradient(160deg, #222225 0%, #151517 55%, #0e0e10 100%); }58.card-press { transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s; }59.card-press:active { transform: scale(0.97); }60@media (hover: hover) { .card-press:hover { transform: translateY(-3px); } }61.hero-fade { background: linear-gradient(to top, var(--color-bg) 3%, rgb(10 10 11 / 0.78) 36%, rgb(10 10 11 / 0.1) 72%, rgb(10 10 11 / 0.5) 100%), linear-gradient(to right, rgb(10 10 11 / 0.8) 0%, rgb(10 10 11 / 0.15) 60%, transparent 100%); }62.edge-fade { mask-image: linear-gradient(to right, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent 100%); }63@media (min-width: 1024px) { .edge-fade { mask-image: linear-gradient(to right, transparent 0, #000 2rem, #000 calc(100% - 4rem), transparent 100%); } }64.chip { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.6rem; padding: 0 0.65rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; background: rgb(255 255 255 / 0.09); color: var(--color-ink); white-space: nowrap; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }65/* Floating tab bar of phones. */66.tabbar { background: rgb(26 26 29 / 0.94); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 12px 40px -8px rgb(0 0 0 / 0.75), inset 0 0 0 1px rgb(255 255 255 / 0.09); }67@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background: rgb(24 24 27 / 0.98); } }68.live-dot { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: var(--color-live); box-shadow: 0 0 0 0 rgb(255 69 58 / 0.6); animation: live 2s ease-out infinite; }69@keyframes live { to { box-shadow: 0 0 0 0.45rem rgb(255 69 58 / 0); } }70.eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-dim); }71.surface { background: var(--color-panel); box-shadow: inset 0 0 0 1px var(--color-line); }72.sheet { background: rgb(19 19 21 / 0.98); animation: sheet 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) backwards; }73@keyframes sheet { from { transform: translateY(100%); } }74.seek { -webkit-appearance: none; appearance: none; height: 1.5rem; background: transparent; cursor: pointer; width: 100%; }75.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 9999px; background: linear-gradient(to right, #fff var(--p, 0%), rgb(255 255 255 / 0.28) var(--p, 0%)); }76.seek::-moz-range-track { height: 5px; border-radius: 9999px; background: rgb(255 255 255 / 0.28); }77.seek::-moz-range-progress { height: 5px; border-radius: 9999px; background: #fff; }78.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.5); }79.seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 9999px; background: #fff; }80video::cue { background: rgb(0 0 0 / 0.7); color: #fff; font-size: 1.05em; line-height: 1.35; }81@media (prefers-reduced-motion: reduce) { .card-press, .sheet, .live-dot { transition: none; animation: none; } }82
Files main
Menu

Theme