/* 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-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; } } /* ---- title page -------------------------------------------------------------------------- */ .title-hero { position: relative; overflow: hidden; min-height: clamp(540px, 82vh, 860px); display: flex; align-items: flex-end; } .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(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; } } /* ---- 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; } } .load-more { height: 1px; } /* ---- 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 { 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(--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); } @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); } } @media (max-width: 720px) { .input-row { flex-wrap: wrap; } .input-row .input { flex-basis: 100%; } .provider-grid { grid-template-columns: 1fr; } .input--sm { max-width: none; flex: 1; } }