/* Design tokens — design_handoff_4season/README.md */
:root {
	--bg: #0a0a0c;
	--bg-footer: #0c0c10;
	--surface: #101015;
	--surface-2: #15151b;
	--surface-3: #17171c;
	--surface-menu: #131318;
	--player-bg: #0d0d11;
	--header-bg: rgba(10, 10, 12, .93);
	--border: #23232b;
	--border-2: #2a2a33;
	--border-3: #33333d;
	--divider: #1e1e24;
	--divider-2: #26262e;
	--ink: #f2f1ee;
	--ink-2: #e7e6e3;
	--ink-body: #c5c4c9;
	--ink-body-2: #a5a5ae;
	--ink-muted: #b6b6bf;
	--ink-dim: #8a8a95;
	--ink-dim-2: #75757f;
	--ink-faint: #6d6d78;
	--dot: #44444e;
	--accent: oklch(0.74 0.16 38);
	--accent-hover: oklch(0.82 0.13 38);
	--accent-bright: oklch(0.8 0.15 38);
	--accent-on: #140806;
	--accent-soft-bg: rgba(255, 120, 60, .14);
	--accent-soft-ink: oklch(0.86 0.12 38);
	--rating: oklch(0.82 0.14 90);
	--seen-ok: oklch(0.72 0.15 160);
	--star-empty: #3a3a45;
	--badge-bg: rgba(10, 10, 12, .85);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-body);
	font-family: 'Golos Text', system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.fs-mono { font-family: 'IBM Plex Mono', monospace; }
.fs-uppercase { text-transform: uppercase; letter-spacing: .08em; }
.fs-dim { color: var(--ink-dim); }
.fs-accent { color: var(--accent); }
.fs-dot::before { content: '·'; color: var(--dot); margin: 0 6px; }

.fs-main, .fs-header, .fs-footer-cols, .fs-crumbs-row {
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Header */
.fs-header {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	padding-top: 12px; padding-bottom: 12px;
	background: var(--header-bg);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--divider);
	max-width: none;
}
.fs-logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.fs-nav { display: flex; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.fs-search { position: relative; flex: 1; min-width: 180px; }
.fs-search input {
	width: 100%; padding: 10px 14px; border-radius: 10px;
	background: var(--surface-3); border: 1px solid var(--border-2); color: var(--ink);
	font-family: inherit; font-size: 14px;
}
.fs-search input:focus { outline: none; border-color: var(--accent); }
.fs-live-panel {
	position: absolute; top: 48px; left: 0; right: 0; z-index: 50;
	background: var(--surface-menu); border: 1px solid var(--border-2); border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
	overflow: hidden;
}
.fs-live-row { display: flex; gap: 10px; align-items: center; padding: 8px 12px; }
.fs-live-row:hover { background: #1e1e26; }
.fs-live-thumb { width: 32px; height: 46px; border-radius: 4px; background-size: cover; background-position: center; background-color: var(--surface-2); flex-shrink: 0; }
.fs-live-title { display: block; font-size: 14px; }
.fs-live-year { display: block; font-size: 12px; color: var(--ink-dim); }
.fs-live-all { display: block; padding: 10px 12px; font-size: 13px; color: var(--accent); }

.fs-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 14px;
	border: 1px solid transparent; cursor: pointer;
}
.fs-btn-accent { background: var(--accent); color: var(--accent-on); }
.fs-btn-accent:hover { background: var(--accent-bright); }
.fs-btn-outline { background: transparent; border-color: var(--border-3); color: var(--ink-2); }
.fs-btn-outline:hover { border-color: #55555f; }
.fs-btn-sm { padding: 7px 12px; font-size: 13px; }
.fs-link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; }
.fs-link-btn:hover { color: var(--accent-hover); }
.fs-link-all { color: var(--accent); font-size: 13px; }
.fs-link-all:hover { color: var(--accent-hover); }

/* Breadcrumbs */
.fs-crumbs-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; flex-wrap: wrap; gap: 8px; max-width: none; }
.fs-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 4px; font-size: 13px; }
.fs-breadcrumbs li { display: flex; align-items: center; gap: 4px; color: var(--ink-dim); }
.fs-breadcrumbs li a:hover { color: var(--accent-hover); }
.fs-crumb-sep { color: var(--dot); }
.fs-url-chip { background: #15151a; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 12px; }

/* Cards */
.fs-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.fs-card { display: block; }
.fs-card-poster { position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.fs-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.fs-badge { position: absolute; font-family: 'IBM Plex Mono', monospace; padding: 2px 7px; border-radius: 6px; background: var(--badge-bg); }
.fs-badge-rating { top: 6px; left: 6px; font-size: 11px; color: var(--rating); }
.fs-badge-quality { top: 6px; right: 6px; font-size: 10px; color: var(--ink-muted); }
.fs-card-title { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.fs-card-sub { display: block; font-size: 12px; color: var(--ink-dim); }

.fs-placeholder { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #1b1b21 0 7px, #23232b 7px 14px); }
.fs-placeholder-poster { aspect-ratio: 2/3; }
.fs-placeholder-still { aspect-ratio: 16/9; }
.fs-placeholder-person { border-radius: 50%; }
.fs-placeholder-person-lg { width: 150px; height: 200px; border-radius: 12px; }

/* Sections */
.fs-rail, .fs-hub-block, .fs-similar-section, .fs-people-section, .fs-faq-section, .fs-comments-section, .fs-seasons-section, .fs-player-section, .fs-title-hero, .fs-hero, .fs-catalog-layout, .fs-404, .fs-episode-nav, .fs-filmography, .fs-person-hero {
	margin-top: 44px;
}
.fs-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fs-section-head h2, .fs-people-section h2, .fs-similar-section h2, .fs-faq-section h2, .fs-filmography h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }

/* Hero */
.fs-hero {
	border-radius: 18px; border: 1px solid var(--border);
	background: repeating-linear-gradient(115deg, #141419 0 14px, #18181f 14px 28px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
	padding: clamp(20px, 4vw, 44px);
	align-items: center;
}
.fs-hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 8px 0; }
.fs-hero-desc { max-width: 52ch; color: var(--ink-body); }
.fs-hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.fs-hero-poster { justify-self: end; max-width: 290px; width: 100%; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.fs-hero-poster img { width: 100%; height: 100%; object-fit: cover; }

/* Meta line */
.fs-meta-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; margin: 10px 0; }
.fs-meta-line .fs-dot { color: var(--dot); }
.fs-age-badge { border: 1px solid #3a3a45; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.fs-year-dim { color: var(--ink-dim-2); font-weight: 600; }

/* Title hero */
.fs-title-hero { display: flex; flex-wrap: wrap; gap: 30px; }
.fs-title-hero-left { flex: 1 1 200px; max-width: 290px; }
.fs-title-hero-right { flex: 999 1 340px; }
.fs-title-poster { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.fs-title-actions { display: flex; gap: 10px; margin-top: 14px; }
.fs-title-hero-right h1 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin: 0; }

/* Rating block */
.fs-rating-block { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border); flex-wrap: wrap; margin: 14px 0; }
.fs-rating-item { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--divider-2); }
.fs-rating-item:first-child { border-left: none; padding-left: 0; }
.fs-rating-label { font-size: 12px; color: var(--ink-dim); }
.fs-rating-value { font-size: 26px; font-weight: 800; color: var(--ink); }
.fs-rating-kp { color: var(--rating); }
.fs-rating-stars span { color: var(--star-empty); font-size: 19px; letter-spacing: 2px; }
.fs-rating-stars span.is-filled { color: var(--rating); }
.fs-rating-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-dim); margin-left: 6px; }

/* Description */
.fs-description-text { max-width: 72ch; }
.fs-description-text { max-height: 4.5em; overflow: hidden; }
.fs-description-text.is-expanded { max-height: none; }

/* Player */
.fs-player { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--player-bg); }
.fs-player-frame {
	position: relative; aspect-ratio: 16/9;
	background: repeating-linear-gradient(135deg, #101014 0 10px, #141419 10px 20px); opacity: .95;
	display: flex; align-items: center; justify-content: center;
}
.fs-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fs-player-play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-on); border: none; font-size: 22px; cursor: pointer; }
.fs-player-controls { display: flex; align-items: center; gap: 14px; padding: 14px; flex-wrap: wrap; }
.fs-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-chip-divider { width: 1px; height: 20px; background: var(--border-3); }
.fs-chip { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--ink-muted); font-size: 13px; cursor: pointer; }
.fs-chip:hover { border-color: var(--accent); }
.fs-chip.is-active, a.fs-chip.is-active { background: var(--accent-soft-bg); color: var(--accent-soft-ink); border-color: transparent; }

/* Seasons / episodes */
.fs-season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fs-season-tab { padding: 9px 16px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.fs-season-tab.is-active { background: var(--accent-soft-bg); color: var(--accent-soft-ink); }
.fs-grid-episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fs-episode-card { display: block; }
.fs-episode-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-2); }
.fs-episode-duration { position: absolute; right: 6px; bottom: 6px; background: var(--badge-bg); padding: 2px 6px; border-radius: 6px; font-size: 11px; }
.fs-episode-title { display: block; margin-top: 8px; font-size: 14px; }
.fs-episode-date { color: var(--ink-dim-2); font-size: 11px; }

.fs-episode-list { display: flex; flex-direction: column; gap: 10px; }
.fs-episode-row { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px; }
.fs-episode-row:hover { border-color: var(--accent); }
.fs-episode-row-thumb { width: 148px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.fs-episode-row-title { display: block; font-size: 15px; font-weight: 600; }
.fs-episode-row-desc { display: block; font-size: 13px; color: var(--ink-body-2); }
.fs-episode-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Person */
.fs-grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.fs-person-card { text-align: center; }
.fs-person-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; margin: 0 auto; background: var(--surface-2); }
.fs-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.fs-person-name { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.fs-person-role { display: block; font-size: 12px; color: var(--ink-dim); }
.fs-person-hero { display: flex; gap: 24px; flex-wrap: wrap; }
.fs-person-photo-lg { width: 150px; height: 200px; border-radius: 12px; overflow: hidden; }
.fs-person-photo-lg img { width: 100%; height: 100%; object-fit: cover; }
.fs-person-bio { max-width: 62ch; margin-top: 10px; }

/* FAQ */
.fs-faq-item { background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; max-width: 820px; }
.fs-faq-item h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.fs-faq-item p { font-size: 14px; color: var(--ink-body-2); margin: 0; }

/* Catalog / hub */
.fs-catalog-layout { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.fs-catalog-sidebar { flex: 1 1 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.fs-catalog-content { flex: 999 1 340px; }
.fs-catalog-content h1 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.fs-catalog-intro { max-width: 72ch; color: var(--ink-body-2); }
.fs-filter-group { margin-bottom: 16px; }
.fs-filter-note { border-top: 1px dashed var(--border-2); padding-top: 10px; margin-top: 10px; font-size: 11px; }
.fs-pagination { margin-top: 30px; display: flex; gap: 8px; }
.fs-pagination a, .fs-pagination span { padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 8px; }

.fs-hub-block { margin-top: 52px; border-top: 1px solid var(--divider); padding-top: 30px; }
.fs-hub-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.fs-hub-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 13px; }
.fs-pill:hover { border-color: var(--accent); }

/* 404 */
.fs-404 { text-align: center; padding: 40px 0; }
.fs-404-code { font-size: 64px; color: #26262e; }
.fs-404 p { max-width: 56ch; margin: 10px auto 20px; }
.fs-404 .fs-hero-actions { justify-content: center; }

/* Footer */
.fs-footer { background: var(--bg-footer); border-top: 1px solid var(--divider); margin-top: 60px; padding: 30px 0; }
.fs-footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.fs-footer-cols h3 { font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; }
.fs-footer-cols a { display: block; font-size: 13px; color: var(--ink-dim); padding: 3px 0; }
.fs-footer-cols a:hover { color: var(--accent-hover); }
.fs-footer-copy { text-align: center; margin-top: 20px; color: var(--ink-faint); font-size: 12px; }

@media (max-width: 600px) {
	.fs-header { flex-direction: column; align-items: stretch; }
	.fs-title-hero-left { max-width: none; }
}
