/* Shared artwork surfaces. Images fade to transparency, never to a guessed page colour. */
[data-style="graphite"]{--scene-image:url('assets/scenes/graphite.webp')}
[data-style="iris"]{--scene-image:url('assets/scenes/iris.webp')}
[data-style="lagoon"]{--scene-image:url('assets/scenes/lagoon.webp')}
[data-style="ember"]{--scene-image:url('assets/scenes/ember.webp')}
[data-style="midnight"]{--scene-image:url('assets/scenes/midnight.webp')}
[data-style="forest"]{--scene-image:url('assets/scenes/forest.webp')}
[data-style="wine"]{--scene-image:url('assets/scenes/wine.webp')}
[data-style="slate"]{--scene-image:url('assets/scenes/slate.webp')}
body.dark[data-style]{background:var(--scene-base);isolation:isolate}
#site-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(var(--surface-rgb),.48),rgba(var(--surface-rgb),.76)),var(--scene-image) center/cover no-repeat;opacity:.92}
#app{isolation:isolate}
.style-swatch{background:linear-gradient(120deg,#0002,#0006),var(--scene-image) center/cover no-repeat}
body.dark[data-style] :is(.glass-panel,.profile-fields,.profile-preferences,.profile-history,.profile-stats>span,.discovery-panel,.library-sidebar,.continue-card,.welcome-card,.empty-state,.player-settings){background:linear-gradient(135deg,#ffffff10,transparent 55%),rgba(var(--surface-rgb),.64);box-shadow:inset 0 1px #ffffff10,0 12px 32px #0002;backdrop-filter:blur(5px) saturate(125%);-webkit-backdrop-filter:blur(5px) saturate(125%)}
body.dark[data-style] .profile-card{background:linear-gradient(135deg,#ffffff0b,transparent),rgba(var(--surface-rgb),.52);border-radius:22px;padding:24px}
.button,.select-trigger{min-height:44px;line-height:1.25;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.icon-button{width:44px;height:44px;min-width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}
.icon-button .ui-icon,.button .ui-icon{flex-shrink:0;width:20px;height:20px}
.header-tools .icon-button{width:40px;min-width:40px;height:40px}
.select-trigger{justify-content:space-between}
body.dark[data-style] :is(.button.soft,.icon-button,.select-trigger,.glass-button,.chip,.filter-chip){box-shadow:inset 0 1px #ffffff1a,0 4px 16px #0002;background:linear-gradient(135deg,#ffffff20,transparent 65%),rgba(var(--surface-rgb),.58)}
/* One landscape canvas for every slide. No portrait-specific sizes or zoom animation. */
.cinematic-hero{position:relative;isolation:isolate;min-height:520px;height:clamp(520px,51.75vw,760px);margin:0 -4.35% 0;overflow:hidden;background:transparent;border:0;border-radius:0;display:flex;align-items:flex-end}
.hero-picture{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:0;pointer-events:none;mask-image:linear-gradient(to bottom,#000 55%,#000c 70%,#0005 86%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 55%,#000c 70%,#0005 86%,transparent 100%)}
.hero-backdrop{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:none;filter:none;animation:none}
.hero-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#07090dd9 0%,#07090d99 28%,#07090d26 65%,transparent 100%);mask-image:linear-gradient(#000 45%,#000a 70%,transparent);-webkit-mask-image:linear-gradient(#000 45%,#000a 70%,transparent)}
.hero-content{position:relative;z-index:3;width:min(680px,62%);padding:80px 0 66px;margin-left:4%;color:#fff;text-shadow:0 2px 18px #0008}
.hero-eyebrow{display:inline-flex;gap:8px;align-items:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#e9e4f5;margin-bottom:20px}
.hero-eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px var(--accent)}
.hero-content h1{font-size:clamp(30px,3.5vw,54px);line-height:1.08;letter-spacing:-.045em;font-weight:800;text-wrap:balance;margin:0 0 20px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-facts{display:flex;align-items:center;gap:14px;font-size:12px;color:#e4e1eb;margin-bottom:16px}.hero-facts .audience-rating{margin:0}
.hero-content>p{font-size:13px;line-height:1.7;max-width:480px;color:#e0dde6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 26px}
.hero-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.hero-buttons .button{padding:13px 20px}.hero-buttons .icon-button{height:44px}
body.dark[data-style] .hero-buttons .glass-button{background:linear-gradient(135deg,#ffffff28,#ffffff08),#12151b60;color:#fff}
/* Fixed stage: uploaded dimensions never change the profile layout. */
main:has(>.profile-page){margin-top:0}
.profile-banner-stage{position:relative;height:440px;isolation:isolate}
.profile-banner-heading{position:absolute;inset:28px 0 auto;z-index:3;margin:0;gap:18px;color:#fff;text-shadow:0 2px 15px #0008}
.profile-banner-heading h1{margin:0}
.profile-banner-heading .profile-account-actions{margin:0}
body.dark[data-style] .profile-banner-heading button{background:linear-gradient(135deg,#ffffff1b,transparent),rgba(var(--surface-rgb),.65);color:#fff;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);border-radius:12px;min-height:44px;padding:12px 18px}
.profile-cover{position:absolute;inset:0 auto 0 50%;height:100%;min-height:0;width:100vw;max-width:none;margin:0 0 0 -50vw;overflow:hidden;isolation:isolate;mask-image:linear-gradient(#000 48%,#000e 65%,#0006 84%,transparent);-webkit-mask-image:linear-gradient(#000 48%,#000e 65%,#0006 84%,transparent)}
.profile-cover>img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;animation:none}
.profile-cover>img[hidden]{display:none}
.profile-cover-fade{position:absolute;inset:0;background:linear-gradient(#0007,transparent 38%);pointer-events:none}
.profile-cover-actions{position:absolute;right:max(18px,calc((100vw - 1080px)/2));top:100px;display:flex;gap:8px;opacity:.7;transition:opacity .2s;z-index:2}.profile-cover-actions:hover,.profile-cover-actions:focus-within{opacity:1}
.profile-banner-error{position:absolute;top:120px;z-index:4;background:var(--panel);padding:12px;border-radius:12px}
.profile-grid{position:relative;z-index:1;margin-top:-65px}.profile-sidebar,.profile-main{padding-top:0}
.banner-fit-options{display:flex;gap:8px;margin:18px 0}.banner-fit-options .chip{padding:10px 18px}.banner-fit-options [aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.banner-crop-dialog .crop-canvas{aspect-ratio:auto;height:auto;background:#11151b;max-height:48dvh}.banner-crop-dialog .crop-zoom:has(input:disabled){opacity:.45}
/* Artwork fills the upper two thirds; masks follow the image, including portrait originals. */
body.dark[data-style] .details-dialog{background:linear-gradient(rgba(var(--surface-rgb),.8),rgba(var(--surface-rgb),.92)),var(--scene-image) center/cover fixed;padding-top:0}
.details-artwork{position:absolute;inset:0 0 auto;height:clamp(450px,68dvh,700px);overflow:hidden;pointer-events:none;z-index:0;display:flex;justify-content:center;align-items:flex-start;mask-image:linear-gradient(#000 40%,#000d 58%,#0005 80%,transparent);-webkit-mask-image:linear-gradient(#000 40%,#000d 58%,#0005 80%,transparent)}
.details-manga{position:relative;width:100%;height:auto;max-height:100%;object-fit:contain;filter:grayscale(1) contrast(1.05);opacity:.72;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.portrait-art .details-manga{width:auto;max-width:100%;height:100%}
.details-art-fill{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) blur(8px);opacity:.15}
.details-art-shade{position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(var(--surface-rgb),.2) 70%,transparent)}
.details-dialog .details-layout{margin-top:clamp(190px,30dvh,290px)}
body.dark[data-style] .details-copy{background:linear-gradient(135deg,#ffffff09,transparent),rgba(var(--surface-rgb),.69)!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.details-dialog .details-toolbar{margin-top:0;min-height:56px}.details-dialog .details-toolbar .icon-button{width:40px;height:40px;min-width:40px}
body.dark[data-style] .video-controls{background:linear-gradient(135deg,#ffffff0e,transparent),rgba(var(--surface-rgb),.9)}
.video-controls{--player-control-size:40px;align-items:center}
.video-controls .icon-button{width:var(--player-control-size);min-width:var(--player-control-size);height:var(--player-control-size);min-height:var(--player-control-size);padding:0;border-radius:9px}
.video-controls .select-trigger{height:var(--player-control-size);min-height:var(--player-control-size);padding:0 9px;border-radius:9px;line-height:1}
.video-controls .video-option,.video-controls .site-select{display:flex;align-items:center;min-width:0}
.video-controls .ui-icon{width:20px;height:20px;display:block;flex:none}
.video-controls .select-trigger .ui-icon{width:14px;height:14px}
.video-controls .select-trigger>span{line-height:1.25}
@media(min-width:1700px){.cinematic-hero{height:760px}}
@media(max-width:800px){.cinematic-hero{height:650px;min-height:0;margin-left:-4.35%;margin-right:-4.35%}.hero-content{width:80%;padding-bottom:70px}.hero-content h1{font-size:36px}.hero-backdrop{object-position:65% center}.profile-grid{margin-top:-90px}}
@media(max-width:600px){.cinematic-hero{height:auto;min-height:480px;align-items:flex-end;margin-top:0}.hero-picture{height:auto;aspect-ratio:2.5;mask-image:linear-gradient(#000 50%,#000a 70%,transparent);-webkit-mask-image:linear-gradient(#000 50%,#000a 70%,transparent)}.hero-backdrop{object-fit:contain;object-position:top center}.hero-shade{height:auto;aspect-ratio:2.5;background:linear-gradient(transparent,#080a1044);mask-image:linear-gradient(#000 50%,transparent);-webkit-mask-image:linear-gradient(#000 50%,transparent)}.hero-content{width:100%;margin:0;padding:145px 6% 38px}.hero-content h1{font-size:29px;max-width:90%;margin-bottom:14px}.hero-content>p{-webkit-line-clamp:2;font-size:12px;margin-bottom:20px}.hero-eyebrow{margin-bottom:12px;font-size:10px}.hero-buttons{gap:8px}.hero-buttons .button{padding:12px 14px;font-size:12px}.hero-facts{margin-bottom:12px}.profile-grid{margin-top:-70px}.profile-cover-actions{top:118px;right:14px}.profile-cover-actions .icon-button{width:36px;min-width:36px;height:36px}.profile-card{padding:20px!important}.details-artwork{height:520px}.details-dialog .details-layout{margin-top:190px}.details-manga{height:auto;max-height:100%;min-height:0}.details-dialog .details-toolbar{min-height:54px}.header-tools .icon-button{width:36px;min-width:36px;height:36px}}
@media(prefers-reduced-motion:no-preference){.hero-content{animation:surface-arrive .45s ease-out}}
@media(prefers-reduced-transparency:reduce){body.dark[data-style] :is(.glass-panel,.profile-fields,.profile-preferences,.profile-history,.details-copy){background:var(--panel)!important}}

/* Full-width profile art keeps the original intact; its soft extension fills narrow-image edges. */
.profile-cover>.profile-banner-fill{position:absolute;inset:0;max-width:none;width:100%;height:100%;object-fit:cover;filter:blur(4px);opacity:.46;z-index:-1}
body.dark[data-style] .header{backdrop-filter:blur(3px) saturate(140%);-webkit-backdrop-filter:blur(3px) saturate(140%);background:linear-gradient(120deg,#ffffff0e,transparent 65%),rgba(var(--surface-rgb),.38);box-shadow:inset 0 -1px #ffffff09}
body.dark[data-style] .header.scrolled{background:rgba(var(--surface-rgb),.65)!important}


@media(max-width:600px){.hero-picture{height:100%;aspect-ratio:auto}.hero-backdrop{object-fit:cover;object-position:62% center}.hero-shade{height:100%;aspect-ratio:auto;background:linear-gradient(0deg,rgba(var(--surface-rgb),.6),#080a1020 70%)}.hero-content{padding-top:210px;padding-bottom:38px}.cinematic-hero{min-height:540px}.hero-content h1{font-size:27px}}

@media(max-width:800px){.profile-banner-stage{height:380px}.profile-grid{margin-top:-50px}}
@media(max-width:600px){.profile-banner-stage{height:330px}.profile-banner-heading{top:22px;display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}.profile-banner-heading h1{font-size:28px}.profile-banner-heading .profile-account-actions{gap:8px}.profile-banner-heading .profile-account-actions button{font-size:11px;min-height:38px;padding:10px 12px}.profile-grid{margin-top:-40px}}

/* Matching dimensions within each control group, including the narrow phone row. */
.watch-page .player-pickers .select-trigger{height:44px;min-height:44px;padding:0 12px}
.watch-page .episode-nav{align-items:stretch}
.watch-page .episode-nav .button{min-height:44px;padding:10px 14px;line-height:1.3}
.form-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px}
.form-actions .button,.catalog-pagination .button{min-height:44px;line-height:1.25}
.catalog-pagination input[type=number]{height:44px;min-height:44px}
:is(.filter-row,.time-options,.plan-modes) :is(.chip,.filter-chip){min-height:38px;display:inline-flex;align-items:center;justify-content:center;line-height:1.25}
.header-tools .avatar{aspect-ratio:1;object-fit:cover;flex-shrink:0;overflow:hidden}
@media(max-width:600px){
 .video-controls{grid-template-columns:40px 40px minmax(50px,1fr) minmax(60px,1fr) 40px 40px 40px;gap:3px;padding:5px;align-items:center}
 .video-controls .select-trigger{padding:0 6px}
 .video-controls .video-option>.site-select{width:100%;max-width:none}
 .video-controls .select-trigger{width:100%;gap:3px}
 .header-tools .icon-button{min-height:36px;height:36px;width:36px;min-width:36px;padding:0}
 .header-tools .select-trigger,.header-tools .login-button{height:36px;min-height:36px}
 .header-tools .avatar{height:36px;width:36px;min-width:36px;flex-basis:36px}
}
@media(max-width:380px){
 .video-controls{--player-control-size:36px;grid-template-columns:36px 36px minmax(44px,1fr) minmax(54px,1fr) 36px 36px 36px;gap:2px;padding:4px}
 .video-controls .select-trigger{font-size:10px;padding:0 4px}
}

/* yomiku: an open paper-comet signature, without a badge or square container. */
.brand{gap:7px;flex-shrink:0;text-decoration:none}
.brand .brand-symbol{display:block;flex:none;width:44px;height:44px;object-fit:contain;background:none;border:0;border-radius:0;box-shadow:none;transform:none;filter:drop-shadow(0 3px 9px #b79ce928)}
.brand .brand-wordmark,.header>.brand .brand-wordmark{display:grid;position:relative;gap:2px;align-content:center;padding:3px 0 4px}
.brand .brand-name,.header>.brand .brand-name{display:block;font-size:29px;line-height:1;letter-spacing:-1.6px;font-weight:850;font-style:italic;padding-right:3px}
.brand .brand-kana{display:block;font-size:8px;line-height:1;letter-spacing:3.4px;font-weight:600;color:var(--accent);padding-left:3px;opacity:.9}
.header>.brand{gap:7px;min-height:48px}
.brand:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:6px}
footer .brand .brand-symbol{width:36px;height:36px}footer .brand .brand-name{font-size:25px}
@media(prefers-reduced-motion:no-preference){.brand-symbol{transition:transform .28s ease,filter .28s ease}.brand:hover .brand-symbol{transform:translate(2px,-2px) rotate(-5deg);filter:drop-shadow(0 4px 12px #b79ce94d)}}
@media(min-width:801px) and (max-width:1050px){.header{gap:14px}.header-tools{min-width:0}.header-tools .search,.header-tools .search:focus-within{width:clamp(100px,13vw,150px);flex-shrink:1}.header nav{gap:2px}}
@media(max-width:600px){
 .header>.brand{min-height:38px;gap:4px}
 .header>.brand .brand-symbol{width:35px;height:35px}
 .header>.brand .brand-name{font-size:25px;letter-spacing:-1.35px}
 .header>.brand .brand-kana{font-size:7px;letter-spacing:2.5px}
 .section-head{flex-wrap:wrap;row-gap:12px}
 .catalog-pagination{flex-wrap:wrap;justify-content:center;row-gap:8px}
 .profile-fields,.profile-history,.profile-preferences,.player-settings{min-width:0}
 .profile-email{overflow-wrap:anywhere}
}
@media(max-width:360px){.header>.brand .brand-symbol{width:30px;height:30px}.header>.brand .brand-name{font-size:22px}.header-tools{gap:4px}}

/* Equal side columns keep the signature at the actual centre of the header. */
.header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;height:84px;min-height:84px}
.header>nav{grid-column:1;grid-row:1;justify-self:start;order:initial;min-width:0}
.header>.brand{grid-column:2;grid-row:1;justify-self:center;margin:0;gap:9px}
.header>.brand .brand-symbol{width:58px;height:58px}
.header>.brand .brand-name{font-size:35px;letter-spacing:-1.8px}
.header>.brand .brand-kana{font-size:9px;letter-spacing:4px}
.header>.header-tools{grid-column:3;grid-row:1;justify-self:end;margin:0;min-width:0;max-width:100%}
.header-tools .search,.header-tools .search:focus-within{min-width:60px;max-width:205px;flex-shrink:1}
@media(min-width:801px) and (max-width:1100px){.header{gap:12px}.header>.brand .brand-symbol{width:50px;height:50px}.header>.brand .brand-name{font-size:31px}.header .nav-link{padding:10px 8px}}
@media(max-width:800px){
 .header{grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:0;gap:8px;padding-top:8px;padding-bottom:10px}
 .header>.brand{grid-column:1/-1;grid-row:1;justify-self:center;gap:6px;min-height:50px}
 .header>.brand .brand-symbol{width:48px;height:48px}
 .header>.brand .brand-name{font-size:30px}
 .header>.brand .brand-kana{font-size:8px;letter-spacing:3px}
 .header>nav{grid-column:1;grid-row:2;justify-self:start;width:100%;justify-content:flex-start;gap:2px}
 .header>.header-tools{grid-column:2;grid-row:2}
 .header .nav-link{padding:8px 6px;min-width:0;flex:1;white-space:nowrap}
 .header-tools .search{display:none}
}
@media(max-width:380px){.header{column-gap:5px}.header .nav-link{font-size:10px;padding:8px 4px;gap:3px}.header #list-count{font-size:8px;padding:2px 3px}}
/* Slightly roomier header, with proportional controls and a compact phone layout. */
@media(min-width:801px){
 .header{height:94px;min-height:94px}
 .header>.brand .brand-symbol{width:64px;height:64px}
 .header>.brand .brand-name{font-size:38px}
 .header>.brand .brand-kana{font-size:10px}
 .header .nav-link{height:46px;font-size:13px;padding:11px 14px}
 .header-tools .search{height:44px}
 .header-tools .search input{font-size:13px}
 .header-tools .select-trigger,.header-tools .login-button{height:44px;min-height:44px;font-size:13px}
 .header-tools .avatar{width:44px;height:44px;min-width:44px;flex-basis:44px}
}
@media(min-width:801px) and (max-width:1100px){
 .header>.brand .brand-symbol{width:55px;height:55px}
 .header>.brand .brand-name{font-size:34px}
 .header .nav-link{font-size:12px;padding:10px 8px}
 .header-tools .select-trigger,.header-tools .login-button{font-size:12px;padding-left:9px;padding-right:9px}
}
@media(max-width:800px){
 .header{padding-top:10px;padding-bottom:12px;row-gap:10px}
 .header>.brand .brand-symbol{width:52px;height:52px}
 .header>.brand .brand-name{font-size:32px}
 .header .nav-link{height:39px}
 .header-tools .select-trigger,.header-tools .login-button{height:39px;min-height:39px}
 .header-tools .avatar{width:39px;height:39px;min-width:39px;flex-basis:39px}
}

/* Transparent edge fades reveal the user's chosen scene in every palette. */
.cinematic-hero .hero-picture{height:100%;aspect-ratio:auto;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(#000 45%,#000e 62%,#0007 82%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(#000 45%,#000e 62%,#0007 82%,transparent);-webkit-mask-composite:source-in}
.cinematic-hero .hero-backdrop{width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
.details-dialog .details-artwork{height:max(72%,620px);max-height:100%;inset:0 0 auto;mask-image:linear-gradient(#000 0%,#000 52%,#000c 68%,#0005 86%,transparent);-webkit-mask-image:linear-gradient(#000 0%,#000 52%,#000c 68%,#0005 86%,transparent)}
.details-dialog .details-manga,.details-dialog .portrait-art .details-manga{width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center top;filter:grayscale(1) contrast(1.05);opacity:.62}
.details-dialog .details-art-fill{filter:grayscale(1) blur(4px);opacity:.26;object-fit:cover}
.details-dialog .details-art-shade{background:linear-gradient(90deg,rgba(var(--surface-rgb),.22),rgba(var(--surface-rgb),.06) 50%,rgba(var(--surface-rgb),.38))}
.search,.catalog-search{position:relative;overflow:visible}
.search-suggestions{position:absolute;left:0;right:0;top:calc(100% + 8px);min-width:min(340px,85vw);z-index:150;padding:6px;border-radius:16px;background:rgba(var(--surface-rgb),.96);box-shadow:0 18px 45px #0006;backdrop-filter:blur(10px);max-height:420px;overflow:auto}
.search-suggestions button{display:flex;align-items:center;gap:12px;width:100%;min-height:66px;border:0;border-radius:10px;padding:7px;text-align:left;color:var(--text);background:transparent;cursor:pointer}
.search-suggestions button:hover,.search-suggestions button[aria-selected="true"]{background:#ffffff12}
.search-suggestions img{width:36px;height:52px;object-fit:cover;border-radius:5px;flex-shrink:0}
.search-suggestions strong{display:block;font-size:13px;line-height:1.4}.search-suggestions small{display:block;opacity:.6;font-size:11px;margin-top:4px}
.video-controls #subtitle-control{min-width:70px;max-width:150px}.video-controls #subtitle-control .select-trigger{min-height:38px}
@media(max-width:600px){.search-suggestions{min-width:0;width:max(100%,230px);max-width:88vw;max-height:350px}.details-dialog .details-artwork{height:76%;min-height:520px}.video-controls{flex-wrap:wrap}.video-controls #subtitle-control{max-width:112px}.cinematic-hero .hero-backdrop{object-position:center}}
.video-controls #subtitle-control{display:flex;align-items:center;gap:4px}.video-controls #subtitle-control>svg{width:18px;height:18px;flex-shrink:0}.video-controls #subtitle-control .site-select{min-width:0}.header .search{overflow:visible}

/* Fixed square metrics override legacy button minimum sizes and flex bases. */
.header .header-tools .avatar{--avatar-size:44px;width:var(--avatar-size)!important;height:var(--avatar-size)!important;min-width:var(--avatar-size)!important;max-width:var(--avatar-size)!important;min-height:var(--avatar-size)!important;max-height:var(--avatar-size)!important;flex:0 0 var(--avatar-size)!important;box-sizing:border-box;border-radius:50%!important;padding:0!important;overflow:hidden}
.header .header-tools .avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.catalog-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.catalog-options .select-trigger{min-height:42px;height:42px}
@media(max-width:600px){.header .header-tools .avatar{--avatar-size:36px}.catalog-options>.site-select{flex:1 1 130px}.catalog-options .select-trigger{width:100%}}
