push
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
BASE — reset, typography, page frame (header/footer/container).
|
||||
Layout-level stuff only; reusable widgets live in components.css.
|
||||
*/
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--text-md);
|
||||
line-height: var(--leading-normal);
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
margin: 0;
|
||||
line-height: var(--leading-tight);
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ---- page frame ---------------------------------------------------------- */
|
||||
|
||||
.container {
|
||||
max-width: var(--container-max);
|
||||
margin: 0 auto;
|
||||
padding-left: var(--container-pad);
|
||||
padding-right: var(--container-pad);
|
||||
}
|
||||
|
||||
.page {
|
||||
padding-top: var(--space-5);
|
||||
padding-bottom: var(--space-8);
|
||||
}
|
||||
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: var(--color-bg);
|
||||
background: color-mix(in srgb, var(--color-bg) 85%, transparent);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.site-header__inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
height: var(--header-height);
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-size: var(--text-xl);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.brand span {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.site-header__nav {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--color-text-dim);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.site-header__nav:hover {
|
||||
color: var(--color-text);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.site-header__spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding: var(--space-4) 0 var(--space-5);
|
||||
color: var(--color-text-faint);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.site-footer .container {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.site-footer a {
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.site-footer a:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
@@ -0,0 +1,421 @@
|
||||
/*
|
||||
COMPONENTS — reusable widgets. Each block is self-contained and named
|
||||
after the thing it styles (BEM-ish: block, block__element, block--modifier).
|
||||
Theme values come from tokens.css; never hardcode colors/sizes here if a
|
||||
token exists.
|
||||
*/
|
||||
|
||||
/* ---- buttons ------------------------------------------------------------- */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1.3;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: background 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: var(--color-surface-hover);
|
||||
border-color: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.btn:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--color-accent);
|
||||
border-color: var(--color-accent);
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
background: var(--color-accent-hover);
|
||||
border-color: var(--color-accent-hover);
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.btn--ghost:hover {
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ---- form fields --------------------------------------------------------- */
|
||||
|
||||
.field {
|
||||
width: 100%;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text);
|
||||
font: inherit;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.field::placeholder {
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.field:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent);
|
||||
}
|
||||
|
||||
select.field {
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398a2b0' stroke-width='2'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 12px center;
|
||||
padding-right: 32px;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
display: block;
|
||||
margin-bottom: var(--space-1);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
/* ---- badges & tags -------------------------------------------------------- */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 1px var(--space-2);
|
||||
border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-dim);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge--accent {
|
||||
border-color: var(--color-accent);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--color-surface-2);
|
||||
border: 1px solid var(--color-border);
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
/* ---- chips (filters) ------------------------------------------------------- */
|
||||
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.chip {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-full);
|
||||
background: transparent;
|
||||
color: var(--color-text-dim);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-medium);
|
||||
cursor: pointer;
|
||||
transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
|
||||
.chip:hover {
|
||||
border-color: var(--color-border-strong);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.chip--active {
|
||||
background: var(--color-surface);
|
||||
border-color: var(--color-accent);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* ---- media cards (poster) --------------------------------------------------- */
|
||||
|
||||
.card {
|
||||
display: block;
|
||||
flex: 0 0 var(--card-width);
|
||||
width: var(--card-width);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card__poster {
|
||||
position: relative;
|
||||
aspect-ratio: var(--poster-aspect);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
transition: border-color 120ms ease, transform 120ms ease;
|
||||
}
|
||||
|
||||
.card:hover .card__poster {
|
||||
border-color: var(--color-border-strong);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.card__poster img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.card__poster--empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-text-faint);
|
||||
font-size: var(--text-2xl);
|
||||
}
|
||||
|
||||
.card__title {
|
||||
margin-top: var(--space-2);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1.3;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card__meta {
|
||||
margin-top: 2px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.card__progress {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 3px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.card__progress i {
|
||||
display: block;
|
||||
height: 100%;
|
||||
background: var(--color-accent);
|
||||
}
|
||||
|
||||
/* ---- rows (horizontal carousels) ------------------------------------------ */
|
||||
|
||||
.row {
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
|
||||
.row__header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.row__title {
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.row__link {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.row__link:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.row__scroll {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x proximity;
|
||||
padding-bottom: var(--space-2);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-border-strong) transparent;
|
||||
}
|
||||
|
||||
.row__scroll .card {
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
/* ---- results grid ---------------------------------------------------------- */
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.grid .card {
|
||||
flex: none;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* ---- modal ----------------------------------------------------------------- */
|
||||
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-4);
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.modal {
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-surface);
|
||||
box-shadow: var(--shadow-2);
|
||||
}
|
||||
|
||||
.modal__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.modal__title {
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.modal__body {
|
||||
padding: var(--space-5);
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.modal__hint {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.modal__actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
/* ---- toast ----------------------------------------------------------------- */
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
bottom: var(--space-6);
|
||||
z-index: 110;
|
||||
transform: translateX(-50%);
|
||||
max-width: min(90vw, 480px);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
border: 1px solid var(--color-border-strong);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-surface);
|
||||
box-shadow: var(--shadow-2);
|
||||
font-size: var(--text-sm);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 150ms ease, transform 150ms ease;
|
||||
}
|
||||
|
||||
.toast--show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast--error {
|
||||
border-color: var(--color-danger);
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
/* ---- loading & empty states ------------------------------------------------- */
|
||||
|
||||
.spinner {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 3px solid var(--color-border);
|
||||
border-top-color: var(--color-accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.spinner--center {
|
||||
padding: var(--space-8) 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: var(--space-7) 0;
|
||||
text-align: center;
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.empty h3 {
|
||||
font-size: var(--text-lg);
|
||||
color: var(--color-text-dim);
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
@@ -0,0 +1,447 @@
|
||||
/*
|
||||
PAGES — page-specific layout: home, search, watch.
|
||||
Widget styling lives in components.css; this file only positions
|
||||
page-level blocks and handles responsive behavior.
|
||||
*/
|
||||
|
||||
/* ---- home ------------------------------------------------------------------ */
|
||||
|
||||
.home-hero {
|
||||
margin: 0 0 var(--space-6);
|
||||
padding: var(--space-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background:
|
||||
radial-gradient(80% 120% at 10% 0%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 60%),
|
||||
var(--color-surface);
|
||||
}
|
||||
|
||||
.home-hero h1 {
|
||||
font-size: var(--text-2xl);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.home-hero p {
|
||||
margin-top: var(--space-2);
|
||||
max-width: 56ch;
|
||||
color: var(--color-text-dim);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.home-hero .chips {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
/* ---- search ------------------------------------------------------------------ */
|
||||
|
||||
.search-bar {
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.search-bar__form {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.search-bar__input {
|
||||
flex: 1;
|
||||
font-size: var(--text-md);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
}
|
||||
|
||||
.search-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.search-count {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
/* ---- watch: hero ------------------------------------------------------------- */
|
||||
|
||||
.watch-hero {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: var(--space-5);
|
||||
align-items: flex-end;
|
||||
margin-bottom: var(--space-5);
|
||||
padding: var(--space-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.watch-hero__backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.watch-hero__backdrop img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.watch-hero__poster {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
flex: 0 0 180px;
|
||||
width: 180px;
|
||||
aspect-ratio: var(--poster-aspect);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-border-strong);
|
||||
box-shadow: var(--shadow-2);
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.watch-hero__poster img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.watch-hero__body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.watch-hero__title {
|
||||
font-size: var(--text-3xl);
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
|
||||
.watch-hero__facts {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.watch-hero__rating {
|
||||
color: var(--color-star);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.watch-hero__genres {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
.watch-hero__overview {
|
||||
margin-top: var(--space-4);
|
||||
max-width: 72ch;
|
||||
color: var(--color-text-dim);
|
||||
font-size: var(--text-sm);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 4;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ---- watch: player ------------------------------------------------------------- */
|
||||
|
||||
.player-wrap {
|
||||
position: relative;
|
||||
aspect-ratio: var(--player-aspect);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.player-wrap video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.player-status {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-3);
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
color: var(--color-text-dim);
|
||||
font-size: var(--text-sm);
|
||||
text-align: center;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.player-status h3 {
|
||||
font-size: var(--text-md);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.player-status .spinner {
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
/* ---- watch: toolbar + sources ---------------------------------------------------- */
|
||||
|
||||
.watch-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
margin: var(--space-4) 0 var(--space-5);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.watch-toolbar__source {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.watch-toolbar__spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.sources {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-surface);
|
||||
margin-bottom: var(--space-6);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sources__head {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.source-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
width: 100%;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.source-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.source-item:hover {
|
||||
background: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.source-item--active {
|
||||
background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
|
||||
}
|
||||
|
||||
.source-item__rank {
|
||||
flex: 0 0 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--color-surface-2);
|
||||
border: 1px solid var(--color-border);
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-dim);
|
||||
}
|
||||
|
||||
.source-item--active .source-item__rank {
|
||||
background: var(--color-accent);
|
||||
border-color: var(--color-accent);
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
|
||||
.source-item__name {
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.source-item__meta {
|
||||
margin-left: auto;
|
||||
color: var(--color-text-faint);
|
||||
font-size: var(--text-xs);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.loading-cell {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: var(--space-8) 0;
|
||||
}
|
||||
|
||||
/* ---- watch: episodes --------------------------------------------------------- */
|
||||
|
||||
.episodes {
|
||||
margin-top: var(--space-7);
|
||||
}
|
||||
|
||||
.episodes__toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.episodes__title {
|
||||
font-size: var(--text-xl);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.episodes__toolbar select.field {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.episode-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.episode {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-3);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-surface);
|
||||
cursor: pointer;
|
||||
transition: border-color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.episode:hover {
|
||||
border-color: var(--color-border-strong);
|
||||
background: var(--color-surface-hover);
|
||||
}
|
||||
|
||||
.episode--current {
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.episode__thumb {
|
||||
position: relative;
|
||||
flex: 0 0 108px;
|
||||
width: 108px;
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
|
||||
.episode__thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.episode__play {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: var(--text-lg);
|
||||
color: #fff;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
opacity: 0;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
.episode:hover .episode__play {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.episode--current .episode__play {
|
||||
opacity: 1;
|
||||
background: color-mix(in srgb, var(--color-accent) 35%, rgba(0, 0, 0, 0.35));
|
||||
}
|
||||
|
||||
.episode__body {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.episode__num {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
.episode__title {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1.3;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.episode__meta {
|
||||
margin-top: 2px;
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-text-faint);
|
||||
}
|
||||
|
||||
/* ---- responsive ---------------------------------------------------------------- */
|
||||
|
||||
@media (max-width: 720px) {
|
||||
:root {
|
||||
--card-width: 132px;
|
||||
}
|
||||
|
||||
.watch-hero {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.watch-hero__poster {
|
||||
flex-basis: auto;
|
||||
width: 132px;
|
||||
}
|
||||
|
||||
.watch-hero__title {
|
||||
font-size: var(--text-2xl);
|
||||
}
|
||||
|
||||
.home-hero h1 {
|
||||
font-size: var(--text-xl);
|
||||
}
|
||||
|
||||
.search-bar__form {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
============================================================================
|
||||
DESIGN TOKENS — the only file you need to touch to restyle the whole UI.
|
||||
Every color, font size, spacing step, radius and shadow used elsewhere
|
||||
references a variable defined here. Change a value and it applies everywhere.
|
||||
============================================================================
|
||||
*/
|
||||
|
||||
:root {
|
||||
/* ---- palette (retheme here) ----------------------------------------- */
|
||||
--color-bg: #0b0d10; /* page background */
|
||||
--color-surface: #14171c; /* cards, panels */
|
||||
--color-surface-hover: #1c2129; /* hover state for surfaces */
|
||||
--color-surface-2: #191d24; /* inputs, alt surfaces */
|
||||
--color-border: #262c35; /* default borders */
|
||||
--color-border-strong: #39424f; /* visible borders / hover borders */
|
||||
--color-text: #eceff3; /* primary text */
|
||||
--color-text-dim: #98a2b0; /* secondary text */
|
||||
--color-text-faint: #5f6b7a; /* tertiary text */
|
||||
--color-accent: #4f8cff; /* brand / primary action color */
|
||||
--color-accent-hover: #6ea1ff;
|
||||
--color-accent-text: #ffffff; /* text on accent buttons */
|
||||
--color-danger: #ff6b6b;
|
||||
--color-success: #46c98f;
|
||||
--color-star: #ffc94d; /* rating stars */
|
||||
|
||||
/* ---- typography ------------------------------------------------------ */
|
||||
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--text-xs: 0.75rem;
|
||||
--text-sm: 0.875rem;
|
||||
--text-md: 1rem;
|
||||
--text-lg: 1.125rem;
|
||||
--text-xl: 1.375rem;
|
||||
--text-2xl: 1.75rem;
|
||||
--text-3xl: 2.25rem;
|
||||
--leading-tight: 1.2;
|
||||
--leading-normal: 1.55;
|
||||
--font-weight-normal: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
--font-weight-bold: 700;
|
||||
|
||||
/* ---- spacing (4px scale) ---------------------------------------------- */
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
--space-7: 48px;
|
||||
--space-8: 64px;
|
||||
|
||||
/* ---- shape ------------------------------------------------------------- */
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 10px;
|
||||
--radius-lg: 14px;
|
||||
--radius-full: 999px;
|
||||
--shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
|
||||
--shadow-2: 0 12px 40px rgba(0, 0, 0, 0.5);
|
||||
|
||||
/* ---- layout ------------------------------------------------------------ */
|
||||
--container-max: 1280px;
|
||||
--container-pad: var(--space-5);
|
||||
--header-height: 64px;
|
||||
--poster-aspect: 2 / 3; /* 2:3 poster cards */
|
||||
--card-width: 160px; /* poster card width in carousels */
|
||||
--player-aspect: 16 / 9;
|
||||
}
|
||||
Reference in New Issue
Block a user