: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-width: 232px;
  --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-width); 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 .22s ease; overflow: hidden; }
.rail-brand, .rail-navigation a, .rail-toggle { display: grid; grid-template-columns: 68px 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; grid-template-columns: minmax(0,1fr) 68px; 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); outline: none; }
.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-collapsed="true"] { --rail-width: 68px; }
body[data-rail-collapsed="true"] .rail-label { opacity: 0; pointer-events: none; }
body[data-rail-collapsed="true"] .rail-brand { grid-template-columns: 68px; }
body[data-rail-collapsed="true"] .rail-brand-name { display: none; }
body[data-rail-collapsed="true"] .rail-brand-mark { grid-column: 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; outline: none; }
.featured-logo { display: grid; place-items: center; overflow: hidden; background: #fff; 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 { 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; transition: transform .18s ease, 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 { transform: scale(1.06); outline: none; }
.player-start-button:disabled { cursor: default; }
.detail-start-button { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 26px rgba(0,0,0,.58)); }
.detail-start-button:hover, .detail-start-button:focus-visible { transform: translate(-50%, -50%) scale(1.06); }
.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(3, minmax(0, 1fr)); gap: 24px 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: 36px 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; overflow: hidden; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.channel-meta { display: flex; gap: 7px; padding-left: 46px; 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: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: 96px; height: 72px; overflow: hidden; border-radius: 16px; background: #fff; 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(2, minmax(0,1fr)); gap: 20px 10px; }
  .channel-title-row { grid-template-columns: 30px minmax(0,1fr); gap: 8px; }
  .channel-flag { width: 28px; height: 28px; font-size: 17px; }
  .channel-name { font-size: 14px; }
  .channel-meta { padding-left: 38px; 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: 1fr; }
  .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-collapsed="true"] { --rail-width: 0px; }
  .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; } }
