@font-face {
  font-family: "Golos Text"; src: url("/golos-text.ttf") format("truetype");
  font-style: normal; font-weight: 400 900; font-display: swap;
}
:root {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--bg);
  font: 16px/1.5 "Golos Text", system-ui, sans-serif;
  --bg: #101114;
  --panel: #191b20;
  --raised: #22252c;
  --line: #363a43;
  --text: #f4f5f7;
  --muted: #b7bbc4;
  --accent: #d2ec9d;
  --accent-hover: #e2f6b8;
  --scroll-thumb: #b8cf88;
  --radius: 10px;
}
@supports selector(::-webkit-scrollbar) {
  :root { scrollbar-width: auto; scrollbar-color: auto; }
  html::-webkit-scrollbar { width: 12px; }
  html::-webkit-scrollbar-track { background: var(--bg); }
  html::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb); border: 3px solid var(--bg); border-radius: 8px;
  }
  html::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 8px 16px; color: var(--bg); background: var(--accent);
  transform: translateY(calc(-100% - 16px));
}
.skip-link:focus { transform: none; color: var(--bg); }
.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.bar, main { width: min(1400px, 100% - 48px); margin-inline: auto; }
.bar { min-height: 76px; display: flex; gap: 16px; align-items: center; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 32px; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.logo span, [aria-current="page"] { color: var(--accent); }
nav { display: flex; gap: 4px; color: var(--muted); }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; }
nav a[aria-current="page"] { background: var(--raised); }
.search { display: flex; position: relative; margin-inline-start: auto; width: min(100%, 330px); }
.search input { width: 100%; }
.account-menu { position: relative; margin: 0; flex: none; }
.account-menu summary {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--raised); list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--accent); }
.header-avatar { display: grid; place-items: center; width: 36px; height: 36px; font-weight: 700; color: var(--accent); }
.header-avatar:empty { position: relative; }
.header-avatar:empty::before, .header-avatar:empty::after { content: ''; position: absolute; background: var(--muted); }
.header-avatar:empty::before { top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.header-avatar:empty::after { top: 18px; width: 16px; height: 9px; border-radius: 8px 8px 3px 3px; }
.header-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.account-dropdown {
  position: absolute; z-index: 3; inset: calc(100% + 8px) 0 auto auto; width: 214px;
  display: grid; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: 0 12px 30px #0005;
}
.account-dropdown > strong { padding: 8px 10px; overflow-wrap: anywhere; }
.account-dropdown :is(a,button) {
  display: flex; align-items: center; min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 6px; background: transparent; text-align: start;
}
.account-dropdown :is(a,button):hover { background: var(--raised); }
.suggestions {
  position: absolute; inset: calc(100% + 8px) 0 auto; z-index: 2; margin: 0; padding: 4px;
  list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  max-height: min(70vh, 520px); overflow: auto;
}
.suggestions a { display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 54px; border-radius: 6px; }
.suggestions a:hover, .suggestions a:focus-visible { background: var(--raised); outline-offset: -2px; }
.suggestions img { width: 34px; height: 48px; object-fit: cover; border-radius: 4px; }
.suggestions small, .resume-card small { display: block; color: var(--muted); }
.suggestions-heading { padding: 4px 8px; color: var(--muted); font-size: 13px; }
.user-result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px,100%), 1fr)); gap: 8px; }
.user-result { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px; overflow-wrap: anywhere; }
.user-result-list .user-result { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.user-result small { display: block; color: var(--muted); }
.user-result-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; color: var(--accent); background: var(--raised);
}
.user-result-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
input, select, button, textarea {
  font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; min-width: 0; min-height: 44px;
}
input::placeholder { color: var(--muted); }
.search input { background: var(--bg); }
button { cursor: pointer; }
button:hover:not(:disabled), select:hover:not(:disabled) { border-color: var(--accent); background: var(--raised); }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px;
  background: var(--accent); color: var(--bg); font-weight: 700;
}
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
:disabled { opacity: .55; cursor: default; }
main { padding-block: 32px 64px; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 0 0 20px; font-weight: 720; overflow-wrap: anywhere; text-wrap: balance; }
h2 { font-size: 24px; margin: 32px 0 12px; }
.status, .back, .card small { color: var(--muted); }
.status:empty { display: none; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }
.shelf { margin-bottom: 36px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 16px; }
.section-head :is(h1,h2), .shelf > h2 { margin: 0; }
.shelf > h2 { margin-bottom: 16px; }
.section-head > a { color: var(--accent); }
.catalog-feed { min-width: 0; }
.catalog-header { margin-bottom: 24px; }
.catalog-header .section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; margin-bottom: 12px;
}
#genres-open { justify-self: end; color: var(--accent); white-space: nowrap; }
#catalog-filters { flex-wrap: wrap; gap: 6px; }
#catalog-filters a { border: 1px solid var(--line); }
#catalog-filters a[aria-current="page"] { border-color: var(--accent); }
#active-genre { display: flex; align-items: center; gap: 12px; margin-bottom: 0; }
#active-genre a { color: var(--accent); }
dialog {
  max-width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); background: var(--panel);
}
dialog::backdrop { background: #000b; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2, #preview-title { margin: 0; overflow-wrap: anywhere; }
.genre-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#card-preview { width: min(340px, calc(100vw - 32px)); }
#card-preview .preview-cover { width: min(168px, 100%); margin: 0 auto 16px; border-radius: 8px; }
#card-preview .actions { margin-top: 16px; }
.collection-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr);
  gap: 12px; overflow-x: auto; padding: 5px 4px 8px;
}
.collection-cards .card-info { padding-inline: 9px; }
#trending-shelf {
  align-self: start; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel);
}
#trending-heading { margin: 0 0 12px; font-size: 20px; }
#trending-items { display: grid; gap: 8px; }
#trending-items .card {
  grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto;
  gap: 10px; align-items: center; padding: 4px; border-color: transparent; background: transparent;
}
#trending-items .card:is(:hover,:focus-visible,[data-selected]) { border-color: var(--accent); background: var(--raised); }
#trending-items .poster { border: 0; border-radius: 5px; }
#trending-items .card-info { padding: 0; gap: 3px; font-size: 14px; }
#trending-items .card strong { min-height: 0; }
#trending-items .card:is(:hover,:focus-visible) strong { display: block; }
.trending-all { display: flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--accent); }
@media (min-width: 980px) {
  .catalog-layout:has(#trending-shelf:not([hidden])) {
    display: grid; grid-template-columns: clamp(224px, 23%, 280px) minmax(0, 1fr); gap: 24px;
  }
  #trending-shelf { margin: 0; }
}
@media (max-width: 979px) {
  #trending-items { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
}
.resume-grid, .season-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.resume-card, .season-link {
  display: block; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere;
}
.resume-card:hover, .season-link:hover, .season-link[aria-current] { border-color: var(--accent); }
.title-layout {
  display: grid; align-items: start; grid-template-columns: minmax(140px, 250px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px); margin-bottom: 32px;
}
.title-layout .poster { border: 1px solid var(--line); border-radius: var(--radius); }
.title-layout h1 { margin-bottom: 8px; }
.title-layout h2 { margin-top: 24px; }
.title-layout :is(.status,.title-meta) { margin: 8px 0; }
.title-layout .actions { margin-top: 16px; }
.description { max-width: 76ch; white-space: pre-line; }
.playing .title-layout { display: block; margin-bottom: 16px; }
.playing :is(#title-cover,.title-summary,#title-genres,#title-list,#trailer) { display: none; }
#watch-player:not([hidden]) + #season-list { margin-top: 24px; }
.title-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.title-list p { flex-basis: 100%; }
.secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
#watch-player { scroll-margin-block-start: 12px; }
.episode-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; overflow: auto; max-height: 154px; }
.episode-buttons button { padding: 4px; font-variant-numeric: tabular-nums; }
.episode-buttons button[aria-pressed="true"] { color: var(--bg); background: var(--accent); }
#undo-skip, #cancel-next { margin: 8px 8px 0 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 164px), 1fr)); }
.card {
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card .poster { position: relative; }
.card-full-title {
  position: absolute; inset: auto 0 0; z-index: 1; padding: 16px 10px 10px;
  color: var(--text); font-size: 14px; font-weight: 700; overflow-wrap: anywhere;
  background: linear-gradient(transparent,#0b0c0ee8 28%); opacity: 0;
}
.card:is(:hover,:focus-visible) .card-full-title { opacity: 1; }
.card:is(:hover,:focus-visible) .poster img { transform: scale(1.045); filter: brightness(.76); }
.card-info { display: grid; align-content: start; gap: 5px; padding: 10px 12px 12px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; justify-content: space-between; }
.card-score { color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  line-height: 1.35; min-height: 2.7em; overflow-wrap: anywhere;
}
.poster {
  width: 100%; aspect-ratio: 2/3; display: block; background: var(--panel); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster:not(:has(img)) {
  display: grid; place-items: center;
}
.poster:not(:has(img))::before {
  content: ''; width: 24%; aspect-ratio: 4/3; border: 2px solid var(--line); border-radius: 4px;
}
.catalog-controls { display: grid; justify-items: center; gap: 8px; margin-top: 24px; }
.catalog-controls p { margin: 0; }
.card:hover, .card:focus-visible { border-color: var(--accent); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 25%); gap: 20px; align-items: start; }
.screen { display: grid; place-items: center; aspect-ratio: 16/9; background: #090a0b; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.screen p { color: var(--muted); text-align: center; }
.screen iframe, .screen video { width: 100%; height: 100%; border: 0; }
.screen video { min-width: 0; min-height: 0; object-fit: contain; }
#native-controls { display: grid; gap: 8px; }
#native-controls label { color: var(--muted); }
.screen:fullscreen { border: 0; border-radius: 0; }
.controls { padding: 16px; display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.controls h2 { margin: 0 0 4px; font-size: 18px; }
.controls details { margin-top: 0; }
.controls details p { margin: 0 0 8px; font-size: 14px; }
.controls > label, #season-control label { color: var(--muted); }
#season-control { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.controls select { width: 100%; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; min-height: 0; margin: 0; }
.toggle input[type="checkbox"] {
  appearance: none; display: grid; place-content: center; flex: none; padding: 0;
  border: 1px solid var(--muted); border-radius: 4px; cursor: pointer;
}
.toggle input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.toggle input[type="checkbox"]:checked::before {
  content: ''; width: 8px; height: 4px; border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg);
}
.playback-preferences { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
#watch-player { width: 100%; }
.screen { position: relative; display: block; overflow: hidden; }
#video-mount { position: absolute; inset: 0; }
.screen:has(iframe) #video-mount { bottom: 56px; }
.screen:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }
.player-overlay { position: absolute; inset: auto 0 0; padding: 8px 12px; background: linear-gradient(transparent,#090a0bef 44%); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
#video-clock { margin-inline-end: auto; font-variant-numeric: tabular-nums; }
#seek { width: 100%; display: block; }
.player-bar input, #seek { accent-color: var(--accent); min-height: 24px; padding: 0; }
#volume { width: clamp(52px, 9vw, 120px); }
#player-settings { position: relative; margin: 0; }
#player-settings summary { padding-inline: 8px; }
#player-settings .controls {
  position: absolute; bottom: calc(100% + 12px); right: 0; width: min(276px, 78vw);
  max-height: min(54dvh, 330px); overflow: auto; box-shadow: 0 8px 24px #0008;
}
.player-notices { position: absolute; top: 0; right: 8px; }
.player-loading {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; max-width: calc(100% - 32px);
  padding: 12px 20px; background: #090a0b; border-radius: 8px; text-align: center; pointer-events: none;
}
.player-loading:not(:has(:is(#player-status, #player-buffer):not([hidden]))) { display: none; }
.player-loading p { margin: 0; }
.loading-brand {
  position: relative; padding-inline-end: .24em;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 40px); font-weight: 750; line-height: 1; letter-spacing: -.05em;
}
.loading-dot {
  position: absolute; right: 0; bottom: .11em; width: .18em; aspect-ratio: 1;
  border-radius: 50%; background: var(--accent);
}
.player-loading:not(:has(#player-status[data-loading]:not([hidden]), #player-buffer:not([hidden]))) .loading-brand { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .loading-dot { animation: loading-bounce 960ms cubic-bezier(.77,0,.175,1) infinite; }
  @keyframes loading-bounce {
    0%, 14%, 86%, 100% { transform: translateY(0); }
    50% { transform: translateY(-.36em); }
  }
}
.profile-sidebar { container-type: inline-size; min-width: 0; }
.stats > div { min-width: 0; justify-content: start; }
.stats dd { overflow-wrap: anywhere; }
@container (max-width: 235px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 8px 12px; }
}
.timeline { position: relative; height: 4px; margin-top: 8px; background: var(--line); }
.mark { position: absolute; height: 100%; background: var(--accent); }
.mark.ed { opacity: .55; }
#profile { --profile-color: var(--accent); }
.profile-dashboard {
  display: grid; grid-template-columns: minmax(232px, 27%) minmax(0, 1fr); align-items: start; gap: 20px;
}
.profile-dashboard:has(#profile-aside[hidden]):has(#collection-summary[hidden]) { grid-template-columns: minmax(0, 1fr); }
.profile-sidebar:has(#profile-aside[hidden]):has(#collection-summary[hidden]) { display: none; }
.profile-dashboard .profile-panel { margin-top: 20px; padding: 20px; border-radius: var(--radius); }
.profile-dashboard h2 { margin: 0 0 12px; font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: end; padding: 12px; border-radius: 9px; background: var(--raised); }
.stats dt { font-size: 13px; }
.stats dd { margin: 0 0 5px; font-size: clamp(17px, 1.65vw, 26px); }
.collection-meter { display: flex; overflow: hidden; border-radius: 5px; gap: 2px; height: 8px; }
.collection-meter:empty { display: none; }
[data-status="watching"] { --list-color: #92c9fa; }
[data-status="planned"] { --list-color: #b7bbc4; }
[data-status="completed"] { --list-color: #d2ec9d; }
[data-status="on_hold"] { --list-color: #f6cf8f; }
[data-status="dropped"] { --list-color: #f2a8ab; }
.collection-meter span { background: var(--list-color); }
.collection-count { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.collection-count dt::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--list-color); }
.collection-count dd { margin: 0; font-size: 15px; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-tabs button { background: transparent; border-color: transparent; }
.profile-tabs button[aria-selected="true"] { color: var(--bg); background: var(--accent); }
.profile-title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 12px; }
.profile-title-card { display: grid; align-content: start; gap: 8px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.profile-title-card .poster { border-radius: 8px; }
.profile-title-card strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
dt { color: var(--muted); }
dd { margin: 4px 0 0; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.history { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(190px,100%),1fr)); gap: 12px; list-style: none; padding: 0; }
.continue-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
@media (max-width: 760px) {
  .continue-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.history a { display: flex; flex-direction: column; justify-content: end; gap: 2px; position: relative; isolation: isolate; overflow: hidden; min-height: 132px; aspect-ratio: 16/10; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.history a:hover { border-color: var(--accent); }
.history .profile-poster { position: absolute; inset: 0; height: 100%; z-index: -2; border: 0; }
.history a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#10111435,#101114f5 88%); }
.history-badge { align-self: end; margin-bottom: auto; padding: 2px 8px; border-radius: 12px; background: #101114de; font-size: 12px; }
.history-copy { min-width: 0; overflow-wrap: anywhere; }
.history-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.25; }
.history-copy small { display: block; color: var(--muted); font-size: 12px; }
details { margin-top: 24px; }
summary { cursor: pointer; width: fit-content; min-height: 44px; padding-block: 10px; }
details p { max-width: 75ch; color: var(--muted); }
code { overflow-wrap: anywhere; user-select: all; }
.import { max-width: 440px; display: grid; gap: 12px; margin-block-start: 12px; }
.import label { display: grid; gap: 4px; }
.profile-banner {
  display: flex; align-items: end; gap: 24px; min-height: 180px; padding: 28px;
  border: 1px solid var(--line);
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px; background: linear-gradient(115deg, #252e26, var(--panel) 65%);
}
.profile-banner.has-cover { min-height: clamp(235px, 30vw, 370px); }
#profile-banner-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-cover::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(0deg, #101114f5 0%, #101114ad 42%, #10111424 100%);
}
.profile-banner[data-theme="blue"] { --profile-color: #b5dafe; }
.profile-banner[data-theme="rose"] { --profile-color: #ffbdd2; }
.profile-banner[data-theme="amber"] { --profile-color: #f6cf8f; }
.profile-banner h1 { margin: 0; font-size: clamp(26px, 4vw, 46px); text-wrap: initial; overflow-wrap: anywhere; }
.profile-banner p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-intro { flex: 1; min-width: 0; }
.avatar {
  width: clamp(72px, 10vw, 124px); aspect-ratio: 1; display: grid; place-items: center; flex: none;
  border-radius: 50%; color: var(--bg); background: var(--profile-color, var(--accent)); font-size: clamp(28px, 4vw, 46px);
  border: 4px solid var(--profile-color, var(--accent)); box-shadow: 0 0 0 4px var(--bg);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.profile-actions .secondary { background: var(--panel); }
.profile-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.account-form { display: grid; justify-items: start; gap: 12px; max-width: 480px; }
.account-form p { margin: 0; }
.account-form label { display: grid; gap: 4px; width: 100%; }
.account-form .toggle { display: flex; gap: 10px; }
.account-form textarea { resize: vertical; }
.account-form .style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#customize form { margin-top: 16px; }
#image-form { padding-top: 16px; border-top: 1px solid var(--line); }
#profile input[type="file"] { width: 100%; padding: 5px; color: var(--muted); }
#profile input[type="file"]::file-selector-button {
  min-height: 34px; padding: 6px 10px; margin-inline-end: 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--raised);
  color: var(--text); font: inherit; cursor: pointer;
}
#profile input[type="file"]::file-selector-button:hover { border-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .bar, main { width: calc(100% - 32px); }
  .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; padding-block: 12px; }
  .bar > nav { grid-column: span 2; justify-content: end; }
  .search { grid-column: span 2; width: 100%; }
  .search input { flex: 1; }
  main { padding-block-start: 24px; }
  .watch-layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); }
  .profile-banner { gap: 16px; padding: 16px; flex-wrap: wrap; }
  .profile-actions { width: 100%; justify-content: start; }
  .profile-dashboard { grid-template-columns: 1fr; gap: 0; }
  .account-form .style-options { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .title-layout { grid-template-columns: 1fr; }
  .title-layout .poster { width: min(210px, 100%); }
  .cards { gap: 12px; }
  .card-info { padding-inline: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card .poster img { transition: transform 160ms ease, filter 160ms ease; }
  .card-full-title { transition: opacity 160ms ease; }
  .card, nav a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
}
