:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #eef2ff;
  background: #070b16;
  --ink: #eef2ff;
  --muted: #98a4bf;
  --line: #ffffff12;
  --accent: #7398ff;
  --panel: #111827;
  --blue: linear-gradient(110deg, #3668ee, #72a2ff);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0%, #1b2a4855, transparent 55%), #070b16; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #a4bcff; outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #486bd5; color: #fff; }
a { color: inherit; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.topbar { display: flex; align-items: center; gap: 30px; max-width: 1700px; min-height: 100px; padding: 20px 4%; margin: auto; }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; flex: none; }
.brand-name { font-size: 28px; font-weight: 750; letter-spacing: -1.6px; }
.brand-region { display: inline-block; font-size: 8px; font-weight: 600; letter-spacing: 2px; margin-left: 9px; color: #8d9bb9; vertical-align: middle; }
.browse-nav { display: flex; gap: 5px; margin: auto; padding: 5px; background: #ffffff05; border: 1px solid #ffffff0c; border-radius: 40px; }
.browse-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 0; border-radius: 25px; color: #9aa7c2; font-size: 12px; padding: 12px 18px; transition: background .2s, color .2s; }
.browse-nav .icon { width: 16px; height: 16px; }
.browse-nav button.active { color: #fff; background: #ffffff12; box-shadow: inset 0 1px 0 #ffffff14; }
.browse-nav button:hover { color: #fff; background: #ffffff0a; }
.profile-tools { display: flex; align-items: center; gap: 10px; }
.profile-tools label { display: flex; flex-direction: column; gap: 4px; color: #8e9bb7; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.profile-tools select { background: transparent; border: 0; padding: 2px 14px 3px 0; color: #e1e8fc; font-size: 12px; max-width: 115px; letter-spacing: 0; text-transform: none; }
select option { background: #121b2c; color: #eef2ff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 12px 22px; border: 1px solid #96b7ff77; border-radius: 30px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff2b, 0 4px 18px #1e4fb62a; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); background: linear-gradient(110deg, #487bff, #8cb6ff); }
.button.quiet { background: #ffffff0a; color: #d4ddf3; border-color: #ffffff14; box-shadow: inset 0 1px 0 #ffffff05; }
.button.quiet:hover { background: #ffffff14; }
.topbar .button.quiet { width: 39px; height: 39px; min-height: 0; padding: 9px; border-radius: 50%; }
.topbar .button span { display: none; }
.topbar #refresh { background: transparent; border: 0; }
.eyebrow { margin: 0; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 2px; line-height: 1.5; }
.count { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 30px; padding: 6px 10px; color: #aebcda; border: 1px solid #ffffff12; border-radius: 20px; background: #ffffff04; font-size: 10px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tabs { display: flex; align-items: center; gap: 7px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 25px; background: transparent; padding: 10px 17px; color: #8f9bb7; font-size: 12px; }
.tab.active { background: #ffffff0d; border-color: #ffffff13; color: #edf2ff; }
.tab .icon { width: 13px; height: 13px; }
.tab:hover { color: #fff; }
.vod-library { max-width: 1500px; margin: auto; padding: 25px 4% 65px; min-height: calc(100vh - 180px); }
.vod-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.vod-heading h1 { font-size: 28px; letter-spacing: -.9px; margin: 8px 0 0; font-weight: 550; }
.vod-heading .eyebrow { font-size: 8px; color: #8393b5; }
.section-intro { color: #8390ab; font-size: 12px; margin: 9px 0 0; }
/* La portada destacada usa imágenes y títulos reales del catálogo. */
.featured { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 48% 52%; align-items: center; min-height: 455px; padding: 30px 4% 35px; margin-bottom: 35px; border: 1px solid #9aafdf20; border-radius: 28px; background: #0d1423; box-shadow: 0 25px 60px -25px #0009, inset 0 1px 0 #ffffff0a; }
.featured-backdrop { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .21; filter: blur(20px) saturate(.7); transform: scale(1.13); }
.featured:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a122522, #090f1eaa 64%, #090e1dda), linear-gradient(0deg, #080e1de6, transparent 85%); z-index: -2; }
.feature-stage { position: relative; width: 100%; max-width: 540px; height: 385px; margin: auto; perspective: 900px; }
.feature-cover { position: absolute; padding: 0; overflow: hidden; border: 1px solid #ffffff35; background: linear-gradient(130deg, #263657, #0f172b); box-shadow: 0 20px 45px #0008; border-radius: 20px; }
.feature-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main-cover { z-index: 3; width: 232px; height: 348px; top: 13px; left: 50%; transform: translateX(-50%) rotate(-2deg); border: 2px solid #9db9ffb3; box-shadow: 0 0 0 5px #8eadff0c, 0 20px 45px #000a; transition: transform .25s; }
.main-cover:hover { transform: translateX(-50%) rotate(0deg) translateY(-4px); }
.side-cover { width: 176px; height: 282px; top: 46px; opacity: .65; transition: opacity .2s, transform .2s; }
.side-cover:hover { opacity: 1; }
.left-cover { left: 1%; transform: rotateY(20deg) rotate(-11deg); }
.right-cover { right: 1%; transform: rotateY(-20deg) rotate(11deg); }
.side-cover>span { position: absolute; inset: auto 0 0; padding: 30px 10px 12px; background: linear-gradient(transparent, #030817eb); color: #ced8f4; font-size: 10px; text-align: left; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cover-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px 10px 12px; background: linear-gradient(transparent, #071127ee); font-size: 8px; letter-spacing: 2.5px; color: #e0eaff; text-align: center; }
.feature-copy { position: relative; padding: 15px 0 15px 35px; max-width: 610px; }
.feature-copy>.eyebrow { color: #b3c8fb; font-size: 9px; }
.feature-copy h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(31px, 3.2vw, 49px); letter-spacing: -1.4px; line-height: 1.12; margin: 16px 0; overflow-wrap: anywhere; text-wrap: balance; }
.feature-meta { color: #bcc6dd; font-size: 11px; line-height: 1.8; margin: 0; }
.feature-description { color: #99a8c3; font-size: 13px; line-height: 1.9; max-width: 430px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 18px 0 24px; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.feature-actions .favorite-button { background: #ffffff08; border-color: #ffffff1a; }
.feature-navigation { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.round-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ffffff15; color: #b0c3e7; background: #ffffff05; font-size: 14px; }
.round-button:hover { background: #ffffff12; }
.feature-dots { display: flex; align-items: center; gap: 2px; }
.feature-dot { position: relative; width: 23px; height: 28px; padding: 0; background: none; border: 0; }
.feature-dot:after { content: ""; position: absolute; inset: 10px 7px; background: #ffffff1c; border: 1px solid #ffffff19; border-radius: 20px; transition: background .2s; }
.feature-dot[aria-pressed="true"]:after { background: #88a9ff; border-color: #bbceff; box-shadow: 0 0 12px #5e88ff66; }
.vod-tabs { margin-bottom: 21px; }
.vod-filters { display: flex; align-items: end; gap: 14px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.vod-filters label, .vod-detail-copy label, .profile-dialog label { display: flex; flex-direction: column; gap: 9px; color: #8f9dbb; font-size: 10px; }
.vod-filters input, .vod-filters select, .vod-detail-copy select, .profile-dialog input { width: 100%; min-width: 0; min-height: 44px; padding: 11px 16px; border: 1px solid #ffffff12; background: #ffffff04; border-radius: 12px; color: #e4ebfd; font-size: 12px; }
.vod-filters input::placeholder, .profile-dialog input::placeholder { color: #73819e; }
.vod-filters label:first-child { width: min(260px, 35%); }
.vod-search-label { flex: 1; }
.vod-filters .button { min-width: 98px; }
#vod-message { color: var(--muted); font-size: 12px; line-height: 1.8; }
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 30px 20px; margin: 27px 0 35px; counter-reset: poster; }
.vod-card-wrap { position: relative; min-width: 0; }
.vod-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; width: 100%; padding: 0; text-align: left; color: #e6ebf7; border: 0; background: transparent; counter-increment: poster; }
.vod-card-art { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid #ffffff18; border-radius: 16px; background: linear-gradient(145deg, #22314e, #0c1426); box-shadow: 0 10px 25px #0004; transition: transform .25s, box-shadow .25s; }
.vod-card-art:before { content: "XUPER / " counter(poster, decimal-leading-zero); position: absolute; inset: auto 12px 18px; font-size: 9px; letter-spacing: 2px; color: #a3b8de; }
.vod-card-art:after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 #ffffff20; pointer-events: none; }
.vod-card-art img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.vod-card:hover .vod-card-art { transform: translateY(-5px); box-shadow: 0 15px 32px #0007, 0 0 0 1px #a1b9ff55; }
.vod-card strong { font-size: 13px; font-weight: 550; line-height: 1.5; margin: 3px 0 0; }
.vod-card>span { font-size: 10px; color: #8d9bb6; line-height: 1.7; }
.favorite-button { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid #ffffff1c; border-radius: 50%; background: #15203b; color: #bdcef2; flex: none; }
.favorite-button .icon { width: 17px; height: 20px; }
.favorite-button:hover { background: #233558; }
.favorite-button.saved, .row-favorite.saved { color: #a8c1ff; }
.favorite-button.saved .icon, .row-favorite.saved .icon { fill: #5278d9; stroke: #bfd2ff; }
.vod-save { position: absolute; right: 9px; top: 9px; width: 33px; height: 33px; background: #0a1425ba; border-color: #ffffff40; backdrop-filter: blur(10px); box-shadow: 0 4px 12px #0003; }
.vod-save .icon { width: 13px; height: 16px; }
/* La guía acompaña al reproductor; el vídeo conserva su propio espacio. */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 27px; max-width: 1600px; padding: 20px 4% 50px; margin: auto; align-items: start; min-height: calc(100vh - 180px); }
.watch-area { order: 0; min-width: 0; }
.sidebar { order: 1; display: flex; flex-direction: column; min-width: 0; padding: 22px 16px 18px; border: 1px solid #ffffff12; border-radius: 24px; background: linear-gradient(155deg, #182235b3, #0d1424c4); height: min(850px, calc(100dvh - 135px)); min-height: 420px; position: sticky; top: 20px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sidebar-heading .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
.sidebar h1 { margin: 7px 0 0; font-size: 23px; font-weight: 550; letter-spacing: -.8px; }
.search { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #ffffff14; background: #070e1e66; border-radius: 25px; margin-bottom: 16px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: #8193b5; stroke-width: 1.5; flex: none; }
.search input { width: 100%; min-width: 0; background: none; color: #dce6fc; font-size: 11px; border: 0; outline: 0; }
.search input::placeholder { color: #8391ad; }
.search:focus-within { border-color: #87a9ff; }
.search kbd { color: #7183a7; font: 10px monospace; }
.sidebar .tabs { gap: 3px; }
.sidebar .tab { flex: 1; font-size: 11px; padding: 9px 12px; }
.list-summary { color: #7183a4; font-size: 9px; margin: 20px 5px 14px; }
.channel-list { flex: 1; min-height: 70px; overflow: auto; scrollbar-width: thin; scrollbar-color: #41526e transparent; }
.channel-row { display: flex; align-items: center; gap: 7px; padding: 10px 8px; border: 1px solid transparent; border-radius: 13px; margin: 0 0 5px; transition: background .15s; }
.channel-row:hover { background: #ffffff06; }
.channel-row.selected { background: linear-gradient(105deg, #527bcd29, #36599314); border-color: #7c9bdc33; }
.channel-select { display: flex; align-items: center; flex: 1; min-width: 0; gap: 11px; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; }
.channel-logo { display: grid; place-items: center; position: relative; width: 44px; height: 40px; flex: none; overflow: hidden; border-radius: 10px; background: #dfe6f2; color: #263f6b; font-size: 10px; font-weight: 700; }
.channel-logo img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.channel-text { min-width: 0; }
.channel-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 550; }
.channel-sub { display: block; color: #8195b8; font-size: 9px; margin-top: 6px; }
.row-favorite { display: grid; place-items: center; background: none; border: 0; color: #6980aa; padding: 8px 3px; min-width: 27px; min-height: 34px; }
.row-favorite .icon { width: 13px; height: 16px; }
.sidebar-foot { color: #6f83a8; font-size: 9px; margin: 15px 4px 0; line-height: 1.7; }
.load-more { flex: none; margin-top: 10px; font-size: 10px; background: #ffffff07; border-color: #ffffff1a; box-shadow: none; }
.list-empty { text-align: center; padding: 30px 5px; color: var(--muted); }
.list-empty>.icon { width: 30px; height: 30px; }
.list-empty p { font-size: 12px; }
.list-empty small { font-size: 10px; }
.watch-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0 22px; }
.watch-heading .eyebrow { color: #8e9dbb; font-size: 9px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #b4c9f5; border: 1px solid #7795ce36; border-radius: 22px; background: #152546; font-size: 8px; font-weight: 600; letter-spacing: 1px; padding: 7px 10px; }
.live-pill>span { width: 5px; height: 5px; border-radius: 50%; background: #8fb3ff; box-shadow: 0 0 9px #7c9eff77; }
.player-shell { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #ffffff19; border-radius: 23px; background: #02040b; box-shadow: 0 25px 55px #0004; scroll-margin-top: 20px; }
.player-shell video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; padding: 30px; text-align: center; background: radial-gradient(ellipse at 40% 0%, #38507866, transparent 65%), linear-gradient(135deg, #152035, #080d18); }
.player-placeholder h2 { font: 400 clamp(26px, 3vw, 45px)/1.15 Georgia, serif; letter-spacing: -1px; margin: 0 0 14px; }
.player-placeholder p { margin: 0; color: #98abc9; font-size: 12px; line-height: 1.7; }
.placeholder-hint { color: #6f85ac; font-size: 8px; letter-spacing: 2px; margin-top: 27px; }
.signal-art { display: flex; align-items: center; gap: 5px; height: 42px; margin-bottom: 23px; }
.signal-art span { width: 3px; height: 14px; background: linear-gradient(#bbceff, #527bd4); border-radius: 4px; }
.signal-art span:nth-child(2), .signal-art span:nth-child(6) { height: 24px; }
.signal-art span:nth-child(3), .signal-art span:nth-child(5) { height: 33px; }
.signal-art span:nth-child(4) { height: 44px; }
.player-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 25px; text-align: center; background: #070d1de8; }
.player-state strong { font-size: 13px; font-weight: 500; line-height: 1.7; max-width: 460px; }
.spinner { display: block; width: 30px; height: 30px; border: 2px solid #8da8d733; border-top-color: #a4c0ff; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-playing { display: flex; align-items: center; gap: 17px; padding: 26px 0 22px; }
.now-logo { position: relative; display: grid; place-items: center; overflow: hidden; width: 55px; height: 55px; flex: none; border-radius: 15px; background: #e1e7f2; color: #29436b; font-size: 12px; font-weight: 700; }
.now-logo img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.now-copy { flex: 1; min-width: 0; }
.now-copy .eyebrow { font-size: 8px; letter-spacing: 1.5px; color: #7c96c3; }
.now-copy h2 { margin: 6px 0; font-size: 23px; font-weight: 550; letter-spacing: -.6px; overflow-wrap: anywhere; }
.now-copy>p:last-child { margin: 0; color: #8598ba; font-size: 11px; line-height: 1.7; }
.player-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 17px 20px; background: #ffffff04; border: 1px solid #ffffff0e; border-radius: 18px; color: #97a8c6; font-size: 10px; }
.player-toolbar label { display: flex; align-items: center; gap: 7px; }
.player-toolbar select { max-width: 165px; background: #162035; border: 1px solid #ffffff13; color: #c6d6f6; border-radius: 9px; font-size: 11px; padding: 7px 9px; }
.player-toolbar .button { min-height: 32px; padding: 8px 12px; font-size: 10px; }
.player-toolbar #fullscreen { margin-left: auto; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8aa6d7; margin: 0 7px 1px 0; }
.bottom-note { display: flex; align-items: center; gap: 15px; padding: 26px 3px; color: #7f91b1; }
.note-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid #ffffff10; border-radius: 50%; color: #9bb6e7; }
.bottom-note strong { color: #adbedb; font-size: 11px; font-weight: 500; }
.bottom-note p { margin: 6px 0 0; font-size: 10px; line-height: 1.8; max-width: 430px; }
.workspace.vod-playing { display: block; max-width: 1320px; }
.workspace.vod-playing>.sidebar { display: none; }
.player-shell:fullscreen { border: 0; border-radius: 0; width: 100%; height: 100%; background: #000; }
/* Fichas y perfiles como paneles translúcidos sobre el contenido. */
.vod-detail { position: relative; width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 28px 30px 35px; overflow: auto; border: 1px solid #b4c8f233; border-radius: 28px; color: #edf3ff; background: linear-gradient(130deg, #1c2634ee, #0b1426f5); box-shadow: 0 35px 100px #0009, inset 0 1px 0 #ffffff10; backdrop-filter: blur(30px); }
.vod-detail::backdrop { background: #020713bd; backdrop-filter: blur(10px); }
.vod-close { position: relative; display: flex; width: 36px; height: 36px; min-height: 36px; padding: 9px; margin: 0 0 22px auto; z-index: 2; }
.detail-backdrop { position: absolute; inset: 0 0 auto; width: 100%; height: 290px; object-fit: cover; opacity: .15; filter: blur(5px); pointer-events: none; mask-image: linear-gradient(#000, transparent); }
.vod-detail-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 32px; position: relative; }
.vod-detail-poster { width: 100%; border: 1px solid #ffffff29; border-radius: 17px; box-shadow: 0 20px 35px #0004; }
.vod-detail-copy h2 { font: 400 34px/1.15 Georgia, serif; letter-spacing: -1px; margin: 12px 0 20px; }
.vod-detail-copy p { font-size: 12px; line-height: 1.9; }
.vod-detail-copy .vod-meta { color: #99adcc; font-size: 11px; }
.vod-detail-copy label { margin: 18px 0; }
.vod-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.vod-detail-actions #vod-watch { order: -1; }
.vod-detail-actions .button { font-size: 11px; padding: 12px 17px; }
.profile-dialog { max-width: 530px; }
.profile-dialog h2 { font: 400 31px/1.2 Georgia, serif; letter-spacing: -.7px; margin: 15px 0; }
.profile-dialog p { color: #9fadc8; font-size: 12px; line-height: 1.9; }
.profile-dialog form { display: flex; align-items: end; gap: 12px; border-top: 1px solid #ffffff10; margin: 24px 0; padding-top: 22px; }
.profile-dialog label { flex: 1; min-width: 0; }
.profile-dialog .button { font-size: 11px; padding: 12px 17px; }
.history-tabs { margin: 25px 0; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(335px, 1fr)); gap: 22px; }
.history-card { display: flex; min-width: 0; gap: 18px; padding: 20px; border: 1px solid #ffffff11; border-radius: 22px; background: linear-gradient(135deg, #1a263b77, #111a2d55); }
.history-card>img { width: 80px; height: 120px; object-fit: cover; border-radius: 13px; }
.history-copy { flex: 1; min-width: 0; }
.history-copy h2 { font-size: 15px; line-height: 1.5; font-weight: 550; margin: 0 0 7px; overflow-wrap: anywhere; }
.history-copy p, #history-empty { font-size: 11px; color: #899dbf; line-height: 1.7; }
.history-copy .history-time { color: #b2c9f8; font-variant-numeric: tabular-nums; }
.history-copy progress { appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #27364e; accent-color: #84a9ff; }
.history-copy progress::-webkit-progress-bar { background: #27364e; }
.history-copy progress::-webkit-progress-value { background: #84a9ff; }
.history-copy progress::-moz-progress-bar { background: #84a9ff; }
.history-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.history-actions .button { font-size: 10px; padding: 8px 12px; min-height: 32px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4%; max-width: 1700px; margin: auto; border-top: 1px solid var(--line); color: #617594; font-size: 9px; letter-spacing: .5px; }
.site-footer>span:first-child { color: #8ea4c9; letter-spacing: 2px; font-weight: 600; }
.site-footer #install-app { font-size: 10px; min-height: 34px; padding: 8px 15px; color: #b8ccf0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 530px); padding: 15px 22px; border: 1px solid #b2c9ff3b; border-radius: 22px; background: #1a2945e8; color: #dae7ff; box-shadow: 0 12px 40px #0006; backdrop-filter: blur(20px); z-index: 120; font-size: 12px; line-height: 1.7; }
body.catalog-busy { overflow: hidden; }
.catalog-loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 25px; background: radial-gradient(ellipse at center, #233653, #070c18 65%); z-index: 100; text-align: center; }
.loading-kicker { font-size: 9px; letter-spacing: 3px; color: #8aa6d3; }
.catalog-loading strong { font: 400 30px Georgia, serif; letter-spacing: -.8px; }
.catalog-loading>span:last-child { color: #9eafc9; font-size: 12px; }
@media (min-width: 1600px) { .workspace { grid-template-columns: minmax(0, 1fr) 335px; } .vod-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); } }
@media (max-width: 1150px) {
  .topbar { gap: 15px; padding: 20px 3%; }
  .brand-region { display: none; }
  .browse-nav button { padding: 11px 13px; font-size: 11px; gap: 6px; }
  .profile-tools { gap: 6px; }
  .profile-tools select { max-width: 90px; }
  .featured { grid-template-columns: 48% 52%; padding: 25px 3%; min-height: 420px; }
  .feature-stage { height: 340px; }
  .main-cover { width: 203px; height: 305px; }
  .side-cover { width: 155px; height: 247px; }
  .feature-copy { padding-left: 30px; }
  .feature-copy h2 { font-size: 35px; }
  .feature-actions { gap: 8px; }
  .feature-actions .button { padding: 12px 16px; font-size: 11px; }
  .feature-actions .favorite-button { width: 39px; height: 39px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; padding-left: 3%; padding-right: 3%; }
  .sidebar { padding: 20px 12px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .topbar { flex-wrap: wrap; }
  .browse-nav { order: 3; flex-basis: 100%; margin: 8px 0 0; }
  .browse-nav button { flex: 1; }
  .profile-tools { margin-left: auto; }
  .featured { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto 35px; padding: 24px 30px 32px; }
  .feature-stage { max-width: 430px; height: 340px; }
  .feature-copy { padding: 5px 15px 0; max-width: 560px; margin: auto; text-align: center; }
  .feature-copy h2 { font-size: 36px; }
  .feature-description { margin: 13px auto 20px; }
  .feature-actions, .feature-navigation { justify-content: center; }
  .workspace { grid-template-columns: minmax(0, 1fr) 255px; gap: 17px; }
  .sidebar .tab { padding: 9px 7px; font-size: 10px; }
  .now-copy h2 { font-size: 18px; }
  .now-logo { width: 43px; height: 43px; }
  .watch-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .live-pill { font-size: 7px; padding: 6px 8px; }
  .player-placeholder h2 { font-size: 26px; }
  .signal-art { transform: scale(.7); margin-bottom: 10px; }
  .placeholder-hint { display: none; }
}
@media (max-width: 700px) {
  body { padding-bottom: 93px; }
  .topbar { min-height: 82px; padding: 20px 20px 14px; gap: 12px; }
  .brand-name { font-size: 25px; }
  .brand-region { display: none; }
  .profile-tools { margin-left: auto; }
  .profile-tools label { font-size: 7px; }
  .profile-tools select { font-size: 11px; max-width: 95px; }
  .topbar .button.quiet { width: 34px; height: 34px; padding: 8px; }
  .topbar #refresh { width: 27px; padding: 4px; }
  .browse-nav { position: fixed; z-index: 30; bottom: calc(15px + env(safe-area-inset-bottom, 0px)); left: 15px; right: 15px; width: auto; margin: 0 auto; max-width: 470px; padding: 7px 8px; justify-content: space-around; background: #172236cf; backdrop-filter: blur(25px); border: 1px solid #c6d7ff26; border-radius: 35px; box-shadow: 0 12px 40px #0009, inset 0 1px 0 #ffffff09; }
  .browse-nav button { flex: 1; flex-direction: column; gap: 5px; padding: 9px 3px; font-size: 9px; border-radius: 28px; }
  .browse-nav .icon { width: 20px; height: 20px; }
  .browse-nav button.active { background: linear-gradient(130deg, #426cd4, #7096ef); color: #fff; box-shadow: inset 0 1px 0 #fff4, 0 2px 10px #1d3b7d66; }
  .vod-library { padding: 18px 18px 30px; }
  .vod-heading { gap: 12px; margin-bottom: 20px; }
  .vod-heading h1 { font-size: 24px; margin-top: 7px; }
  .vod-heading .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .section-intro { font-size: 10px; margin-top: 7px; }
  .vod-heading .count { font-size: 9px; max-width: 85px; text-align: center; }
  .featured { display: flex; flex-direction: column; min-height: 0; padding: 20px 12px 25px; border-radius: 24px; margin: 0 -1px 27px; }
  .featured:before { background: linear-gradient(0deg, #080e1cf7 0%, #0a122368 80%); }
  .featured-backdrop { opacity: .3; }
  .feature-stage { width: 100%; max-width: 400px; height: 310px; }
  .main-cover { top: 6px; width: 185px; height: 278px; border-radius: 20px; transform: translateX(-50%) rotate(0deg); }
  .side-cover { top: 35px; width: 135px; height: 225px; border-radius: 15px; }
  .left-cover { left: 0; transform: rotateY(20deg) rotate(-9deg); }
  .right-cover { right: 0; transform: rotateY(-20deg) rotate(9deg); }
  .side-cover>span { display: none; }
  .feature-copy { width: 100%; padding: 0 8px; text-align: center; }
  .feature-copy>.eyebrow { font-size: 7px; letter-spacing: 1.6px; }
  .feature-copy h2 { font-size: 30px; margin: 12px 0; line-height: 1.13; letter-spacing: -.9px; }
  .feature-meta { font-size: 10px; }
  .feature-description { display: -webkit-box; -webkit-line-clamp: 2; margin: 12px auto 20px; max-width: 320px; font-size: 11px; line-height: 1.8; }
  .feature-actions { justify-content: center; gap: 7px; }
  .feature-actions .button { min-height: 40px; padding: 10px 15px; font-size: 10px; }
  .feature-actions .favorite-button { width: 37px; height: 37px; }
  .feature-navigation { justify-content: center; margin-top: 17px; gap: 14px; }
  .round-button { width: 28px; height: 28px; }
  .feature-dot { width: 21px; }
  .feature-dot:after { left: 6px; right: 6px; }
  .vod-tabs { gap: 5px; margin-bottom: 19px; }
  .tab { padding: 9px 15px; font-size: 11px; }
  .vod-filters { flex-wrap: wrap; gap: 13px; padding-bottom: 20px; }
  .vod-filters label:first-child { width: 100%; }
  .vod-filters label { font-size: 9px; gap: 7px; }
  .vod-filters input, .vod-filters select { min-height: 42px; padding: 10px 13px; font-size: 11px; }
  .vod-filters .button { min-height: 42px; min-width: 80px; padding: 10px 16px; font-size: 11px; }
  .vod-search-label { min-width: 0; }
  .vod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 15px; margin: 22px 0 30px; }
  .vod-card-art { border-radius: 15px; }
  .vod-card strong { font-size: 12px; }
  .vod-card>span { font-size: 9px; }
  .vod-save { width: 31px; height: 31px; top: 8px; right: 8px; }
  .workspace { display: flex; flex-direction: column; gap: 25px; padding: 15px 16px 30px; min-height: 0; }
  .watch-area { width: 100%; }
  .watch-heading { padding: 2px 1px 18px; gap: 8px; }
  .watch-heading .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .live-pill { font-size: 7px; padding: 6px 8px; }
  .player-shell { border-radius: 18px; }
  .player-placeholder { padding: 15px; }
  .player-placeholder h2 { font-size: 26px; margin-bottom: 10px; }
  .player-placeholder p { font-size: 9px; }
  .signal-art { height: 23px; transform: scale(.55); margin-bottom: 16px; }
  .placeholder-hint { display: none; }
  .player-state { padding: 20px; gap: 15px; }
  .player-state strong { font-size: 11px; }
  .player-state .button { font-size: 10px; min-height: 37px; padding: 10px 16px; }
  .now-playing { padding: 21px 1px; gap: 13px; }
  .now-logo { width: 45px; height: 45px; border-radius: 12px; }
  .now-copy .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .now-copy h2 { font-size: 18px; margin: 6px 0; }
  .now-copy>p:last-child { font-size: 10px; }
  .favorite-button { width: 37px; height: 37px; }
  .player-toolbar { gap: 12px; padding: 14px; font-size: 9px; border-radius: 16px; }
  .player-toolbar select { max-width: 140px; font-size: 10px; padding: 6px; }
  .player-toolbar #fullscreen { min-width: 30px; font-size: 0; gap: 0; padding: 7px; }
  .player-toolbar #fullscreen .icon { width: 15px; height: 15px; }
  .bottom-note { display: none; }
  .sidebar { position: static; width: 100%; height: auto; max-height: none; min-height: 0; padding: 23px 15px 20px; border-radius: 23px; }
  .sidebar h1 { font-size: 24px; }
  .sidebar .eyebrow { font-size: 8px; }
  .sidebar .tabs { gap: 8px; }
  .sidebar .tab { font-size: 11px; }
  .channel-list { max-height: 510px; min-height: 0; }
  .channel-row { padding: 11px 8px; }
  .channel-logo { width: 47px; height: 43px; }
  .channel-name { font-size: 12px; }
  .channel-sub { font-size: 10px; }
  .row-favorite { min-width: 35px; }
  .sidebar-foot { font-size: 9px; }
  .vod-detail { padding: 20px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 25px; }
  .vod-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vod-detail-poster { width: 125px; border-radius: 14px; }
  .vod-detail-copy h2 { font-size: 30px; }
  .vod-close { margin-bottom: 14px; }
  .vod-detail-actions { gap: 8px; }
  .vod-detail-actions .button { flex: 1 1 auto; font-size: 10px; padding: 12px; }
  .profile-dialog h2 { font-size: 28px; }
  .profile-dialog form { flex-wrap: wrap; }
  .profile-dialog label { flex-basis: 100%; }
  .profile-dialog .button { width: 100%; }
  .history-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .history-card { padding: 17px; gap: 14px; }
  .history-card>img { width: 67px; height: 102px; border-radius: 12px; }
  .history-copy h2 { font-size: 14px; }
  .history-tabs { gap: 3px; }
  .history-tabs .tab { font-size: 10px; padding: 10px 12px; }
  .site-footer { padding: 20px; gap: 12px; flex-wrap: wrap; font-size: 8px; }
  .site-footer>span:nth-child(2) { display: none; }
  .site-footer #install-app { margin-left: auto; font-size: 10px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); border-radius: 18px; font-size: 11px; }
}
@media (max-width: 350px) {
  .topbar { gap: 9px; padding-left: 16px; padding-right: 16px; }
  .profile-tools select { max-width: 76px; }
  .feature-stage { height: 280px; }
  .main-cover { width: 166px; height: 249px; }
  .side-cover { width: 84px; height: 203px; top: 29px; }
  .feature-copy h2 { font-size: 27px; }
  .feature-actions .button { padding: 10px 12px; }
  .feature-actions .favorite-button { width: 33px; height: 33px; }
}
/* Una misma cadencia para navegación, controles y contenido. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-soft: cubic-bezier(.2, .65, .3, 1); }
html { scroll-behavior: smooth; }
.button, .tab, .round-button, .favorite-button, .row-favorite, .channel-row, .brand,
input, select, .search, .history-card {
  transition: color 180ms ease, background-color 220ms ease, border-color 220ms ease,
    box-shadow 260ms var(--ease-soft), transform 260ms var(--ease-out), opacity 180ms ease;
}
.button:active:not(:disabled), .round-button:active:not(:disabled) { transform: translateY(0) scale(.96); }
.tab:active { transform: scale(.97); }
.brand:hover { opacity: .8; }
input:hover, select:hover { border-color: #b4caff38; }
input:focus, select:focus { border-color: #9bb9ff99; box-shadow: 0 0 0 3px #6f97ff12; }
.search:focus-within { box-shadow: 0 0 0 4px #6f97ff0c; }
.channel-row.selected { box-shadow: inset 0 0 0 1px #7297ed0b, 0 4px 14px #0002; }
.feature-dot:after { transition: background-color 220ms ease, box-shadow 220ms ease, transform 260ms var(--ease-out); }
.feature-dot[aria-pressed="true"]:after { transform: scale(1.18); }
.feature-cover img, .vod-card-art img { transition: transform 500ms var(--ease-out); }
.vod-card-art { transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-soft); }
.vod-card-wrap, .history-card { animation: content-arrive 380ms var(--ease-out) backwards; animation-delay: calc(var(--enter-index, 0) * 22ms); }
@keyframes content-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.vod-detail[open] { animation: dialog-arrive 300ms var(--ease-out); }
.vod-detail[open]::backdrop { animation: backdrop-arrive 260ms ease-out; }
.vod-detail.dialog-closing { pointer-events: none; animation: none; }
.vod-detail.dialog-closing::backdrop { animation: backdrop-leave 145ms ease-in forwards; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-leave { to { opacity: 0; } }
.toast:not([hidden]) { animation: toast-arrive 300ms var(--ease-out); }
@keyframes toast-arrive { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.player-state:not([hidden]) { animation: overlay-arrive 170ms ease-out; }
@keyframes overlay-arrive { from { opacity: 0; } to { opacity: 1; } }
.browse-nav { isolation: isolate; }
.browse-nav button { position: relative; z-index: 1; transition: color 200ms ease; }
.browse-nav button.active, .browse-nav button.active:hover { background: transparent; box-shadow: none; }
.nav-highlight { position: absolute; top: 0; left: 0; pointer-events: none; border-radius: 28px; background: #ffffff12; box-shadow: inset 0 1px 0 #ffffff14; transition: transform 400ms var(--ease-out), width 300ms var(--ease-out), height 300ms var(--ease-out); }
@media (min-width: 701px) { .browse-nav { position: relative; } }
@media (max-width: 700px) { .nav-highlight { background: linear-gradient(130deg, #426cd4, #7096ef); box-shadow: inset 0 1px 0 #fff4, 0 2px 10px #1d3b7d66; } }
@media (hover: hover) and (pointer: fine) {
  .favorite-button:hover, .round-button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #0003; }
  .row-favorite:hover { color: #d5e2ff; transform: scale(1.12); }
  .tab:hover { background-color: #ffffff07; }
  .channel-row:hover { transform: translateX(2px); }
  .history-card:hover { border-color: #abc3ff30; box-shadow: 0 12px 30px #0002; transform: translateY(-3px); }
  .vod-card:hover img { transform: scale(1.035); }
  .main-cover:hover img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.series-navigation { display: flex; flex-wrap: wrap; align-items: end; gap: 15px; padding: 18px 20px; margin-bottom: 15px; border: 1px solid #ffffff12; border-radius: 20px; background: linear-gradient(110deg, #1b2a4255, #101a2d55); }
.series-navigation label { display: flex; flex-direction: column; gap: 8px; color: #91a5c8; font-size: 10px; min-width: 0; }
.series-navigation select { max-width: 100%; min-height: 40px; background: #162035; border: 1px solid #ffffff18; border-radius: 12px; color: #d9e6ff; padding: 10px 13px; font-size: 12px; }
.episode-picker { flex: 1; }
.episode-picker select { width: 100%; }
.episode-buttons { display: flex; gap: 8px; }
.episode-buttons .button { font-size: 11px; min-height: 40px; padding: 10px 15px; }
#series-navigation-message { flex-basis: 100%; margin: 0; color: #a7bce5; font-size: 11px; line-height: 1.7; }
@media (max-width: 700px) { .series-navigation { padding: 15px; gap: 14px; } .series-navigation label { flex: 1 1 100%; } .episode-buttons { width: 100%; } .episode-buttons .button { flex: 1; padding: 10px; font-size: 10px; } }
