/* =====================================================================
   Fonts, served by the site itself (variable fonts from Google Fonts, SIL
   Open Font License): Latin, and Latin Extended for š, ž and the like,
   each loaded only when the page uses its letters.
   ===================================================================== */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400 700; 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:"Inter"; font-style:normal; font-weight:400 700; 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:"Mona Sans"; font-style:normal; font-weight:500 700; font-display:swap; src:url(/fonts/mona-sans-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:"Mona Sans"; font-style:normal; font-weight:500 700; font-display:swap; src:url(/fonts/mona-sans-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; }

/* =====================================================================
   Theme tokens
   Light is the default; dark comes from the OS preference or the toggle.
   The dark palette is written twice on purpose: CSS can't share one block
   between the media query and the explicit toggle.
   ===================================================================== */
:root {
  --bg:#f6f6f3;          /* page */
  --surface:#ffffff;     /* cards, fields, chips, sheets */
  --ink:#141414;
  --soft:#5f6166;
  --info:#7a4e00;        /* the large view's details line: v.101's amber */
  --line:#e9e9e4;        /* hairlines: barely there */
  /* The separator between the filter column and the cards (1100 px and wider): 35 % of the
     text colour on the page, so it reads as a quiet line on every theme (about 1.6-2.2:1). */
  --rule:color-mix(in srgb, var(--soft) 35%, var(--bg));
  /* One accent on every theme: the dark theme's orange. --accent is for fills
     and marks (>= 3:1); --accent-text is the same hue as the colour of normal
     text (>= 4.5:1 on that theme's page, card and chosen-chip tint): equal to
     --accent on the dark themes, a darker shade on the light ones. */
  --accent:#ff6a3d;      /* Filmiotsing orange: emphasis only */
  --accent-text:#a74528;
  --accent-ink:#160a05;  /* text on an accent fill (6.8:1) */
  --sel-bg:#fbe5d5;      /* a chosen chip: a light tint, no hard frame */
  --sel-line:#fcd2bd;
  --primary:#141414;     /* main buttons */
  --primary-ink:#ffffff;
  --muted-bg:#ecece7;
  --scrim:rgba(10,10,10,.42);
  --shadow:0 10px 28px -14px rgba(0,0,0,.28);
  --font-display:"Mona Sans","Inter",system-ui,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  /* The "Vaata / Rendi / Osta / Mujal" labels: one width, so the logos line up. */
  --label-width:46px;
  --edge:8px;            /* the page's side gutter: 8px on a phone */
  --outer:#e4e4dc;       /* around the app's panel on a computer */
  --frame-shadow:0 30px 70px -30px rgba(0,0,0,.35);
  /* The cards: an amber glow (the details line's tone) and a faint amber edge. */
  --card-glow:color-mix(in srgb, #f2b01e 26%, transparent);
  --card-line:color-mix(in srgb, #f2b01e 16%, transparent);
  /* Sheets sit over a dimmed page: a stronger glow, or it is lost there. */
  --sheet-glow:0 0 0 1px color-mix(in srgb, #f2b01e 30%, transparent), 0 0 28px color-mix(in srgb, #f2b01e 40%, transparent);
  /* Buttons and fields on a card or a sheet (white / dark grey): a step
     darker / lighter than the page's grey, so they stand out. */
  --raised:#e6e6df;
  color-scheme:light;
}
:root[data-theme="dark"] {
  --bg:#121316; --surface:#1c1d21; --ink:#f1f1ed; --soft:#a2a4aa; --info:#e8b04a; --line:#26282c;
  --accent:#ff6a3d; --accent-text:#ff6a3d; --accent-ink:#160a05; --sel-bg:#3a2219; --sel-line:#5a3324;
  --primary:#f1f1ed; --primary-ink:#121316; --muted-bg:#24262b;
  --scrim:rgba(0,0,0,.6); --shadow:0 10px 28px -14px rgba(0,0,0,.8);
  --outer:#08090a; --frame-shadow:0 30px 70px -30px rgba(0,0,0,.9);
    --raised:#33363d;
    --card-glow:color-mix(in srgb, #e8b04a 36%, transparent); --card-line:color-mix(in srgb, #e8b04a 14%, transparent);
    color-scheme:dark;
}
/* "Paber": warm cream like an e-reader's sepia page (after Solarized Light),
   a faint paper grain on the page itself; cards and sheets stay smooth. */
:root[data-theme="paper"] {
  --bg:#f3ead6; --surface:#fbf6ea; --ink:#2f2418; --soft:#665642; --info:#7a4e00; --line:#e6dbc2;
  --accent:#ff6a3d; --accent-text:#a74528; --accent-ink:#160a05; --sel-bg:#f5e2cc; --sel-line:#e6c2a0;
  --primary:#2f2418; --primary-ink:#fbf6ea; --muted-bg:#ebe0c8;
  --outer:#e2d5b6; --raised:#e9dec5;
  --paper-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme:light;
}
:root[data-theme="paper"] :is(body,.frame) { background-image:var(--paper-grain); }
/* The dark themes ("Tume", "Mets", and the system's dark mode): the same
   fine grain as "Paber", light specks on the dark page. */
:root { --dark-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .83 0 0 0 0 .78 0 0 0 0 .67 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root:is([data-theme="dark"],[data-theme="cinema"]) :is(body,.frame) { background-image:var(--dark-grain); }
/* v2.74: more palettes (colours only; the buttons, glows and grain as in the others).
   "Kino" (named "Kinoöö" until v2.92) and "Lina" after the palette proposal
   of 2026-11-02 (Lina's terracotta a shade darker: 4.8:1 as text on its
   page). "Raba" and "Merevaik" were removed in v3.02. The chosen chips
   green (Kino, Lina). */
:root[data-theme="cinema"] {
  --bg:#101722; --surface:#202b3b; --ink:#edf2f7; --soft:#aab8ca; --info:#f0b98a; --line:#2c3a4f;
  --accent:#ff6a3d; --accent-text:#ff6a3d; --accent-ink:#160a05; --sel-bg:#32303b; --sel-line:#5e3d3c;
  --primary:#edf2f7; --primary-ink:#101722; --muted-bg:#172130;
  --scrim:rgba(0,0,0,.6); --shadow:0 10px 28px -14px rgba(0,0,0,.8);
  --outer:#0a0f17; --frame-shadow:0 30px 70px -30px rgba(0,0,0,.9);
  --raised:#29384c;
  --card-glow:color-mix(in srgb, #ff6a3d 24%, transparent); --card-line:color-mix(in srgb, #ff6a3d 14%, transparent);
  --sheet-glow:0 0 0 1px color-mix(in srgb, #ff6a3d 28%, transparent), 0 0 28px color-mix(in srgb, #ff6a3d 32%, transparent);
  color-scheme:dark;
}
:root[data-theme="linen"] {
  --bg:#f3f1ea; --surface:#ffffff; --ink:#202b32; --soft:#586871; --info:#8a4a1f; --line:#e1e5e1;
  --accent:#ff6a3d; --accent-text:#a74528; --accent-ink:#160a05; --sel-bg:#ffe7e0; --sel-line:#ffc4b3;
  --primary:#202b32; --primary-ink:#ffffff; --muted-bg:#eaede7;
  --outer:#e3e0d6; --raised:#e6eae5;
  --card-glow:color-mix(in srgb, #ff6a3d 16%, transparent); --card-line:color-mix(in srgb, #ff6a3d 12%, transparent);
  --sheet-glow:0 0 0 1px color-mix(in srgb, #ff6a3d 22%, transparent), 0 0 28px color-mix(in srgb, #ff6a3d 24%, transparent);
  color-scheme:light;
}
@media (min-width:700px) { :root { --edge:28px; } }


/* =====================================================================
   Base
   ===================================================================== */
* { box-sizing:border-box; }
/* No grey or blue box flashing round a tapped control on a phone (the
   browser's own tap highlight is a rectangle, whatever the button's
   shape): each control shows its press itself (:active, see the end). */
* { -webkit-tap-highlight-color:transparent; }
/* A tap on a chip, a service or a button selects no text (a long press on
   Android would otherwise flash a selection box over its name). */
button,label,summary,.chip,.service,.service-group-toggle,.tab { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:manipulation; }
html { background:var(--bg); -webkit-text-size-adjust:100%; }
html:has(dialog[open]) { overflow:hidden; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--ink); font:400 15px/1.45 var(--font-body); transition:background-color .25s,color .25s; }
button,input,select { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; }
[hidden] { display:none !important; }
:focus-visible { outline:none; }
/* Focus rings only after the keyboard (html.kbd, set in ui.js): Safari also
   shows :focus-visible on a sheet's × when a tap opens it and on a select
   that keeps focus after a tap. */
html.kbd :focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.wrap { width:100%; max-width:1180px; margin:0 auto; padding-left:max(var(--edge), env(safe-area-inset-left, 0px)); padding-right:max(var(--edge), env(safe-area-inset-right, 0px)); }
.plain-btn { min-height:44px; padding:0 16px; border:0; border-radius:999px; background:var(--muted-bg); font-weight:600; font-size:14px; }
.text-btn { min-height:40px; padding:0 4px; border:0; background:none; color:var(--accent-text); font-weight:600; font-size:14px; }
.news-link { padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }

/* =====================================================================
   Header: wordmark, (iPad and wider) list and help, ET/EN, light/dark
   ===================================================================== */
.topbar { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.topbar-row { display:flex; align-items:center; gap:8px; min-height:60px; }
.brand { display:flex; align-items:center; gap:2px; margin-right:auto; min-width:0; }
.brand-link { display:flex; align-items:center; gap:9px; color:var(--ink); text-decoration:none; font:700 19px var(--font-display); letter-spacing:-.02em; }
.brand-mark { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:var(--accent); color:var(--accent-ink); flex-shrink:0; }
/* The favicon's F, 20 px of the 32 px box. */
.brand-mark svg { width:13px; height:20px; display:block; }
/* A dot by the wordmark marks news the visitor hasn't opened (v2.85): it
   opens Abi at "Versioon", where "v2.85 · Mis uut?" opens the news. */
.news-dot { position:relative; align-self:center; width:24px; height:24px; padding:0; border:0; background:none; }
.news-dot[hidden] { display:none; }
.news-dot::after { content:""; position:absolute; top:50%; left:50%; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--accent); }
.top-links { display:none; gap:6px; }
.pill-btn { display:inline-flex; align-items:center; gap:7px; height:44px; padding:0 16px; border:0; border-radius:999px; background:var(--muted-bg); font-weight:600; font-size:14px; white-space:nowrap; }
.pill-btn svg { width:18px; height:18px; }
.pill-btn[aria-pressed="true"],.pill-btn[aria-current="true"] { background:var(--sel-bg); color:var(--accent-text); }
/* The list's button: "Minu" and a rounded star with the count inside;
   outlined while the list is empty. */
.star-count { position:relative; display:inline-grid; place-items:center; width:32px; height:32px; flex:none; color:var(--accent); }
.star-count svg { position:absolute; inset:0; width:100% !important; height:100% !important; fill:currentColor; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
.star-count .count { position:relative; top:1.5px; min-width:0; height:auto; padding:0; background:none; color:var(--accent-ink); font-size:11px; font-weight:700; }
.star-count.is-empty { color:var(--soft); }
.star-count.is-empty svg { fill:none; stroke-width:1.8; }
.star-count.is-empty .count { visibility:hidden; }
.count { min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:12px; font-weight:600; display:inline-grid; place-items:center; font-variant-numeric:tabular-nums; }
/* The language: the chosen one; a tap switches (or opens the menu). */
.icon-btn { width:44px; height:44px; flex-shrink:0; display:grid; place-items:center; border:0; border-radius:999px; background:var(--muted-bg); color:var(--ink); }
.icon-btn svg { width:19px; height:19px; }

/* =====================================================================
   Search: a round field, the button inside it; a running bar while searching
   ===================================================================== */
.finder { margin:6px 0 12px; }
.search-row { position:relative; }
/* The search field stands out: a light orange frame (40%) at rest, full orange in focus. */
.search-row input { width:100%; height:56px; padding:0 100px 0 48px; border:1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius:999px; background:var(--surface); box-shadow:var(--shadow); font-size:17px; outline:none; -webkit-appearance:none; appearance:none; transition:border-color .2s,box-shadow .2s; }
.search-row input::-webkit-search-cancel-button { display:none; }
.search-row input::placeholder { color:color-mix(in srgb, var(--soft) 80%, transparent); }
/* Focus (keyboard or tap): one 1px line, the field's own border in the
   accent colour; no outline beside it. */
.search-row input:focus { border-color:var(--accent); }
.search-row input:focus-visible { outline:none; }
/* While searching: an even orange frame (55%) whose glow rises and fades
   (0 → 10px, up to 26%), one breath per 1.5s; without motion just the frame. */
.finder.searching .search-row input { border-color:color-mix(in srgb, var(--accent) 65%, transparent); animation:searchGlow 1.5s ease-in-out infinite; }
@keyframes searchGlow { 0%,100% { box-shadow:var(--shadow), 0 0 0 0 transparent; } 50% { box-shadow:var(--shadow), 0 0 14px 2px color-mix(in srgb, var(--accent) 38%, transparent); } }
/* "Otsi" and "Laadi rohkem": the logo's orange. While one works a film reel
   (38px, 3px off the button's edge) turns faintly behind its label. The
   pill's colour is its ::after; isolation keeps the layers inside the button.
 */
.go { position:absolute; right:6px; top:6px; height:44px; min-width:72px; padding:0 14px; border:0; border-radius:999px; background:none; color:var(--accent-ink); font-weight:600; font-size:15px; display:inline-flex; align-items:center; justify-content:center; isolation:isolate; }
.go::after { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--accent); }
.go > span:not(.go-reel) { position:relative; z-index:1; transition:text-shadow .45s; }
.go-reel { position:absolute; left:50%; top:50%; width:38px; height:38px; margin:-19px 0 0 -19px; z-index:0; opacity:0; pointer-events:none; filter:drop-shadow(0 0 5px color-mix(in srgb, var(--accent-ink) 85%, transparent)); transition:opacity .45s ease; }
.go-reel svg { display:block; width:38px; height:38px; }
/* The search button's reel a little bigger. */
.finder.searching .go-reel,.go.busy .go-reel { opacity:.42; }
.finder.searching .go-reel svg,.go.busy .go-reel svg { animation:reelTurn 3.5s linear infinite; }
.finder.searching .go > span:not(.go-reel),.go.busy > span:not(.go-reel) { text-shadow:0 0 6px color-mix(in srgb, var(--accent) 85%, transparent); }
.go.busy:disabled,.finder.searching .go:disabled { cursor:wait; }
/* "Laadi rohkem": the same pill, in its own row under the results (not in the search field's corner). */
.more-btn { position:relative; right:auto; top:auto; padding:0 22px; }
@keyframes reelTurn { to { transform:rotate(360deg); } }

/* =====================================================================
   Chip rows: filters, types, services. On a phone each row scrolls
   sideways (a faded edge shows there is more); wider, they wrap.
   ===================================================================== */
.row-label,.service-group-label { display:flex; align-items:baseline; justify-content:space-between; margin:12px 2px 7px; font-size:13px; font-weight:600; color:var(--soft); }
/* A side-scrolling row clips at its own top and bottom: room for a lifted chip and its shadow. */
.chips { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin-inline:calc(-1 * var(--edge)); padding-inline:var(--edge); padding-block:4px 12px; margin-block:-4px -12px; scroll-snap-type:x proximity; scroll-padding-inline:var(--edge); }
.chips::-webkit-scrollbar { display:none; }
.chips.more-right,.person-strip-row.more-right { -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent); }
.chips.more-left,.person-strip-row.more-left { -webkit-mask-image:linear-gradient(90deg,transparent,#000 48px); mask-image:linear-gradient(90deg,transparent,#000 48px); }
.chips.more-left.more-right,.person-strip-row.more-left.more-right { -webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent); mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent); }
/* With a mouse: a thin scrollbar while over the row, and the row can be dragged. */
@media (hover:hover) and (pointer:fine) {
  .chips.more-left,.chips.more-right,.person-strip-row.more-left,.person-strip-row.more-right { cursor:grab; }
  .chips.dragging { cursor:grabbing; user-select:none; scroll-snap-type:none; }
  .chips:hover { scrollbar-width:thin; scrollbar-color:color-mix(in srgb, var(--soft) 45%, transparent) transparent; }
  .chips:hover::-webkit-scrollbar { display:block; height:6px; }
  .chips:hover::-webkit-scrollbar-thumb { background:color-mix(in srgb, var(--soft) 45%, transparent); border-radius:6px; }
}
/* The filters row wraps instead of scrolling: every active filter stays in
   view ("Fantaasia, Ulme, Müsteerium" would push "8+" off a phone's screen). */
#filter-chips { margin-top:-4px; gap:6px; flex-wrap:wrap; overflow:visible; margin-inline:0; padding-inline:0; }
#filter-chips .chip { max-width:100%; }
.chip,.service,.service-group-toggle { position:relative; flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; height:44px; padding:0 11px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-weight:600; font-size:14px; white-space:nowrap; scroll-snap-align:start; color:var(--soft); cursor:pointer; }
.chip[aria-pressed="true"],.chip.on,.service:has(input:checked),.service-group-toggle.on { color:var(--ink); background:var(--sel-bg); border-color:var(--sel-line); }
.service-group-toggle { border-radius:11px; border-style:dashed; background:color-mix(in srgb, var(--muted-bg) 72%, var(--surface)); font-weight:700; }
.service-group-toggle.partial { border-style:dashed; border-color:var(--sel-line); background:color-mix(in srgb, var(--sel-bg) 42%, var(--surface)); color:var(--ink); }
.service-group-toggle.on { border-style:solid; border-color:var(--sel-line); background:color-mix(in srgb, var(--sel-bg) 82%, var(--accent)); font-weight:700; }
/* Tri-state checkbox inside "Kõik" master switches. */
.tri-box { width:24px; height:24px; border-radius:6px; flex:none; display:grid; place-items:center; border:2px solid currentColor; color:var(--soft); background:transparent; transition:background-color .15s,border-color .15s,color .15s; }
.tri-box svg { width:15px; height:15px; display:block; }
.service-group-toggle.partial .tri-box { border-color:var(--accent-text); color:var(--accent-text); background:color-mix(in srgb, var(--accent) 16%, transparent); }
.service-group-toggle.on .tri-box { border-color:var(--accent); background:var(--accent); color:var(--accent-ink); }
.chip .caret { width:7px; height:7px; margin:-3px 0 0 2px; border-right:1.6px solid var(--soft); border-bottom:1.6px solid var(--soft); transform:rotate(45deg); }
a.pill-btn,a.tab { color:inherit; text-decoration:none; }
a.tab { color:var(--soft); }
/* A filter chip (Eesti, Žanr, Aasta, Hinnang): the filter's own select lies
   over it, unseen, so a tap opens the phone's own picker; short, the name
   quiet until something is chosen, then the choice ("Komöödia", "7+ ★"). */
.chip.pick { gap:5px; padding:0 10px 0 13px; cursor:pointer; }
.chip.pick:not(.on) { color:var(--soft); }
.chip.pick select { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; opacity:0; cursor:pointer; font-size:16px; -webkit-appearance:none; appearance:none; }
.chip.pick select option,.chip.pick select optgroup { background:var(--surface); color:var(--ink); }
/* A filter chip's keyboard ring: 1px like every other ring (2px beside the chip's
   border looked like a double line), never for a menu opened by touch or mouse. */
html.kbd .chip.pick:has(select:focus-visible:not([data-pointer])) { outline:1px solid var(--accent); outline-offset:2px; }
/* On a computer, Chrome and Edge (135+) draw the menu in the page's own
   look (customizable select): rounded, the theme's tones, the chosen line
   in a chosen chip's tint. Firefox and Safari keep their own menus, phones
   the system's picker. */
@supports (appearance: base-select) {
  @media (hover:hover) and (pointer:fine) {
    .chip.pick select,.chip.pick select::picker(select) { appearance:base-select; }
    .chip.pick select::picker(select) { min-width:anchor-size(width); max-height:min(420px, 70dvh); margin-top:6px; padding:6px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:var(--sheet-glow), 0 14px 34px -12px rgba(0,0,0,.55); font:600 14px/1.3 var(--font-body); }
    .chip.pick select option { padding:8px 14px; border-radius:9px; cursor:pointer; white-space:nowrap; }
    .chip.pick select option::checkmark { display:none; }
    .chip.pick select option:hover,.chip.pick select option:focus-visible { background:var(--raised); outline:none; }
    .chip.pick select option:checked { background:var(--sel-bg); color:var(--ink); font-weight:700; }
    .chip.pick select optgroup { padding-top:4px; }
    .chip.pick select optgroup::label,.chip.pick select legend { display:block; padding:6px 14px 4px; font-size:12px; font-weight:600; color:var(--soft); }
  }
}
/* With a genre: a card whose source tells none, kept after "Näita siiski". */
.movie.genre-unknown { opacity:.6; }
.unknown-toggle { padding:0; font-size:inherit; text-decoration:underline; }
/* A service: its logo and name; the (invisible) checkbox covers the chip. */
.services { display:flex; flex-direction:column; }
/* A service: its logo a circle filling the pill's left end, 1px inside its
   edge (44px pill, 1px border, 1px gap: a 40px circle). */
.service { padding:0 8px 0 2px; }
.service input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; -webkit-appearance:none; appearance:none; outline:none; }
.service img { width:38px; height:38px; border-radius:50%; object-fit:cover; flex:none; pointer-events:none; filter:grayscale(1); opacity:.45; box-shadow:0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); transition:filter .15s,opacity .15s; }
.service:has(input:checked) img { filter:none; opacity:1; }
.service:not(.has-logo) { padding:0 8px 0 11px; }
html.kbd .service:has(input:focus-visible) { outline:1px solid var(--accent); outline-offset:2px; }
/* Apple TV and HBO Max logos have wide empty margins: shown 32% larger;
   in a service chip's circle the picture is cropped 10% instead
   (object-view-box: Chromium; elsewhere the chip shows it as it is). */
/* The logo's own margin cut off by zooming in; clipped to its box (before the
   scale: 12.1% = (1 - 1/1.32) / 2), so a chip with a price under it (no
   overflow clipping there) doesn't cover the price (v2.94). */
img.logo-zoom { transform:scale(1.32); clip-path:inset(12.1% round 6px); }
.service.has-logo img.logo-zoom { transform:none; object-fit:cover; object-position:center; object-view-box:inset(4.5%); }
/* The group's master switch: tri-state checkbox and "Kõik". */
.service-group-toggle { padding-left:9px; }

/* =====================================================================
   Results and cards: poster on the left, the facts beside it
   ===================================================================== */
.results { padding-top:22px; padding-bottom:24px; }
/* "LEITUD (24)", the "KINOS (8)" toggle, optional city picker, and sort chip on one row. */
.result-heading { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin:0 2px 12px; font-size:13px; line-height:1.5; }
.result-heading h2 { margin:0; font:600 13px var(--font-body); letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text); }
.result-heading h2:empty { display:none; }
.result-heading .cinema-chip,.result-heading .city-pick,.result-heading .sort-pick { height:28px; padding:0 10px; gap:4px; font-size:12.5px; }
.result-heading .cinema-chip { letter-spacing:.02em; }
.result-heading .city-pick,.result-heading .sort-pick { padding:0 9px 0 10px; }
.result-heading .sort-pick { margin-left:auto; }
.result-heading :is(.cinema-chip,.city-pick,.sort-pick)[hidden] { display:none; }
.sort-pick .sort-icon { flex:none; opacity:.8; }
.result-heading > p { flex:1 1 100%; margin:0; color:var(--soft); font-variant-numeric:tabular-nums; }
.result-heading > p:empty { display:none; }
/* "Telia TV – kirjuta otsingusse pealkiri…": the heading's colour and weight, plain letters (a whole sentence). */
.search-only { margin:-4px 2px 12px; font:600 15px/1.5 var(--font-body); color:var(--accent-text); }
/* "Näitan tulemusi: Oppenheimer · Otsi siiski: oppenhiemer" (a typo fixed). */
.fixed-note { margin:-4px 2px 12px; font-size:14px; line-height:1.5; color:var(--soft); }
.fixed-note b { color:var(--ink); }
.little-note { margin:14px 2px 0; text-align:center; }
.fixed-note button { padding:0; border:0; background:none; color:var(--accent-text); font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }
/* "Vali vähemalt üks tüüp.": a tinted notice where the results would be; the
   empty row's title in orange. */
.pick-one { display:flex; align-items:center; justify-content:center; gap:10px; margin:6px 2px 16px; padding:14px 16px; border:1px solid var(--sel-line); border-radius:14px; background:var(--sel-bg); color:var(--accent-text); font-weight:700; font-size:15px; text-align:center; }
.pick-icon { flex:none; display:grid; place-items:center; width:22px; height:22px; border:2px solid currentColor; border-radius:50%; font:800 13px/1 var(--font-display); font-style:italic; }
.missing { color:var(--accent-text) !important; }
.grid { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.more-row { text-align:center; padding:20px 0 4px; }
.empty { padding:30px 8px; text-align:center; color:var(--soft); }

/* The card is a container (inline size only): the poster column takes its width from the card's (cqi), see .poster below. */
.movie { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:stretch; container:card / inline-size; gap:12px; min-width:0; padding:8px; border:1px solid var(--card-line); border-radius:16px; background:var(--surface); transition:transform .15s,box-shadow .15s,opacity .15s; animation:rise .42s cubic-bezier(.22,1,.36,1) backwards; }
.movie:nth-child(2) { animation-delay:45ms; } .movie:nth-child(3) { animation-delay:90ms; } .movie:nth-child(4) { animation-delay:135ms; }
.movie:nth-child(5) { animation-delay:180ms; } .movie:nth-child(6) { animation-delay:225ms; } .movie:nth-child(n+7) { animation-delay:270ms; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } }
.movie.unavailable { opacity:.62; }
html.kbd .movie:has(:focus-visible) { box-shadow:0 0 16px var(--card-glow); }
.movie.unavailable .poster img { filter:grayscale(1); }
/* Calm placeholder cards while a cold search or a new query loads. */
.skel-card { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:stretch; container:card / inline-size; gap:12px; min-width:0; padding:8px; border:1px solid var(--card-line); border-radius:16px; background:var(--surface); pointer-events:none; user-select:none; }
.skel-poster { --poster-w:clamp(110px, calc(100cqi - 16px - 171px), 150px); width:var(--poster-w); min-height:calc(var(--poster-w) * 1.5); border-radius:12px; }
@container card (max-width:355px) { .skel-poster { --poster-w:clamp(110px, calc(100cqi - 16px - 131px), 150px); } }
.skel-copy { min-width:0; display:flex; flex-direction:column; gap:8px; padding:6px 4px 2px 0; }
.skel-bar { position:relative; overflow:hidden; background:color-mix(in srgb, var(--ink) 8%, var(--surface)); border-radius:6px; }
.skel-bar::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 7%, transparent) 50%, transparent); transform:translateX(-100%); animation:skelSweep 1.6s ease-in-out infinite; }
.skel-card:nth-child(2) .skel-bar::after { animation-delay:.12s; }
.skel-card:nth-child(3) .skel-bar::after { animation-delay:.24s; }
.skel-card:nth-child(4) .skel-bar::after { animation-delay:.36s; }
@keyframes skelSweep { 100% { transform:translateX(100%); } }
.skel-title { height:18px; width:76%; border-radius:7px; }
.skel-meta { height:12px; width:56%; }
.skel-pills { display:flex; gap:6px; }
.skel-pill { height:24px; width:78px; border-radius:999px; }
.skel-pill-sm { width:58px; }
.skel-desc { display:flex; flex-direction:column; gap:6px; margin-top:2px; }
.skel-desc .skel-line { height:12px; width:96%; }
.skel-desc .skel-line-mid { width:88%; }
.skel-desc .skel-line-short { width:64%; }
.skel-logos { display:flex; gap:8px; margin-top:auto; padding-top:4px; }
.skel-logo { width:36px; height:36px; border-radius:10px; }
/* The small card's poster: as wide as the card allows while the text column keeps room for the
   TMDB pill and the trailer button on ONE row (--ratings-w: the widest row, "TMDB ★ 10.0" + the
   "Treiler" button, 171px measured; 131px with the logo only). Card content width = 100cqi;
   minus the 12px gap, the text column's 4px padding. 110px minimum, --poster-max at most (a
   poster is 2:3, the card is about 230-290px high). The height is the card's content height. */
.poster { --ratings-w:171px; --poster-max:150px; }
/* --poster-w is set on the poster itself: its 100cqi is the card's content width (the card is the container). */
.movie:not(.person-card) > .poster { --poster-w:clamp(110px, calc(100cqi - 16px - var(--ratings-w)), var(--poster-max)); width:var(--poster-w); }
/* A card with a description box is at least 2:3 (height 1.5 x width) at every width; the box
   takes the height that is left, in whole lines (the line steps below). A card without one
   keeps the 165px minimum (its text is short, so no empty area beside the poster). */
.movie:not(.person-card):has(.desc) > .poster { min-height:calc(var(--poster-w) * 1.5); }
/* 150px at every width (2:3 with the measured card heights; 170px was too wide in 2 columns). */
.poster { position:relative; display:block; min-height:165px; width:100%; overflow:hidden; border:0; padding:0; margin:0; border-radius:12px; background:var(--muted-bg); color:inherit; text-decoration:none; font:inherit; text-align:left; cursor:pointer; }
.poster > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.no-poster { height:100%; padding:9px; display:flex; align-items:flex-end; background:linear-gradient(160deg,#5d6670,#2a2f36); color:#fff; font:700 14px/1.1 var(--font-display); letter-spacing:-.01em; text-shadow:0 1px 8px rgba(0,0,0,.4); overflow:hidden; }
.leaving { position:absolute; left:6px; top:6px; z-index:2; padding:2px 7px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:11.5px; font-weight:600; pointer-events:none; }
/* Only the title keeps room for the star in the corner; the rest of the
   card's text uses the whole width. */
.movie-copy { min-width:0; display:flex; flex-direction:column; gap:5px; padding:4px 4px 4px 0; }
.movie h3 { padding-right:30px; }
/* The title is cut at 2 whole lines with an ellipsis (the full title is in its tooltip and in the large view), so one long title cannot make the whole grid row tall. */
.movie h3 { margin:0; font:600 16.5px/1.25 var(--font-display); letter-spacing:-.01em; text-wrap:balance; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.movie h3[role="button"] { cursor:pointer; }
.card-link { color:inherit; text-decoration:none; }
/* Original title under the shown one, when they differ. */
.original-title { margin:-3px 0 0; font-size:12.5px; color:var(--soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.original-title:empty { display:none; }
/* "2021 · Film · 2 h 35 min", then TMDB's rating and the trailer on the same line (they wrap to a second one on a narrow card). */
.movie-head { display:flex; flex-direction:column; gap:5px; min-width:0; }
.meta-line { display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; }
.meta { margin:0; min-width:0; font-size:13px; line-height:1.5; color:var(--info); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-ratings { display:flex; flex:none; align-items:center; gap:6px; }
.card-ratings .rating { padding:1px 6px 0; }
.card-ratings .rating .r-star { font-size:1.2em; position:relative; top:-1px; }
.card-ratings .youtube-button { height:26px; padding:1px 7px 0 4px; gap:3px; border-radius:999px; font-size:12px; line-height:1; }
.card-ratings .youtube-button svg { width:20px; height:20px; }
/* A narrow card (content box under 356px: a 348px card on a 1470px window, 365px on 1920px;
   the 390px phone's card has 356px and keeps its label): the full row would leave the poster too
   narrow, so the trailer is YouTube's logo only (its aria-label and title stay) and the poster
   gets the room. */
@container card (max-width:355px) {
  .poster { --ratings-w:131px; }
  .card-ratings .youtube-button { padding:0 6px; }
  .card-ratings .youtube-button span { display:none; }
}
.card-actions { display:flex; flex-wrap:nowrap; align-items:flex-start; gap:6px; margin-top:auto; min-width:0; }
.card-actions:empty { display:none; }
.not-here { font-size:12.5px; font-style:italic; color:var(--soft); }
.card-actions .not-here { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-width:0; }
.no-stream .data-source { font-style:normal; }
.overview { margin:2px 0 0; font-size:13.5px; line-height:1.42; color:var(--soft); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
/* The small card's description: the box takes all the height the head and the
   logo row leave (3 lines at least); the text is cut at a whole line with an
   ellipsis (-webkit-line-clamp set to how many lines fit: the container
   queries below, in whole 19px lines). The box has no height of its own
   (size containment), so it never makes the card taller. */
.desc { flex:1 1 0; min-height:57px; container:desc / size; overflow:hidden; font-size:13.5px; line-height:19px; }
.desc > p { margin:0; font-size:inherit; line-height:inherit; color:var(--soft); display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; -webkit-line-clamp:3; }
.desc > .card-credits b { color:var(--ink); font-weight:600; }
.movie:not(.person-card) .movie-copy { padding-bottom:0; }
/* A description added later (Arkaader's) lands beside the logo row, not in the box. */
.movie-copy > .card-actions { order:2; }

/* Rating pills (TMDB, IMDb, Rotten Tomatoes, EFIS): raised pills like
   "Jaga"; the source's colour only in its bigger mark (TMDB's blue star,
   IMDb's yellow one, RT's tomato). The mark's spaces stay in the text
   ("TMDB ★ 7.5") but collapse at the span's edges: the 2px gap instead. */
.rating { display:inline-flex; align-items:center; gap:2px; vertical-align:middle; min-height:26px; padding:1px 7px 0; border-radius:999px; background:var(--raised); font-size:12px; font-weight:600; line-height:1; color:var(--ink); text-decoration:none; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rating .r-star { font-size:1.3em; line-height:0; }
.rating-tmdb .r-star { color:#01b4e4; }
.rating-imdb .r-star { color:#f5c518; }
.rating-rt .r-star { font-size:1.1em; }

/* Service chips: logo only on the cards (name in alt + tooltip), logo +
   terms (+ 4K/HD) in the large view. */
.providers { display:flex; flex-wrap:wrap; gap:8px; }
.providers .svc { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:8px; background:var(--raised); color:var(--ink); font-size:12.5px; font-weight:600; text-decoration:none; }
.providers img { display:block; width:30px; height:30px; border-radius:8px; object-fit:cover; }
.providers .svc-logo { position:relative; padding:0; background:none; overflow:hidden; }
.providers .quality,.providers .note { font-size:11.5px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
/* Logo + terms ("4,13 €", "Inspira+"): the terms in a narrow grey part. */
.providers .svc-logo:has(.note) { gap:0; background:var(--raised); }
.providers .svc-logo .note { padding:0 6px; text-align:center; white-space:nowrap; }
/* A rental's price: under the logo in small print, as on "Rendi:" / "Osta:". */
/* A price hangs under its logo without making the chip taller, so every
   logo (and the trailer button) on the row has its centre on one line; the
   row keeps room for it below. */
.providers .svc-logo:has(.note.price) { background:none; overflow:visible; }
.providers:has(.note.price) { row-gap:17px; }
.watch:has(.note.price) { margin-bottom:11px; }
.providers .svc-logo .note.price { position:absolute; top:calc(100% + 2px); left:50%; transform:translateX(-50%); padding:0; }
/* The small card has no price under its logos (the tooltip has it): one plain
   row of 36px logos. The padding is room for the keyboard focus outline below
   a logo; the negative margin keeps the row's height the same. */
.card-actions .providers { align-items:flex-start; flex-wrap:nowrap; gap:6px; flex:1 1 auto; min-width:0; overflow:hidden; padding-bottom:5px; margin-bottom:-5px; }
.card-actions .providers > * { flex:none; }
/* "+N": the logos that did not fit (cards.js fitLogos); a click opens the large view. */
.more-services { min-width:36px; height:36px; padding:0 5px; border:0; border-radius:10px; background:var(--raised); color:var(--ink); font:600 12.5px var(--font-body); font-variant-numeric:tabular-nums; cursor:pointer; }
/* "4K" / "HD": a small tag in the logo's lower right corner, no extra room. */
.providers .svc-logo .quality { position:absolute; left:30px; bottom:0; transform:translateX(-100%); padding:0 3px; border-radius:5px 0 7px 0; background:var(--primary); color:var(--primary-ink); font-size:8.5px; line-height:12px; letter-spacing:.02em; }

/* One trailer button, same look on the cards and in the large view. */
/* The trailer: a quiet button, YouTube's red only in its logo. */
.youtube-button { display:inline-flex; align-items:center; justify-content:center; gap:4px; height:30px; padding:0 9px 0 6px; border:0; border-radius:8px; background:var(--raised); color:var(--ink); font-size:12px; font-weight:600; white-space:nowrap; text-decoration:none; }
.youtube-button svg { width:22px; height:22px; flex-shrink:0; color:#e62117; }

/* "Minu nimekiri": the star in the card's corner. */
.star { position:absolute; top:4px; right:2px; z-index:3; width:44px; height:44px; padding:0; display:grid; place-items:center; border:0; border-radius:999px; background:none; color:var(--soft); font-size:22px; line-height:1; }
.star b { display:grid; place-items:center; }
.star svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.star.on svg { fill:currentColor; }
.star.on { color:var(--accent-text); }
.star-large { position:static; width:auto; height:34px; display:inline-flex; gap:5px; padding:0 12px 0 10px; background:var(--raised); color:var(--ink); font-size:13px; font-weight:600; }
.star-large svg { width:19px; height:19px; }
.star-large.on { background:var(--sel-bg); }
.star-large.on b { color:var(--accent-text); }

/* "Näitlejavasted (6)": people with the searched name, folded away in a title search. */
.filter-actions { margin:0 2px 12px; }
.people-fold { width:100%; }
.people-fold summary { display:inline-flex; align-items:center; gap:6px; min-height:36px; cursor:pointer; font-size:14px; font-weight:600; color:var(--soft); list-style:none; }
.people-fold summary::-webkit-details-marker { display:none; }
.people-fold summary::after { content:""; width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.people-fold[open] summary::after { transform:rotate(225deg) translateY(-1px); }
.people-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }

/* =====================================================================
   Sheets (<dialog class="sheet">): from the bottom on a phone, a centred
   box on an iPad and a computer. ui.js plays the way out and the swipe.
   ===================================================================== */
/* A phone: 4px (about 1 mm) off each side, so the glow shows there too. */
dialog.sheet { position:fixed; top:auto; bottom:0; left:4px; right:4px; margin:0; width:auto; max-width:none; max-height:92dvh; padding:10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border:0; border-radius:24px 24px 0 0; background:var(--surface); color:var(--ink); overflow-y:auto; overscroll-behavior:contain; box-shadow:var(--sheet-glow), 0 -10px 40px -20px rgba(0,0,0,.4); }
dialog.sheet[open] { animation:sheetUp .38s cubic-bezier(.22,1,.36,1) backwards; }
dialog.sheet::backdrop { background:var(--scrim); opacity:var(--backdrop, 1); animation:fade .28s ease-out backwards; }
dialog.sheet.closing { animation:sheetDown .24s cubic-bezier(.4,0,1,1) forwards; pointer-events:none; }
dialog.sheet.closing::backdrop { animation:fadeOut .24s ease-in forwards; }
dialog.sheet.dragging { animation:none; transition:none; user-select:none; }
dialog.sheet.settling { transition:transform .28s cubic-bezier(.22,1,.36,1); }
.grab { width:40px; height:5px; border-radius:9px; background:var(--line); margin:0 auto 12px; }
.grab,.sheet-head,.drag-area { user-select:none; -webkit-user-select:none; touch-action:none; }
.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 14px; }
.sheet-head h2 { margin:0; font:600 22px var(--font-display); letter-spacing:-.02em; }
.head-actions { display:flex; align-items:center; gap:6px; }
/* "Filtrid" with "Lähtesta filtrid" close by (about 30px); the × stays right. */
/* "Eemalda kõik": a round bin like ✕; asking to confirm it turns orange and
   a small note under it says "Kinnita eemaldamine!". */
.nowrap { white-space:nowrap; }
/* "Inglise keeles": a description not in the page's language says so. */
.lang-note { display:inline-block; margin-right:2px; padding:0 6px; border-radius:6px; background:var(--muted-bg); color:var(--soft); font-size:11px; font-weight:600; font-style:normal; line-height:18px; vertical-align:1px; }
.clear-wrap { position:relative; display:inline-grid; }
.x { width:44px; height:44px; padding:0; display:grid; place-items:center; border:1px solid var(--sel-line); border-radius:999px; background:var(--sel-bg); color:var(--ink); }
@keyframes fade { from { opacity:0; } }
@keyframes fadeOut { to { opacity:0; } }
@keyframes sheetUp { from { transform:translateY(100%); } }
@keyframes sheetDown { to { transform:translateY(100%); } }
@keyframes popIn { from { opacity:0; transform:translateY(14px) scale(.97); } }
@keyframes popOut { to { opacity:0; transform:translateY(10px) scale(.98); } }

/* Filters */
/* One row per filter: its name on the left, the dropdown on the right. */
.text-btn:disabled { color:var(--soft); opacity:.55; cursor:default; }

/* Help */
.help-sheet section + section { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
/* The help sheet has no heading of its own (✕ only); its sections' titles stand out. */
.help-sheet .sheet-head { justify-content:flex-end; margin-bottom:4px; }
.help-sheet h3 { margin:0 0 8px; font-size:13.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink); }
.help-sheet p { margin:0; font-size:14.5px; line-height:1.6; color:var(--soft); }
.help-services { list-style:none; margin:0; padding:0; display:grid; gap:5px; font-size:14px; line-height:1.5; color:var(--soft); }
.help-services + p { margin-top:10px; }   /* a paragraph after a list stands apart */
.help-services a { color:var(--ink); font-weight:600; text-decoration-color:color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset:3px; }
.help-services a:hover { color:var(--accent-text); }
/* "Andmed": each source with its link stays in one piece when the line wraps. */
.help-sheet .sources .src { display:inline-block; }
.help-sheet .about a { color:var(--ink); font-weight:600; text-decoration-color:color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset:3px; }
.help-sheet .about a:hover { color:var(--accent-text); }
/* "Statistika" (v2.86): small print like "Kood:". */
.help-sheet .help-stats p { font-size:13px; line-height:1.6; }
.help-sheet .help-stats[hidden] { display:none; }
/* A type not on show (Audio abroad, v2.86). */
#types-list .chip[hidden] { display:none; }
/* "Kasutusjuhend" (v2.85): a topic per fold, its text under it. */
.help-sheet .guide-item + .guide-item { border-top:1px solid var(--line); }
.help-sheet .guide-item summary { display:flex; align-items:center; gap:8px; min-height:40px; font-size:14.5px; font-weight:600; color:var(--ink); cursor:pointer; list-style:none; }
.help-sheet .guide-item summary::-webkit-details-marker { display:none; }
.help-sheet .guide-item summary::before { content:""; width:7px; height:7px; border-right:2px solid var(--soft); border-bottom:2px solid var(--soft); transform:rotate(-45deg); transition:transform .15s; flex:none; margin:0 3px; }
.help-sheet .guide-item[open] summary::before { transform:rotate(45deg); }
.help-sheet .guide-item p { padding:0 0 10px 21px; }
/* "v2.85 · Mis uut?" in Abi: like Abi's links; a dot after it while there is news. */
.help-sheet .news-link { position:relative; padding:0; border:0; background:none; font:inherit; font-size:14.5px; color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset:3px; cursor:pointer; font-variant-numeric:tabular-nums; }
.help-sheet .news-link:hover { color:var(--accent-text); }
.help-sheet .news-link.has-news::after { content:""; display:inline-block; width:7px; height:7px; margin-left:6px; border-radius:50%; background:var(--accent); vertical-align:middle; }
/* Opened from the dot: the section lights up a moment. */
.help-sheet .help-version.flash { animation:versionFlash 1.6s ease-out; border-radius:8px; }
@keyframes versionFlash { 0%,30% { background:color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background:transparent; } }
.help-sheet .tmdb-note { display:flex; align-items:center; gap:12px; margin-top:12px !important; font-size:12px; line-height:1.45; }
.help-sheet .tmdb-logo { flex:none; }
/* The author, the update date and the connections, small, at the end. */
.help-sheet .help-foot { display:grid; gap:4px; }
.help-sheet .help-foot p { font-size:13px; line-height:1.5; }
.help-sheet .help-foot .api-status { margin-top:8px; gap:4px; font-size:13px; }
/* "Minu nimekiri": the saved cards on a sheet of their own. */
.list-count { font-size:13px; color:var(--soft); font-variant-numeric:tabular-nums; }
.list-sheet .movie { animation:none; }
/* The saved cards lie on the page's own background, as in the results, so
   they stand out; the heading keeps the sheet's colour. A phone's card edge
   is 8px from the screen's (sheet 4px + 4px), as on the page. */
dialog.list-sheet { background:var(--bg); }
:root[data-theme="paper"] dialog.list-sheet { background-image:var(--paper-grain); }
:root:is([data-theme="dark"],[data-theme="cinema"]) dialog.list-sheet { background-image:var(--dark-grain); }
dialog.list-sheet .sheet-head { background:var(--surface); }
.list-sheet .sheet-body { padding:8px 4px 0; }
@media (min-width:700px) { .list-sheet .sheet-body { padding:12px 12px 0; } }
.api-status { list-style:none; margin:0; padding:0; display:grid; gap:6px; font-size:14px; }
/* Block, not flex: flex would drop the space after "TMDB:". */
.api-status li { padding-left:16px; text-indent:-16px; color:var(--soft); }
.api-status li::before { content:""; display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; background:var(--line); vertical-align:1px; }
.api-status .status-ok::before { background:#2f9e5b; }
.api-status .status-bad::before { background:var(--accent); }

/* "Mis uut?" */
.news-list { margin:0; padding:0; list-style:none; }
.news-list > li { padding:12px 0; border-top:1px solid var(--line); }
.news-date { margin:0 0 6px; font-size:12.5px; font-weight:600; color:var(--soft); }
.news-list ul { margin:0; padding-left:18px; font-size:14px; line-height:1.55; color:var(--soft); }
.news-list ul li + li { margin-top:4px; }

/* The large view: the picture on top (its handle on it), then the facts. */
dialog.detail-dialog { padding:0 0 calc(22px + env(safe-area-inset-bottom, 0px)); }
.detail-dialog .grab { position:absolute; z-index:2; top:8px; left:50%; margin:0; transform:translateX(-50%); background:rgba(255,255,255,.7); }
/* The × stays in the top corner while the large view scrolls: sticky in the
   dialog (the scroller), its 56px taken back below so the picture starts at
   the top. */
.detail-close { position:sticky; top:12px; margin:12px 12px -56px auto; z-index:3; width:44px; height:44px; padding:0; display:grid; place-items:center; border:1px solid var(--sel-line); border-radius:999px; background:var(--sel-bg); color:var(--ink); }
.detail-media { position:relative; height:220px; overflow:hidden; background:linear-gradient(150deg,#5d6670,#2a2f36); margin:0; }
.detail-media img { width:100%; height:100%; object-fit:cover; object-position:50% 25%; pointer-events:none; }
/* Only a portrait poster: whole, over a blurred, enlarged copy. */
.detail-media.poster-only .bg { position:absolute; inset:0; filter:blur(22px) brightness(.55) saturate(1.2); transform:scale(1.25); }
.detail-media.poster-only .fg { position:relative; z-index:0; display:block; width:auto; max-width:100%; margin:0 auto; object-fit:contain; box-shadow:0 10px 30px rgba(0,0,0,.5); }
.detail-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.45)); pointer-events:none; }
.detail-body { padding:14px 11px 0; }
.detail-body h3 { margin:0 0 4px; font:700 25px/1.12 var(--font-display); letter-spacing:-.02em; text-wrap:balance; }
.detail-body .original-title { margin:0 0 6px; font-size:13px; white-space:normal; }
/* "1970 · Film · 1h 24m · Draama, Komöödia": a light amber, as in v.101. */
.detail-info { margin:2px 0 12px; font-size:13.5px; line-height:1.5; color:var(--info); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.detail-info:empty { display:none; }
/* TMDB, IMDb, RT and EFIS on a row of their own, between the buttons and
   the ways to watch (as on a card: the rating above the logos). */
.detail-ratings { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.detail-ratings:empty { display:none; }
.detail-ratings .rating { min-height:34px; padding:1px 8px 0; font-size:13px; }
.detail-ratings .rating .r-star { font-size:1.4em; }
.detail-ratings .rating-rt .r-star { font-size:1.15em; position:relative; top:-2px; }  /* the tomato's red body sits low */
/* A star's weight sits low (a thin top point): 1px up looks centred. */
.detail-ratings :is(.rating-tmdb,.rating-imdb) .r-star { position:relative; top:-1px; }
.detail-actions { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin:4px 0 14px; }
.detail-trailer { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
/* The large view's Treiler / Jaga / Nimekirja: compact, one row on a phone. */
/* All its pills alike: 34px, 8px each side, 6px apart, one line height. */
.detail-trailer .youtube-button { height:34px; border-radius:999px; font-size:13px; }
.detail-trailer :is(.youtube-button,.share-button,.star-large) { padding:1px 8px 0; line-height:1; }
#detail-providers :is(.svc,.not-here) { font-size:13px; }
.detail-trailer .youtube-button svg { width:20px; height:20px; }
.share-button { display:inline-flex; align-items:center; gap:5px; height:34px; padding:0 12px 0 10px; border:0; border-radius:999px; background:var(--raised); color:var(--ink); font-size:13px; font-weight:600; white-space:nowrap; }
.share-button svg { width:15px; height:15px; flex-shrink:0; }
.share-button.done { background:var(--sel-bg); color:var(--accent-text); }
.watch { display:flex; align-items:center; gap:8px; min-width:0; }
.watch-label { flex:0 0 var(--label-width); white-space:nowrap; font-size:13px; font-weight:600; line-height:30px; color:var(--soft); }
/* "Rendi:", "Osta:", "Mujal:" rows: a logo per service with its lowest price under it. */
.offers { display:flex; flex-wrap:wrap; gap:8px 24px; margin:-4px 0 14px; }
.offers:empty { display:none; }
/* Every row wraps (v2.75: many rentals ran off the large view), logos 8px apart as on "Vaata:". */
/* Each row as wide as the large view: Firefox (and likely Safari) leave the
   8px gaps out of a wrapping logo row's own width, so a row sized to its
   logos broke its last logo to the next line (v88, again from v2.75). */
.offer-row { display:flex; align-items:flex-start; gap:8px; flex:1 1 100%; max-width:100%; min-width:0; }
.detail-actions > .watch { align-self:stretch; }
.offer-list { display:flex; flex-wrap:wrap; gap:6px 8px; min-width:0; }
/* "Uus osa: S1 E8 · E 2. nov kell 05:00" (a running series, worker/tvmaze.js). */
.next-episode { margin:-4px 0 14px; }
.next-episode[hidden] { display:none; }
.next-when { font-size:13.5px; line-height:30px; color:var(--info); font-variant-numeric:tabular-nums; }
/* "Mujal:" can be long (a foreign country's free services): it wraps, and
   past eight logos a "+N" opens the rest. */
.offer-row:has(.offer-wrap) { flex:1 1 100%; min-width:0; }
.offer-list.offer-wrap { flex-wrap:wrap; min-width:0; }
.offer-more { height:30px; min-width:30px; padding:0 8px; border:1px solid var(--sel-line); border-radius:8px; background:var(--sel-bg); color:var(--ink); font-size:12px; font-weight:700; }
.offer { position:relative; display:inline-flex; flex-direction:column; align-items:center; gap:2px; width:30px; color:var(--ink); text-decoration:none; }
.offer img { display:block; width:30px; height:30px; border-radius:8px; object-fit:cover; }
.offer-name { padding:0 7px; border-radius:7px; background:var(--raised); font-size:12px; font-weight:600; line-height:30px; white-space:nowrap; }
/* Rent / buy prices: always under the logo, small print like the 4K/HD tag
   (phone and computer alike; also in the tooltip). */
.offer-price,.providers .svc-logo .note.price { font-size:9px; font-weight:700; line-height:1; letter-spacing:.01em; color:var(--soft); white-space:nowrap; font-variant-numeric:tabular-nums; }
.nowhere { margin:0; font-size:13px; line-height:1.55; color:var(--soft); }
/* A guessed "originaal?": dashed, with a note and a link to check it. */
.providers .svc.unverified { outline:1.5px dashed color-mix(in srgb, var(--soft) 70%, transparent); outline-offset:2px; }
.nowhere.unverified { flex:1 1 100%; }
.nowhere.unverified a { color:var(--ink); font-weight:600; }
.detail-credits { margin:0 0 12px; font-size:13.5px; line-height:1.5; color:var(--soft); }
.detail-credits:empty { display:none; }
.detail-credits b { font-weight:600; color:var(--ink); }
.mt-note { display:block; margin-top:6px; font-size:12px; font-style:italic; color:var(--soft); }
/* "Miks see tulemus?": the large view's last line, why the search found it. */
.detail-why { margin:16px 0 0; max-width:65ch; font-size:13px; line-height:1.5; color:var(--soft); }
.detail-why b { color:var(--ink); font-weight:600; }
.detail-why mark { padding:0 2px; border-radius:3px; background:color-mix(in srgb, var(--accent) 22%, transparent); color:var(--ink); }
.detail-overview { margin:0; max-width:65ch; font-size:14.5px; line-height:1.6; color:var(--soft); white-space:pre-line; }
/* Cinema shortcut on front page, city note, and 2-line nearest screening beside the KINO logo. */
.home-cinema { margin:4px 2px 10px; }
.home-cinema[hidden] { display:none; }
.home-cinema-btn { height:42px; padding:0 14px 0 6px; gap:8px; color:var(--ink); }
.home-cinema-btn img { width:28px; height:28px; border-radius:7px; object-fit:cover; flex:none; }
.home-cinema-btn svg { color:var(--accent-text); flex:none; }
.cinema-note { margin:-6px 2px 10px; }
.cinema-note[hidden] { display:none; }
.card-actions:has(.card-next-show) { align-items:center; }
.card-actions:has(.card-next-show) .providers { flex:0 0 auto; }
.card-next-show { flex:1 1 auto; min-width:0; min-height:36px; padding:0 2px; border:0; border-radius:8px; background:none; display:flex; flex-direction:column; justify-content:center; gap:1px; text-align:left; cursor:pointer; overflow:hidden; }
.card-next-when { color:var(--accent-text); font-size:12.5px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-next-where { color:var(--soft); font-size:12px; font-weight:500; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (hover:hover) { .card-next-show:hover .card-next-where { color:var(--ink); } .card-next-show:hover .card-next-when { text-decoration:underline; text-underline-offset:2px; } }
/* Cinema screenings in the large view (Estonian cinemas, detail.js). */
.detail-screenings { margin:2px 0 14px; padding:12px 0 6px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.scr-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin:0 0 10px; }
.scr-city-pick { height:28px; padding:0 9px 0 10px; gap:4px; font-size:12.5px; }
.scr-note { margin:0 0 6px; font-size:12.5px; color:var(--soft); }
/* Grid with subgrid aligns every cinema name to the widest "when" label in the list. */
.scr-list { list-style:none; margin:0 -8px; padding:0; display:grid; grid-template-columns:max-content minmax(0,1fr) auto; column-gap:12px; row-gap:2px; }
.scr-list > li { display:grid; grid-template-columns:subgrid; grid-column:1 / -1; }
.scr-row { display:grid; grid-template-columns:subgrid; grid-column:1 / -1; align-items:center; min-height:44px; padding:7px 8px; border:1px solid transparent; border-radius:12px; color:var(--ink); text-decoration:none; font-size:13.5px; line-height:1.3; transition:background-color .15s,border-color .15s; }
.scr-list li + li .scr-row { border-top-color:color-mix(in srgb, var(--line) 65%, transparent); border-top-left-radius:0; border-top-right-radius:0; }
.scr-when { white-space:nowrap; font-weight:700; font-variant-numeric:tabular-nums; color:var(--accent-text); }
.scr-main { min-width:0; display:flex; flex-direction:column; gap:1px; }
.scr-where { font-weight:600; color:var(--ink); }
.scr-tags { font-size:12.5px; color:var(--soft); font-variant-numeric:tabular-nums; }
.scr-no-cta { width:0; }
/* Action pill at the end of clickable screening & episode rows (Variant 1). */
.row-cta { flex:none; margin-left:auto; display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 10px; border-radius:999px; background:var(--sel-bg); border:1px solid var(--sel-line); color:var(--accent-text); font-size:12.5px; font-weight:700; white-space:nowrap; transition:background-color .15s,border-color .15s,color .15s,transform .12s; }
.row-cta svg { flex:none; }
@media (hover:hover) {
  .scr-row:hover,.ep-row:hover { background:color-mix(in srgb, var(--raised) 65%, transparent); border-color:var(--line); border-radius:12px; }
  .scr-row:hover .row-cta,.ep-row:hover .row-cta { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); transform:translateY(-1px); }
}
html.kbd .scr-row:focus-visible { outline:1px solid var(--accent); outline-offset:-2px; }
@media (max-width:480px) {
  .scr-list { column-gap:8px; }
  .scr-when { font-size:12.5px; }
}
/* Series episodes in the large view (Jupiter, Lasteekraan, ERR arhiiv): compact list of direct links. */
.detail-episodes { margin:16px 0 0; padding-top:14px; border-top:1px solid var(--line); }
.ep-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin:0 0 8px; }
.ep-heading { margin:0; font:700 13.5px var(--font-display); color:var(--ink); }
.ep-all { font-size:13px; font-weight:600; color:var(--accent-text); text-decoration:none; }
@media (hover:hover) { .ep-all:hover { text-decoration:underline; text-underline-offset:3px; } }
.ep-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.ep-row { display:flex; align-items:center; gap:10px; min-height:42px; padding:6px 8px; margin:0 -8px; border:1px solid transparent; border-radius:12px; color:var(--ink); text-decoration:none; font-size:14px; line-height:1.3; transition:background-color .15s,border-color .15s; }
.ep-list li + li .ep-row { border-top-color:color-mix(in srgb, var(--line) 65%, transparent); border-top-left-radius:0; border-top-right-radius:0; }
.ep-num { flex:none; min-width:54px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--soft); }
.ep-title { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ep-year { flex:none; margin-left:auto; font-size:13px; font-variant-numeric:tabular-nums; color:var(--soft); }
.ep-row:not(:has(.ep-title)) .ep-num { color:var(--ink); }
.ep-row:has(.ep-year) .row-cta { margin-left:0; }
html.kbd .ep-row:focus-visible { outline:1px solid var(--accent); outline-offset:-2px; }
.ep-toggle { margin-top:4px; }

/* =====================================================================
   The phone's tab bar
   ===================================================================== */
.page { padding-bottom:calc(84px + env(safe-area-inset-bottom, 0px)); }
.help-sheet .about p + p { margin-top:8px; }
.tabbar { position:fixed; left:0; right:0; bottom:0; z-index:25; display:grid; grid-template-columns:repeat(3,1fr); padding:6px 8px max(6px, env(safe-area-inset-bottom, 0px)); background:color-mix(in srgb, color-mix(in srgb, var(--raised) 65%, var(--bg)) 94%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-top:1px solid var(--line); }
.tab { position:relative; min-height:48px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; background:none; color:var(--soft); font-size:11.5px; font-weight:600; }
.tab svg { width:24px; height:24px; }
.tab[aria-current="true"] { color:var(--accent-text); }
.tab .star-count { width:27px; height:27px; margin:-2px 0 -1px; }
.tab .star-count .count { font-size:10.5px; }

/* =====================================================================
   iPad and wider: no tab bar, list and help in the header, rows wrap,
   cards in as many columns as fit (iPad 2, computer 3), sheets centred
   ===================================================================== */
@media (min-width:700px) {
  .tabbar { display:none; }
  .top-links { display:flex; }
  .topbar-row { min-height:68px; gap:10px; }
  .finder { margin-top:10px; max-width:760px; }
  .chips { flex-wrap:wrap; overflow:visible; margin-inline:0; padding-inline:0; }
  .grid { grid-template-columns:repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap:14px; }
  .page { padding-bottom:32px; }
  dialog.sheet { top:0; bottom:0; margin:auto; width:min(560px, calc(100% - 48px)); max-height:88dvh; padding-bottom:22px; border-radius:22px; box-shadow:var(--sheet-glow), 0 30px 60px -30px rgba(0,0,0,.45); }
  dialog.sheet[open] { animation:popIn .32s cubic-bezier(.22,1,.36,1) backwards; }
  dialog.sheet.closing { animation:popOut .2s ease-in forwards; }
  dialog.detail-dialog { width:min(720px, calc(100% - 48px)); padding-bottom:24px; box-shadow:var(--sheet-glow), 0 30px 60px -30px rgba(0,0,0,.45); }
  dialog.list-sheet { width:min(760px, calc(100% - 48px)); }
  .detail-media { height:300px; }
  .detail-body { padding:18px 24px 0; }
  .detail-body h3 { font-size:28px; }
  .grab { margin-bottom:8px; }
}
/* With a mouse a centred box has no handle; by touch (an iPad) it has one
   and can be swiped down. */
@media (min-width:700px) and (pointer:fine) { dialog.sheet:not(.detail-dialog) .grab { display:none; } .detail-dialog .grab { display:none; } }
@media (min-width:1100px) { .grid { grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); } }

/* =====================================================================
   Hover and press: a mouse lifts a control a little and shades it
   (computers only); a press, by finger or mouse, sinks it briefly.
   ===================================================================== */
.chip,.service,.service-group-toggle,.pill-btn,.icon-btn,.plain-btn,.x,.tab,.star,.go,.text-btn,.detail-close,.poster,.youtube-button,.share-button,a.svc,a.offer,.rating,.news-link {
  transition:transform .15s ease,background-color .15s,border-color .15s,color .15s,box-shadow .15s,filter .15s,opacity .15s;
}
@media (hover:hover) and (pointer:fine) {
  .chip:hover,.service:hover,.service-group-toggle:hover,.pill-btn:hover,.icon-btn:hover,.plain-btn:hover,.x:hover,.share-button:hover { transform:translateY(-1px); box-shadow:0 6px 14px -8px rgba(0,0,0,.3); }
  .chip:hover,.service:hover,.service-group-toggle:hover { border-color:var(--sel-line); color:var(--ink); }
  .service:hover img { opacity:.75; }
  .service:has(input:checked):hover img { opacity:1; }
  .pill-btn:hover,.icon-btn:hover,.plain-btn:hover { background:color-mix(in srgb, var(--muted-bg) 82%, var(--ink)); }
  .x:hover,.detail-close:hover { background:color-mix(in srgb, var(--sel-bg) 80%, var(--sel-line)); }
  .share-button:hover,.star-large:hover { background:color-mix(in srgb, var(--raised) 82%, var(--ink)); }
  .chip[aria-pressed="true"]:hover,.chip.on:hover,.service:has(input:checked):hover,.service-group-toggle.on:hover { background:color-mix(in srgb, var(--sel-bg) 85%, var(--accent)); }
  .tab:hover,.star:hover,.text-btn:hover { color:var(--accent-text); }
  .go:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.18); box-shadow:0 8px 18px -10px rgba(0,0,0,.5); }
  .poster:hover { filter:brightness(1.06); }
  .person-strip-work:hover,.person-work:hover img,.person-work:hover .person-work-blank { transform:translateY(-1px); filter:brightness(1.1); }
  .youtube-button:hover { background:color-mix(in srgb, var(--raised) 82%, var(--ink)); transform:translateY(-1px); }
  a.svc:hover,a.offer:hover,.rating:hover { transform:translateY(-1px); }
  a.svc:hover img,a.offer:hover img { filter:brightness(1.1); }
  .app-version:hover { color:var(--ink); background:var(--muted-bg); }
  .card-link:hover { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
  .movie:hover { transform:translateY(-1px); box-shadow:0 0 16px var(--card-glow), var(--shadow); }
  .movie.unavailable:hover { opacity:.9; }
  /* Not saved: the star shows on hover/focus with a mouse. */
  .star:not(.on):not(.star-large) { opacity:0; }
  .movie:hover .star,.star:focus-visible { opacity:1; }
}
.chip:active,.service:active,.service-group-toggle:active,.pill-btn:active,.icon-btn:active,.plain-btn:active,.x:active,.go:active,.tab:active,.star:active,.share-button:active,.youtube-button:active,.star-large:active,.cal-btn:active,.detail-close:active,.text-btn:active,a.svc:active,a.offer:active,.rating:active,.app-version:active { transform:scale(.96); box-shadow:none; }
.person-strip-work,.person-work img,.person-work-blank { transition:transform .15s ease, filter .15s ease; }
.person-strip-work:active,.person-work:active img,.person-work:active .person-work-blank { transform:scale(.96); }
/* Pressed: a poster or a title dims a moment instead. */
.poster:active,.card-link:active,.news-link:active,.people-fold summary:active,footer summary:active { opacity:.7; }

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .skel-bar::after { display:none; }
  /* No movement: while searching the reel and the glow simply show. */
}

/* A computer: the whole app on one panel (rounded, a soft shadow) over a
   darker ground, so a wide screen isn't an empty page. Phones and iPads
   keep the page edge to edge. */
@media (min-width:1100px) and (pointer:fine) {
  html,body { background:var(--outer); }
  body { padding:28px 28px 40px; }
  .frame { max-width:1240px; margin:0 auto; border:1px solid var(--line); border-radius:26px; background:var(--bg); box-shadow:var(--frame-shadow); overflow:clip; }
  .frame .topbar { border-bottom:1px solid var(--line); margin-bottom:10px; }
}

/* =====================================================================
   Relief (buttons "B", convex): a sheen from the top and a dark lower
   edge; pressed, the button turns concave. On a computer it lifts a pixel
   under the pointer.
   ===================================================================== */
:root { --btn-hi:rgba(255,255,255,.9); --btn-lo:rgba(0,0,0,.08); --btn-sh:rgba(0,0,0,.18); --btn-gloss:rgba(255,255,255,.65); --logo-ring:color-mix(in srgb, var(--ink) 12%, transparent); }
/* (light-dark() is not used: Chromium takes its light value inside box-shadow) */
:root:is([data-theme="dark"],[data-theme="cinema"]) { --btn-hi:rgba(255,255,255,.09); --btn-lo:rgba(0,0,0,.35); --btn-sh:rgba(0,0,0,.55); --btn-gloss:rgba(255,255,255,.08); --logo-ring:color-mix(in srgb, var(--ink) 10%, transparent); }
:root:root :is(.chip,.service,.service-group-toggle,.pill-btn,.icon-btn,.youtube-button,.x,.detail-close,.share-button,.star-large,.cal-btn,.rating,.row-cta) { background-image:linear-gradient(180deg, var(--btn-gloss), transparent 55%, var(--btn-lo)); box-shadow:0 1px 0 var(--btn-hi) inset, 0 -1px 0 var(--btn-lo) inset, 0 2px 5px -2px var(--btn-sh); }
:root:root .go::after { background-image:linear-gradient(180deg, rgba(255,255,255,.3), transparent 55%, rgba(0,0,0,.14)); }
:root:root .go { box-shadow:0 6px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
:root:root :is(.chip,.service,.service-group-toggle,.pill-btn,.icon-btn,.youtube-button,.x,.detail-close,.share-button,.star-large,.rating):active:not(:disabled) { transform:none; background-image:linear-gradient(0deg, var(--btn-gloss), transparent 60%, var(--btn-lo)); box-shadow:0 2px 4px var(--btn-sh) inset; }
:root:root .go:active:not(:disabled) { transform:none; box-shadow:0 2px 5px rgba(0,0,0,.3) inset; }
:root:root .go:active:not(:disabled)::after { background-image:linear-gradient(0deg, rgba(255,255,255,.2), rgba(0,0,0,.14)); }
/* Every filled button is raised – tests/verify-buttons.mjs finds the ones
   left out of the lists above. ":root:root" keeps these rules as strong as
   the chosen states (.service:has(input:checked) sets the background). */
/* Service logos: a ring that shows on every theme (a black logo on a dark
   card: Arkaader, Netflix, Go3) and a raised look. An inset shadow on an
   img is painted under the picture, and a chip's overflow clips a ring
   outside it: the ring, the gloss and the inner edges lie over the 30px
   logo as a layer of its own (::after; one ring everywhere: a chip clips
   one outside the picture, an offer did not – two rings there). */
:root:root :is(.providers img,.offer img) { box-shadow:0 3px 6px -3px var(--btn-sh); }
:root:root :is(.providers .svc-logo,.offer):has(img)::after { content:""; position:absolute; left:0; top:0; width:30px; height:30px; border-radius:8px; pointer-events:none; background:linear-gradient(180deg, rgba(255,255,255,.1), transparent 50%, rgba(0,0,0,.14)); box-shadow:0 0 0 1px var(--logo-ring) inset, 0 1px 0 rgba(255,255,255,.15) inset, 0 -1px 0 rgba(0,0,0,.22) inset; }
/* A logo with its terms ("Telekanal", "Tasuta"): the whole chip raised. */
:root:root .providers .svc-logo:has(.note:not(.price)) { background-image:linear-gradient(180deg, var(--btn-gloss), transparent 55%, var(--btn-lo)); box-shadow:0 1px 0 var(--btn-hi) inset, 0 -1px 0 var(--btn-lo) inset, 0 2px 5px -2px var(--btn-sh); }

/* =====================================================================
   Sheets scroll their content only (.sheet-body): the heading (title, ×,
   the bin) stays above it, and the scrollbar runs between the heading and
   the bottom edge, clear of the rounded corners. A line under the heading
   once the content is scrolled.
   ===================================================================== */
dialog.sheet[open]:not(.detail-dialog) { display:flex; flex-direction:column; overflow:hidden; }
dialog.sheet:not(.detail-dialog) .sheet-head { position:relative; z-index:1; flex:none; margin:-10px -18px 0; padding:16px 18px 8px; }
.sheet-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0 -18px; padding:6px 18px 0; }
/* The handle lies over the heading's top. */
dialog.sheet:not(.detail-dialog) .grab { position:absolute; z-index:2; top:6px; left:50%; margin:0; transform:translateX(-50%); }
@media (min-width:700px) and (pointer:fine) { dialog.sheet:not(.detail-dialog) .sheet-head { padding-top:10px; } }
dialog.help-sheet .sheet-head { padding-bottom:0; }
dialog.sheet.scrolled .sheet-head { box-shadow:0 1px 0 var(--line), 0 8px 12px -10px rgba(0,0,0,.25); }

/* =====================================================================
   "Seaded" (beta): language, theme and the button style to compare.
   ===================================================================== */
.prefs-row { display:grid; gap:8px; margin:0 0 16px; }
.prefs-row h3 { margin:0; font-size:14px; font-weight:700; color:var(--ink); }
.prefs-chips { display:flex; flex-wrap:wrap; gap:8px; }
.prefs-chips .chip { min-width:44px; justify-content:center; }
.prefs-row h3 label { cursor:pointer; }
.service-group[hidden] { display:none; }
/* The location's country: bold, in the large view's details tone (v2.80). */
/* The country name in the services heading: a text link in the label's own size and weight.
   Its tap area is 40 px tall, but the negative margin keeps the row as tall as it was. */
.service-group-label .region-link { min-width:40px; min-height:0; height:auto; padding:11px 6px; margin:-11px -6px; font-size:inherit; line-height:inherit; font-weight:inherit; text-align:left; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
/* v2.78: a person's small card (first in an actor search) and large card. */
.person-card .person-photo { display:block; width:100%; aspect-ratio:1; padding:0; border:0; border-radius:50%; overflow:hidden; background:var(--muted-bg); cursor:pointer; margin-top:6px; }
.person-photo img,.person-big-photo { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.person-initials { display:grid; place-items:center; width:100%; height:100%; font:700 28px var(--font-display); color:var(--soft); }
.person-name { padding:0; border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.person-known,.person-stats,.person-others { margin:0; font-size:13px; line-height:1.4; color:var(--soft); }
.person-known b { color:var(--ink); font-weight:600; }
.person-others { font-size:12px; }
.person-body { padding:20px 11px 0; }
.person-body h3 { margin:0 0 4px; font:700 25px/1.12 var(--font-display); letter-spacing:-.02em; text-wrap:balance; }
@media (min-width:700px) { .person-body { padding:22px 24px 0; } .person-body h3 { font-size:28px; } }
/* v2.80: a bigger photo (128px, 150px wider); only the name keeps clear of the ×. */
.person-head { display:grid; grid-template-columns:128px minmax(0,1fr); gap:14px; align-items:start; }
.person-head .person-big-photo { width:128px; height:128px; border-radius:50%; background:var(--muted-bg); overflow:hidden; }
.person-head h3 { margin:2px 0 4px; padding-right:44px; }
button.person-big-photo { display:block; padding:0; border:0; cursor:zoom-in; }
button.person-big-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
@media (min-width:700px) { .person-head { grid-template-columns:150px minmax(0,1fr); } .person-head .person-big-photo { width:150px; height:150px; } }
.person-links { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.person-links a { text-decoration:none; }
.person-section { margin:18px 0 8px; font-size:14px; font-weight:700; color:var(--ink); }
.person-bio { margin:12px 0 4px; font-size:14px; line-height:1.55; color:var(--ink); white-space:pre-line; }
.person-bio.short { display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.person-bio-tools { margin:0; font-size:13px; }
.person-works { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.person-more { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.person-work { flex:0 0 92px; display:flex; flex-direction:column; gap:3px; color:var(--ink); text-decoration:none; font-size:12px; line-height:1.3; }
.person-work img,.person-work-blank { width:92px; height:138px; border-radius:8px; object-fit:cover; background:var(--muted-bg); }
.person-work-blank { display:grid; place-items:center; padding:6px; text-align:center; color:var(--soft); }
.person-work-title { font-weight:600; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.person-work-year { color:var(--soft); }
/* A work loading: the tile dims and the search's film reel turns over its poster. */
.person-work { position:relative; }
.person-work .work-reel { left:46px; top:69px; width:34px; height:34px; margin:-17px 0 0 -17px; z-index:1; color:var(--accent-text); }
.person-work .work-reel svg { width:34px; height:34px; }
.person-work.loading { cursor:progress; }
.person-work.loading img,.person-work.loading .person-work-blank { opacity:.45; transition:opacity .2s; }
.person-work.loading .work-reel { opacity:1; }
.person-work.loading .work-reel svg { animation:reelTurn 3.5s linear infinite; }
.person-work-note { margin:8px 0 0; }
.person-namesakes { display:flex; flex-wrap:wrap; gap:8px; }
.person-known-inline { font-weight:400; color:var(--soft); }
.person-link { padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline dotted; text-underline-offset:3px; cursor:pointer; }
.person-link:hover { color:var(--accent-text); }
.help-note { margin:8px 0 0; font-size:13px; color:var(--soft); }
.people-list .person-known { font-weight:400; color:var(--soft); }
.tabbar:has(#tab-prefs:not([hidden])) { grid-template-columns:repeat(4,1fr); }
/* Phones: the gear is a tab, not in the header. */
@media (max-width:699px) { .prefs-btn { display:none; } }

/* =====================================================================
   The search field, in Google's manner: a grey lens on the left while it
   is empty; on the right a bold orange lens (the search button), and with
   text a × and a thin divider before it. While searching, the film reel
   turns in the lens's place. Phones: 48px high. A microphone (voice
   input) where the browser can do it. 150 ms.
   ===================================================================== */
.search-row input { height:52px; padding:0 48px 0 48px; transition:border-color .2s, box-shadow .2s, padding .15s ease; }
.finder.has-text .search-row input { padding-left:20px; padding-right:90px; }
.lens { position:absolute; left:17px; top:50%; width:20px; height:20px; margin-top:-10px; color:var(--soft); pointer-events:none; transition:opacity .15s ease, transform .15s ease; }
.finder.has-text .lens { opacity:0; transform:scale(.6); }
.search-tools { position:absolute; right:4px; top:0; bottom:0; display:flex; align-items:center; gap:0; }
.tool-btn { position:relative; width:36px; height:40px; padding:0; display:grid; place-items:center; border:0; border-radius:999px; background:none; color:var(--soft); }
@media (hover:hover) { .tool-btn:hover:not(:disabled) { background:var(--muted-bg); color:var(--ink); } .search-go:hover:not(:disabled) { color:var(--accent); } }
.clear-query,.tool-sep { opacity:0; transform:scale(.6); visibility:hidden; transition:opacity .15s ease, transform .15s ease, visibility 0s .15s; }
.finder.has-text :is(.clear-query,.tool-sep) { opacity:1; transform:none; visibility:visible; transition-delay:0s; }
.finder:not(.has-text) :is(.clear-query,.tool-sep) { position:absolute; }
.tool-sep { width:1px; height:24px; margin:0 2px; background:var(--line); }
.search-go { color:var(--accent); }
.search-go .go-lens { width:24px; height:24px; transition:opacity .15s ease, transform .15s ease; }
.search-go .go-reel { width:34px; height:34px; margin:-17px 0 0 -17px; filter:none; transition:opacity .15s ease; }
.search-go .go-reel svg { width:34px; height:34px; }
.finder.searching .search-go .go-reel { opacity:1; }
.finder.searching .search-go .go-lens { opacity:0; transform:scale(.6); }
.search-go:disabled { cursor:wait; }
/* Voice input (where it works in the page's language): the mic glows while
   it listens; a failure is told under the field. */
.finder.can-speak .search-row input { padding-right:84px; }
.finder.can-speak.has-text .search-row input { padding-right:126px; }
.voice-note { margin:8px 20px 0; font-size:13.5px; line-height:1.4; color:var(--soft); }
.mic-btn.listening { color:var(--accent-text); background:var(--sel-bg); animation:micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow:0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (max-width:640px) {
  .search-row input { height:48px; padding-left:44px; }
  .lens { left:15px; }
}
/* The photo enlarged: round, about the screen's width, over the large card. */
dialog.sheet.photo-sheet { inset:0; margin:auto; width:fit-content; height:fit-content; max-height:none; padding:0; border-radius:0; background:none; box-shadow:none; overflow:visible; }
dialog.sheet.photo-sheet[open] { display:block; }
dialog.sheet.photo-sheet[open] { animation:photoIn .28s cubic-bezier(.22,1,.36,1) backwards; }
dialog.sheet.photo-sheet.closing { animation:photoOut .2s ease-in forwards; }
dialog.sheet.photo-sheet .grab { display:none; }
.photo-frame { position:relative; }
#photo-img { display:block; width:min(90vw, 480px, 85dvh); aspect-ratio:1; border-radius:50%; object-fit:cover; object-position:50% 20%; background:var(--muted-bg); box-shadow:0 20px 60px -20px rgba(0,0,0,.6); cursor:zoom-out; }
.photo-close { position:absolute; top:0; right:0; margin:0; }
@keyframes photoIn { from { opacity:0; transform:scale(.35); } }
@keyframes photoOut { to { opacity:0; transform:scale(.35); } }
@media (prefers-reduced-motion:reduce) { dialog.sheet.photo-sheet[open],dialog.sheet.photo-sheet.closing { animation:none; } }

/* Beta: the page at a tablet's or phone's size (device.js, Seaded → Seade). */
.device-stage { margin:0; min-height:100dvh; display:flex; flex-direction:column; align-items:center; gap:12px; padding:12px; box-sizing:border-box; background:var(--bg); color:var(--ink); }
.device-bar { display:flex; align-items:center; gap:12px; font:600 14px/1.2 Inter, system-ui, sans-serif; }
.device-frame { border:1px solid var(--line, #888); border-radius:20px; background:var(--bg); max-width:100%; }
.device-frame.phone { border-radius:32px; }

/* v2.92: a title taken off in "Lemmikud": its card's place says "Eemaldatud
   lemmikutest · Võta tagasi" (saved.js markRemoved); "Eemalda kõik" says so in the empty list. */
.undo-row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:0; padding:12px; border:1px dashed var(--line); border-radius:16px; background:var(--surface); color:var(--soft); font:600 14px/1.3 var(--font-body); text-align:center; }
.undo-row[hidden] { display:none; }
.list-undo { margin:12px 0; }

/* Beta only (v2.92): "v2.92b" by the wordmark, on the wordmark's baseline
   (--beta-shift, measured); the news dot alone between them. The dot's and
   the version's tap areas reach under the gaps (negative margins), so the
   seen gaps are ~6px. */
.beta-version { align-self:center; display:inline-flex; align-items:center; margin:0; padding:6px 6px 6px 0; border:0; border-radius:999px; background:none; color:var(--soft); font:600 13px/1 var(--font-body); cursor:pointer; transform:translateY(var(--beta-shift, 0px)); }
.beta-version[hidden] { display:none; }
.news-dot:not([hidden]) { margin-inline:-4px; }
/* Measured: the 13px version's baseline sat 3px above the 19px wordmark's;
   the dot 3px lower too – on the middle of the digits and the wordmark's small letters. */
.brand { --beta-shift:3px; }
.news-dot { transform:translateY(3px); }
.news-dot[hidden] + .beta-version { margin-left:6px; }

/* v2.93: the person's small card, layout C – as high as a film card: a 96px
   round photo by the name, the best-known works' posters across the card. */
.movie.person-card { grid-template-columns:96px minmax(0,1fr); row-gap:10px; align-content:start; }
.movie.person-card .person-photo { margin-top:0; }
.movie.person-card .person-name { padding-right:36px; }
.person-strip { grid-column:1 / -1; display:grid; gap:6px; }
.person-strip-row { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x proximity; padding-block:2px; margin-block:-2px; }
.person-strip-row::-webkit-scrollbar { display:none; }
.person-strip-work { scroll-snap-align:start; }
.person-strip-work { position:relative; flex:0 0 auto; width:60px; aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:var(--muted-bg); }
.person-strip-work img { display:block; width:100%; height:100%; object-fit:cover; }
.person-strip-work.loading { opacity:.5; }
/* "Lemmikud": the people, a block of their own above the titles (only when there are some). */
.list-people { margin:0 0 14px; }
.list-people[hidden] { display:none; }
.list-people h3 { margin:0 0 8px; font-size:14px; font-weight:700; color:var(--ink); }
.list-people-row { display:flex; flex-wrap:wrap; gap:10px; }
.person-tile { position:relative; display:flex; align-items:center; gap:10px; padding:6px 44px 6px 6px; border:1px solid var(--card-line); border-radius:999px; background:var(--surface); }
.person-tile .person-tile-photo { width:44px; height:44px; padding:0; border:0; border-radius:50%; overflow:hidden; background:var(--muted-bg); cursor:pointer; flex:none; }
.person-tile .person-tile-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.person-tile .person-name { font-weight:600; font-size:14px; }
.person-tile .star { top:50%; right:2px; transform:translateY(-50%); width:40px; height:40px; }
.list-people .undo-row { border-radius:999px; padding:8px 14px; }

/* The site's name is the page's one <h1> (the wordmark); it keeps the link's look. */
.brand-title { display:flex; margin:0; font:inherit; min-width:0; }
/* Keyboard: the first Tab stop jumps past the search controls to the results (hidden until focused). */
.skip-link { position:absolute; left:12px; top:-60px; z-index:1000; padding:10px 16px; border-radius:999px; background:var(--surface); color:var(--ink); font-weight:600; text-decoration:none; box-shadow:var(--shadow); }
.skip-link:focus { top:12px; }
#results-section:focus { outline:none; }
/* Touch (docs/ANALUUS.md 3.5): small buttons get a tap area of at least 40 × 40 px, a transparent
   ::before centred on them; what is seen stays the same. (Service logos keep 30 px: their link clips
   its content for the rounded picture; 30 px is above WCAG 2.2's 24 px.) */
:is(.brand-link,.tool-btn,.rating,.youtube-button,.share-button,.star-large) { position:relative; }
/* The large view's star: .star's corner offsets (top:4px; right:2px, for the card's corner) must not move it now that it is relative. */
.star-large { top:auto; right:auto; }
:is(.brand-link,.news-dot,.tool-btn,.rating,.youtube-button,.share-button,.star-large)::before { content:""; position:absolute; top:50%; left:50%; width:max(100%, 40px); height:max(100%, 40px); transform:translate(-50%, -50%); }

/* =====================================================================
   The front page before a search (home.js, 2026-11-14): a sentence, example
   searches, "Hinnatud sinu teenustes"; after a search the type and service
   rows fold into one row that opens them in sheets.
   ===================================================================== */
.home-intro { display:flex; flex-direction:column; gap:8px; margin:2px 2px 12px; }
.home-text { margin:0; font-size:15px; line-height:1.45; color:var(--soft); max-width:60ch; }
.home-text b { color:var(--ink); font-family:var(--font-display); font-weight:700; }
.home-try { margin:0; font-size:14.5px; line-height:1.9; color:var(--soft); }
.try-label { color:var(--ink); font-weight:600; margin-right:2px; }
/* An example search (variant A, 2026-11-14): an accent link with a small lens in a
   line of text – never like the raised filter chips; it wraps as text. The tap area
   is 40 px high, unseen. */
.try-link { position:relative; color:var(--accent-text); font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; white-space:nowrap; }
.try-link::before { content:""; display:inline-block; width:13px; height:13px; margin-right:3px; vertical-align:-1px; background:currentColor; -webkit-mask:var(--lens-icon) center/contain no-repeat; mask:var(--lens-icon) center/contain no-repeat; }
.try-link::after { content:""; position:absolute; left:-4px; right:-4px; top:50%; height:40px; transform:translateY(-50%); }
@media (hover:hover) { .try-link:hover { text-decoration-thickness:2px; } }
html.kbd .try-link:focus-visible { outline:1px solid var(--accent); outline-offset:2px; border-radius:4px; }
:root { --lens-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E"); }
.home-shelf { margin:22px 0 6px; }
.shelf-head { margin:0 2px 9px; font:700 15px var(--font-display); color:var(--ink); }
.shelf-row { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin-inline:calc(-1 * var(--edge)); padding-inline:var(--edge); padding-block:2px 6px; scroll-snap-type:x proximity; scroll-padding-inline:var(--edge); }
.shelf-row::-webkit-scrollbar { display:none; }
.shelf-tile { flex:none; width:92px; display:flex; flex-direction:column; gap:4px; color:var(--ink); text-decoration:none; scroll-snap-align:start; }
.shelf-tile img { width:92px; height:138px; border-radius:10px; object-fit:cover; background:var(--muted-bg); box-shadow:0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); transition:transform .15s, filter .15s; }
.shelf-tile .shelf-title { font-size:12.5px; font-weight:600; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.shelf-tile .shelf-meta { font-size:11.5px; color:var(--soft); }
.shelf-tile .shelf-meta b { color:var(--ink); font-weight:600; }
/* A poster loading: it dims and the search's film reel turns over it (as .person-work). */
.shelf-tile { position:relative; }
.shelf-tile .work-reel { left:46px; top:69px; width:34px; height:34px; margin:-17px 0 0 -17px; z-index:1; color:var(--accent-text); }
.shelf-tile .work-reel svg { width:34px; height:34px; }
.shelf-tile.loading { cursor:progress; }
.shelf-tile.loading img { opacity:.45; transition:opacity .2s; }
.shelf-tile.loading .work-reel { opacity:1; }
.shelf-tile.loading .work-reel svg { animation:reelTurn 3.5s linear infinite; }
@media (hover:hover) { .shelf-tile:hover img { transform:translateY(-1px); filter:brightness(1.06); } }
html.kbd .shelf-tile:focus-visible { outline:1px solid var(--accent); outline-offset:3px; border-radius:10px; }
/* Right under the filter chips, as their next row (the same 6 px gap), on one line. */
.compact-row { margin-top:-6px; flex-wrap:nowrap; overflow:visible; margin-inline:0; padding-inline:0; gap:6px; }
.compact-chip { max-width:100%; }
.compact-chip span:first-child { overflow:hidden; text-overflow:ellipsis; }
/* Two equal-width columns for type and service pills (phone/tablet sheets and desktop sidebar alike):
   clean vertical alignment, zero ragged edges, and subtle group frame linking "Kõik" to its services. */
#types-list,.service-row { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; overflow:visible; margin-inline:0; padding-inline:0; padding-block:2px 4px; margin-block:0; -webkit-mask-image:none; mask-image:none; }
.service-row { padding:6px; border-radius:15px; background:color-mix(in srgb, var(--surface) 45%, transparent); border:1px solid var(--line); }
#types-list .chip,.service-row .service,.service-row .service-group-toggle { width:100%; min-width:0; }
#types-list .chip { justify-content:center; }
.service-row .service { gap:6px; }
.service-row .service.has-logo { padding:0 6px 0 2px; }
.service-row .service-group-toggle { gap:9px; padding:0 6px 0 9px; }
.service-row .service span,.service-row .service-group-toggle span:last-child { overflow:hidden; text-overflow:ellipsis; }
.controls-body .chips { overflow:visible; margin-inline:0; padding-inline:0; -webkit-mask-image:none; mask-image:none; }
.controls-body .service-row { padding:6px; }
.controls-body .row-label { margin-top:4px; }
.controls-sheet .sheet-body { display:flex; flex-direction:column; gap:14px; }
/* "Valmis": never squeezed by a long sheet (flex:none), half the width, a soft tint instead of the full accent. */
.done-btn { flex:none; align-self:center; width:min(50%, 260px); min-width:160px; margin-top:6px; color:var(--ink); }
.done-btn::after { background:color-mix(in srgb, var(--accent) 22%, var(--surface)); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
/* Apple TV's and HBO Max's logos in a service chip: a round picture like the
   others (the zoom's clip-path, for cards, made it a rounded square). */
.service.has-logo img.logo-zoom { clip-path:none; }

/* "Lisa kalendrisse" at the end of the next episode's row (calendar.js): a
   small round button, a menu under it. */
.cal-wrap { position:relative; display:inline-flex; margin-left:10px; align-self:center; }
/* The row with a calendar page: its words in the page's middle. */
.next-episode:has(.cal-wrap:not([hidden])) { align-items:center; }
/* A small calendar page with the episode's day: the month on an accent band,
   the day under it, a "+" in its corner (the visitor's choice B, 2026-11-14).
   Raised like the other buttons (the shared rule below). */
.cal-btn { position:relative; display:inline-flex; flex-direction:column; align-items:center; width:30px; height:32px; padding:0; border:0; border-radius:7px; background:var(--raised); color:var(--ink); cursor:pointer; overflow:visible; }
.cal-month { width:100%; height:10px; border-radius:7px 7px 0 0; background:var(--accent); color:var(--accent-ink); font:800 7px/10px var(--font-body); letter-spacing:.08em; text-align:center; }
.cal-day { font:800 14px/21px var(--font-display); font-variant-numeric:tabular-nums; }
.cal-plus { position:absolute; right:-4px; bottom:-4px; width:13px; height:13px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:grid; place-items:center; font:800 11px/1 var(--font-body); box-shadow:0 0 0 2px var(--surface); }
.cal-btn::before { content:""; position:absolute; top:50%; left:50%; width:max(100%, 40px); height:max(100%, 40px); transform:translate(-50%, -50%); }
.cal-btn[aria-expanded="true"] { outline:2px solid var(--accent); outline-offset:1px; }
@media (hover:hover) { .cal-btn:hover { background:color-mix(in srgb, var(--raised) 82%, var(--ink)); } }
html.kbd .cal-btn:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
.cal-menu { position:absolute; z-index:20; top:calc(100% + 6px); right:0; display:flex; flex-direction:column; min-width:200px; padding:6px; border-radius:14px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.cal-menu[hidden] { display:none; }
/* No room under the button (the row near the screen's bottom): the menu opens upwards. */
.cal-menu.up { top:auto; bottom:calc(100% + 6px); }
.cal-item { display:flex; align-items:center; min-height:40px; padding:0 12px; border:0; border-radius:10px; background:none; color:var(--ink); font:600 14px var(--font-body); text-align:left; text-decoration:none; cursor:pointer; white-space:nowrap; }
.cal-item:hover,.cal-item:focus-visible { background:var(--raised); outline:none; }

/* The theme button (2026-11-14): a line drawing (a ring, its right half
   filled, the line turned 35°) in the text colour. On a computer the same
   round raised button as the gear (.icon-btn, the shared rule), the first
   of the header's right-hand buttons, so its note has room on its left; on
   a phone the tab bar's look (24 px, --soft, no raise), top right. A tap
   turns it half a turn. */
.theme-btn { position:relative; }
.icon-btn.theme-btn svg { width:22px; height:22px; }
.theme-btn svg { display:block; transform:rotate(var(--turn, 0deg)); transition:transform .35s cubic-bezier(.22,1,.36,1); }
.theme-btn::before { content:""; position:absolute; top:50%; left:50%; width:44px; height:44px; transform:translate(-50%, -50%); }
html.kbd .theme-btn:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .theme-btn svg { transition:none; } }
@media (max-width:699px) {
  :root:root .theme-btn.icon-btn,:root:root .theme-btn.icon-btn:is(:hover,:active,:focus):not(:disabled) { width:40px; height:40px; background:none; background-image:none; box-shadow:none; transform:none; color:var(--soft); }
  .icon-btn.theme-btn svg { width:26px; height:26px; }
}
/* "Teema: Kino" for a moment, right left of the button, on its line. */
.theme-wrap { position:relative; display:inline-flex; flex:none; }
/* One colour in every theme: a warm dark grey with light cream text (~9:1), a faint light edge for the dark themes. */
.theme-toast { position:absolute; z-index:30; right:calc(100% + 8px); top:50%; transform:translateY(-50%); padding:6px 12px; border-radius:999px; background:#4a4640; color:#f5f1e8; border:1px solid rgba(255,255,255,.18); font:600 13px var(--font-body); box-shadow:0 6px 18px -8px rgba(0,0,0,.5); white-space:nowrap; pointer-events:none; transition:opacity .3s; }
.theme-toast.fade { opacity:0; }


/* =====================================================================
   Layout A2 (2026-11-14, mock "Filmiotsing A2"). Phone and tablet: the
   header scrolls away; the search field and one row of controls
   ("Teenused 9/12", "Tüüp: kõik", Žanr, Aasta, Hinnang) stay at the top.
   A computer (1100 px and wider): the search field in the header, the
   filters in a left column that stays in view, the results beside it; the
   panel uses the screen's width.
   ===================================================================== */
@media (max-width:1099px) {
  .topbar { position:relative; }
  .stick { position:sticky; top:0; z-index:15; margin-inline:calc(-1 * var(--edge)); padding:6px var(--edge) 10px; background:color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
  .stick .finder { margin:0 0 10px; }
  /* One row: the folded rows' chips and the filter chips side by side. */
  /* No scroll snapping: when the folded chips appear, Chrome would keep the old first chip in place and scroll them out of view. */
  .filters { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin:-4px calc(-1 * var(--edge)) -8px; padding:4px var(--edge) 8px; }
  .filters::-webkit-scrollbar { display:none; }
  .filters > .chips { display:contents; }
  .filters .chip { flex:none; max-width:none; }
  .filters.more-right { -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent); }
  .filters.more-left { -webkit-mask-image:linear-gradient(90deg,transparent,#000 48px); mask-image:linear-gradient(90deg,transparent,#000 48px); }
  .filters.more-left.more-right { -webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent); mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent); }
  .main-col .results { padding-top:14px; }
}
/* A tablet has the width: the row wraps instead of scrolling. */
@media (min-width:700px) and (max-width:1099px) {
  .filters { flex-wrap:wrap; overflow:visible; margin-inline:0; padding-inline:0; }
  .stick .finder { max-width:none; }
}
@media (min-width:1100px) {
  .wrap { max-width:1840px; }
  /* One column geometry for the header and the page: the brand fills the first
     (filter) column, the search field starts where the results do. */
  :root { --side-col:268px; --col-gap:28px; --bar-gap:10px; --stick-top:74px; }
  .topbar-row { gap:var(--bar-gap); }
  .topbar .brand { margin-right:0; flex:none; width:var(--side-col); }
  .topbar .finder { flex:1 1 auto; max-width:720px; margin:0 auto 0 calc(var(--col-gap) - var(--bar-gap)); }
  .topbar .search-row input { height:48px; }
  .page { display:grid; grid-template-columns:var(--side-col) minmax(0,1fr); column-gap:var(--col-gap); align-items:start; }
  /* One thin line down the middle of the gap between the filter column and the cards.
     A pseudo-element: no element changes size or place. The sticky column still sticks
     (sticky looks at the scrolling ancestor, not at a relative parent). */
  .page { position:relative; }
  /* left counts from the padding edge: the page's side padding (--edge, 28 px) comes first. */
  .page::before { content:""; position:absolute; top:0; bottom:0; left:calc(max(var(--edge), env(safe-area-inset-left, 0px)) + var(--side-col) + var(--col-gap) / 2); width:1px; background:var(--rule); pointer-events:none; }
  /* The left column: under the sticky header (69 px high), scrolling on its own when taller than the window.
     A sticky box cannot leave its grid area, and at the very end of the page the area stops 61-73 px above
     the window's bottom edge (the page's 32 px padding, the frame's border, the body's 28-40 px padding):
     a column that reached lower (the old 100dvh - 92px) was pushed up behind the header there. So it keeps
     74 px free below, and tightens its own padding/gaps so a standard desktop window needs no scrollbar. */
  .stick { position:sticky; top:var(--stick-top); max-height:calc(100dvh - var(--stick-top) - 74px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:color-mix(in srgb, var(--soft) 35%, transparent) transparent; padding:2px 6px 2px 0; }
  /* Soft vertical fade on laptops (e.g. 1280x800) when more services sit below or above the fold. */
  .stick.more-bottom { -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent); }
  .stick.more-top { -webkit-mask-image:linear-gradient(180deg,transparent,#000 36px); mask-image:linear-gradient(180deg,transparent,#000 36px); }
  .stick.more-top.more-bottom { -webkit-mask-image:linear-gradient(180deg,transparent,#000 36px,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(180deg,transparent,#000 36px,#000 calc(100% - 36px),transparent); }
  .filters { display:flex; flex-direction:column; gap:3px; }
  #filter-chips { flex-direction:column; flex-wrap:nowrap; gap:3px; margin:0; padding:0; }
  #filter-chips .chip { width:100%; height:38px; justify-content:space-between; }
  .filters .types-label-row { margin:4px 2px 1px; }
  .filters .service-group-label { margin:4px 2px 1px; }
  .filters .chips { margin-block:0; padding-block:0; gap:3px 6px; }
  .filters #types-list .chip { height:40px; }
  .filters .service-row { padding:4px 5px; gap:4px 5px; }
  .main-col { min-width:0; }
  .main-col .results { padding-top:8px; }
  .home-intro { margin-top:8px; }
}
/* The panel on a computer: as wide as the screen allows (the grid adds columns), a narrower margin round it below 1400 px. */
@media (min-width:1100px) and (pointer:fine) {
  .frame { max-width:1880px; }
}
@media (min-width:1100px) and (max-width:1399px) and (pointer:fine) {
  body { padding:16px 16px 28px; }
}

/* Layout A2, part 3: the card – an 88 px poster, the service logos 36 px;
   the description only on a computer, two lines (the large view has it all). */
.card-actions .providers img { width:36px; height:36px; border-radius:10px; }
@media (min-width:700px) { .grid { grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } }
@media (min-width:1100px) {
  .grid { grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:12px; }   /* 1280 px: 2 columns, 1470 px: 3, 1920 px: 4 */
}
/* "Sinu otsinguajalugu": dropdown under the search field on every screen (phone, tablet, computer). */
.recent-menu { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:30; padding:6px; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--ink); box-shadow:var(--sheet-glow), 0 14px 34px -12px rgba(0,0,0,.45); }
.recent-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 10px 6px; }
.recent-title { font:700 12.5px var(--font-display); color:var(--soft); }
.recent-list { display:flex; flex-direction:column; max-height:min(320px, 45dvh); overflow-y:auto; overscroll-behavior:contain; }
.recent-item { display:flex; align-items:center; gap:4px; border-radius:11px; }
.recent-pick { flex:1 1 auto; min-width:0; min-height:42px; display:flex; align-items:center; gap:9px; padding:0 8px 0 10px; border:0; border-radius:11px; background:transparent; color:var(--ink); font:500 14.5px/1.25 var(--font-body); text-align:left; cursor:pointer; }
.recent-icon { display:grid; flex:none; color:var(--soft); }
.recent-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-del { flex:none; width:38px; height:38px; display:grid; place-items:center; padding:0; border:0; border-radius:999px; background:transparent; color:var(--soft); cursor:pointer; }
@media (hover:hover) {
  .recent-item:hover { background:var(--raised); }
  .recent-del:hover { color:var(--ink); background:color-mix(in srgb, var(--ink) 8%, transparent); }
}
.recent-item:has(.recent-pick:focus-visible) { background:var(--raised); }
html.kbd :is(.recent-pick,.recent-del):focus-visible { outline:1px solid var(--accent); outline-offset:-2px; }
/* The logo's ring layer follows the card's bigger logo (36 px, as the picture). */
:root:root .card-actions .providers .svc-logo:has(img)::after { width:36px; height:36px; border-radius:10px; }
/* Narrow cards (e.g. 360-385 px phones / scaled Pixel 9): fit 4 buttons (4 logos, or 3 logos + "+N") on one row. */
@container card (max-width:355px) {
  .card-actions .providers { gap:5px; }
  .card-actions .providers img { width:34px; height:34px; border-radius:9px; }
  :root:root .card-actions .providers .svc-logo:has(img)::after { width:34px; height:34px; border-radius:9px; }
  .more-services { min-width:34px; height:34px; padding:0 5px; border-radius:9px; }
}

/* The page's grain once (2026-11-14): on a phone or tablet the panel (.frame)
   is no panel, and its own grain over the page's doubled it down to where the
   content ends – a grey band. The header and the sticky search block carry
   the same grain, so the top is no lighter. */
:root { --grain:none; }
:root[data-theme="paper"] { --grain:var(--paper-grain); }
:root:is([data-theme="dark"],[data-theme="cinema"]) { --grain:var(--dark-grain); }
@media not all and (min-width:1100px) and (pointer:fine) { :root:root .frame { background-image:none; } }
.topbar { background-image:var(--grain); }
@media (max-width:1099px) { .stick { background-image:var(--grain); } }

/* "Hinnatud sinu teenustes": two-row sideways scroller on a phone (posters as large as
   fit two rows cleanly), and two full fixed-width rows from 700 px (home.js fitShelf
   hides excess tiles cleanly with [hidden] instead of zero-height clipped grid rows). */
.home-shelf { margin:12px 0 6px; }
.shelf-row { --tile-w:clamp(108px, 29vw, 132px); display:grid; grid-auto-flow:column; grid-template-rows:auto auto; grid-auto-columns:var(--tile-w); gap:10px; }
.shelf-tile { width:var(--tile-w); }
.shelf-tile img { width:var(--tile-w); height:calc(var(--tile-w) * 1.5); }
.shelf-tile .work-reel { left:calc(var(--tile-w) / 2); top:calc(var(--tile-w) * .75); }
@media (min-width:700px) {
  .home-shelf { margin:22px 0 6px; }
  .shelf-row { --tile-w:120px; grid-auto-flow:row; grid-template-columns:repeat(auto-fill, var(--tile-w)); grid-template-rows:auto; grid-auto-columns:auto; justify-content:space-between; gap:12px 10px; overflow:visible; scroll-snap-type:none; margin-inline:-3px; padding:2px 3px 0; }
}
@media (min-width:1100px) { .shelf-row { --tile-w:150px; gap:14px; } .shelf-tile .shelf-title { font-size:13.5px; } .shelf-tile .shelf-meta { font-size:12.5px; } }

/* The theme's note on a phone: the name alone, right by the button. */
@media (max-width:699px) { .theme-toast { right:calc(100% + 2px); padding:5px 10px; } }

/* The small card (2026-11-15): one structure at every width. The poster column
   is 110 px and the picture fills the card's height beside the text (cropped,
   at least 165 px = 2:3); the description fills what is left, in whole lines. */
/* A phone (under 700px) needs room for 2 whole lines only, a tablet or computer for 3. */
@media (max-width:699px) { .desc { min-height:38px; } .desc > p { -webkit-line-clamp:2; } }
@container desc (min-height:57px) { .desc > p { -webkit-line-clamp:3; } }
@container desc (min-height:76px) { .desc > p { -webkit-line-clamp:4; } }
@container desc (min-height:95px) { .desc > p { -webkit-line-clamp:5; } }
@container desc (min-height:114px) { .desc > p { -webkit-line-clamp:6; } }
@container desc (min-height:133px) { .desc > p { -webkit-line-clamp:7; } }
@container desc (min-height:152px) { .desc > p { -webkit-line-clamp:8; } }
@container desc (min-height:171px) { .desc > p { -webkit-line-clamp:9; } }
@container desc (min-height:190px) { .desc > p { -webkit-line-clamp:10; } }
@container desc (min-height:209px) { .desc > p { -webkit-line-clamp:11; } }
@container desc (min-height:228px) { .desc > p { -webkit-line-clamp:12; } }
@container desc (min-height:247px) { .desc > p { -webkit-line-clamp:13; } }
@container desc (min-height:266px) { .desc > p { -webkit-line-clamp:14; } }
@container desc (min-height:285px) { .desc > p { -webkit-line-clamp:15; } }
@container desc (min-height:304px) { .desc > p { -webkit-line-clamp:16; } }
@container desc (min-height:323px) { .desc > p { -webkit-line-clamp:17; } }
@container desc (min-height:342px) { .desc > p { -webkit-line-clamp:18; } }
@container desc (min-height:361px) { .desc > p { -webkit-line-clamp:19; } }
@container desc (min-height:380px) { .desc > p { -webkit-line-clamp:20; } }
