:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #101620;
  --surface-2: #151d2a;
  --surface-3: #1b2535;
  --text: #f5f7fb;
  --muted: #98a5ba;
  --soft: #cbd5e1;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --accent: #67c7ff;
  --accent-2: #8ce7ce;
  --live: #ff5b6e;
  --ok: #4ade80;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --rail-rest: 72px;
  --rail-open: 232px;
  --rail-width: var(--rail-rest);
  --content-gutter: clamp(18px, 2.4vw, 42px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 75% 0%, rgba(52,84,135,.18), transparent 34rem), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; }
.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; }

.site-rail { position: fixed; inset: 0 auto 0 0; z-index: 100; width: var(--rail-open); display: flex; flex-direction: column; gap: 22px; padding: 14px 0 18px; border-right: 1px solid var(--line); background: rgba(8,11,18,.97); backdrop-filter: blur(20px); transition: width .26s cubic-bezier(.23,1,.32,1), box-shadow .26s ease; overflow: hidden; }
/* Collapsed is the resting state; hover and keyboard focus open it *over* the
   page so the catalog never reflows under the pointer. */
body[data-rail-pinned="false"] .site-rail { width: var(--rail-rest); }
body[data-rail-pinned="false"] .site-rail:hover,
body[data-rail-pinned="false"] .site-rail.is-peeking { width: var(--rail-open); box-shadow: 22px 0 60px rgba(0,0,0,.45); }
.rail-brand, .rail-navigation a, .rail-toggle { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--soft); text-decoration: none; text-align: left; font-size: 14px; font-weight: 700; cursor: pointer; }
.rail-brand { min-height: 54px; color: var(--text); }
.rail-brand-mark, .site-rail-icon { justify-self: center; display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.rail-brand-mark { width: 42px; height: 42px; }
.rail-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.rail-brand-name { padding: 0 0 0 18px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 22px; line-height: 1; letter-spacing: -.035em; }
.rail-navigation { display: grid; gap: 5px; }
.rail-navigation a:hover, .rail-navigation a:focus-visible, .rail-toggle:hover, .rail-toggle:focus-visible { color: var(--text); }
.site-rail-icon { border-radius: 50%; background: rgba(255,255,255,.055); font-size: 18px; line-height: 1; }
.rail-navigation a:hover .site-rail-icon, .rail-navigation a:focus-visible .site-rail-icon, .rail-toggle:hover .site-rail-icon, .rail-toggle:focus-visible .site-rail-icon { background: #fff; color: #07111b; }
.rail-navigation a.is-active .site-rail-icon { background: var(--accent); color: #07111b; }
.rail-label { min-width: 0; padding-right: 18px; white-space: nowrap; opacity: 1; transition: opacity .14s ease; }
.rail-toggle { margin-top: auto; }
body[data-rail-pinned="true"] { --rail-width: var(--rail-open); }
/* The wordmark slides out leftwards from behind the emblem as the rail opens. */
.rail-brand { grid-template-columns: minmax(0, 1fr) 72px; }
.rail-brand-name { transform: translateX(20px); opacity: 0; transition: transform .26s cubic-bezier(.23,1,.32,1), opacity .18s ease; }
.rail-label { transition: opacity .18s ease; }
body[data-rail-pinned="false"] .rail-label { opacity: 0; pointer-events: none; }
body[data-rail-pinned="false"] .site-rail:hover .rail-label,
body[data-rail-pinned="false"] .site-rail.is-peeking .rail-label { opacity: 1; pointer-events: auto; }
body[data-rail-pinned="true"] .rail-brand-name,
body[data-rail-pinned="false"] .site-rail:hover .rail-brand-name,
body[data-rail-pinned="false"] .site-rail.is-peeking .rail-brand-name { transform: translateX(0); opacity: 1; }
.tv-header, .video-shell, .channel-detail-shell, .tv-footer { margin-left: var(--rail-width); transition: margin-left .22s ease, width .22s ease; }
.video-shell, .channel-detail-shell { width: calc(100% - var(--rail-width)); max-width: none; padding-left: var(--content-gutter); padding-right: var(--content-gutter); }

.tv-header { position: sticky; top: 0; z-index: 50; min-height: 72px; display: grid; grid-template-columns: minmax(260px, 680px) 1fr; align-items: center; gap: 28px; padding: 12px clamp(18px, 4vw, 52px); background: rgba(8,11,18,.84); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.header-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); }
.header-search > span { color: var(--muted); font-size: 22px; transform: rotate(-15deg); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.header-search input::placeholder { color: #738198; }
.header-search:focus-within { border-color: rgba(103,199,255,.6); box-shadow: 0 0 0 4px rgba(103,199,255,.09); }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--muted); background: var(--surface); font-size: 12px; }
.header-status { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 13px; }
.header-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(74,222,128,.12); }

.video-shell { margin-right: 0; }
.intro-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(54px, 8vw, 112px) clamp(4px, 2vw, 28px) clamp(42px, 6vw, 76px); }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 18px; height: 2px; background: var(--accent); }
.intro-copy h1 { margin: 0; max-width: 760px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(54px, 9vw, 126px); line-height: .86; letter-spacing: -.075em; }
.intro-copy > p:not(.eyebrow) { max-width: 700px; margin: 26px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }
.catalog-stats { display: flex; gap: clamp(20px, 4vw, 52px); margin-top: 34px; }
.catalog-stats div { display: grid; gap: 2px; }
.catalog-stats strong { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 27px; letter-spacing: -.04em; }
.catalog-stats span { color: var(--muted); font-size: 12px; }
.featured-stack { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.featured-heading { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px 14px; }
.featured-heading span { font-weight: 700; }
.featured-heading small { color: var(--ok); }
.featured-channel { display: grid; grid-template-columns: 54px 1fr 38px; gap: 13px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--line); padding: 13px 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.featured-channel:first-of-type { border-top: 0; }
.featured-channel:hover, .featured-channel:focus-visible { background: rgba(103,199,255,.07); border-radius: 14px; }
.featured-logo { display: grid; place-items: center; overflow: hidden; background: #eef1f6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #111827; font-weight: 800; }
.featured-logo { width: 54px; height: 42px; border-radius: 11px; }
.featured-logo img { max-width: 88%; max-height: 80%; object-fit: contain; }
.featured-channel b, .featured-channel small { display: block; }
.featured-channel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-channel small { margin-top: 4px; color: var(--muted); }
.featured-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #07111b; font-size: 12px; }
.quiet-empty { color: var(--muted); padding: 18px; }

.watch-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 90px; }
.filter-rail { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: rgba(16,22,32,.88); backdrop-filter: blur(16px); }
.filter-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.filter-heading small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.filter-heading h2 { margin: 2px 0 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 25px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent); cursor: pointer; }
.filter-field { display: grid; gap: 7px; margin-bottom: 14px; scroll-margin-top: 108px; }
.filter-field label { color: var(--soft); font-size: 12px; font-weight: 700; }
.filter-field select { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 12px; padding: 0 36px 0 12px; background: var(--surface-2); color: var(--text); outline: 0; }
.filter-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(103,199,255,.08); }
.verification-note { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 22px; padding: 14px; border-radius: 14px; background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.16); }
.verification-note > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(74,222,128,.15); color: var(--ok); font-weight: 900; }
.verification-note b { font-size: 13px; }
.verification-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sync-note { margin: 14px 2px 0; color: #718097; font-size: 11px; }
.watch-content { min-width: 0; display: grid; gap: 38px; }

.player-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.player-stage { position: relative; background: #05070b; }
.tv-player { display: block; width: 100%; aspect-ratio: 16/9; background: #05070b; --media-primary-color: #fff; --media-secondary-color: rgba(8,11,18,.92); --media-control-hover-background: rgba(255,255,255,.12); --media-range-bar-color: var(--accent); --media-font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.tv-player video { width: 100%; height: 100%; object-fit: contain; }
.tv-player media-control-bar { padding: 10px 12px; background: linear-gradient(transparent, rgba(3,5,9,.94)); }
.player-empty { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; pointer-events: auto; background: radial-gradient(circle at center, rgba(36,58,95,.48), rgba(5,7,11,.92) 62%); }
.player-empty[hidden] { display: none; }
.player-start-button { --shift-x: 0; --shift-y: 0; --scale: 1; display: grid; place-items: center; width: clamp(68px, 9vw, 96px); height: clamp(68px, 9vw, 96px); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(var(--shift-x), var(--shift-y)) scale(var(--scale)); transition: transform .18s cubic-bezier(.23,1,.32,1), opacity .18s ease; }
.player-start-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.player-start-button:not(:disabled):hover, .player-start-button:not(:disabled):focus-visible { --scale: 1.06; }
.player-start-button:not(:disabled):active { --scale: .97; }
.player-start-button:disabled { cursor: default; }
.detail-start-button { --shift-x: -50%; --shift-y: -50%; position: absolute; z-index: 5; left: 50%; top: 50%; filter: drop-shadow(0 8px 26px rgba(0,0,0,.58)); }
.detail-start-button[hidden] { display: none; }

.player-empty b { margin-top: 20px; font-size: clamp(16px, 2vw, 23px); }
.player-empty small { color: var(--muted); }
.signal-rings { position: relative; display: block; width: 70px; height: 70px; }
.signal-rings i { position: absolute; inset: 0; margin: auto; border: 1px solid rgba(103,199,255,.55); border-radius: 50%; }
.signal-rings i:nth-child(2) { inset: 14px; }
.signal-rings i:nth-child(3) { inset: 28px; background: var(--accent); box-shadow: 0 0 32px rgba(103,199,255,.55); }
.player-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px 20px; }
.player-caption h2 { margin: 7px 0 3px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(20px, 3vw, 31px); letter-spacing: -.04em; }
.player-caption p { margin: 0; color: var(--muted); }
.live-pill, .live-mini { display: inline-flex; align-items: center; gap: 6px; color: #ffb6bf; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.live-pill i, .live-mini i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255,91,110,.12); }
.channel-page-link { flex: none; padding: 11px 14px; border-radius: 12px; background: rgba(103,199,255,.1); color: var(--accent); text-decoration: none; font-weight: 700; font-size: 13px; }
.channel-page-link:hover { background: rgba(103,199,255,.17); }

.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.catalog-heading h2 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(28px, 4vw, 45px); letter-spacing: -.055em; }
.catalog-heading > p { margin: 0; color: var(--muted); white-space: nowrap; }
.catalog-heading strong { color: var(--text); }
#loading-state::before { content: "·"; margin: 0 7px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; min-height: 28px; margin-bottom: 16px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: var(--surface); color: var(--soft); font-size: 12px; }
.filter-chip button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 26px 18px; }
.channel-card { min-width: 0; }
.channel-card-link { display: grid; gap: 13px; color: var(--text); text-decoration: none; }
.channel-preview { position: relative; display: grid; place-items: center; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: linear-gradient(145deg, #111827, #1e293b); color: #e2e8f0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 28px; font-weight: 800; }
.channel-preview > img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.channel-card-link:hover .channel-preview > img { transform: scale(1.025); }
.channel-preview.is-logo > img { width: 72%; height: 72%; object-fit: contain; }
.preview-fallback { display: none; }
.channel-preview.has-fallback .preview-fallback { display: grid; place-items: center; position: absolute; inset: 0; }
.channel-copy { min-width: 0; display: grid; gap: 6px; padding: 0 3px; }
.channel-title-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.channel-flag { display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-size: 20px; line-height: 1; }
.channel-name { min-width: 0; margin: 0; overflow: hidden; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.channel-meta { display: flex; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.channel-meta span + span::before { content: "·"; margin-right: 7px; }
.scroll-sentinel { height: 1px; }

.load-more { display: block; min-width: 210px; margin: 24px auto 0; border: 1px solid var(--line-strong); border-radius: 13px; padding: 12px 22px; background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.load-more[hidden] { display: none; }
.load-more:hover { border-color: var(--accent); }
.empty-state { grid-column: 1/-1; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; color: var(--muted); background: var(--surface); }

.tv-footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 30px var(--content-gutter) 44px; border-top: 1px solid var(--line); color: var(--muted); }
.tv-footer b, .tv-footer span { display: block; }
.tv-footer b { color: var(--text); }
.tv-footer span, .tv-footer p { font-size: 12px; }
.tv-footer p { max-width: 520px; margin: 0; text-align: right; }

/* Dedicated channel page */
.channel-detail-shell { margin-right: 0; padding-top: 44px; padding-bottom: 80px; }
.detail-breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.detail-breadcrumb a { color: var(--accent); text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .5fr); gap: 24px; align-items: start; }
.detail-main { display: grid; gap: 18px; }
.detail-player { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #05070b; box-shadow: var(--shadow); }
.detail-title-row { display: flex; gap: 18px; align-items: center; padding: 10px 0 6px; }
.detail-logo { flex: none; display: grid; place-items: center; width: 88px; height: 66px; padding: 8px; overflow: hidden; border-radius: 14px; background: #eef1f6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #111827; font-weight: 800; }
.detail-logo img { max-width: 88%; max-height: 82%; object-fit: contain; }
.detail-title-row h1 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(33px, 5vw, 66px); line-height: .95; letter-spacing: -.06em; }
.detail-title-row p { margin: 10px 0 0; color: var(--muted); }
.detail-sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: var(--surface); }
.info-card h2 { margin: 0 0 16px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 20px; }
.info-list { display: grid; gap: 13px; margin: 0; }
.info-list div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.info-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: 12px; }
.info-list dd { margin: 0; text-align: right; font-size: 13px; }
.stream-list { display: grid; gap: 8px; }
.stream-choice { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.stream-choice[aria-pressed="true"] { border-color: rgba(103,199,255,.55); background: rgba(103,199,255,.1); }
.stream-choice small { display: block; color: var(--muted); margin-top: 3px; }
.stream-choice span:last-child { color: var(--ok); font-size: 11px; }
.detail-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1080px) {
  .tv-header { grid-template-columns: auto 1fr; }
  .header-status { display: none; }
  .watch-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .filter-heading, .verification-note, .sync-note { grid-column: 1/-1; }
  .filter-field { margin: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .tv-header { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px; }
  .tv-brand { display: none; }
  .header-search { width: 100%; }
  .video-shell { width: min(100% - 20px, 1520px); }
  .intro-panel { grid-template-columns: 1fr; padding-top: 44px; }
  .intro-copy h1 { font-size: clamp(54px, 20vw, 88px); }
  .catalog-stats { gap: 22px; flex-wrap: wrap; }
  .featured-stack { display: none; }
  .filter-rail { grid-template-columns: 1fr; }
  .filter-heading, .verification-note, .sync-note { grid-column: auto; }
  .catalog-heading, .player-caption, .tv-footer { align-items: flex-start; flex-direction: column; }
  .catalog-heading { display: grid; }
  .catalog-heading > p { white-space: normal; }
  .channel-page-link { align-self: stretch; text-align: center; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 12px; }
  .channel-title-row { grid-template-columns: auto minmax(0,1fr); gap: 8px; }
  .channel-flag { width: 28px; height: 28px; font-size: 17px; }
  .channel-name { font-size: 14px; }
  .channel-meta { font-size: 10px; }
  .tv-footer p { text-align: left; }
  .detail-title-row { align-items: flex-start; }
  .detail-logo { width: 74px; height: 58px; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .tv-player media-volume-range, .tv-player media-time-display { display: none; }
}
@media (max-width: 420px) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .intro-copy h1 { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 760px) {
  .site-rail { inset: auto 0 0 0; width: auto; height: 68px; flex-direction: row; justify-content: space-around; gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
  .site-rail a { grid-template-columns: 1fr; justify-items: center; gap: 2px; min-width: 0; min-height: 52px; padding: 3px 9px; font-size: 10px; }
  .site-rail-icon { width: 28px; height: 28px; background: transparent; font-size: 17px; }
  .tv-header, .video-shell, .channel-detail-shell, .tv-footer { margin-left: 0; }
  .video-shell, .channel-detail-shell { width: min(100% - 20px, 1520px); margin-left: auto; margin-right: auto; }
  .tv-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Catalog-only homepage */
.video-shell { padding-top: 42px; padding-bottom: 90px; }
.catalog-section { width: 100%; }
.catalog-heading h1 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(28px, 4vw, 45px); letter-spacing: -.055em; }
.channel-flag { padding: 0; }
.channel-flag img { width: 100%; height: 100%; object-fit: cover; }
.channel-meta { flex-wrap: wrap; }
@media (max-width: 760px) {
  .video-shell { padding-top: 24px; padding-bottom: 110px; }
}

@media (max-width: 760px) {
  :root { --rail-width: 0px; }
  body[data-rail-pinned="true"], body[data-rail-pinned="false"] { --rail-width: 0px; }
  body[data-rail-pinned="false"] .site-rail, body[data-rail-pinned="false"] .site-rail:hover { width: auto; box-shadow: none; }
  body[data-rail-pinned="false"] .rail-label { opacity: 1; pointer-events: auto; }
  .site-rail { inset: auto 0 0 0; width: auto; height: 68px; flex-direction: row; align-items: center; justify-content: space-around; gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
  .rail-brand, .rail-toggle { display: none; }
  .rail-navigation { display: contents; }
  .rail-navigation a { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 2px; width: auto; min-width: 0; min-height: 52px; padding: 3px 9px; font-size: 10px; }
  .rail-navigation .rail-label { opacity: 1; padding-right: 0; }
  .site-rail-icon { width: 28px; height: 28px; background: transparent; font-size: 17px; }
  .tv-header, .video-shell, .channel-detail-shell, .tv-footer { margin-left: 0; }
  .video-shell, .channel-detail-shell { width: 100%; padding-left: 10px; padding-right: 10px; }
}


/* Taxonomy directories and player identity icons */
.taxonomy-shell { padding-top: clamp(36px, 6vw, 72px); }
.taxonomy-section { max-width: none; }
.taxonomy-section h1 { margin: 0 0 28px; font-size: clamp(42px, 7vw, 82px); line-height: .95; letter-spacing: -.06em; }
.taxonomy-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.taxonomy-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; }
.taxonomy-list a:hover, .taxonomy-list a:focus-visible { border-color: var(--accent); }
.taxonomy-list a:hover b, .taxonomy-list a:focus-visible b { color: var(--accent); }
.taxonomy-list b { font-size: 15px; font-weight: 650; white-space: nowrap; }
.taxonomy-list small { color: var(--muted); font-size: 12px; }
.detail-player-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); }
.caption-channel-logo, .caption-country-flag, .caption-site-icon, .caption-site-icon img { width: 24px; height: 24px; flex: none; }
.caption-channel-logo, .caption-site-icon img { object-fit: contain; }
.caption-country-flag { display: grid; place-items: center; font-size: 21px; line-height: 1; }
.caption-site-icon { display: inline-grid; place-items: center; text-decoration: none; }
.channel-identity-icons { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.channel-mini-logo, .channel-favicon, .channel-flag { width: 24px; height: 24px; flex: none; }
.channel-mini-logo, .channel-favicon { object-fit: contain; background: transparent; border: 0; }
@media (max-width: 760px) { .taxonomy-list { gap: 8px; } .taxonomy-list a { min-height: 36px; padding: 7px 11px; } }


/* Keyboard focus stays visible on every interactive element (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.rail-navigation a:focus-visible,
.rail-toggle:focus-visible,
.featured-channel:focus-visible,
.player-start-button:focus-visible,
.detail-start-button:focus-visible,
.channel-card-link:focus-visible,
.taxonomy-list a:focus-visible,
.load-more:focus-visible,
.channel-page-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* The search wrapper already draws a focus ring around the whole field. */
.header-search input:focus-visible { outline: none; }


/* Vidstack player: Hromly accent mapped onto the layout tokens. */
.detail-player { position: relative; }
media-player.tv-player { --video-brand: var(--accent); --media-brand: var(--accent); --media-focus-ring-color: var(--accent); display: block; width: 100%; border-radius: var(--radius-xl); overflow: hidden; background: #05070b; }
media-player.tv-player[data-fullscreen] { border-radius: 0; }
.vds-poster { object-fit: cover; }

.player-notice { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 9px; width: min(420px, 86%); padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(8,11,18,.93); backdrop-filter: blur(14px); text-align: center; }
.player-notice[hidden] { display: none; }
.player-notice b { font-size: 16px; }
.player-notice span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.player-notice-retry { margin-top: 4px; border: 1px solid var(--line-strong); border-radius: 11px; padding: 9px 18px; background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.player-notice-retry:hover { border-color: var(--accent); }

/* Active filter, shown right under the catalog heading. */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 650; }
.filter-chip a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: 15px; line-height: 1; text-decoration: none; }
.filter-chip a:hover { background: var(--accent); color: #07111b; }

/* Favourites: heart on the card, shelf above the catalog. */
.channel-card { position: relative; }
.fav-button { position: absolute; z-index: 3; right: 10px; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,11,18,.55); backdrop-filter: blur(8px); color: rgba(255,255,255,.72); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .16s ease, color .16s ease, transform .16s ease; }
.channel-card:hover .fav-button, .fav-button:focus-visible, .fav-button[aria-pressed="true"] { opacity: 1; }
.fav-button:hover { transform: scale(1.08); color: #fff; }
.fav-button[aria-pressed="true"] { color: var(--live); border-color: rgba(255,91,110,.5); }

.fav-shelf { display: grid; gap: 26px; padding-bottom: 30px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.fav-shelf[hidden] { display: none; }
.shelf-title { margin: 0 0 14px; font-size: 19px; letter-spacing: -.02em; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 214px; justify-content: start; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.shelf-row .channel-card-link { gap: 9px; }
.shelf-row .channel-name { font-size: 14px; }
@media (max-width: 760px) { .shelf-row { grid-auto-columns: 158px; } }


/* Rail icons are a drawn set, not typographic glyphs standing in for icons. */
.site-rail-icon svg { width: 19px; height: 19px; display: block; }
.rail-navigation a, .rail-toggle { position: relative; }
.rail-navigation a.is-active { color: var(--text); }
.rail-navigation a.is-active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rail-count { justify-self: start; margin-left: -8px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.rail-favourites[hidden] { display: none; }
.rail-toggle .site-rail-icon svg { transition: transform .26s cubic-bezier(.23,1,.32,1); }
body[data-rail-pinned="true"] .rail-toggle .site-rail-icon svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .site-rail, .rail-brand-name, .rail-label, .rail-toggle .site-rail-icon svg { transition: none !important; }
}

/* Similar channels, shown over the player when the viewer pauses. */
.player-similar { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px 76px; background: linear-gradient(to top, rgba(5,7,11,.94) 42%, rgba(5,7,11,.55) 78%, rgba(5,7,11,.25)); pointer-events: none; }
.player-similar[hidden] { display: none; }
.player-similar-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--soft); }
.player-similar-grid { pointer-events: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 150px; justify-content: start; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.player-similar-grid .channel-card-link { gap: 7px; }
.player-similar-grid .channel-name { font-size: 12.5px; }
.player-similar-grid .channel-meta, .player-similar-grid .fav-button { display: none; }
@media (max-width: 760px) { .player-similar { padding: 12px 12px 62px; } .player-similar-grid { grid-auto-columns: 122px; } }

/* Shelf heading gets a quiet link to the full slice. */
.shelf-title { display: flex; align-items: baseline; gap: 12px; }
.shelf-more { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.shelf-more:hover { color: var(--accent); }
.shelf-row-cards .channel-meta { font-size: 10.5px; }

/* Tally light: how recently the verifier saw this stream. Red is the
   broadcast-gallery signal for "on air", which is exactly what it means here. */
.tally { position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; border-radius: 4px; background: rgba(4,6,10,.72); backdrop-filter: blur(6px); font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--muted); opacity: 0; transition: opacity .16s ease; }
.channel-card:hover .tally, .channel-preview:hover .tally { opacity: 1; }
.tally i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: #55606f; }
.tally-fresh { color: #ff8a84; opacity: 1; }
.tally-fresh i { background: var(--live); box-shadow: 0 0 7px rgba(255,91,110,.8); }
.tally-recent { color: #f0b463; }
.tally-recent i { background: #f0a13a; }

dd.checked-fresh { color: var(--live); }
dd.checked-recent { color: #f0b463; }

.player-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ghost-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: var(--soft); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .16s ease, color .16s ease, transform .16s cubic-bezier(.23,1,.32,1); }
.ghost-button:hover { border-color: var(--accent); color: var(--text); }
.ghost-button:active { transform: scale(.97); }
.ghost-button[data-done="1"] { border-color: rgba(74,222,128,.45); color: var(--ok); cursor: default; }

/* Filter bar: a dense control strip, deliberately tighter than the airy grid
   below it, so the eye reads it as chrome rather than content. */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; margin: 20px 0 22px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filter-cell { display: grid; gap: 5px; min-width: 0; }
.filter-cell label { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.filter-cell select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 11px; background: var(--surface-2) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a5ba' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center/15px; color: var(--text); font-size: 13.5px; appearance: none; cursor: pointer; }
.filter-cell select:hover { border-color: var(--line-strong); }
.filter-cell select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-cell-sort select { color: var(--accent); font-weight: 650; }
.filter-apply { min-width: 0; margin: 0; }
@media (max-width: 760px) { .filter-bar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 11px; } }

/* ---- The one player ------------------------------------------------------
   Fixed at all times: inline mode snaps it over the channel page's slot,
   docked mode parks it in the corner while the viewer keeps browsing. */
.hplayer { position: fixed; z-index: 90; display: grid; background: #05070b; border: 1px solid var(--line); overflow: hidden; transition: left .28s cubic-bezier(.23,1,.32,1), top .28s cubic-bezier(.23,1,.32,1), width .28s cubic-bezier(.23,1,.32,1), height .28s cubic-bezier(.23,1,.32,1), border-radius .28s ease, box-shadow .28s ease; }
.hplayer[hidden] { display: none; }
.hplayer media-player { width: 100%; height: 100%; --video-brand: var(--accent); --media-brand: var(--accent); --media-focus-ring-color: var(--accent); }

.hplayer.is-inline { left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.hplayer.is-docked { left: auto; right: 22px; top: auto; bottom: 22px; width: 340px; height: 191px; border-radius: 16px; box-shadow: 0 26px 70px rgba(0,0,0,.6); }
.hplayer.is-docked media-video-layout { display: none; }

.hplayer-start { position: absolute; z-index: 5; left: 50%; top: 50%; --shift-x: -50%; --shift-y: -50%; filter: drop-shadow(0 8px 26px rgba(0,0,0,.58)); }
.hplayer-start[hidden] { display: none; }

/* The strap only earns its space in docked mode; inline the layout owns the chrome. */
.hplayer-bar { position: absolute; z-index: 7; inset: auto 0 0 0; display: none; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 4px; padding: 7px 8px; background: linear-gradient(to top, rgba(5,7,11,.96), rgba(5,7,11,.6) 70%, transparent); }
.hplayer.is-docked .hplayer-bar { display: grid; }
.hplayer-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--soft); cursor: pointer; transition: color .16s ease, background .16s ease; }
.hplayer-btn svg { width: 17px; height: 17px; }
.hplayer-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #fff; }
.hplayer-btn:disabled { opacity: .3; cursor: default; }
.hplayer-title { min-width: 0; color: var(--text); font-size: 12.5px; font-weight: 650; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hplayer-title:hover { color: var(--accent); }

/* Placeholder the inline player snaps to. */
.player-slot { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl); background: #05070b; border: 1px solid var(--line); }

@media (max-width: 760px) {
  .hplayer.is-docked { right: 10px; left: 10px; width: auto; bottom: 78px; height: 0; padding-top: 56.25%; }
  .hplayer.is-docked .hplayer-bar { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hplayer { transition: none; } }

/* On a channel page the zap controls belong on the player's edges — that is
   where "next channel" lives on any remote — and they must not fight the
   control bar along the bottom. */
.hplayer.is-inline .hplayer-bar { display: contents; }
.hplayer.is-inline .hplayer-title, .hplayer.is-inline .hplayer-close { display: none; }
.hplayer.is-inline #hplayer-prev, .hplayer.is-inline #hplayer-next {
  position: absolute; z-index: 8; top: 50%; transform: translateY(-50%);
  width: 46px; height: 66px; border-radius: 12px;
  background: rgba(5,7,11,.62); backdrop-filter: blur(8px); color: #fff;
  opacity: 0; transition: opacity .18s ease, background .18s ease;
}
.hplayer.is-inline #hplayer-prev { left: 12px; }
.hplayer.is-inline #hplayer-next { right: 12px; }
.hplayer.is-inline #hplayer-prev svg, .hplayer.is-inline #hplayer-next svg { width: 22px; height: 22px; }
.hplayer.is-inline:hover #hplayer-prev, .hplayer.is-inline:hover #hplayer-next,
.hplayer.is-inline #hplayer-prev:focus-visible, .hplayer.is-inline #hplayer-next:focus-visible { opacity: 1; }
.hplayer.is-inline #hplayer-prev:hover, .hplayer.is-inline #hplayer-next:hover { background: rgba(5,7,11,.85); }
.hplayer.is-inline #hplayer-prev:disabled, .hplayer.is-inline #hplayer-next:disabled { display: none; }
@media (max-width: 760px) {
  .hplayer.is-inline #hplayer-prev, .hplayer.is-inline #hplayer-next { width: 38px; height: 54px; opacity: 1; background: rgba(5,7,11,.5); }
}


/* One flag component: an SVG served from our own host, in the directories,
   on the cards and on the channel page alike. */
.inline-flag, .taxonomy-flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.taxonomy-list a { gap: 9px; }

/* Shelves scroll inside themselves. Grid items default to min-width:auto, so
   the row's intrinsic width was pushing the whole page sideways on phones. */
.fav-shelf, .fav-shelf > *, .shelf { min-width: 0; }
.shelf { display: grid; }
.shelf-row { max-width: 100%; }

/* Similar channels fill the sidebar the audit found two-thirds empty, and
   give the channel page its first real onward path. */
.similar-card { margin-top: 16px; }
.similar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.similar-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 11px; align-items: center; padding: 6px; border-radius: 11px; text-decoration: none; transition: background .16s ease; }
.similar-list a:hover { background: rgba(255,255,255,.05); }
.similar-thumb { display: block; width: 72px; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: linear-gradient(145deg,#111827,#1e293b); }
.similar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.similar-copy { min-width: 0; display: grid; gap: 2px; }
.similar-copy b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-copy small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }

/* Error pages keep people inside the product instead of dumping them on a
   bare Django page with no way back. */
.error-page { max-width: 62ch; padding: clamp(48px, 9vw, 110px) 0 80px; display: grid; gap: 14px; }
.error-page h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.045em; }
.error-lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.error-actions .ghost-button { text-decoration: none; }

/* Editorial shelves on the front page. */
.shelf-block { display: grid; gap: 26px; padding-bottom: 30px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.shelf-block > * { min-width: 0; }

/* H-06: the search field was a 22px target on phones, half the 44px minimum. */
.header-search { min-height: 46px; }
.header-search input { min-height: 44px; }

/* H-04: keyboard users had to tab the whole rail on every page. */
.skip-link { position: absolute; z-index: 200; left: 12px; top: -60px; padding: 11px 18px; border-radius: 0 0 12px 12px; background: var(--accent); color: #07111b; font-weight: 700; text-decoration: none; transition: top .18s cubic-bezier(.23,1,.32,1); }
.skip-link:focus-visible { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* World map: the pleasant way into 122 countries. Blue carries "how many
   channels"; red stays reserved for on-air, so the two never compete. */
.world-map { margin: 0 0 34px; padding: 0; }
.world-map[hidden] { display: none; }
.world-map svg { width: 100%; height: auto; display: block; }
.world-stage > svg path { fill: #131a26; stroke: #0b0f16; stroke-width: .5; transition: fill .16s ease; }
.world-stage > svg path.is-empty { pointer-events: none; }
.world-stage > svg path.is-live { cursor: pointer; }
.world-stage > svg path.step-1 { fill: #1d3550; }
.world-stage > svg path.step-2 { fill: #245d86; }
.world-stage > svg path.step-3 { fill: #2e8bbd; }
.world-stage > svg path.step-4 { fill: var(--accent); }
.world-stage > svg path.is-live:hover, .world-stage > svg path.is-live:focus-visible { fill: #b8e6ff; outline: none; }
.world-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: 11.5px; }
.world-legend span { display: inline-flex; align-items: center; gap: 7px; }
.world-legend i { width: 13px; height: 13px; border-radius: 3px; }
.world-legend i.step-1 { background: #1d3550; }
.world-legend i.step-2 { background: #245d86; }
.world-legend i.step-3 { background: #2e8bbd; }
.world-legend i.step-4 { background: var(--accent); }
.world-legend a { margin-left: auto; color: var(--ink-3, var(--muted)); text-decoration: none; }
.world-legend a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .world-stage > svg path { transition: none; } }

/* The map is the way in, not the destination — it must not push the country
   list, which is the actual content, below the fold. */

.taxonomy-section h1 { margin-bottom: 18px; }
@media (max-width: 760px) { .world-map svg { max-height: 34vh; } }

/* Zoomable map: a fixed stage the SVG lives inside, so panning has somewhere
   to pan within and the page below never moves. */
.world-stage { position: relative; width: 100%; aspect-ratio: 1010 / 620; max-height: 56vh; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0a0e15; overflow: hidden; touch-action: none; }
.world-stage svg { width: 100%; height: 100%; max-height: none; display: block; cursor: grab; }
.world-stage svg:active { cursor: grabbing; }
.world-zoom { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: grid; gap: 6px; }
.world-zoom button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(8,11,18,.82); backdrop-filter: blur(8px); color: var(--soft); cursor: pointer; transition: color .16s ease, border-color .16s ease, transform .16s cubic-bezier(.23,1,.32,1); }
.world-zoom button svg { width: 17px; height: 17px; }
.world-zoom button:hover { color: var(--text); border-color: var(--accent); }
.world-zoom button:active { transform: scale(.94); }
@media (max-width: 760px) { .world-stage { max-height: 40vh; } .world-zoom { right: 8px; bottom: 8px; } }
