:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0f;
  color: #eef0f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(93, 77, 255, .16), transparent 32rem),
    radial-gradient(circle at 86% 48%, rgba(0, 214, 164, .08), transparent 28rem),
    #090b0f;
}

button, input { font: inherit; }

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

header { margin-bottom: 30px; }
.eyebrow {
  margin: 0 0 12px;
  color: #8c82ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: .98;
}

.intro { max-width: 650px; margin: 20px 0 0; color: #9399a6; line-height: 1.6; }
code { color: #bbb5ff; }

.card, .player-card, .log-card {
  border: 1px solid #252933;
  border-radius: 18px;
  background: rgba(18, 21, 27, .88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

.field { display: grid; gap: 9px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #c9cdd5; font-size: 13px; font-weight: 650; }
.field small { margin-left: 5px; color: #676e7b; font-size: 11px; font-weight: 500; }

input[type="url"], input[type="text"], select {
  width: 100%;
  border: 1px solid #303540;
  border-radius: 10px;
  outline: none;
  background: #0d1015;
  color: #f5f6f8;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #525865; }
input:focus, select:focus { border-color: #7469ff; box-shadow: 0 0 0 3px rgba(116, 105, 255, .15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777e8b 50%), linear-gradient(135deg, #777e8b 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-repeat: no-repeat; background-size: 5px 5px; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2px; }
.toggle { display: flex; align-items: center; gap: 10px; color: #aeb3bd; font-size: 13px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 36px; height: 20px; padding: 2px; border-radius: 99px; background: #363b47; transition: background .2s; }
.toggle span::after { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; content: ""; transition: transform .2s; }
.toggle input:checked + span { background: #695dff; }
.toggle input:checked + span::after { transform: translateX(16px); }

button {
  border: 0;
  border-radius: 10px;
  background: #766bff;
  color: white;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
button:hover:where(body[data-input-modality="mouse"] *) { background: #887fff; transform: translateY(-1px); }
button:active { transform: translateY(0); }
.secondary-button { align-self: end; border: 1px solid #3a3f4c; background: #252a34; padding: 12px 16px; }
.secondary-button:hover:where(body[data-input-modality="mouse"] *) { background: #303642; }

.sync-controls { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 16px; margin-bottom: 18px; padding: 20px 24px; }
.sync-heading { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; }
.section-kicker { margin: 0 0 3px; color: #7066ef; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.sync-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.sync-status { display: flex; align-items: center; gap: 8px; color: #747b88; font-size: 11px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: #555c68; }
.sync-status i[data-state="connected"] { background: #36d49b; box-shadow: 0 0 0 4px rgba(54, 212, 155, .1); }
.sync-status i[data-state="connecting"] { background: #f6b84a; }
.sync-status i[data-state="error"] { background: #ff5f6f; }
.sync-options { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; margin-top: -4px; }
.sync-help { margin: 0; color: #5e6572; font-size: 11px; }

.player-card { overflow: hidden; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #050608; }
video { display: block; width: 100%; height: 100%; background: #050608; }
.empty-state { position: absolute; inset: 0; display: grid; place-items: center; color: #555c68; font-size: 14px; pointer-events: none; }
.empty-state[hidden] { display: none; }

.status-row { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-top: 1px solid #20242c; color: #8d94a1; font-size: 12px; }
.status { display: flex; align-items: center; min-width: 0; gap: 9px; }
.status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #59606d; }
.status i[data-state="loading"] { background: #f6b84a; box-shadow: 0 0 0 4px rgba(246, 184, 74, .1); }
.status i[data-state="success"] { background: #36d49b; box-shadow: 0 0 0 4px rgba(54, 212, 155, .1); }
.status i[data-state="error"] { background: #ff5f6f; box-shadow: 0 0 0 4px rgba(255, 95, 111, .1); }
.stream-info { color: #c3c7ce; white-space: nowrap; }

.log-card { margin-top: 18px; overflow: hidden; }
.log-card summary { padding: 17px 20px; color: #b9bec7; font-size: 13px; font-weight: 650; cursor: pointer; user-select: none; }
.log-card summary span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 7px; border-radius: 99px; background: #292e38; color: #8e95a2; font-size: 10px; }
.log-toolbar { display: flex; justify-content: flex-end; border-top: 1px solid #222630; padding: 9px 14px; }
.log-toolbar button { background: transparent; color: #7e8592; padding: 5px 8px; font-size: 11px; }
.log-toolbar button:hover:where(body[data-input-modality="mouse"] *) { color: white; transform: none; }
#event-log { max-height: 230px; overflow: auto; margin: 0; padding: 0; list-style: none; border-top: 1px solid #222630; }
#event-log li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #1d2129; color: #aab0ba; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
#event-log time { color: #555d69; }
#event-log .error span { color: #ff7b88; }
#event-log .warning span { color: #f6bd5c; }
#event-log .success span { color: #55daa9; }
.note { margin: 18px 4px 0; color: #545b67; font-size: 11px; }

@media (max-width: 650px) {
  .shell { width: min(100% - 20px, 1080px); padding-top: 36px; }
  .controls { grid-template-columns: 1fr; padding: 18px; }
  .sync-controls { grid-template-columns: 1fr; padding: 18px; }
  .sync-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sync-options { align-items: flex-start; flex-direction: column; }
  .field-wide { grid-column: auto; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions button { width: 100%; }
  .status-row { min-height: 48px; }
}

[hidden] { display: none !important; }
input[type="password"], input[type="search"] {
  width: 100%; border: 1px solid #303540; border-radius: 10px;
  outline: none; background: #0d1015; color: #f5f6f8; padding: 13px 14px;
}
#catalog-status, #channel-count, #channel-page { color: #9399a6; font-size: 13px; }
#catalog-status[data-error="true"] { color: #ff7b88; }
.channel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.channel-button { display: flex; align-items: center; gap: 12px; text-align: left; background: #252a34; min-height: 66px; padding: 12px; }
.channel-button img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.channel-button span { overflow-wrap: anywhere; }
.channel-button[aria-pressed="true"] { outline: 2px solid #887fff; }
button:disabled { opacity: .45; cursor: default; transform: none; }

/* Vitrine de canais */
:root { background: #101010; }
body { background: radial-gradient(ellipse at 75% 8%, #361217 0, transparent 38rem), #101010; }
.shell { width: min(1440px, calc(100% - 80px)); padding-top: 0; }
.topbar { display: flex; align-items: center; gap: 36px; min-height: 86px; }
.brand { color: #e50914; text-decoration: none; font-size: 29px; font-weight: 900; letter-spacing: -.06em; }
.brand span { color: #fff; margin-left: 4px; }
.nav-live { color: #eee; font-size: 13px; }
#change-account { margin-left: auto; font-size: 12px; }
.hero { padding: 58px 0 48px; position: relative; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.04; }
.eyebrow { color: #f75a62; letter-spacing: .16em; }
.intro { color: #aaa; max-width: 460px; }
button { background: #e50914; }
button:hover:where(body[data-input-modality="mouse"] *) { background: #f52631; }
input:focus, select:focus { border-color: #e50914; box-shadow: 0 0 0 3px #e5091426; }
.card, .log-card { background: #181818; border-color: #303030; box-shadow: none; backdrop-filter: none; }
#channel-login { max-width: 660px; }
.catalog { margin-bottom: 36px; padding: 0; gap: 18px; }
.catalog > .field { max-width: 450px; }
#channel-count { margin: 0; }
.channel-list { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.channel-shelf { min-width: 0; }
.channel-shelf h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 14px; }
.channel-row { display: flex; gap: 14px; overflow-x: auto; padding: 5px 3px 16px; scroll-snap-type: x proximity; scrollbar-color: #444 #181818; scrollbar-width: thin; }
.channel-button { display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 0 0 220px; background: transparent; padding: 0; border-radius: 8px; scroll-snap-align: start; font-size: 14px; font-weight: 600; transition: transform .2s; }
.channel-button:hover:where(body[data-input-modality="mouse"] *) { background: transparent; transform: translateY(-4px); }
.channel-button > span { padding: 0 3px 8px; }
.channel-artwork { position: relative; display: grid; place-items: center; aspect-ratio: 16/10; background: linear-gradient(135deg, #32343e, #1b1d25); border: 1px solid #ffffff12; border-radius: 8px; overflow: hidden; }
.channel-button:nth-child(3n+2) .channel-artwork { background: linear-gradient(135deg, #3e272b, #20171b); }
.channel-button:nth-child(3n) .channel-artwork { background: linear-gradient(135deg, #233b3b, #172025); }
.channel-initials { color: #ffffff35; font-size: 42px; font-weight: 900; letter-spacing: -.05em; }
.channel-button img { position: absolute; width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 5px 12px #0005); }
.live-badge { position: absolute; bottom: 10px; left: 10px; color: white; background: #080808b3; padding: 5px 7px; border-radius: 4px; font-size: 9px; letter-spacing: .08em; }
.channel-button[aria-pressed="true"] { outline-color: #e50914; outline-offset: 4px; }
.secondary-button { background: #282828; border-color: #404040; }
.secondary-button:hover:where(body[data-input-modality="mouse"] *) { background: #3b3b3b; }
.advanced-settings { margin-top: 24px; }
.advanced-settings > summary { cursor: pointer; color: #aaa; padding: 18px 0; font-size: 13px; }
.log-card { box-shadow: none; }
.catalog-ready .hero { padding: 28px 0 38px; }
.catalog-ready .hero h1 { font-size: clamp(38px, 5vw, 60px); }
.player-open { overflow: hidden; }
#player-screen { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050608; color: #fff; }
#player-screen::backdrop { background: #000; }
#player-screen .player-card { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0; background: #050608; }
#player-surface:fullscreen { width: 100%; height: 100%; margin: 0; }
.player-toolbar { display: flex; align-items: center; gap: 20px; flex: none; padding: max(14px, env(safe-area-inset-top)) 24px 14px; background: #111; }
.player-toolbar h2 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-toolbar button { flex: none; font-size: 12px; }
#player-screen .video-wrap { flex: 1; min-height: 0; aspect-ratio: auto; }
#player-screen video { object-fit: contain; }
#player-screen .status-row { flex: none; padding-bottom: env(safe-area-inset-bottom); }
button:focus-visible, a:focus-visible, summary:focus-visible, .channel-row:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); padding-top: 0; }
  .topbar { min-height: 72px; gap: 14px; flex-wrap: wrap; }
  .brand { font-size: 24px; }
  .nav-live { font-size: 11px; }
  #change-account { padding: 9px; }
  .hero { padding: 32px 0; }
  .catalog { padding: 0; }
  .channel-button { flex-basis: 170px; }
  .channel-shelf h2 { font-size: 18px; }
  .player-toolbar { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 10px; flex-wrap: wrap; }
  .player-toolbar h2 { order: 3; flex-basis: 100%; font-size: 14px; }
  #player-fullscreen { margin-left: auto; }
}

.catalog { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 32px; }
.category-sidebar { position: sticky; top: 20px; min-width: 0; }
.category-sidebar h2 { font-size: 15px; color: #aaa; margin: 0 0 16px; }
#channel-categories { display: flex; flex-direction: column; gap: 5px; }
.category-button { text-align: left; background: transparent; color: #aaa; padding: 12px 14px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.category-button:hover:where(body[data-input-modality="mouse"] *) { background: #242424; color: #fff; transform: none; }
.category-button[aria-pressed="true"] { background: #e509141c; color: #fff; box-shadow: inset 3px 0 #e50914; }
.catalog-content { display: grid; min-width: 0; gap: 20px; }
.catalog-content > .field { max-width: 450px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 14px; padding: 5px 3px 16px; }
.channel-grid .channel-button { min-width: 0; width: 100%; }
@media (max-width: 650px) {
  .catalog { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
  .category-sidebar { position: static; }
  .category-button { padding: 10px; font-size: 12px; }
  .channel-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-content .actions { gap: 10px; }
}

.sync-controls { grid-template-columns: minmax(180px, 1fr) auto; }
.room-actions { display: flex; gap: 10px; align-items: center; }
.sync-heading h2 { font-size: 19px; }
.sync-controls .sync-help { max-width: 550px; color: #929292; line-height: 1.5; }
@media (max-width: 650px) {
  .sync-controls { grid-template-columns: minmax(0, 1fr); }
  .room-actions { flex-wrap: wrap; }
  .room-actions button { flex: 1; }
}

.catalog-tabs { display: flex; gap: 6px; }
.catalog-tabs button { background: transparent; color: #aaa; padding: 10px 14px; font-size: 13px; }
.catalog-tabs button[aria-pressed="true"] { background: #e509141c; color: #fff; box-shadow: inset 0 -2px #e50914; }
.catalog-tabs button:hover:where(body[data-input-modality="mouse"] *) { color: #fff; transform: none; background: #242424; }
.catalog[data-mode="movie"] .channel-artwork, .catalog[data-mode="series"] .channel-artwork { aspect-ratio: 2/3; }
.catalog[data-mode="movie"] .channel-button img, .catalog[data-mode="series"] .channel-button img { width: 100%; height: 100%; object-fit: cover; }
#series-details { width: min(720px, calc(100% - 32px)); max-height: 85dvh; padding: 24px; background: #181818; color: #fff; border: 1px solid #333; border-radius: 16px; }
#series-details::backdrop { background: #000b; }
.series-heading { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.series-heading h2 { margin: 0; font-size: 24px; }
#series-status { color: #aaa; font-size: 13px; }
.episode-list { display: grid; gap: 10px; margin-top: 20px; }
.episode-button { text-align: left; font-size: 14px; line-height: 1.5; }
@media (max-width: 650px) { .catalog-tabs { order: 3; width: 100%; padding-bottom: 12px; } }

.player-fit-control { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: #aaa; }
.player-fit-control select { width: auto; max-width: 235px; padding: 10px 30px 10px 12px; font-size: 12px; }
#player-screen video { position: absolute; inset: 0; width: 100%; height: 100%; }
#player-screen video[data-fit="contain"] { object-fit: contain; }
#player-screen video[data-fit="cover"] { object-fit: cover; }
#player-screen video[data-fit="fill"] { object-fit: fill; }
@media (max-width: 900px) {
  .player-toolbar { flex-wrap: wrap; }
  .player-fit-control { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .player-fit-control { order: 4; width: 100%; }
  .player-fit-control select { flex: 1; max-width: none; }
}

.watch-history { margin: 28px 0 36px; }
.watch-history h2 { font-size: 21px; }
.history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.history-button { display: flex; flex-direction: column; gap: 8px; text-align: left; overflow-wrap: anywhere; }
.history-button small { color: #aaa; font-size: 12px; font-weight: 400; }

.next-episode-card { position: absolute; right: 24px; bottom: 80px; width: min(380px, calc(100% - 32px)); padding: 20px; border: 1px solid #ffffff26; border-radius: 12px; background: #151515ed; box-shadow: 0 12px 40px #0008; display: grid; gap: 12px; z-index: 2; }
.next-episode-card p { margin: 0; color: #ff6870; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.next-episode-card strong { font-size: 16px; }
#next-episode-countdown { color: #bbb; font-size: 13px; }
.next-episode-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.next-episode-card button { font-size: 12px; padding: 10px 12px; }
@media (max-width: 650px) { .next-episode-card { right: 16px; bottom: 65px; padding: 14px; } }

.topbar { gap: 22px; flex-wrap: wrap; }
.catalog-tabs { flex-wrap: wrap; }
#tab-favorites { color: #ffd783; }
#favorites-count { display: inline-grid; place-items: center; min-width: 20px; padding: 2px 5px; border-radius: 12px; background: #ffffff12; font-size: 11px; }
.library-notice { color: #e1c894; border: 1px solid #7b6235; background: #342719; border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.hub-visible .hero, .hub-visible .sync-controls, .hub-visible .watch-history, .hub-visible .advanced-settings { display: none; }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; }
.catalog-filters .field:first-child { flex: 1; min-width: 180px; }
.catalog-filters select { min-width: 180px; }
.favorites-category { color: #ffd783; background: #e0ab2612; margin-bottom: 8px; border: 1px solid #e0ab262b; }
.channel-item { position: relative; flex: 0 0 200px; min-width: 0; transition: transform .2s; scroll-snap-align: start; }
.channel-item .channel-button { width: 100%; flex: none; }
.channel-item:hover { transform: translateY(-4px); }
.channel-item .channel-button:hover, .channel-item .channel-button:active { transform: none; }
.channel-grid .channel-item { width: 100%; }
.favorite-toggle { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; background: #111d; border: 1px solid #ffffff2b; border-radius: 50%; width: 34px; height: 34px; padding: 0; font-size: 0; line-height: 1; color: #ffd783; }
.favorite-toggle::before { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; pointer-events: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 14.78,8.63 21,9.54 16.5,13.93 17.56,20.13 12,17.2 6.44,20.13 7.5,13.93 3,9.54 9.22,8.63' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.favorite-toggle[aria-pressed="true"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,3 14.78,8.63 21,9.54 16.5,13.93 17.56,20.13 12,17.2 6.44,20.13 7.5,13.93 3,9.54 9.22,8.63' fill='white'/%3E%3C/svg%3E"); }
.favorite-toggle:hover, .favorite-toggle:active { background: #343434; transform: none; }
.channel-quality-link { width: 100%; padding: 8px 6px; margin-top: 5px; background: #ffffff09; font-size: 11px; color: #bbb; }
.channel-now { position: absolute; bottom: 44px; left: 8px; right: 8px; display: grid; gap: 7px; padding: 14px; border: 1px solid #ffffff2b; border-radius: 10px; background: #141414f5; box-shadow: 0 8px 30px #0008; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2; transition: opacity .15s; }
.channel-item:hover .channel-now, .channel-item:focus-within .channel-now { opacity: 1; visibility: visible; }
.channel-now small { color: #ff747c; font-size: 9px; letter-spacing: .1em; }
.channel-now strong { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.channel-now span { color: #aaa; font-size: 11px; }
.channel-item[data-kind="movie"] .channel-artwork, .channel-item[data-kind="series"] .channel-artwork { aspect-ratio: 2/3; }
.channel-item[data-kind="movie"] img, .channel-item[data-kind="series"] img { width: 100%; height: 100%; object-fit: cover; }
.series-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.episode-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.episode-row:has(input:checked) .episode-button { color: #99ddb4; }
.episode-watched { display: flex; align-items: center; gap: 7px; color: #aaa; font-size: 12px; cursor: pointer; }
.episode-watched input { accent-color: #e50914; width: 17px; height: 17px; }
#channel-quality-dialog { width: min(600px, calc(100% - 32px)); max-height: 85dvh; padding: 24px; background: #181818; color: #fff; border: 1px solid #333; border-radius: 16px; }
#channel-quality-dialog::backdrop { background: #000b; }
#channel-quality-dialog p { color: #aaa; font-size: 13px; line-height: 1.6; }
.quality-options { display: grid; gap: 10px; margin-top: 20px; }
.quality-options button { text-align: left; }
.quality-options button[aria-pressed="true"] { border-color: #e50914; }
.player-toolbar { flex-wrap: wrap; }
#episode-controls { position: relative; z-index: 5; }
#episode-controls .episode-controls { pointer-events: auto; }
button:focus-visible { outline: 2px solid #f89da2; outline-offset: 3px; }
@media (max-width: 900px) { .catalog-tabs { order: 3; width: 100%; padding-bottom: 12px; } }
@media (max-width: 650px) { .channel-item { flex-basis: 170px; } .catalog { grid-template-columns: 1fr; } .category-sidebar { position: static; } #channel-categories { flex-direction: row; overflow: auto; max-height: 100px; } .category-button { flex: none; max-width: 170px; } .favorites-category { margin: 0; } .catalog-filters > .field { width: 100%; } .episode-row { gap: 8px; } .episode-watched span { display: none; } }
