This commit is contained in:
4DBug committed 2026-10-27 05:49:38 -05:00
1 parent bcf05e8063
commit f37985b4c8
109 files changed
+22810 -6143

No files matched your search

+179 -763
View File
@@ -1,782 +1,198 @@
/*
PAGES — page-specific layout: home, search, watch.
Widget styling lives in components.css; this file only positions
page-level blocks and handles responsive behavior.
*/
pages.css — page-level layout: home, title, search, list/browse, settings.
*/
.page--padded { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); }
.page--center { min-height: 70vh; display: grid; place-items: center; padding-top: var(--header-h); }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.page__title { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); letter-spacing: -0.03em; }
.page__eyebrow { color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-heavy); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.section { margin-top: clamp(28px, 3.5vw, 48px); }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.section__title { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); font-weight: var(--fw-heavy); letter-spacing: -0.02em; }
/* ---- home: hero carousel ------------------------------------------------------ */
.hero {
position: relative;
height: clamp(440px, 72vh, 640px);
margin: calc(-1 * var(--space-5)) 0 var(--space-6);
overflow: hidden;
background: var(--color-surface);
/* ---- home ---------------------------------------------------------------------------- */
.hero-slot { min-height: clamp(560px, 88vh, 920px); }
.hero-slot > .hero--empty { height: var(--header-h); }
.rows { position: relative; z-index: 2; margin-top: clamp(-120px, -9vh, -60px); }
.rows > .row:first-child { margin-top: 0; }
@media (max-width: 720px) {
.hero-slot { min-height: max(560px, 82svh); }
.rows { margin-top: -24px; }
}
.hero__slides,
.hero__slide {
position: absolute;
inset: 0;
/* ---- title page -------------------------------------------------------------------------- */
.title-hero {
position: relative; overflow: hidden;
min-height: clamp(540px, 82vh, 860px);
display: flex; align-items: flex-end;
}
.hero__slide {
opacity: 0;
visibility: hidden;
transition: opacity 600ms ease, visibility 0s linear 600ms;
}
.hero__slide.is-active {
z-index: 1;
opacity: 1;
visibility: visible;
transition: opacity 600ms ease;
}
.hero__backdrop {
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.04);
transition: transform 8s ease;
}
.hero__slide.is-active .hero__backdrop {
transform: scale(1);
}
.hero__scrim {
position: absolute;
inset: 0;
.title-hero .hero__media { position: absolute; inset: 0; }
.title-hero .hero__img { opacity: 1; object-position: center 25%; }
.title-hero .hero__scrim {
background:
linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.22) 75%, rgba(0, 0, 0, 0.05) 100%),
linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.05) 100%);
linear-gradient(90deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.6) 32%, transparent 68%),
linear-gradient(0deg, var(--bg) 0%, rgba(9, 9, 11, 0.55) 26%, transparent 55%),
linear-gradient(180deg, rgba(9, 9, 11, 0.6) 0%, transparent 24%);
}
.title-hero__content {
position: relative; z-index: 2;
display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 4vw, 56px);
max-width: calc(min(760px, 64vw) + var(--gutter) * 2);
animation: rise var(--dur-slow) var(--ease) both;
}
.title-hero--loading { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.title-hero__title { font-size: var(--fs-hero); font-weight: var(--fw-heavy); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.title-hero__tagline { color: var(--text-2); font-style: italic; font-size: var(--fs-md); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 72px); }
.story__text { margin-top: 12px; color: var(--text-2); font-size: 1rem; line-height: 1.7; max-width: 80ch; }
.facts { margin: 0; display: grid; gap: 12px; align-content: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.facts__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: var(--fs-sm); }
.facts dt { color: var(--text-3); font-weight: var(--fw-semi); }
.facts dd { margin: 0; color: var(--text); font-weight: var(--fw-semi); }
.container-row { margin-top: clamp(20px, 3vw, 40px); }
/* cast */
.cast {
display: flex; align-items: center; gap: 12px;
padding: 8px 12px 8px 8px; border-radius: var(--r-pill);
transition: background var(--dur-fast);
}
.cast:hover, .cast:focus-visible { background: var(--surface-2); }
.cast:focus-visible { outline: none; box-shadow: var(--ring); }
.cast__avatar {
flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
background: var(--surface-3); display: grid; place-items: center;
box-shadow: 0 0 0 2px var(--border);
}
.cast__img { width: 100%; height: 100%; object-fit: cover; }
.cast__initials { font-weight: var(--fw-heavy); color: var(--text-2); }
.cast__text { min-width: 0; }
.cast__name { font-size: var(--fs-sm); font-weight: var(--fw-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast__role { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* episodes */
.episodes .section__head { border-bottom: 1px solid var(--border); padding-bottom: 0; align-items: flex-end; }
.episodes .section__head .tabs { border-bottom: 0; order: -1; flex-basis: 100%; }
.episodes .section__head .section__title { padding-bottom: 12px; font-size: var(--fs-md); color: var(--text-2); }
.episodes .section__head .select-wrap { margin-bottom: 12px; }
.episodes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 28px 18px; }
.card--episode .card__media { aspect-ratio: 16 / 9; }
.ep__num {
position: absolute; left: 10px; bottom: 10px; z-index: 1;
padding: 2px 8px; border-radius: var(--r-xs);
background: rgba(0, 0, 0, 0.65); font-size: var(--fs-xs); font-weight: var(--fw-heavy);
}
.card--episode .card__progress { left: 0; right: 0; bottom: 0; border-radius: 0; height: 4px; }
.card--episode .card__shade { opacity: 0.6; }
.ep__body { padding: 12px 2px 0; }
.ep__title { font-weight: var(--fw-bold); font-size: 0.98rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep__meta { margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); font-weight: var(--fw-semi); }
.ep__overview {
margin-top: 6px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5;
display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card--episode.is-future { opacity: 0.55; }
.card--episode.is-watched .ep__meta { color: var(--accent); }
@media (max-width: 900px) {
.story { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
.title-hero { min-height: auto; padding-top: 52vw; }
.title-hero .hero__media { bottom: auto; height: 78vw; }
.title-hero .hero__img { object-position: center; }
.title-hero .hero__scrim {
background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 78vw), rgba(9, 9, 11, 0.4) calc(100% - 30vw), rgba(9, 9, 11, 0.35) 100%);
}
.title-hero__content { max-width: none; padding-top: 0; gap: 12px; }
.title-hero__title { font-size: 2.2rem; }
.title-hero .hero__logo { max-height: 90px; max-width: 75%; }
.title-hero .hero__actions { width: 100%; }
.title-hero .hero__actions .btn--primary { flex-basis: 100%; }
.title-hero .hero__actions .btn--glass:not(.btn--icon) { flex: 1; }
.title-hero .hero__actions .btn--lg { height: 46px; padding: 0 16px; font-size: 0.95rem; }
.title-hero .hero__actions .btn--lg.btn--icon { width: 46px; padding: 0; }
.facts__row { grid-template-columns: 96px 1fr; }
.card--episode .card__link { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 12px; align-items: start; }
.card--episode .ep__body { padding: 0; }
.card--episode .ep__overview { -webkit-line-clamp: 3; line-clamp: 3; font-size: var(--fs-xs); }
.card--episode.card--skeleton { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 12px; }
.episodes__grid { gap: 16px; }
}
.hero__fade {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 34%;
background: linear-gradient(to top, var(--color-bg) 2%, color-mix(in srgb, var(--color-bg) 72%, transparent) 58%, transparent 100%);
pointer-events: none;
/* ---- search ----------------------------------------------------------------------------- */
.search-field {
display: flex; align-items: center; gap: 12px;
height: 60px; padding: 0 20px; margin-bottom: clamp(24px, 3vw, 40px);
border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-strong);
color: var(--text-3);
transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--text); }
.search-field__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1.15rem; font-weight: var(--fw-semi); color: var(--text); }
.search-field__input::placeholder { color: var(--text-3); }
.search-field__input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.page--padded > .page__title { font-size: var(--fs-lg); margin-bottom: 20px; }
@media (max-width: 720px) { .search-field { height: 52px; } .search-field__input { font-size: 1rem; } }
.hero__inner {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);
z-index: 2;
width: 100%;
max-width: var(--container-max);
padding: 0 var(--container-pad);
display: flex;
align-items: flex-end;
}
.load-more { height: 1px; }
.hero__content {
max-width: 620px;
padding-bottom: clamp(72px, 12vh, 112px);
}
.hero__kicker {
display: inline-block;
margin-bottom: var(--space-3);
padding: 4px 10px;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(8px);
color: rgba(255, 255, 255, 0.78);
font-size: var(--text-xs);
font-weight: var(--font-weight-semibold);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.hero__logo {
max-width: min(420px, 60vw);
max-height: 140px;
object-fit: contain;
margin-bottom: var(--space-4);
}
.hero__title {
font-size: clamp(2.2rem, 5vw, 3.6rem);
line-height: 1.05;
letter-spacing: -0.03em;
text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero__meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-top: var(--space-4);
color: rgba(255, 255, 255, 0.78);
font-size: var(--text-sm);
font-weight: var(--font-weight-medium);
}
.hero__rating {
color: var(--color-star);
font-weight: var(--font-weight-semibold);
}
.hero__dot {
color: rgba(255, 255, 255, 0.35);
}
.hero__meta .badge {
border-color: rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.88);
}
.hero__overview {
max-width: 58ch;
margin-top: var(--space-4);
color: rgba(255, 255, 255, 0.8);
font-size: var(--text-sm);
line-height: 1.6;
text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.hero__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
margin-top: var(--space-5);
}
.hero__play {
padding: 10px 24px;
font-size: var(--text-md);
}
.hero__play svg {
width: 18px;
height: 18px;
}
.hero__arrow {
position: absolute;
z-index: 3;
top: 50%;
transform: translateY(-50%);
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: none;
border-radius: var(--radius-full);
background: rgba(10, 10, 10, 0.42);
color: #fff;
backdrop-filter: blur(8px);
cursor: pointer;
opacity: 0;
transition: opacity 160ms ease, background 120ms ease;
}
.hero:hover .hero__arrow,
.hero__arrow:focus-visible {
opacity: 1;
}
.hero__arrow:hover {
background: rgba(10, 10, 10, 0.65);
}
.hero__arrow svg {
width: 22px;
height: 22px;
}
.hero__arrow--prev {
left: 20px;
}
.hero__arrow--next {
right: 20px;
}
.hero__dots {
position: absolute;
z-index: 3;
left: 50%;
transform: translateX(-50%);
bottom: var(--space-5);
display: flex;
gap: var(--space-2);
}
.hero__dot {
width: 8px;
height: 8px;
padding: 0;
border: none;
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.32);
cursor: pointer;
transition: width 160ms ease, background 160ms ease;
}
.hero__dot.is-active {
width: 24px;
background: var(--color-accent);
}
/* ---- 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: player (.player-wrap + controls live in components.css) ------------- */
.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 (source popup lives in components.css with the player) ---------- */
.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;
}
/* ---- settings ------------------------------------------------------------------ */
.settings {
display: grid;
grid-template-columns: 200px minmax(0, 1fr);
gap: var(--space-6);
align-items: start;
}
.settings__nav {
position: sticky;
top: calc(var(--header-height) + var(--space-5));
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.settings__navlink {
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-full);
font-size: var(--text-sm);
font-weight: var(--font-weight-medium);
color: var(--color-text-dim);
text-align: left;
}
.settings__navlink:hover {
color: var(--color-text);
background: var(--color-surface);
}
.settings__navlink.is-active {
color: var(--color-accent-text);
background: var(--color-accent);
}
.settings__content {
display: grid;
gap: var(--space-5);
min-width: 0;
}
.settings__card {
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
background: var(--color-surface);
padding: var(--space-5);
scroll-margin-top: calc(var(--header-height) + var(--space-4));
}
.settings__card h2 {
font-size: var(--text-xl);
margin-bottom: var(--space-2);
}
.settings__hint {
color: var(--color-text-dim);
font-size: var(--text-sm);
margin-bottom: var(--space-4);
max-width: 60ch;
}
.settings__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin: var(--space-4) 0;
}
.settings__status {
font-size: var(--text-sm);
min-height: 1.2em;
}
.settings__status--ok {
color: var(--color-success);
}
.settings__status--err {
color: var(--color-danger);
}
.provider-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: var(--space-2);
margin-top: var(--space-4);
}
/* ---- settings ---------------------------------------------------------------------------- */
.settings__layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.settings-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav__link { text-align: left; padding: 10px 14px; border-radius: var(--r-md); color: var(--text-2); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.settings-nav__link:hover { background: var(--surface); color: var(--text); }
.settings__cards { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.settings-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 20px); }
.settings-card__head { margin-bottom: 18px; }
.settings-card__title { font-size: var(--fs-lg); font-weight: var(--fw-heavy); }
.settings-card__desc { margin-top: 4px; color: var(--text-3); font-size: var(--fs-sm); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.field-row__label { font-weight: var(--fw-bold); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 4px; cursor: pointer; }
.switch-row__text { display: flex; flex-direction: column; gap: 2px; font-weight: var(--fw-bold); }
.switch-row__text small { color: var(--text-3); font-weight: var(--fw-medium); font-size: var(--fs-xs); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.provider {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
background: var(--color-surface-2);
cursor: pointer;
transition: border-color 120ms ease;
position: relative; display: flex; align-items: center; gap: 12px;
padding: 10px 12px; border-radius: var(--r-md);
background: var(--bg-elev); border: 1px solid var(--border);
cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast);
}
.provider:hover {
border-color: var(--color-border-strong);
.provider:hover { border-color: var(--border-strong); }
.provider input { position: absolute; opacity: 0; pointer-events: none; }
.provider__check {
flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
border: 1.5px solid var(--border-strong); color: transparent;
transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.provider input:checked ~ .provider__check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.provider:has(input:checked) { border-color: rgba(192, 132, 252, 0.35); background: rgba(192, 132, 252, 0.06); }
.provider input:focus-visible ~ .provider__check { box-shadow: var(--ring); }
.provider__text { min-width: 0; display: flex; flex-direction: column; }
.provider__name { font-weight: var(--fw-bold); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider__meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.health { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.health--good { background: var(--accent); }
.health--fair { background: var(--warn); }
.health--bad { background: var(--danger); }
.provider input[type="checkbox"] {
flex: 0 0 auto;
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--color-accent);
cursor: pointer;
@media (max-width: 900px) {
.settings__layout { grid-template-columns: 1fr; }
.settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.settings-nav__link { flex-shrink: 0; background: var(--surface); }
}
.provider__name {
font-size: var(--text-sm);
font-weight: var(--font-weight-medium);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ---- responsive ---------------------------------------------------------------- */
@media (max-width: 720px) {
:root {
--card-width: 132px;
}
.hero {
height: clamp(360px, 58vh, 520px);
margin-bottom: var(--space-5);
}
.hero__content {
padding-bottom: 64px;
}
.hero__overview {
-webkit-line-clamp: 2;
}
.hero__arrow {
display: none;
}
.search-bar__form {
flex-direction: column;
}
.settings {
grid-template-columns: 1fr;
gap: var(--space-4);
}
.settings__nav {
position: static;
flex-direction: row;
flex-wrap: wrap;
}
.settings__card {
padding: var(--space-4);
}
}
.watch-page .page--watch {
padding-top: 0;
}
.watch-page .site-header {
background: transparent;
border-bottom-color: transparent;
backdrop-filter: none;
}
.watch-page.is-scrolled .site-header {
background: color-mix(in srgb, var(--color-bg) 85%, transparent);
border-bottom-color: var(--color-border);
backdrop-filter: blur(12px);
}
.watch-hero {
position: relative;
isolation: isolate;
margin-top: calc(var(--header-height) * -1);
min-height: min(85svh, 900px);
display: flex;
align-items: flex-end;
overflow: hidden;
background: var(--color-surface);
}
.watch-hero__backdrop {
position: absolute;
inset: 0;
z-index: -2;
background-size: cover;
background-position: center;
background-color: var(--color-surface);
}
.watch-hero__scrim {
position: absolute;
inset: 0;
z-index: -1;
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--color-bg) 20%, transparent) 0%,
color-mix(in srgb, var(--color-bg) 55%, transparent) 55%,
var(--color-bg) 100%
),
linear-gradient(
90deg,
color-mix(in srgb, var(--color-bg) 85%, transparent) 0%,
transparent 65%
);
}
.watch-hero__inner {
width: 100%;
max-width: var(--container-max);
margin: 0 auto;
padding: calc(var(--header-height) + var(--space-8)) var(--container-pad) var(--space-8);
}
.watch-hero__logo {
max-width: min(420px, 60vw);
max-height: 140px;
object-fit: contain;
margin-bottom: var(--space-4);
}
.watch-hero__title {
margin: 0;
font-size: clamp(2.2rem, 6vw, 4.5rem);
line-height: 1.02;
letter-spacing: -0.035em;
}
.watch-hero__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2) var(--space-3);
margin-top: var(--space-4);
color: var(--color-text-dim);
font-size: var(--text-sm);
}
.watch-hero__rating {
color: var(--color-star);
letter-spacing: 2px;
}
.watch-hero__dot {
color: var(--color-text-faint);
}
.watch-hero__genres {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-top: var(--space-4);
}
.watch-hero__overview {
max-width: 72ch;
margin: var(--space-4) 0 0;
color: var(--color-text-dim);
line-height: 1.55;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
.watch-hero__actions {
margin-top: var(--space-6);
display: flex;
}
.watch-hero__actions .btn--primary {
padding: var(--space-3) var(--space-6);
font-size: var(--text-md);
}
.watch-episodes {
padding: var(--space-8) 0;
}
.watch-episodes__title {
margin: 0 0 var(--space-4);
font-size: var(--text-xl);
}
.season-tabs {
display: flex;
gap: var(--space-2);
overflow-x: auto;
padding-bottom: var(--space-2);
margin-bottom: var(--space-5);
}
.episode-shelf {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(220px, 1fr);
gap: var(--space-4);
overflow-x: auto;
scroll-snap-type: x mandatory;
padding: var(--space-2) var(--space-2) var(--space-3);
scroll-padding: var(--space-2);
}
.episode-shelf__loading,
.episode-shelf__empty {
grid-column: 1 / -1;
display: grid;
place-items: center;
min-height: 180px;
}
.episode-card {
scroll-snap-align: start;
text-align: left;
border: 1px solid var(--color-border);
background: var(--color-surface);
border-radius: var(--radius-lg);
overflow: hidden;
padding: 0;
cursor: pointer;
}
.episode-card--current {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.episode-card__thumb {
position: relative;
display: block;
aspect-ratio: 16 / 9;
width: 100%;
background: var(--color-surface-2);
}
.episode-card__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.episode-card__thumb--empty {
display: grid;
place-items: center;
font-size: var(--text-2xl);
color: var(--color-text-faint);
}
.episode-card__progress {
position: absolute;
left: 0;
bottom: 0;
height: 3px;
background: var(--color-accent);
}
.episode-card__body {
display: grid;
gap: var(--space-1);
padding: var(--space-3);
}
.episode-card__num {
color: var(--color-text-faint);
font-size: var(--text-xs);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.episode-card__title {
font-weight: 600;
color: var(--color-text-dim);
}
.episode-card__meta {
color: var(--color-text-dim);
font-size: var(--text-xs);
}
.player-overlay {
position: fixed;
inset: 0;
z-index: 100;
background: #000;
display: grid;
place-items: center;
}
.player-overlay[hidden] {
display: none;
}
body.player-open {
overflow: hidden;
}
body.player-open .player-overlay {
display: grid;
}
.player-overlay__close {
position: absolute;
top: var(--space-4);
right: var(--space-4);
z-index: 20;
background: color-mix(in srgb, #000 60%, transparent);
color: #fff;
border: 1px solid rgb(255 255 255 / 20%);
}
#playerOverlay .player-wrap {
width: 100vw;
height: 100vh;
height: 100dvh;
aspect-ratio: auto;
border: none;
border-radius: 0;
}
#playerOverlay .watch-toolbar {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: var(--space-5);
z-index: 2;
background: color-mix(in srgb, #000 65%, transparent);
border: 1px solid rgb(255 255 255 / 10%);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-md);
}
@media (max-width: 720px) {
.watch-hero {
min-height: 70svh;
}
.watch-hero__inner {
padding-bottom: var(--space-6);
}
.watch-hero__actions .btn--primary {
width: 100%;
}
.episode-shelf {
grid-auto-columns: minmax(160px, 80vw);
}
.player-overlay__close {
top: var(--space-2);
right: var(--space-2);
}
.input-row { flex-wrap: wrap; }
.input-row .input { flex-basis: 100%; }
.provider-grid { grid-template-columns: 1fr; }
.input--sm { max-width: none; flex: 1; }
}