/* RYVEX interface: a single visual system for browsing and watching. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/noto-sans-arabic-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191a1e;
  --raised: #222328;
  --red: #e50914;
  --text: #f3f3f5;
  --muted: #a1a3ac;
  --line: #ffffff12;
  --gutter: clamp(22px, 4.8vw, 88px);
  --header-h: 80px;
  --font-ui: Inter, 'Noto Sans Arabic', Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
.hero-local-title:empty, .detail-local-title:empty { display: none; }
html[lang="ar"] .hero-title { font-family: 'Noto Sans Arabic', Inter, Arial, sans-serif; letter-spacing: 0; line-height: 1.35; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.7 var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
body, button, input, select, textarea { font-family: var(--font-ui); font-synthesis: none; }
button, input, select, textarea { font-size: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #f4f4f4; outline-offset: 4px; }
::selection { background: #a60810; color: #fff; }
[hidden] { display: none !important; }
#app { min-height: 100svh; display: flex; flex-direction: column; }
#main { flex: 1; min-height: 55vh; outline: none; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon[data-icon=play], .icon[data-icon=pause] { fill: currentColor; stroke-width: 0; }
.brand, .header .brand, .footer .brand, .boot .brand { display: inline-block; font: 800 31px/1 Inter, Arial, sans-serif; letter-spacing: -1.8px; color: var(--red); white-space: nowrap; }
.brand-dot { display: inline-block; width: 4px; height: 4px; margin-inline-start: 4px; background: #e3e3e7; border-radius: 1px; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 20px; padding: 12px 20px; background: #fff; color: #111; z-index: 300; border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { color: #999ca6; font-size: 10px; font-weight: 600; line-height: 1.6; margin-bottom: 9px; }
.eyebrow[dir=ltr] { letter-spacing: 2px; }
.muted { color: var(--muted); }
.btn { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 24px; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.7; border: 1px solid transparent; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.btn.white { color: #111114; background: #f3f3f4; }
.btn.white:hover { background: #d8d8dc; }
.btn.glass, .btn.gray { background: #ffffff15; border-color: #ffffff1a; backdrop-filter: blur(12px); }
.btn.glass:hover, .btn.gray:hover { background: #ffffff25; border-color: #ffffff30; }
.btn.outline { background: transparent; border-color: #ffffff30; }
.btn.outline:hover { background: #ffffff08; border-color: #ffffff60; }
.btn.text-danger { color: #ff858c; background: #e5091409; border-color: #e5091420; }
.btn.text-danger:hover { background: #e509141a; border-color: #e5091440; }
.btn:active, .circle:active { transform: translateY(1px); }
.btn.small { min-height: 42px; padding: 9px 17px; font-size: 12px; }
.btn .icon { width: 21px; height: 21px; }
.btn.small .icon { width: 17px; height: 17px; }
.icon-btn, .circle { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; transition: color .18s, background .18s, border-color .18s; }
.icon-btn { color: #d2d3d8; }
.icon-btn:hover { background: #ffffff10; color: #fff; }
.circle { border: 1px solid #ffffff65; background: #17181cc9; color: #fff; }
.circle:hover { background: #3b3c42; border-color: #fff; }
.circle .icon { width: 20px; height: 20px; }
.circle.play { color: #151518; background: #f4f4f6; border-color: #f4f4f6; }
.circle.play:hover { background: #d2d2d8; }
.circle.play .icon { width: 18px; height: 18px; margin-inline-start: 2px; }
.maturity { border: 1px solid #ffffff45; padding: 1px 6px; color: #c6c7cd; border-radius: 3px; font: 500 10px/1.5 Inter, sans-serif; white-space: nowrap; }
/* Navigation */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: 38px; background: linear-gradient(#08090bd9, #08090b00); transition: background .25s, box-shadow .25s; }
.header.solid, .header.searching { background: #101113ee; backdrop-filter: blur(20px); box-shadow: 0 1px #ffffff0a; }
.header-brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.nav { height: 100%; display: flex; align-items: center; gap: 27px; font-size: 12px; white-space: nowrap; }
.nav a { height: 100%; display: flex; align-items: center; color: #b8b9c0; position: relative; transition: color .18s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active { font-weight: 600; }
.nav a.active::after { content: ''; position: absolute; bottom: 20px; height: 2px; background: var(--red); width: 17px; inset-inline-start: 0; border-radius: 2px; }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-tools > .icon-btn { border-radius: 7px; }
.language { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #c1c3ca; font-size: 11px; font-weight: 600; padding-inline: 8px; border-radius: 6px; }
.language:hover { background: #ffffff0b; color: #fff; }
.language .icon { width: 15px; height: 15px; }
.profile-trigger { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 3px 0 3px 5px; font-size: 11px; }
.profile-trigger > .icon { width: 14px; height: 14px; color: #b7b9c0; transition: transform .18s; }
.profile-trigger[aria-expanded=true] > .icon { transform: rotate(180deg); }
.profile-trigger-name { max-width: 75px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.avatar { display: inline-block; width: 33px; height: 33px; flex-shrink: 0; position: relative; border-radius: 7px; background: linear-gradient(145deg,#ffffff20, #00000024), var(--av); box-shadow: inset 0 0 0 1px #ffffff16; overflow: hidden; }
.avatar::before { content: ''; width: 25%; height: 25%; border-radius: 50%; position: absolute; left: 37.5%; top: 23%; background: #ffffffc7; }
.avatar::after { content: ''; width: 50%; height: 29%; position: absolute; left: 25%; top: 54%; border-radius: 50% 50% 18% 18%; background: #ffffffc7; }
.avatar.large { width: 112px; height: 112px; border-radius: 15px; }
.profile-menu { position: absolute; top: calc(var(--header-h) - 5px); inset-inline-end: var(--gutter); width: 270px; padding: 10px; background: #1a1b20f5; border: 1px solid #ffffff16; border-radius: 10px; box-shadow: 0 16px 60px #0008; backdrop-filter: blur(24px); animation: panelIn .16s ease; }
.menu-profile { display: flex; gap: 12px; align-items: center; padding: 12px 9px 15px; }
.menu-profile > div { min-width: 0; }
.menu-profile strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.menu-profile div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.current-profile-dot { width: 6px; height: 6px; border-radius: 50%; background: #65bb83; margin-inline-start: auto; }
.profile-menu > a, .profile-menu > button { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 46px; padding: 9px 10px; border-radius: 5px; font-size: 12px; text-align: start; }
.profile-menu > a:hover, .profile-menu > button:hover { background: #ffffff08; }
.profile-menu > a > .icon { width: 18px; height: 18px; color: #9699a5; }
.profile-menu > button > .avatar { width: 29px; height: 29px; }
.menu-divider { height: 1px; background: var(--line); margin: 8px 5px; }
.mobile-nav { display: none; }
.searching .nav { display: none; }
.searching .header-tools { flex: 1; }
.search-box { display: flex; align-items: center; gap: 12px; height: 44px; width: min(560px, 52vw); min-width: 0; padding-inline-start: 15px; background: #ffffff07; border: 1px solid #ffffff30; border-radius: 7px; }
.search-box:focus-within { border-color: #ffffff70; background: #ffffff0b; }
.search-box > .icon { width: 18px; height: 18px; color: #9c9ea9; }
.search-box input { border: 0; background: transparent; color: #fff; outline: none; flex: 1; min-width: 0; height: 100%; font-size: 12px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .icon-btn { width: 40px; height: 40px; border-radius: 5px; }
.search-box .icon-btn .icon { width: 18px; height: 18px; }
/* Featured story */
.hero { position: relative; height: min(790px, 90svh); min-height: 680px; padding: 132px var(--gutter) 112px; display: flex; align-items: center; isolation: isolate; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art { object-fit: cover; object-position: center 30%; }
.hero-shade { background: linear-gradient(0deg,var(--bg) 0%,#10111308 42%,#10111338 100%),linear-gradient(270deg,#101113f0 0%,#101113b5 31%,#10111312 76%); }
html[dir=ltr] .hero-shade { background: linear-gradient(0deg,var(--bg) 0%,#10111308 42%,#10111338 100%),linear-gradient(90deg,#101113f0 0%,#101113b5 31%,#10111312 76%); }
.hero-content { width: 54%; max-width: 650px; position: relative; }
.series-label { display: inline-flex; align-items: center; gap: 9px; font: 500 9px/1.5 Inter, sans-serif; letter-spacing: 3.5px; color: #d9d9df; }
.series-emblem { color: var(--red); font: 800 21px/1 Inter, sans-serif; letter-spacing: -1px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #bcbec7; margin: 24px 0 13px; }
.hero-title { font: 700 clamp(44px, 5.6vw, 84px)/1.08 Inter, Arial, sans-serif; letter-spacing: -3px; text-align: start; overflow-wrap: anywhere; text-wrap: balance; }
.hero-title.gentlemen { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -2.5px; }
.hero-title.loki { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(62px,7.5vw,110px); letter-spacing: 9px; }
.hero-local-title { margin-top: 19px; font-size: 18px; line-height: 1.8; font-weight: 500; color: #efeff2; }
.hero-local-title:empty { display: none; }
.hero-description { max-width: 520px; margin-top: 12px; color: #bebfc7; font-size: 14px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn { min-height: 49px; }
.hero-list { width: 48px; height: 48px; background: #ffffff08; border-color: #ffffff50; }
.hero-genres { display: flex; align-items: center; gap: 10px; color: #a8a9b2; font-size: 11px; margin-top: 24px; }
.hero-genres i, .card-subline i { width: 3px; height: 3px; border-radius: 50%; background: #777a86; flex-shrink: 0; }
.hero-bottom { position: absolute; bottom: 42px; inset-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.hero-selection { display: flex; align-items: center; gap: 20px; }
.hero-counter { display: flex; gap: 8px; align-items: baseline; font: 400 10px/1 Inter, sans-serif; color: #8c8f9c; }
.hero-counter strong { font-size: 16px; color: #e9e9ef; font-weight: 500; }
.hero-dots { display: flex; align-items: center; gap: 4px; direction: ltr; }
.hero-dots button { display: flex; align-items: center; height: 30px; width: 36px; padding: 0 3px; }
.hero-dots button span { width: 100%; height: 2px; background: #ffffff38; border-radius: 4px; transition: background .2s; }
.hero-dots button:hover span { background: #ffffff85; }
.hero-dots button.active span { background: #ededf2; }
.hero-discover { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #a3a5af; }
.hero-discover:hover { color: white; }
.hero-discover .icon { width: 16px; height: 16px; }
/* Series cards and horizontal collections */
.home-rows { position: relative; z-index: 2; padding-top: 8px; }
.rail-section { margin-bottom: 42px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 var(--gutter) 15px; }
.section-heading h2 { font-size: 19px; line-height: 1.8; font-weight: 600; }
.section-heading a { color: #9c9fab; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.section-heading a:hover { color: #fff; }
.section-heading a .icon { width: 14px; height: 14px; }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 5px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(220px,19vw,320px); min-width: 0; scroll-snap-align: start; }
.card-cover { position: relative; border-radius: 7px; isolation: isolate; }
.card-main { display: block; width: 100%; position: relative; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--panel); text-align: start; }
.card-main > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), filter .4s; }
.card-vignette { position: absolute; inset: 0; background: linear-gradient(0deg,#000b,#0000 62%); opacity: .55; transition: opacity .22s; }
.card-mark { position: absolute; top: 10px; inset-inline-start: 11px; color: #ef1721; font: 800 17px/1 Inter, sans-serif; text-shadow: 0 1px 8px #0009; }
.card-badge { position: absolute; top: 9px; inset-inline-end: 9px; max-width: calc(100% - 45px); color: #d8d9df; background: #101114c9; border: 1px solid #ffffff20; border-radius: 3px; padding: 4px 7px; font-size: 8px; line-height: 1.5; white-space: nowrap; }
.card-controls { position: absolute; inset-inline: 11px; bottom: 11px; display: flex; gap: 7px; align-items: center; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; pointer-events: none; }
.card-controls .circle { width: 36px; height: 36px; backdrop-filter: blur(7px); box-shadow: 0 2px 8px #0003; }
.card-controls .circle .icon { width: 17px; height: 17px; }
.card-controls .more-control { margin-inline-start: auto; }
.card:focus-within .card-controls, .card:hover .card-controls { opacity: 1; transform: none; pointer-events: auto; }
.card:focus-within .card-vignette, .card:hover .card-vignette { opacity: 1; }
.card:focus-within .card-cover { outline: 1px solid #ffffff75; outline-offset: 3px; }
.card-caption { padding: 11px 1px 0; }
.card-title-line { display: block; text-align: start; width: 100%; max-width: 100%; font: 600 13px/1.65 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e5e5eb; }
.card-title-line:hover { color: #fff; }
.card-subline { display: flex; align-items: center; gap: 7px; color: #9598a3; font-size: 10px; line-height: 1.7; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.card-subline > span { overflow: hidden; text-overflow: ellipsis; }
.card-subline > span:first-child { flex-shrink: 0; }
.card-availability { min-width: 0; }
.progress-line { height: 3px; background: #ffffff35; direction: ltr; overflow: hidden; }
.progress-line > span { display: block; height: 100%; background: var(--red); }
.card-cover > .progress-line { position: absolute; bottom: 0; inset-inline: 0; border-radius: 0 0 7px 7px; }
.continue-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 29px; color: #9b9daa; font-size: 10px; }
.continue-caption > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-caption > a:hover { color: #fff; }
.continue-caption .icon-btn { width: 28px; height: 28px; }
.continue-caption .icon-btn .icon { width: 14px; height: 14px; }
.rail-arrow { position: absolute; z-index: 8; top: 5px; bottom: 60px; width: 38px; background: #101113c7; border: 1px solid #ffffff10; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s, background .18s; border-radius: 5px; }
.rail-arrow.prev { inset-inline-start: 10px; }
.rail-arrow.next { inset-inline-end: 10px; }
.rail-arrow:hover { background: #292b31ed; }
.rail-wrap:hover > .rail-arrow, .rail-arrow:focus-visible { opacity: 1; }
.poster-card { flex-basis: clamp(150px,13.4vw,220px); }
.poster-card .card-main { aspect-ratio: 2/3; }
.poster-card .card-controls { gap: 5px; }
.rank-card { position: relative; flex: 0 0 clamp(175px,15vw,240px); min-width: 0; padding-inline-start: 33px; text-align: start; scroll-snap-align: start; }
.rank-poster { display: block; position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: 7px; background: var(--panel); }
.rank-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.rank-number { font: 800 clamp(67px,6.8vw,105px)/1 Inter, sans-serif; letter-spacing: -6px; -webkit-text-stroke: 1px #878a97; color: var(--bg); position: absolute; bottom: 31px; inset-inline-start: 0; z-index: 2; filter: drop-shadow(2px 2px 4px #0007); direction: ltr; }
.rank-gradient { position: absolute; inset: 0; background: linear-gradient(0deg,#0008,transparent 35%); }
.rank-name { display: block; margin-top: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.rank-card:hover .rank-poster img { transform: scale(1.035); }
.artwork-fallback { object-fit: cover !important; }
/* Library and discovery */
.catalog-page { width: 100%; max-width: 2100px; padding: 132px var(--gutter) 64px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-title { font-size: clamp(29px,2.8vw,41px); font-weight: 600; letter-spacing: -.7px; line-height: 1.65; }
.page-sub { color: var(--muted); margin-top: 7px; font-size: 13px; line-height: 1.9; }
.page-count { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 7px; border: 1px solid #ffffff12; background: #ffffff03; color: #a1a3ae; font-size: 10px; flex-shrink: 0; }
.page-count strong { font: 500 17px/1 Inter,sans-serif; color: #f0f0f5; margin-inline-start: 3px; }
.page-count .icon { width: 17px; height: 17px; color: #7e818d; }
.genre-chips { display: flex; align-items: center; gap: 9px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 23px; margin-inline: -2px; }
.genre-chips::-webkit-scrollbar { display: none; }
.genre-chip { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 8px 18px; border-radius: 30px; border: 1px solid #ffffff1c; color: #b6b8c1; font-size: 11px; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.genre-chip:hover { border-color: #ffffff55; background: #ffffff07; color: #fff; }
.genre-chip.active { background: #ececf0; border-color: #ececf0; color: #151518; font-weight: 600; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 19px 0 21px; }
.filter-group { display: flex; align-items: center; gap: 16px; }
.filter-control { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filter-control > span { font-size: 10px; color: #9295a0; padding-inline-start: 1px; }
.select { appearance: none; color: #dedee5; background: #1a1b20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239c9fab' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid #ffffff1c; border-radius: 5px; min-width: 172px; max-width: 100%; min-height: 42px; padding: 9px 35px 9px 13px; font: 400 11px/1.8 var(--font-ui); cursor: pointer; outline-offset: 3px; }
html[dir=rtl] .select { background-position: left 12px center; padding: 9px 13px 9px 35px; }
.select:hover { border-color: #ffffff45; }
.select option { background: #202127; color: #eee; }
.results-summary { display: flex; justify-content: space-between; align-items: center; min-height: 65px; font-size: 10px; color: #9194a0; }
.results-summary button { display: inline-flex; align-items: center; gap: 6px; color: #b8bac4; font-size: 10px; min-height: 38px; }
.results-summary button:hover { color: #fff; }
.results-summary .icon { width: 13px; height: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 31px 18px; }
.catalog-grid .card { min-width: 0; }
.catalog-grid .card-title-line { font-size: 13px; }
.search-page-heading { display: flex; gap: 21px; align-items: center; margin-bottom: 34px; }
.search-heading-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid #ffffff12; background: #ffffff03; border-radius: 14px; color: #888d9b; flex-shrink: 0; }
.search-heading-icon .icon { width: 26px; height: 26px; }
.search-page .page-title { font-size: 30px; overflow-wrap: anywhere; }
.search-suggestions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.search-suggestions > span { font-size: 11px; color: #90939f; margin-inline-end: 5px; }
.search-suggestions .genre-chip { min-height: 35px; padding: 6px 13px; font-size: 10px; }
.search-suggestions .genre-chip .icon { width: 12px; height: 12px; }
.release-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 8px 0 20px; }
.release-heading h2 { font-size: 21px; font-weight: 600; }
.release-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #8fc3a0; background: #50ad7010; border: 1px solid #50ad7020; padding: 5px 10px; border-radius: 4px; }
.status-pill .icon { width: 12px; height: 12px; }
.release-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.release-card { background: #18191d; border: 1px solid #ffffff0c; border-radius: 9px; overflow: hidden; }
.release-image { position: relative; display: block; width: 100%; aspect-ratio: 16/9; background: #202126; overflow: hidden; }
.release-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.release-image:hover img { transform: scale(1.03); }
.release-year { position: absolute; bottom: 12px; inset-inline-start: 16px; font: 500 10px/1.5 Inter,sans-serif; color: #eee; padding: 4px 7px; background: #0e0f12b8; border: 1px solid #ffffff20; border-radius: 3px; backdrop-filter: blur(8px); }
.release-copy { padding: 20px; }
.release-copy .eyebrow { font-size: 9px; color: #aaa; }
.release-copy h3 { font: 600 20px/1.4 var(--font-ui); margin-bottom: 10px; overflow-wrap: anywhere; }
.release-description { color: #a1a3ae; font-size: 12px; line-height: 1.9; height: 69px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.release-actions { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.release-actions .btn { margin-inline-end: auto; }
.release-actions .circle { width: 38px; height: 38px; }
.release-actions .icon-btn { width: 38px; height: 38px; }
.upcoming-heading { margin-top: 58px; }
.upcoming-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.empty-state { margin: 20px auto; padding: 65px 20px; text-align: center; display: flex; align-items: center; flex-direction: column; max-width: 540px; }
.empty-icon { width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; color: #858a99; border: 1px solid #ffffff16; background: #ffffff03; border-radius: 20px; margin-bottom: 25px; }
.empty-icon .icon { width: 29px; height: 29px; }
.empty-state h2 { font-size: 24px; font-weight: 500; line-height: 1.8; }
.empty-state p { margin: 10px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.9; }
/* Title details */
.overlay { position: fixed; inset: 0; z-index: 100; overflow: auto; overscroll-behavior: contain; background: #000b; backdrop-filter: blur(8px); padding: 26px 22px 60px; animation: fade .18s ease; }
.detail { position: relative; margin: 0 auto; width: 100%; max-width: 1000px; background: #18191d; border: 1px solid #ffffff14; border-radius: 12px; box-shadow: 0 20px 120px #000a; overflow: clip; animation: scaleIn .2s var(--ease); }
.detail-topbar { position: sticky; top: 0; z-index: 12; height: 65px; margin-bottom: -65px; padding: 10px 18px 10px 24px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#101113b8,#10111300); pointer-events: none; }
.detail-brand { font: 800 18px/1 Inter,sans-serif; letter-spacing: -.8px; color: #ee202b; text-shadow: 0 1px 8px #0005; }
.detail-close { pointer-events: auto; width: 40px; height: 40px; background: #111216c9; border: 1px solid #ffffff25; backdrop-filter: blur(15px); }
.detail-close .icon { width: 20px; height: 20px; }
.detail-hero { position: relative; height: 445px; display: flex; align-items: flex-end; padding: 90px 40px 33px; isolation: isolate; }
.detail-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#18191d 0%,#18191d24 70%),linear-gradient(270deg,#1011139c,transparent 80%); }
html[dir=ltr] .detail-hero::after { background: linear-gradient(0deg,#18191d 0%,#18191d24 70%),linear-gradient(90deg,#1011139c,transparent 80%); }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -1; }
.detail-hero-content { max-width: 85%; }
.detail-hero .series-label { font-size: 8px; letter-spacing: 3px; margin-bottom: 15px; }
.detail-hero .series-emblem { font-size: 18px; }
.detail-hero .hero-title { font-size: clamp(36px,4.5vw,64px); }
.detail-hero .hero-title.loki { font-size: 76px; }
.detail-hero .hero-actions { margin-top: 19px; }
.detail-local-title { font-size: 14px; font-weight: 500; line-height: 1.8; margin-top: 11px; color: #c9cad2; }
.detail-local-title:empty { display: none; }
.detail-summary { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 38px; padding: 5px 40px 29px; }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; font-size: 11px; color: #b6b8c3; margin-bottom: 15px; }
.available { color: #94c6a4; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.available > span { width: 4px; height: 4px; border-radius: 50%; background: #81be95; }
.synopsis { font-size: 13px; line-height: 2; color: #c3c4cd; }
.credits { font-size: 11px; line-height: 1.85; color: #b0b2be; }
.credits p + p { margin-top: 11px; }
.credits b { display: block; font-size: 10px; font-weight: 400; color: #777e8e; margin-bottom: 2px; }
.credits p > span { display: block; }
.unavailable-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; background: #ffffff09; border: 1px solid #ffffff18; border-radius: 5px; font-size: 11px; color: #b9bbc6; }
.unavailable-pill .icon { width: 17px; height: 17px; }
.detail-tabs { position: sticky; top: 65px; z-index: 10; display: flex; gap: 29px; padding: 0 40px; border-bottom: 1px solid #ffffff10; background: #18191df5; backdrop-filter: blur(20px); }
.detail-tabs button { position: relative; min-height: 55px; font-size: 12px; color: #9296a4; white-space: nowrap; }
.detail-tabs button:hover, .detail-tabs button.active { color: #eeeef3; }
.detail-tabs button.active::after { content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: var(--red); }
.detail-body { padding: 30px 40px 38px; }
#episodes-region, #related-region, #about-region { scroll-margin-top: 135px; }
.episodes-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.episodes-heading .eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 4px; }
.episodes-heading h2, .more-like { font-size: 23px; line-height: 1.7; font-weight: 600; }
.episodes-heading .select { min-width: 145px; font-size: 11px; background-color: #202126; }
.episode-count { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #858b9b; font-size: 10px; margin: 14px 0 18px; }
.episode-count > span { color: #596170; }
.episode-list { border-top: 1px solid #ffffff0c; }
.episode { display: grid; grid-template-columns: 26px 152px minmax(0,1fr) 18px; align-items: center; gap: 17px; width: 100%; text-align: start; padding: 20px 12px; border-bottom: 1px solid #ffffff0c; border-radius: 5px; transition: background .18s; }
.episode:not(:disabled):hover { background: #ffffff05; }
.episode-number { font: 400 16px/1 Inter,sans-serif; color: #7e8493; text-align: center; }
.episode-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #23252a; border-radius: 5px; }
.episode-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.episode-play { width: 33px; height: 33px; border-radius: 50%; background: #13141899; border: 1px solid #ffffff80; display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0; transition: opacity .18s; }
.episode-play .icon { width: 15px; height: 15px; }
.episode:not(:disabled):hover .episode-play, .episode:focus-visible .episode-play, .episode.watched .episode-play { opacity: 1; }
.episode:disabled .episode-thumb { filter: saturate(.55); opacity: .65; }
.episode-thumb .progress-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; }
.episode-copy { min-width: 0; }
.episode-name { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.episode-name > strong { font-size: 12px; line-height: 1.65; font-weight: 600; color: #dadce4; }
.episode-runtime { flex-shrink: 0; color: #8f95a4; font-size: 10px; }
.episode-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #979caa; font-size: 11px; line-height: 1.85; margin-top: 6px; }
.episode-state { display: block; line-height: 1; margin-top: 8px; }
.episode-state:empty { display: none; }
.not-available { display: inline-block; color: #828895; font-size: 9px; line-height: 1.7; padding: 2px 6px; background: #ffffff04; border-radius: 3px; }
.watched-label, .resume-label { display: inline-flex; align-items: center; gap: 4px; color: #a1b9a9; font-size: 9px; line-height: 1.7; }
.resume-label { color: #b2b8c6; }
.watched-label .icon, .resume-label .icon { width: 11px; height: 11px; }
.episode-chevron .icon { color: #5f6574; width: 16px; height: 16px; }
.episode:not(:disabled):hover .episode-chevron .icon { color: #fff; }
.related-region { padding-top: 42px; }
.related-region .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
.more-like { margin-bottom: 19px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.related-card { border-radius: 7px; text-align: start; background: #222328; border: 1px solid #ffffff08; overflow: hidden; transition: border-color .18s, background .18s; }
.related-card:hover { background: #272930; border-color: #ffffff25; }
.related-image { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.related-image > img { width: 100%; height: 100%; object-fit: cover; }
.related-image > .icon { position: absolute; bottom: 10px; inset-inline-end: 10px; filter: drop-shadow(0 1px 5px #000); width: 19px; height: 19px; }
.related-info { display: block; padding: 14px; }
.related-meta { display: flex; align-items: center; justify-content: space-between; font: 400 10px/1.5 Inter,sans-serif; color: #9fa4b3; margin-bottom: 10px; }
.related-info > strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #9ea3b2; font-size: 10px; line-height: 1.9; }
.detail-about { margin-top: 38px; padding-top: 28px; border-top: 1px solid #ffffff10; }
.detail-about h2 { font-size: 19px; line-height: 1.8; font-weight: 500; }
.detail-about dl { margin: 20px 0 0; }
.detail-about dl > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 15px; margin-bottom: 13px; font-size: 11px; line-height: 1.8; }
.detail-about dt { color: #7f8798; }
.detail-about dd { color: #b5bbc9; margin: 0; }
/* Profiles and preferences */
.profile-page { margin: auto; width: min(1050px,100%); min-height: 80svh; padding: 150px var(--gutter) 70px; text-align: center; }
.profile-page .eyebrow { font-size: 9px; letter-spacing: 2.2px; margin-bottom: 17px; }
.profile-page h1 { font-size: 38px; font-weight: 500; line-height: 1.8; }
.profile-page > p:not(.eyebrow) { margin-top: 7px; color: #9298a6; font-size: 12px; line-height: 1.9; }
.profiles-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 45px -20px 35px; }
.profile-item { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 11px; min-width: 0; }
.profile-item > strong { display: block; max-width: 100%; font-size: 13px; line-height: 1.8; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d2d5df; }
.profile-avatar-wrap { position: relative; display: block; border: 2px solid transparent; border-radius: 17px; padding: 3px; transition: border-color .18s, transform .18s; }
.profile-avatar-wrap > .avatar { display: block; }
.profile-item:hover .profile-avatar-wrap { border-color: #fff; transform: translateY(-3px); }
.profile-item.current .profile-avatar-wrap { border-color: #ffffff50; }
.profile-status { display: block; color: #777f91; font-size: 9px; line-height: 1.5; margin-top: -7px; }
.profile-item.current .profile-status { color: #a4b5aa; }
.profile-add { display: flex; justify-content: center; align-items: center; width: 122px; height: 122px; border: 1px dashed #ffffff30; border-radius: 16px; color: #8d94a4; transition: background .18s, color .18s; }
.profile-add .icon { width: 31px; height: 31px; stroke-width: 1.3; }
.add-profile:hover .profile-add { background: #ffffff06; color: #fff; border-color: #ffffff60; }
.edit-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; position: absolute; bottom: 9px; inset-inline-end: 9px; background: #15161bd9; border: 1px solid #ffffff40; border-radius: 50%; }
.edit-avatar .icon { width: 15px; height: 15px; }
.profile-page > .local-note { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 10px !important; margin-top: 28px !important; color: #777f91 !important; }
.local-note .icon { width: 13px; height: 13px; }
.editing-profile { max-width: 720px; text-align: start; padding-top: 120px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #9da4b5; font-size: 11px; min-height: 40px; margin-bottom: 28px; }
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: #fff; }
.profile-form { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 25px; text-align: start; margin-top: 31px; }
.profile-preview { padding-top: 31px; }
.profile-form-fields { min-width: 0; }
.profile-form-fields > label, .color-label { display: block; font-size: 11px; color: #b2b8c6; margin-bottom: 9px; }
.text-input { display: block; width: 100%; min-height: 46px; border-radius: 5px; border: 1px solid #ffffff28; color: #e2e6ee; background: #1c1e24; padding: 11px 14px; font-size: 13px; }
.text-input:focus { border-color: #ffffff70; }
.field-hint { display: block; font-size: 9px; color: #7f879a; margin-top: 8px; }
.color-label { margin-top: 22px; }
.avatar-colors { display: flex; gap: 10px; }
.avatar-choice { height: 37px; width: 37px; border-radius: 50%; background: var(--choice); display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); outline: 1px solid transparent; outline-offset: 1px; }
.avatar-choice .icon { width: 16px; height: 16px; opacity: 0; }
.avatar-choice.active { outline-color: #c9d2e4; }
.avatar-choice.active .icon { opacity: 1; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-form > .form-actions { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 5px; }
.profile-form .text-danger { margin-inline-start: auto; }
.settings-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 35px; align-items: start; max-width: 1320px; }
.settings-sidebar { border: 1px solid var(--line); border-radius: 9px; padding: 24px 14px 12px; background: #17181c; }
.settings-profile { display: flex; flex-direction: column; align-items: center; padding-bottom: 24px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.settings-profile > .avatar { width: 70px; height: 70px; border-radius: 12px; margin-bottom: 15px; }
.settings-profile > strong { font-size: 15px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.settings-profile > span:last-child { color: #7f8798; font-size: 10px; margin-top: 2px; }
.settings-sidebar > a { display: flex; align-items: center; gap: 9px; padding: 12px 7px; color: #a8afbf; font-size: 10px; border-radius: 5px; }
.settings-sidebar > a:hover { background: #ffffff05; color: #fff; }
.settings-sidebar > a > .icon { width: 17px; height: 17px; color: #778094; }
.settings-sidebar > a > .icon:last-child { width: 13px; height: 13px; margin-inline-start: auto; }
.settings-section { border: 1px solid var(--line); border-radius: 9px; background: #17181c; margin-bottom: 20px; padding: 23px 26px 0; }
.settings-section-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.settings-section-heading > .icon { width: 18px; height: 18px; color: #8b93a5; }
.settings-section h2 { font-size: 16px; font-weight: 500; line-height: 1.8; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px 0; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row > div { min-width: 0; }
.settings-row h3 { font-size: 12px; font-weight: 500; line-height: 1.8; color: #d2d7e2; }
.settings-row p { font-size: 10px; line-height: 1.9; color: #828c9f; max-width: 470px; margin-top: 4px; }
.settings-row > .btn { flex-shrink: 0; }
.toggle { display: block; position: relative; width: 44px; height: 25px; flex-shrink: 0; background: #4e5360; border-radius: 30px; direction: ltr; transition: background .18s; }
.toggle::after { content: ''; width: 19px; height: 19px; border-radius: 50%; position: absolute; top: 3px; left: 3px; background: #eef0f5; box-shadow: 0 1px 4px #0003; transition: transform .18s; }
.toggle.on { background: var(--red); }
.toggle.on::after { transform: translateX(19px); }
.settings-note { display: flex; gap: 9px; align-items: start; background: #ffffff03; border-top: 1px solid var(--line); padding: 15px 0; color: #7f8a9f; }
.settings-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.settings-note p { font-size: 10px; line-height: 1.8; }
/* About, help and privacy */
.info-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 55px; max-width: 1280px; }
.info-sidebar { position: sticky; top: 115px; align-self: start; }
.info-sidebar > .brand { font-size: 24px; margin-bottom: 30px; }
.info-sidebar > a { display: flex; align-items: center; gap: 11px; font-size: 12px; color: #8a93a7; padding: 14px 12px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 6px; }
.info-sidebar > a:hover { color: #d5ddeb; background: #ffffff03; }
.info-sidebar > a.active { color: #e4e9f2; background: #ffffff05; border-color: #ffffff0b; }
.info-sidebar > a .icon { width: 17px; height: 17px; }
.info-sidebar > a .icon:last-child { width: 13px; height: 13px; margin-inline-start: auto; }
.info-content { min-width: 0; }
.info-content > .page-sub { margin-bottom: 27px; }
.about-intro { padding: 8px 0 38px; }
.about-intro h1 { font-size: clamp(32px,3.5vw,47px); line-height: 1.6; font-weight: 500; letter-spacing: -.8px; margin-top: 17px; }
.about-intro > p { margin: 19px 0 26px; font-size: 13px; line-height: 2; color: #a4adbf; max-width: 550px; }
.about-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.about-values article { padding-top: 25px; border-top: 1px solid #ffffff1a; }
.about-values .icon { color: #9aa6ba; width: 23px; height: 23px; margin-bottom: 19px; }
.about-values h2 { font-size: 14px; font-weight: 500; line-height: 1.9; margin-bottom: 9px; }
.about-values p { font-size: 11px; line-height: 2; color: #8d99b0; }
.privacy-summary { display: flex; align-items: start; gap: 12px; padding: 20px; border: 1px solid #ffffff10; border-radius: 7px; background: #ffffff03; color: #aab5c8; }
.privacy-summary .icon { width: 19px; height: 19px; margin-top: 3px; }
.privacy-summary p { font-size: 12px; line-height: 1.9; }
.info-article { padding-top: 29px; }
.info-article h2 { font-size: 19px; font-weight: 500; line-height: 1.8; margin-bottom: 11px; }
.info-article p { font-size: 12px; line-height: 2.1; color: #929fb5; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #c5cedd; font-size: 11px; margin-top: 14px; }
.text-link .icon { width: 14px; height: 14px; }
.text-link:hover { color: #fff; }
.help-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 36px; }
.help-shortcuts > a { display: flex; align-items: center; gap: 13px; min-height: 80px; padding: 18px; background: #191c23; border: 1px solid #ffffff0e; border-radius: 7px; font-size: 11px; color: #c8d0e0; }
.help-shortcuts > a:hover { border-color: #ffffff28; }
.help-shortcuts > a .icon:first-child { width: 21px; height: 21px; color: #8c9bb5; }
.help-shortcuts > a .icon:last-child { width: 15px; height: 15px; color: #6a7a96; margin-inline-start: auto; }
.faq-title { font-size: 19px; font-weight: 500; margin-bottom: 15px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 0; font-size: 13px; color: #c2cbdc; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 17px; height: 17px; color: #8291aa; transition: transform .18s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details > p { color: #8d9cb5; font-size: 12px; line-height: 2; padding-bottom: 19px; padding-inline-end: 30px; }
/* Shared feedback and footer */
.toast { position: fixed; z-index: 250; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 13px 21px; color: #e6e8ef; background: #262930f5; border: 1px solid #ffffff20; box-shadow: 0 8px 40px #0006; backdrop-filter: blur(16px); border-radius: 7px; font-size: 12px; line-height: 1.8; text-align: center; animation: fade .18s ease; }
#confirm-overlay { z-index: 210; display: flex; align-items: center; justify-content: center; padding: 25px; }
.confirm-panel { width: 100%; max-width: 460px; padding: 30px; border: 1px solid #ffffff1c; background: #1b1e25; border-radius: 12px; box-shadow: 0 20px 80px #0008; }
.confirm-panel h2 { font-size: 22px; font-weight: 500; line-height: 1.8; margin-bottom: 12px; }
.confirm-panel p { color: #a4aec2; font-size: 12px; line-height: 2; margin-bottom: 25px; }
.footer { margin: 36px var(--gutter) 0; padding: 35px 0 24px; border-top: 1px solid #ffffff10; }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 50px; padding-bottom: 32px; }
.footer .brand { font-size: 25px; }
.footer-intro p { font-size: 11px; color: #8b94a7; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3,auto); gap: 12px 38px; font-size: 11px; color: #919bb0; }
.footer-links a:hover { color: #f0f2f7; }
.footer-bottom { border-top: 1px solid #ffffff08; padding-top: 20px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.footer small { color: #7f889c; font-size: 10px; line-height: 1.8; }
.footer-language { display: inline-flex; align-items: center; gap: 7px; color: #a5b0c5; font-size: 10px; min-height: 35px; }
.footer-language:hover { color: #fff; }
.footer-language .icon { width: 13px; height: 13px; }
.footer-language .icon:last-child { width: 11px; height: 11px; }
.boot { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 25px; padding: 30px; text-align: center; }
.boot p { font-size: 13px; line-height: 1.9; color: #8f98aa; }
.boot h1 { font-size: 24px; font-weight: 500; }
.spinner { display: block; width: 31px; height: 31px; border: 2px solid #ffffff15; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.player{position:fixed;inset:0;z-index:150;background:#000;direction:ltr;overflow:hidden}.player video{width:100%;height:100%;object-fit:contain;display:block;background:#000}.player-top{position:absolute;top:0;left:0;right:0;padding:24px 35px;display:flex;align-items:center;gap:20px;background:linear-gradient(#000b,transparent);z-index:2;transition:opacity .3s}.player-top h1{font-size:19px;font-weight:500}.player-top .icon-btn{width:43px;height:43px}.player-top .player-sub{font-size:13px;color:#bbb;margin-top:5px}.player-logo{margin-left:auto;font-size:27px}.player-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;background:#0007;z-index:1;text-align:center;direction:rtl;padding:30px}.player-status.error{pointer-events:auto;background:#000d}.player-status p{color:#bbb;max-width:520px;font-size:15px;line-height:1.8}.player-status h2{font-size:25px}.player-status .status-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.player-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:80px;height:80px;background:#0006;border-radius:50%;border:1px solid #aaa;z-index:2}.player-center-play .icon{width:35px;height:35px}.player-bottom{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,#000d);padding:55px 35px 26px;z-index:3;transition:opacity .3s}.timeline{display:flex;align-items:center;gap:20px;width:100%;margin-bottom:14px;direction:ltr}.timeline input{width:100%;height:4px;accent-color:#e50914;cursor:pointer;appearance:none;border-radius:0;background:linear-gradient(to right,#e50914 var(--progress,0%),#666 var(--progress,0%));outline:none}.timeline input::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:#e50914;border-radius:50%;border:0}.timeline span{font-size:13px;min-width:95px;text-align:right;font-variant-numeric:tabular-nums}.player-controls{display:flex;align-items:center;gap:20px}.player-controls .icon-btn{width:35px;height:35px}.player-controls .icon{width:29px;height:29px}.player-control-label{font-size:13px;display:flex;align-items:center;gap:7px}.player-control-label .icon{width:24px}.volume-wrap{display:flex;align-items:center;gap:6px}.volume-wrap input{width:72px;accent-color:white;height:4px}.player-controls .spacer{flex:1}.player-menu{position:absolute;bottom:100px;right:35px;background:#222;border:1px solid #444;width:300px;max-height:65vh;overflow-y:auto;border-radius:5px;padding:18px;z-index:5;box-shadow:0 4px 35px #0008;direction:rtl}.player-menu h3{font-size:15px;margin:8px 0 12px}.player-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 8px;text-align:start;font-size:13px;gap:10px}.player-menu button:hover{background:#ffffff10}.player-menu button.active{color:#46d369}.player-menu .menu-divider{border-top:1px solid #444;margin:12px 0}.player-menu .select{width:100%;margin-bottom:10px}.player-menu .menu-episode{display:grid;grid-template-columns:70px 1fr;gap:10px;align-items:center}.menu-episode img{width:70px;aspect-ratio:16/9;object-fit:cover}.menu-episode strong{display:block;font-size:12px;margin-bottom:4px}.menu-episode span{font-size:11px;color:#aaa}.player.faded .player-top,.player.faded .player-bottom{opacity:0;pointer-events:none}.player.faded{cursor:none}.skip-intro{position:absolute;bottom:150px;right:35px;z-index:4}.next-up{position:absolute;bottom:150px;right:35px;z-index:4;background:#181818e8;padding:20px;border:1px solid #555;max-width:350px;direction:rtl}.next-up p{font-size:14px;margin-bottom:12px}.player-error-code{font-size:11px;color:#777}/* Responsive layouts */
@media (min-width:1600px) {
  .catalog-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 35px 21px; }
  .hero-content { max-width: 720px; }
  .hero-description { font-size: 16px; max-width: 570px; }
}
@media (max-width:1200px) {
  .header { gap: 27px; }
  .nav { gap: 20px; font-size: 11px; }
  .header-tools { gap: 8px; }
  .profile-trigger-name { display: none; }
  .hero { min-height: 650px; }
  .hero-content { width: 60%; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .release-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .upcoming-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .settings-layout { grid-template-columns: 200px minmax(0,1fr); gap: 24px; }
  .info-layout { grid-template-columns: 180px minmax(0,1fr); gap: 32px; }
  .about-values { gap: 18px; }
}
@media (max-width:960px) and (min-width:761px) {
  .header { gap: 22px; }
  .header .brand { font-size: 27px; }
  .nav { gap: 16px; font-size: 10px; }
  .language .icon { display: none; }
  .header-tools { gap: 5px; }
  .profile-trigger > .icon { display: none; }
  .hero-content { width: 66%; }
  .hero-title { font-size: 58px; }
  .hero-actions .btn { padding-inline: 17px; font-size: 12px; }
  .hero-description { max-width: 440px; font-size: 13px; }
  .settings-row { align-items: start; }
  .settings-row > .btn { padding-inline: 10px; font-size: 10px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values article { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
  .about-values article > .icon { grid-row: span 2; margin: 3px 0 0; }
  .about-values h2 { margin-bottom: 4px; }
  .help-shortcuts { grid-template-columns: 1fr; }
}
@media (hover:hover) {
  .card:hover .card-main > img { transform: scale(1.035); }
}
@media (hover:none), (pointer:coarse) {
  .card-controls { opacity: 1; transform: none; pointer-events: auto; }
  .card-controls .circle { width: 40px; height: 40px; }
  .card-vignette { opacity: .9; }
  .rail-arrow { display: none; }
  .episode:not(:disabled) .episode-play { opacity: 1; }
}
@media (max-width:760px) {
  :root { --gutter: 20px; --header-h: 66px; }
  html { scroll-padding-top: 90px; }
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .header { gap: 15px; padding-top: env(safe-area-inset-top); height: calc(66px + env(safe-area-inset-top)); }
  .header .brand { font-size: 27px; letter-spacing: -1.5px; }
  .header .nav { display: none; }
  .header-tools { gap: 6px; }
  .header-tools > .icon-btn { width: 39px; height: 42px; }
  .language { padding-inline: 5px; font-size: 10px; }
  .language .icon { display: none; }
  .profile-trigger { gap: 5px; padding-inline-end: 0; }
  .profile-trigger > .avatar { width: 30px; height: 30px; border-radius: 6px; }
  .profile-trigger > .icon { width: 12px; height: 12px; }
  .profile-menu { top: calc(61px + env(safe-area-inset-top)); width: 255px; }
  .header.searching { gap: 15px; }
  .header.searching .header-brand { display: none; }
  .header.searching .header-tools { width: 100%; margin: 0; gap: 7px; }
  .header.searching .language { display: none; }
  .search-box { width: auto; flex: 1; height: 43px; gap: 8px; padding-inline-start: 12px; }
  .search-box input { font-size: 12px; }
  .search-box > .icon { width: 17px; height: 17px; }
  .search-box .icon-btn { width: 38px; height: 40px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 45; height: calc(69px + env(safe-area-inset-bottom)); padding: 6px 8px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; background: #15161bf2; border-top: 1px solid #ffffff0c; backdrop-filter: blur(24px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 52px; color: #818895; font-size: 9px; line-height: 1.6; border-radius: 7px; }
  .mobile-nav .icon { width: 21px; height: 21px; stroke-width: 1.7; }
  .mobile-nav a.active { color: #f0f0f5; background: #ffffff04; }
  .mobile-nav a.active .icon { stroke-width: 2; }
  .hero { min-height: 640px; height: min(760px,92svh); padding: 125px var(--gutter) 93px; align-items: flex-end; }
  .hero-art { object-position: 42% top; }
  .hero-shade, html[dir=ltr] .hero-shade { background: linear-gradient(0deg,var(--bg) 0%,#101113ef 27%,#101113a6 47%,#1011130d 76%,#10111345 100%); }
  .hero-content { width: 100%; max-width: 520px; }
  .series-label { font-size: 8px; letter-spacing: 2.6px; gap: 7px; }
  .series-emblem { font-size: 19px; }
  .hero-meta { gap: 10px; font-size: 10px; margin: 17px 0 12px; }
  .maturity { font-size: 9px; }
  .hero-title { font-size: clamp(37px,9.5vw,63px); line-height: 1.1; letter-spacing: -1.7px; }
  .hero-title.gentlemen { letter-spacing: -1.6px; }
  .hero-title.loki { font-size: 75px; letter-spacing: 7px; }
  .hero-local-title { font-size: 14px; line-height: 1.8; margin-top: 13px; }
  .hero-description { font-size: 12px; line-height: 1.95; max-width: 450px; margin-top: 8px; -webkit-line-clamp: 2; }
  .hero-actions { margin-top: 21px; gap: 8px; flex-wrap: nowrap; }
  .hero-actions .btn { min-height: 45px; font-size: 12px; padding: 10px 16px; gap: 8px; }
  .hero-actions .btn .icon { width: 18px; height: 18px; }
  .hero-list { width: 44px; height: 44px; }
  .hero-genres { margin-top: 17px; font-size: 10px; gap: 9px; }
  .hero-bottom { bottom: 25px; }
  .hero-selection { gap: 13px; }
  .hero-counter { font-size: 9px; }
  .hero-counter strong { font-size: 13px; }
  .hero-dots { gap: 2px; }
  .hero-dots button { width: 27px; }
  .hero-discover { font-size: 9px; gap: 5px; }
  .hero-discover .icon { width: 13px; height: 13px; }
  .home-rows { padding-top: 5px; }
  .rail-section { margin-bottom: 29px; }
  .section-heading { margin-bottom: 12px; gap: 10px; }
  .section-heading h2 { font-size: 16px; line-height: 1.8; }
  .section-heading a { font-size: 9px; gap: 2px; }
  .section-heading a .icon { width: 12px; height: 12px; }
  .rail { gap: 12px; padding-top: 4px; padding-bottom: 7px; }
  .card { flex-basis: 68vw; max-width: 300px; }
  .card-main, .card-cover { border-radius: 6px; }
  .card-controls { inset-inline: 9px; bottom: 9px; gap: 7px; }
  .card-controls .circle { width: 36px; height: 36px; }
  .card-controls .circle .icon { width: 17px; height: 17px; }
  .card-caption { padding-top: 9px; }
  .card-title-line { font-size: 12px; line-height: 1.6; }
  .card-subline { font-size: 9px; gap: 6px; }
  .card-mark { font-size: 15px; top: 8px; inset-inline-start: 9px; }
  .card-badge { font-size: 7px; padding: 3px 5px; top: 7px; inset-inline-end: 7px; }
  .continue-caption { font-size: 9px; }
  .time-left { display: none; }
  .rail-arrow { display: none; }
  .poster-card { flex-basis: 39vw; max-width: 180px; }
  .rank-card { flex-basis: 44vw; max-width: 210px; padding-inline-start: 26px; }
  .rank-number { font-size: 69px; letter-spacing: -5px; bottom: 30px; }
  .rank-name { font-size: 11px; margin-top: 9px; }
  .catalog-page { padding-top: calc(106px + env(safe-area-inset-top)); padding-bottom: 35px; }
  .page-heading { margin-bottom: 25px; gap: 15px; align-items: start; }
  .eyebrow { font-size: 8px; margin-bottom: 8px; }
  .eyebrow[dir=ltr] { letter-spacing: 1.7px; }
  .page-title { font-size: 28px; line-height: 1.7; letter-spacing: -.4px; }
  .page-sub { font-size: 11px; line-height: 1.9; margin-top: 5px; max-width: 95%; }
  .page-count { padding: 8px 10px; gap: 6px; font-size: 8px; margin-top: 24px; }
  .page-count .icon { display: none; }
  .page-count strong { font-size: 14px; margin: 0; }
  .genre-chips { gap: 7px; padding-bottom: 19px; margin-inline-end: calc(-1 * var(--gutter)); padding-inline-end: var(--gutter); }
  .genre-chip { font-size: 10px; min-height: 37px; padding: 7px 16px; }
  .filter-bar { align-items: start; flex-wrap: wrap; gap: 15px; padding: 16px 0; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 11px; }
  .filter-control { gap: 6px; }
  .filter-control > span { font-size: 9px; }
  .filter-control .select { min-width: 0; width: 100%; font-size: 10px; min-height: 43px; }
  .sort-control { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .sort-control .select { width: 55%; }
  .results-summary { min-height: 52px; font-size: 9px; }
  .results-summary button { font-size: 9px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  .catalog-grid .card-title-line { font-size: 11px; }
  .catalog-grid .card-subline { font-size: 8px; gap: 5px; }
  .catalog-grid .card-subline > span:last-child, .catalog-grid .card-subline > i:last-of-type { display: none; }
  .catalog-grid .card-main { aspect-ratio: 4/3; }
  .catalog-grid .card-controls { gap: 5px; inset-inline: 7px; bottom: 7px; }
  .catalog-grid .card-controls .circle { width: 32px; height: 32px; }
  .catalog-grid .card-controls .circle .icon { width: 15px; height: 15px; }
  .catalog-grid .more-control { display: none; }
  .search-page-heading { gap: 14px; margin-bottom: 27px; align-items: start; }
  .search-heading-icon { display: none; }
  .search-page .page-title { font-size: 25px; }
  .search-suggestions { gap: 8px; margin-bottom: 27px; padding-bottom: 22px; }
  .search-suggestions > span { width: 100%; margin-bottom: 3px; font-size: 10px; }
  .search-suggestions .genre-chip { font-size: 9px; }
  .release-grid { grid-template-columns: 1fr; gap: 20px; }
  .release-heading { margin-bottom: 16px; }
  .release-heading h2 { font-size: 18px; }
  .release-heading p { font-size: 10px; line-height: 1.9; }
  .status-pill { font-size: 9px; }
  .release-copy { padding: 18px; }
  .release-copy h3 { font-size: 21px; }
  .release-description { font-size: 11px; height: auto; -webkit-line-clamp: 2; }
  .release-actions { margin-top: 19px; }
  .upcoming-heading { margin-top: 35px; }
  .upcoming-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .upcoming-grid .card-main { aspect-ratio: 2/3; }
  .empty-state { margin: 0 auto; padding: 45px 8px; }
  .empty-icon { width: 65px; height: 65px; border-radius: 18px; margin-bottom: 20px; }
  .empty-icon .icon { width: 25px; height: 25px; }
  .empty-state h2 { font-size: 22px; }
  .empty-state p { font-size: 12px; margin-bottom: 21px; }
  .overlay { padding: 0; background: #08090cdd; }
  .detail { border: 0; border-radius: 0; min-height: 100svh; }
  .detail-topbar { height: 65px; padding: 10px 15px; margin-bottom: -65px; }
  .detail-brand { font-size: 17px; }
  .detail-close { width: 40px; height: 40px; }
  .detail-hero { height: 355px; padding: 95px 22px 24px; }
  .detail-hero-content { max-width: 100%; }
  .detail-hero .series-label { font-size: 7px; letter-spacing: 2.2px; margin-bottom: 12px; }
  .detail-hero .hero-title { font-size: clamp(34px,9vw,56px); }
  .detail-hero .hero-title.loki { font-size: 65px; }
  .detail-local-title { font-size: 12px; margin-top: 9px; }
  .detail-hero .hero-actions { margin-top: 16px; }
  .detail-hero .hero-actions .btn { font-size: 12px; padding-inline: 19px; }
  .detail-hero .circle { width: 44px; height: 44px; }
  .detail-summary { grid-template-columns: 1fr; gap: 18px; padding: 0 22px 23px; }
  .meta-line { gap: 9px; font-size: 10px; margin-bottom: 13px; }
  .available { font-size: 9px; }
  .synopsis { font-size: 12px; line-height: 2; }
  .credits { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 10px; line-height: 1.8; }
  .credits p { flex: 1 1 40%; }
  .credits p + p { margin: 0; }
  .credits b { font-size: 9px; margin-bottom: 3px; }
  .detail-tabs { top: 65px; padding-inline: 22px; gap: 26px; }
  .detail-tabs button { font-size: 11px; min-height: 51px; }
  .detail-body { padding: 26px 17px 35px; }
  #episodes-region, #related-region, #about-region { scroll-margin-top: 135px; }
  .episodes-heading { padding-inline: 5px; }
  .episodes-heading h2, .more-like { font-size: 21px; }
  .episodes-heading .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .episodes-heading .select { min-width: 127px; font-size: 10px; min-height: 43px; }
  .episode-count { padding-inline: 5px; font-size: 9px; line-height: 1.9; margin: 13px 0 16px; }
  .episode { grid-template-columns: 19px 105px minmax(0,1fr); gap: 10px; padding: 16px 4px; align-items: start; }
  .episode-number { font-size: 12px; padding-top: 23px; }
  .episode-thumb { margin-top: 2px; }
  .episode-play { width: 27px; height: 27px; }
  .episode-play .icon { width: 12px; height: 12px; }
  .episode-name { display: block; }
  .episode-name > strong { display: block; font-size: 11px; line-height: 1.6; }
  .episode-runtime { display: block; font-size: 9px; line-height: 1.7; margin-top: 3px; }
  .episode-desc { font-size: 9px; line-height: 1.8; margin-top: 5px; -webkit-line-clamp: 2; }
  .episode-state { margin-top: 6px; }
  .not-available, .watched-label, .resume-label { font-size: 8px; }
  .episode-chevron { display: none; }
  .related-region { padding: 31px 5px 0; }
  .related-region .eyebrow { font-size: 7px; }
  .related-grid { gap: 11px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .related-card:last-child { display: none; }
  .related-info { padding: 11px; }
  .related-info > strong { font-size: 11px; }
  .related-description { font-size: 9px; -webkit-line-clamp: 3; }
  .related-meta { font-size: 9px; }
  .detail-about { margin: 29px 5px 0; padding-top: 24px; }
  .detail-about > .eyebrow { font-size: 7px; }
  .detail-about h2 { font-size: 17px; }
  .detail-about dl > div { grid-template-columns: 78px minmax(0,1fr); gap: 12px; font-size: 10px; }
  .profile-page { min-height: 70svh; padding-top: calc(120px + env(safe-area-inset-top)); padding-bottom: 35px; }
  .profile-page .eyebrow { font-size: 8px; }
  .profile-page h1 { font-size: 29px; line-height: 1.8; }
  .profile-page > p:not(.eyebrow) { font-size: 11px; }
  .profiles-grid { gap: 22px 14px; margin: 32px -7px 29px; }
  .profile-item { width: 95px; gap: 9px; }
  .avatar.large { width: 83px; height: 83px; border-radius: 12px; }
  .profile-avatar-wrap { border-radius: 15px; padding: 3px; }
  .profile-item > strong { font-size: 12px; }
  .profile-status { font-size: 8px; }
  .profile-add { width: 93px; height: 93px; border-radius: 13px; }
  .profile-add .icon { width: 27px; height: 27px; }
  .profile-page > .local-note { font-size: 9px !important; line-height: 1.9; max-width: 300px; margin-inline: auto; align-items: start; }
  .local-note .icon { width: 12px; height: 12px; margin-top: 3px; }
  .editing-profile { padding-top: 90px; }
  .back-link { margin-bottom: 23px; font-size: 10px; }
  .profile-form { grid-template-columns: 83px minmax(0,1fr); gap: 18px; margin-top: 25px; }
  .profile-preview { padding-top: 29px; }
  .profile-form-fields > label, .color-label { font-size: 10px; }
  .text-input { min-height: 45px; font-size: 12px; padding-inline: 12px; }
  .field-hint { font-size: 8px; line-height: 1.8; }
  .avatar-colors { gap: 7px; }
  .avatar-choice { width: 30px; height: 30px; border-width: 2px; }
  .avatar-choice .icon { width: 13px; height: 13px; }
  .profile-form > .form-actions { gap: 8px; padding-top: 21px; }
  .profile-form .text-danger { margin-inline-start: 0; }
  .form-actions .btn { font-size: 10px; padding-inline: 13px; }
  .settings-layout { grid-template-columns: 1fr; gap: 22px; }
  .settings-sidebar { display: flex; align-items: center; gap: 15px; padding: 15px; flex-wrap: wrap; }
  .settings-profile { display: grid; grid-template-columns: 45px minmax(0,1fr); column-gap: 12px; border: 0; margin: 0; padding: 0; min-width: 110px; }
  .settings-profile > .avatar { grid-row: 1/3; width: 45px; height: 45px; margin: 0; border-radius: 8px; }
  .settings-profile > strong { font-size: 12px; align-self: end; }
  .settings-profile > span:last-child { font-size: 9px; align-self: start; }
  .settings-sidebar > a { margin-inline-start: auto; font-size: 9px; padding: 8px 0; gap: 6px; }
  .settings-sidebar > a:last-child { display: none; }
  .settings-sidebar > a > .icon { width: 15px; height: 15px; }
  .settings-sidebar > a > .icon:last-child { width: 12px; }
  .settings-section { padding: 18px 17px 0; margin-bottom: 16px; border-radius: 7px; }
  .settings-section-heading { padding-bottom: 15px; gap: 9px; }
  .settings-section-heading .icon { width: 17px; height: 17px; }
  .settings-section h2 { font-size: 14px; }
  .settings-row { gap: 20px; padding: 20px 0; }
  .settings-row h3 { font-size: 11px; }
  .settings-row p { font-size: 9px; line-height: 1.9; }
  .settings-row > .btn { font-size: 9px; padding-inline: 10px; min-height: 39px; gap: 6px; }
  .settings-row > .btn .icon { width: 14px; height: 14px; }
  .settings-note { gap: 8px; padding: 13px 0; }
  .settings-note p { font-size: 9px; }
  .info-layout { grid-template-columns: 1fr; gap: 29px; }
  .info-sidebar { position: static; display: flex; gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .info-sidebar > .brand { display: none; }
  .info-sidebar > a { flex: 1; justify-content: center; margin: 0; padding: 10px 7px; font-size: 9px; gap: 6px; }
  .info-sidebar > a > .icon { width: 15px; height: 15px; }
  .info-sidebar > a > .icon:last-child { display: none; }
  .about-intro { padding-bottom: 25px; }
  .about-intro h1 { font-size: 35px; line-height: 1.6; margin-top: 14px; }
  .about-intro > p { font-size: 12px; line-height: 2; margin-top: 17px; }
  .about-values { grid-template-columns: 1fr; gap: 23px; }
  .about-values article { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 0 12px; padding-top: 21px; }
  .about-values article > .icon { grid-row: span 2; margin: 3px 0 0; width: 22px; height: 22px; }
  .about-values h2 { margin-bottom: 5px; font-size: 14px; }
  .about-values p { font-size: 11px; }
  .info-content > .page-sub { margin-bottom: 22px; }
  .privacy-summary { padding: 16px; gap: 10px; }
  .privacy-summary p { font-size: 11px; }
  .privacy-summary .icon { width: 17px; height: 17px; }
  .info-article { padding-top: 25px; }
  .info-article h2 { font-size: 18px; margin-bottom: 9px; }
  .info-article p { font-size: 11px; }
  .help-shortcuts { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .help-shortcuts > a { min-height: 65px; padding: 16px; font-size: 11px; }
  .faq-title { font-size: 18px; }
  .faq-list summary { font-size: 12px; padding-block: 16px; }
  .faq-list details > p { font-size: 11px; line-height: 2; padding-inline-end: 12px; }
  .footer { margin-top: 25px; padding-top: 25px; }
  .footer-main { flex-direction: column; gap: 25px; padding-bottom: 25px; }
  .footer .brand { font-size: 24px; }
  .footer-intro p { font-size: 10px; margin-top: 11px; }
  .footer-links { grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 13px 17px; font-size: 10px; }
  .footer-bottom { padding-top: 17px; align-items: start; gap: 16px; }
  .footer small { font-size: 9px; max-width: 230px; line-height: 1.9; }
  .footer-language { font-size: 9px; min-height: 25px; gap: 6px; flex-shrink: 0; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); font-size: 11px; padding: 12px 17px; }
  .confirm-panel { padding: 25px; }
  .confirm-panel h2 { font-size: 21px; }
  .confirm-panel p { font-size: 11px; }
}
@media (max-width:380px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 36px; }
  .hero-title.loki { font-size: 68px; }
  .hero-actions .btn { padding-inline: 12px; font-size: 11px; gap: 6px; }
  .hero-list { width: 41px; height: 43px; }
  .hero-discover { display: none; }
  .section-heading h2 { font-size: 15px; }
  .catalog-grid { gap: 23px 10px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-preview { padding: 0; }
  .profile-preview .avatar.large { width: 76px; height: 76px; }
  .profile-form-fields { width: 100%; }
  .profile-form > .form-actions { grid-column: auto; }
  .avatar-choice { width: 35px; height: 35px; }
  .episode { grid-template-columns: 16px 91px minmax(0,1fr); gap: 8px; }
  .episode-number { padding-top: 20px; font-size: 11px; }
  .detail-tabs { gap: 21px; padding-inline: 18px; }
  .detail-tabs button { font-size: 10px; }
  .settings-row { gap: 13px; }
  .settings-row > .btn .icon { display: none; }
  .info-sidebar { gap: 4px; }
  .info-sidebar > a { padding-inline: 5px; font-size: 8px; }
}
@media (max-height:550px) and (orientation:landscape) {
  .hero { height: auto; min-height: 600px; }
  .detail-hero { min-height: 350px; }
}
html[dir=ltr] .player-menu, html[dir=ltr] .player-status, html[dir=ltr] .next-up { direction: ltr; }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* Keep original title lettering aligned with the surrounding interface. */
html[dir=rtl] .hero-title,
html[dir=rtl] .card-title-line,
html[dir=rtl] .rank-name,
html[dir=rtl] .release-copy h3,
html[dir=rtl] .episode-name > strong,
html[dir=rtl] .related-info > strong { text-align: right; }
.rail-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.rail-wrap.no-overflow > .rail-arrow { display: none; }
@media (max-width:760px) {
  .card-controls .circle, .catalog-grid .card-controls .circle { width: 40px; height: 40px; }
  .catalog-grid .card-controls .circle .icon { width: 17px; height: 17px; }
}
/* Readable captions at small screen sizes. */
.card-title-line { font-size: 14px; }
.card-subline { font-size: 11px; }
.toggle::before { content: ''; position: absolute; inset: -10px 0; }
@media (max-width:760px) {
  .card-title-line, .catalog-grid .card-title-line { font-size: 12px; }
  .card-subline { font-size: 10px; }
  .catalog-grid .card-subline { font-size: 9px; }
  .episode-name > strong { font-size: 12px; }
  .episode-desc { font-size: 10px; line-height: 1.85; }
  .not-available, .watched-label, .resume-label { font-size: 9px; }
}
