:root {
  --bg: #0b0e0f;
  --bg-2: #101415;
  --surface: #151a1c;
  --surface-2: #1c2224;
  --line: #262d30;
  --text: #f2f5f4;
  --muted: #8d9a9e;
  --green: #53fc18;
  --green-dim: rgba(83, 252, 24, .14);
  --danger: #ff5c5c;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(900px 400px at 50% -120px, rgba(83,252,24,.09), transparent 70%), var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.accent { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: rgba(11,14,15,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #0b0e0f; font-weight: 900; }
.channel-form { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); transition: border-color .15s; }
.channel-form:focus-within { border-color: var(--green); }
.channel-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); padding: 8px 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 9px 16px; font-weight: 600; font-size: 14px; transition: transform .1s, background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #0b0e0f; }
.btn-primary:hover { background: #6bff3a; }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: var(--surface-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a4448; }
.btn-ghost[aria-pressed="true"], .btn-ghost.on { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.icon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; background: none; border: 0; border-radius: 10px; color: var(--text); }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--green); color: #0b0e0f; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

main { max-width: 1480px; margin: 0 auto; padding: 0 24px 80px; }

/* Home */
.home { text-align: center; padding: 90px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; line-height: 1.55; }
.suggest, .recents { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 30px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; transition: all .15s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.recents .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; }
.recents img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }

/* Channel header */
.channel-head { display: flex; align-items: center; gap: 20px; padding: 28px 0 22px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green); background: var(--surface-2); flex: none; }
.ch-name { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.verified { width: 20px; height: 20px; }
.live-pill { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; }
.ch-sub { color: var(--muted); font-size: 14px; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.ch-sub a { color: var(--green); text-decoration: none; font-weight: 600; }
.ch-sub a:hover { text-decoration: underline; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 66px; z-index: 20; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search:focus-within { border-color: var(--green); }
.search input { flex: 1; background: none; border: 0; outline: 0; padding: 10px 0; color: var(--text); min-width: 0; }
select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: 0; }
select:focus { border-color: var(--green); }
.segmented { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented button { background: none; border: 0; border-radius: 7px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--green); color: #0b0e0f; }
.result-meta { color: var(--muted); font-size: 14px; padding: 18px 2px 14px; min-height: 52px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.card { background: none; border: 0; padding: 0; text-align: left; color: inherit; border-radius: var(--radius); display: block; width: 100%; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .thumb { border-color: var(--green); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.35); color: var(--green); }
.card:hover .play { opacity: 1; }
.tag { position: absolute; padding: 3px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.tag.dur { right: 8px; bottom: 8px; }
.tag.views { left: 8px; bottom: 8px; }
.tag.mature { left: 8px; top: 8px; background: var(--danger); }
.fav-mini { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; opacity: 0; transition: opacity .15s; color: #fff; }
.card:hover .fav-mini, .fav-mini.on { opacity: 1; }
.fav-mini.on { color: var(--green); }
.card-title { margin: 10px 2px 3px; font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { color: var(--muted); font-size: 13px; margin: 0 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.skeleton { aspect-ratio: 16/9; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: sh 1.3s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }
.more { display: flex; justify-content: center; padding: 34px 0; }
.empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 8px; font-size: 20px; }

/* Theater */
.theater { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.theater-backdrop { position: absolute; inset: 0; background: rgba(4,6,6,.88); backdrop-filter: blur(6px); }
.theater-panel { position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; z-index: 5; }
.close:hover { background: rgba(0,0,0,.85); }
.player { position: relative; background: #000; aspect-ratio: 16/9; max-height: 72vh; width: 100%; margin: 0 auto; border-radius: 18px 18px 0 0; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.player:fullscreen { max-height: none; border-radius: 0; }
.player-state { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 600; text-align: center; padding: 20px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(83,252,24,.92); color: #0b0e0f; display: grid; place-items: center; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); transition: opacity .25s; }
.player.idle .controls { opacity: 0; }
.player.idle { cursor: none; }
.seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.seek::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.seek:hover::before { height: 6px; }
.seek-buf, .seek-fill { position: absolute; left: 0; height: 4px; border-radius: 2px; pointer-events: none; }
.seek-buf { background: rgba(255,255,255,.35); }
.seek-fill { background: var(--green); }
.seek-knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform .12s; pointer-events: none; }
.seek:hover .seek-knob { transform: scale(1); }
.controls-row { display: flex; align-items: center; gap: 4px; }
.controls-row .icon-btn { color: #fff; }
.spacer { flex: 1; }
.time { font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 6px; color: #e6ecea; }
#vol { width: 80px; accent-color: var(--green); }
.controls select { background: rgba(255,255,255,.12); border-color: transparent; padding: 6px 8px; font-size: 13px; color: #fff; }
.controls select option { color: #000; }

.theater-info { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 20px 24px 12px; flex-wrap: wrap; }
.theater-main { flex: 1 1 380px; min-width: 0; }
.theater-main h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; line-height: 1.3; }
.meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta b { color: var(--text); font-weight: 600; }
.theater-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.theater-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px 14px; flex-wrap: wrap; }
.check { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--green); }
.kbd-hint { padding: 12px 24px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 200; background: var(--surface-2); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: all .25s; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand-text { display: none; }
  main { padding: 0 14px 60px; }
  .toolbar { top: 62px; }
  .channel-head { flex-direction: column; text-align: center; }
  .ch-name, .ch-sub { justify-content: center; }
  #vol { display: none; }
  .home { padding-top: 50px; }
  .kbd-hint { display: none; }
  .theater { padding: 0; }
  .theater-panel { border-radius: 0; height: 100%; }
  .player { border-radius: 0; }
}

.brand-logo { width: 36px; height: 36px; border-radius: 9px; display: block; }

/* ---- Menús desplegables propios ---- */
.dd { position: relative; display: inline-block; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px 9px 14px; font-size: 14px; font-weight: 600; min-width: 0; width: 100%; justify-content: space-between; transition: border-color .15s, background .15s; }
.dd-btn:hover, .dd.open .dd-btn { border-color: #3a4448; }
.dd.open .dd-btn { border-color: var(--green); }
.dd-btn.active { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.dd-btn svg { opacity: .7; transition: transform .15s; flex: none; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 320px;
  background: #171d1f; border: 1px solid #323b3f; border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.6);
  animation: ddin .12s ease-out; }
.dd.up .dd-menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
@keyframes ddin { from { opacity: 0; transform: translateY(-4px); } }
.dd-list { max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a4448 transparent; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 9px 10px;
  text-align: left; font-size: 14px; font-weight: 500; color: var(--text); }
.dd-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-item em { font-style: normal; font-size: 12px; color: var(--muted); }
.dd-item svg { width: 16px; opacity: 0; color: var(--green); flex: none; }
.dd-item:hover, .dd-item:focus-visible { background: rgba(255,255,255,.07); outline: 0; }
.dd-item.sel { color: var(--green); }
.dd-item.sel svg { opacity: 1; }
.dd-search { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; outline: 0; font-size: 14px; color: var(--text); }
.dd-search:focus { border-color: var(--green); }
.dd-empty { padding: 10px; color: var(--muted); text-align: center; }
.dd.compact .dd-btn { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; padding: 6px 8px 6px 11px; font-size: 13px; border-radius: 8px; }
.dd.compact .dd-btn:hover, .dd.compact.open .dd-btn { background: rgba(255,255,255,.2); }
.dd.compact .dd-menu { min-width: 150px; }

/* ---- Panel de filtros ---- */
.filters-wrap { position: relative; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #0b0e0f; font-size: 11px; font-weight: 800; }
.panel { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: 330px; max-width: calc(100vw - 28px); display: flex; flex-direction: column; gap: 16px;
  background: #171d1f; border: 1px solid #323b3f; border-radius: 14px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: ddin .12s ease-out; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seg-wrap { width: 100%; }
.seg-wrap button { flex: 1; padding: 7px 4px; white-space: nowrap; }
.seg-wrap button { background: none; border: 0; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-wrap button.on { background: var(--green); color: #0b0e0f; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters:not(:empty) { padding-top: 14px; }
.af-chip { background: var(--green-dim); border: 1px solid rgba(83,252,24,.4); color: var(--green); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.af-chip span { opacity: .7; margin-left: 4px; }
.af-chip:hover span { opacity: 1; }
.by { cursor: pointer; border-bottom: 1px dotted transparent; }
.by:hover { color: var(--green); border-bottom-color: var(--green); }
.toolbar .dd-btn { padding: 10px 10px 10px 14px; }
#timeDD { min-width: 170px; }

/* ---- Reproductor: pantalla final, carga, volumen ---- */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px #000; }
.err { pointer-events: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.err p { margin: 0; }
.end-screen { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 24px 64px; background: rgba(6,8,8,.88); backdrop-filter: blur(8px); animation: ddin .2s ease-out; }
.end-title { font-size: 18px; font-weight: 700; }
.end-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(860px, 100%); }
.end-card { background: none; border: 0; padding: 0; text-align: left; color: inherit; min-width: 0; }
.end-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.end-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.end-card:hover .end-thumb { border-color: var(--green); transform: translateY(-2px); }
.end-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; margin-top: 7px; line-height: 1.3; }
.controls { z-index: 4; }
#vol { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; border-radius: 2px; outline: 0; --p: 100%;
  background: linear-gradient(to right, var(--green) var(--p), rgba(255,255,255,.25) var(--p)); }
#vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
#vol::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.player-state { z-index: 2; }
.controls-row { gap: 6px; }
@media (max-width: 720px) {
  .end-grid { grid-template-columns: repeat(2, 1fr); }
  .end-grid .end-card:nth-child(n+3) { display: none; }
  #timeDD { min-width: 0; }
  .panel { position: fixed; left: 14px; right: 14px; top: 130px; width: auto; max-width: none; }
}

/* ---- Reproductor v3: sin bordes negros, play premium, atajos ---- */
.theater-panel { width: min(1180px, 100%, calc((100vh - 250px) * 16 / 9)); min-width: min(100%, 560px); }
.player { max-height: none; aspect-ratio: 16/9; }
.player video { object-fit: cover; }
.player:fullscreen video { object-fit: contain; }
.close { display: none; }

.big-play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,14,15,.5); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid rgba(83,252,24,.75); color: var(--green); z-index: 3;
  box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 40px rgba(83,252,24,.22), inset 0 0 18px rgba(83,252,24,.12);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, box-shadow .2s; }
.big-play svg { margin-left: 4px; filter: drop-shadow(0 0 8px rgba(83,252,24,.5)); }
.big-play .ring { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--green); opacity: 0; animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.big-play:hover { transform: scale(1.08); background: var(--green); color: #0b0e0f; box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 60px rgba(83,252,24,.45); }
.big-play:hover svg { filter: none; }
.big-play:active { transform: scale(.96); }
.big-play[hidden] { display: none; }

.shortcuts { position: absolute; right: 14px; bottom: 74px; z-index: 6; width: 300px; max-width: calc(100% - 28px); padding: 16px 18px;
  background: rgba(14,18,19,.82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: ddin .15s ease-out; }
.shortcuts[hidden] { display: none; }
.sc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sc-grid { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; align-items: center; }
.sc-keys { display: flex; gap: 4px; }
.sc-label { font-size: 13px; color: #dfe6e4; }
kbd { font-family: var(--font); font-size: 12px; font-weight: 700; min-width: 26px; padding: 3px 7px; text-align: center; color: var(--text);
  background: linear-gradient(#262e31, #1b2123); border: 1px solid #3a4448; border-bottom-width: 2px; border-radius: 6px; }

@media (max-width: 720px) {
  .theater-panel { width: 100%; min-width: 0; }
  .close { display: grid; position: absolute; top: 12px; left: 12px; right: auto; backdrop-filter: blur(8px); }
  #kbdBtn { display: none; }
  .big-play { width: 72px; height: 72px; }
}


.shortcuts { max-height: calc(100% - 96px); overflow-y: auto; scrollbar-width: thin; }
@media (max-height: 760px), (max-width: 900px) { .shortcuts { padding: 12px 14px; } .sc-grid { gap: 6px 12px; } .sc-label { font-size: 12px; } }

/* ---- v4: pantalla final, favorito y +18 premium ---- */
.end-screen { gap: 22px; padding: 28px 32px 70px; background: radial-gradient(900px 420px at 50% 40%, rgba(83,252,24,.07), transparent 70%), rgba(6,8,8,.9); }
.end-head { display: flex; align-items: center; gap: 12px; width: min(900px, 100%); }
.end-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.end-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(83,252,24,.45), transparent); }
.end-grid { width: min(900px, 100%); gap: 16px; }
.end-card { display: flex; flex-direction: column; gap: 0; opacity: 0; animation: endin .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 60ms); }
@keyframes endin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.end-thumb { border-radius: 12px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s; }
.end-thumb img { transition: transform .4s; }
.end-card:hover .end-thumb { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(83,252,24,.35), 0 0 30px rgba(83,252,24,.18); }
.end-card:hover .end-thumb img { transform: scale(1.06); }
.end-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding-left: 2px;
  background: rgba(11,14,15,.55); backdrop-filter: blur(10px); border: 1.5px solid var(--green); color: var(--green);
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.end-card:hover .end-play { opacity: 1; transform: scale(1); }
.end-card .tag.dur { right: 8px; bottom: 8px; }
.end-t { margin-top: 10px; font-size: 14px; font-weight: 600; }
.end-s { margin-top: 3px; font-size: 12px; color: var(--muted); }
.replay { display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, background .2s, box-shadow .2s; }
.replay-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #0b0e0f; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.replay:hover { transform: translateY(-2px); border-color: rgba(83,252,24,.7); background: rgba(83,252,24,.1); box-shadow: 0 8px 30px rgba(83,252,24,.18); }
.replay:hover .replay-ic { transform: rotate(-360deg); }
.replay:active { transform: scale(.97); }

/* Favorito en tarjetas: cristal con corazÃ³n de contorno */
.fav-mini { top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(14,18,19,.55); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: 0; transform: scale(.85);
  transition: opacity .18s, transform .22s cubic-bezier(.2,.8,.2,1), background .18s, border-color .18s, color .18s; }
.card:hover .fav-mini, .fav-mini.on { opacity: 1; transform: scale(1); }
.fav-mini:hover { background: rgba(83,252,24,.16); border-color: rgba(83,252,24,.7); color: var(--green); transform: scale(1.1); }
.fav-mini.on { color: var(--green); background: rgba(83,252,24,.16); border-color: rgba(83,252,24,.65); box-shadow: 0 4px 18px rgba(83,252,24,.25); }
.fav-mini.on .hp, #favBtn.on .hp { fill: currentColor; }
.fav-mini.pop svg, #favBtn.pop svg { animation: heartpop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes heartpop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
#favBtn { gap: 8px; }
#favBtn.on { border-color: rgba(83,252,24,.65); color: var(--green); background: var(--green-dim); }
.fav-title-ic { display: inline-grid; color: var(--green); }
.fav-title-ic svg { width: 26px; height: 26px; }
.fav-title-ic .hp { fill: currentColor; }
@media (hover: none) { .fav-mini { opacity: 1; transform: none; } }

/* +18 */
.tag.mature { top: 10px; left: 10px; bottom: auto; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #ffb3b3;
  background: rgba(40,10,12,.62); border: 1px solid rgba(255,92,92,.55); backdrop-filter: blur(8px); box-shadow: 0 0 14px rgba(255,70,70,.22); }

@media (max-width: 720px) { .end-screen { padding: 16px 16px 64px; gap: 14px; } .end-s { display: none; } }


@media (max-width: 720px) { .end-screen { padding: 50px 14px 52px; gap: 10px; justify-content: flex-start; } .end-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; } .end-grid .end-card:nth-child(3) { display: flex !important; } .end-grid .end-card:nth-child(n+4) { display: none !important; } .end-t { -webkit-line-clamp: 1; font-size: 12px; margin-top: 6px; } .replay { padding: 5px 16px 5px 5px; font-size: 13px; } .replay-ic { width: 28px; height: 28px; } .end-play { width: 34px; height: 34px; } }

/* ---- Botón de play (pausa): sólido, limpio, estilo Kick ---- */
.big-play { width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--green); color: #0b0e0f;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 0 0 10px rgba(83,252,24,.16), 0 12px 36px rgba(0,0,0,.55);
  animation: playin .28s cubic-bezier(.2,.8,.2,1);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; }
.big-play .ring { display: none; }
.big-play svg { width: 36px; height: 36px; margin-left: 4px; filter: none; }
.big-play:hover { background: #6bff3a; transform: scale(1.07); box-shadow: 0 0 0 14px rgba(83,252,24,.2), 0 14px 40px rgba(0,0,0,.6); color: #0b0e0f; }
.big-play:active { transform: scale(.95); }
@keyframes playin { from { opacity: 0; transform: scale(.7); } }
@media (max-width: 720px) { .big-play { width: 68px; height: 68px; box-shadow: 0 0 0 8px rgba(83,252,24,.16), 0 10px 28px rgba(0,0,0,.55); } .big-play svg { width: 30px; height: 30px; } }

/* ---- v5: play centrado y hover de tarjetas moderno ---- */
.big-play { width: 80px; height: 80px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: #0b0e0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 34px rgba(83,252,24,.32), 0 6px 22px rgba(0,0,0,.5);
  animation: playin .28s cubic-bezier(.2,.8,.2,1); }
.big-play svg { display: block; width: 34px; height: 34px; margin: 0; filter: none; }
.big-play:hover { background: #6bff3a; transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 44px rgba(83,252,24,.45), 0 8px 26px rgba(0,0,0,.55); }
@media (max-width: 720px) { .big-play { width: 64px; height: 64px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 24px rgba(83,252,24,.3), 0 4px 16px rgba(0,0,0,.5); } .big-play svg { width: 28px; height: 28px; } }

/* Tarjetas: elevaciÃ³n suave, degradado inferior y disco de cristal con play */
.thumb { border-color: rgba(255,255,255,.07); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.card:hover .thumb { border-color: rgba(83,252,24,.55); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 34px rgba(83,252,24,.14); }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .play { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.08) 55%, transparent); color: #fff; opacity: 0; transition: opacity .25s; }
.card:hover .play, .card:focus-visible .play { opacity: 1; }
.play-disc { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(14,18,19,.5); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.28); box-shadow: 0 8px 26px rgba(0,0,0,.45);
  transform: scale(.82); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s; }
.play-disc svg { width: 24px; height: 24px; display: block; }
.card:hover .play-disc { transform: scale(1); }
.card:hover .thumb:hover .play-disc { background: var(--green); color: #0b0e0f; border-color: var(--green); }
.card-title { transition: color .2s; }
.card:hover .card-title { color: #fff; }
.tag.views, .tag.dur { transition: transform .25s; }
.card:hover .tag.dur, .card:hover .tag.views { transform: translateY(-1px); }

.end-play { padding-left: 0; }
.end-play svg { display: block; width: 20px; height: 20px; }


/* ---- v6: botÃ³n de favoritos del header + autocompletado ---- */
.fav-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, background .2s, color .2s, box-shadow .2s; }
.fav-pill:hover { border-color: rgba(83,252,24,.6); color: var(--green); transform: translateY(-1px); }
.fav-pill:active { transform: scale(.95); }
.fav-pill.has { color: var(--green); background: var(--green-dim); border-color: rgba(83,252,24,.5); box-shadow: 0 4px 18px rgba(83,252,24,.15); }
.fav-pill.has .hp { fill: currentColor; }
.fav-pill-n { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fav-pill.pop svg { animation: heartpop .38s cubic-bezier(.2,.8,.2,1); }
.fav-pill svg { display: block; flex: none; }

.channel-form { position: relative; }
.suggest-box { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; border-radius: 14px; max-height: 420px; overflow-y: auto;
  background: rgba(21,26,28,.96); backdrop-filter: blur(16px); border: 1px solid #323b3f; box-shadow: 0 22px 60px rgba(0,0,0,.65); animation: ddin .14s ease-out;
  scrollbar-width: thin; scrollbar-color: #3a4448 transparent; }
.suggest-box[hidden] { display: none; }
.sg-head { padding: 8px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sg-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--text); }
.sg-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.sg-item.act, .sg-item:hover { background: rgba(255,255,255,.07); }
.sg-item.act { box-shadow: inset 2px 0 0 var(--green); }
.sg-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-name mark { background: none; color: var(--green); }
.sg-name .verified { width: 16px; height: 16px; flex: none; }
.sg-fol { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-fol::after { content: ' â™¥'; opacity: .6; }
.sg-live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(255,92,92,.2); flex: none; }
.sg-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }


.sg-fol::after { content: none !important; }
.suggest-box { background: #151a1c; }
.sg-text { overflow: hidden; text-overflow: ellipsis; }

/* ---- v7: hover premium (sin play gigante ni borde verde) y zona de favoritos ---- */
.thumb { border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.25);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.thumb img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
.thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); transition: opacity .35s; }
.card .tag { z-index: 2; }
.fav-mini { z-index: 3; }
.thumb .play { display: none; }

@media (hover: hover) {
  .card:hover .thumb { transform: scale(1.045); border-color: transparent;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 22px 44px -8px rgba(0,0,0,.7), 0 10px 30px -12px rgba(83,252,24,.18); }
  .card:hover .thumb img { transform: scale(1.06); filter: saturate(1.08) brightness(1.04); }
  .card:hover .thumb::after { opacity: 1; }
  .card-wrap { position: relative; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
  .card-wrap:hover { z-index: 5; }
  .grid:has(.card:hover) .card-wrap:not(:hover) { opacity: .62; }
  .card:hover .card-title { color: #fff; }
  .card:hover .tag.dur, .card:hover .tag.views { transform: none; }
  /* final de clip */
  .end-card:hover .end-thumb { transform: scale(1.05); border-color: rgba(255,255,255,.2); box-shadow: 0 18px 40px -8px rgba(0,0,0,.75); }
}
.card:focus-visible .thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(83,252,24,.5); }
.end-play { display: none; }

/* Favoritos */
.fav-hero { display: flex; align-items: center; gap: 20px; padding: 6px 0; }
.fav-hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.fav-hero p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.fav-hero p span { color: var(--text); font-weight: 600; }
.fav-orb { position: relative; width: 76px; height: 76px; flex: none; border-radius: 24px; display: grid; place-items: center; color: var(--green);
  background: radial-gradient(circle at 30% 20%, rgba(83,252,24,.28), rgba(83,252,24,.06) 70%), var(--surface);
  border: 1px solid rgba(83,252,24,.28); box-shadow: 0 14px 40px -10px rgba(83,252,24,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.fav-orb svg { width: 34px; height: 34px; }
.fav-orb .hp { fill: currentColor; }
.fav-orb.big { width: 92px; height: 92px; border-radius: 28px; margin: 0 auto 22px; }
.fav-orb.big svg { width: 40px; height: 40px; }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s, color .2s, transform .15s; }
.fchip em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.fchip:hover { border-color: #3a4448; }
.fchip:active { transform: scale(.96); }
.fchip.on { background: var(--green); border-color: var(--green); color: #0b0e0f; }
.fchip.on em { background: rgba(11,14,15,.18); color: #0b0e0f; }
.fav-empty { padding: 90px 20px; }
.fav-empty .btn { margin-top: 22px; }
.fav-empty p { max-width: 380px; margin: 0 auto; line-height: 1.5; }
@media (max-width: 720px) { .fav-hero { flex-direction: column; text-align: center; } .fav-chips { justify-content: center; } }


/* =====================================================================
   v8 — Responsive premium: móvil, tablet y monitores chicos/grandes
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
.topbar { transition: transform .32s cubic-bezier(.2,.8,.2,1); padding-top: max(12px, env(safe-area-inset-top)); }
.topbar.hide { transform: translateY(-110%); }
.sheet-backdrop, .sheet-grab, .sheet-done { display: none; }
.by-ch { color: var(--green); font-weight: 600; cursor: pointer; }
.by-ch:hover { text-decoration: underline; }

/* Favoritos centrado y más cuidado */
.channel-head.is-fav { display: block; padding: 28px 0 10px; }
.fav-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 24px 38px; border-radius: 28px; border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(600px 220px at 50% 0%, rgba(83,252,24,.16), transparent 70%), linear-gradient(180deg, #141a1b, #0f1415); }
.fav-hero::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.fav-hero > * { position: relative; }
.fav-hero .fav-orb { margin-bottom: 18px; }
.fav-hero h1 { margin: 0; }
.fav-hero p { margin: 8px 0 0; }
.fav-stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.fav-stats span:not(:empty) { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.fav-stats span:first-child:not(:empty) { color: var(--green); background: var(--green-dim); border-color: rgba(83,252,24,.35); }
.fav-chips { justify-content: center; padding: 18px 0 6px; }

/* Barra de herramientas fija solo en pantallas grandes */
@media (max-width: 1099px) { .toolbar { position: static; } }

/* Monitores grandes */
@media (min-width: 1700px) {
  main { max-width: 1720px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .theater-panel { width: min(1480px, 100%, calc((100vh - 250px) * 16 / 9)); }
}
/* Monitores bajos (1366×768, 1280×720…) */
@media (min-width: 721px) and (max-height: 800px) {
  .theater-panel { width: min(1180px, 100%, calc((100vh - 210px) * 16 / 9)); }
  .theater-info { padding: 14px 22px 8px; }
  .theater-main h2 { font-size: 19px; margin-bottom: 6px; }
  .theater-nav { padding: 4px 22px 12px; }
  .hero { padding-top: 0; }
  .home { padding-top: 56px; }
}
/* Tablet */
@media (min-width: 721px) and (max-width: 1099px) {
  main { padding: 0 20px 80px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .toolbar { padding: 12px; }
  .theater { padding: 12px; }
}

/* Teléfono */
@media (max-width: 720px) {
  .topbar { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 10px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .channel-form { margin: 0; padding: 4px 4px 4px 12px; border-radius: 14px; min-width: 0; }
  .channel-form .btn { display: none; }
  .channel-form input { font-size: 16px; padding: 10px 2px; }
  .suggest-box { position: fixed; left: 12px; right: 12px; top: 64px; max-height: 60vh; }
  .fav-pill { height: 44px; padding: 0 13px; flex: none; }

  main { padding: 0 14px calc(60px + env(safe-area-inset-bottom)); }
  .home { padding: 40px 0 20px; }
  .hero h1 { font-size: 31px; line-height: 1.12; }
  .hero p { font-size: 16px; }
  .suggest, .recents { margin-top: 24px; gap: 8px; }
  .chip { padding: 9px 15px; }

  .channel-head { flex-direction: column; text-align: center; gap: 12px; padding: 22px 0 16px; }
  .avatar { width: 80px; height: 80px; }
  .ch-name { font-size: 25px; justify-content: center; flex-wrap: wrap; }
  .ch-sub { justify-content: center; }

  .toolbar { position: static; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 0; background: none; border: 0; }
  .toolbar .search { grid-column: 1 / -1; flex: none; padding: 0 14px; border-radius: 14px; }
  .toolbar .search input { font-size: 16px; padding: 13px 0; }
  .toolbar .segmented { grid-column: 1 / -1; padding: 4px; border-radius: 14px; }
  .segmented button { flex: 1; padding: 10px 8px; font-size: 14px; }
  #timeDD { min-width: 0; }
  .toolbar .dd-btn, .toolbar .btn { height: 46px; border-radius: 14px; }
  #favOnly span { display: none; }
  #favOnly { padding: 0 15px; }
  .result-meta { padding: 16px 2px 12px; min-height: 0; }

  .grid { grid-template-columns: 1fr; gap: 22px; }
  .card-title { font-size: 16px; }
  .thumb { border-radius: 16px; }

  /* Hoja inferior de filtros */
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); animation: fadein .2s; }
  .sheet-backdrop[hidden] { display: none; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; z-index: 120; max-height: 85vh; overflow-y: auto;
    border-radius: 24px 24px 0 0; border-bottom: 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); gap: 20px;
    animation: sheetin .32s cubic-bezier(.2,.8,.2,1); }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: #3a4448; margin: 4px auto 6px; }
  .sheet-done { display: inline-flex; padding: 14px; font-size: 15px; border-radius: 14px; }
  .panel .btn-ghost { padding: 13px; border-radius: 14px; }
  .panel .seg-wrap button { padding: 11px 4px; font-size: 14px; }
  .panel .dd-menu { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; animation: none; background: var(--bg-2); }
  .panel .dd-btn { padding: 13px 14px; border-radius: 14px; }
  .dd-search { font-size: 16px; }
  .active-filters .af-chip { padding: 8px 14px; }
  .fav-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -14px; padding: 16px 14px 6px; scrollbar-width: none; }
  .fav-chips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
  .fav-hero { padding: 34px 18px 30px; border-radius: 24px; }
  .fav-orb { width: 68px; height: 68px; border-radius: 22px; }

  /* Reproductor */
  .theater { padding: 0; }
  .theater-panel { width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .player { border-radius: 0; }
  .controls { padding: 28px 10px 6px; }
  .controls-row { gap: 2px; }
  .icon-btn { width: 44px; height: 44px; }
  .seek { height: 30px; }
  .seek::before, .seek-buf, .seek-fill { height: 5px; }
  .seek-knob { transform: scale(1); width: 16px; height: 16px; margin-left: -8px; }
  .time { font-size: 12px; margin-left: 2px; }
  .theater-info { padding: 18px 16px 6px; gap: 14px; }
  .theater-main h2 { font-size: 19px; }
  .theater-actions { width: 100%; }
  #dlBtn { flex: 1 1 100%; padding: 14px; font-size: 15px; border-radius: 14px; }
  #favBtn, #copyBtn { flex: 1; padding: 13px; border-radius: 14px; }
  .theater-nav { padding: 8px 16px 20px; }
  .theater-nav .btn { flex: 1; padding: 13px; border-radius: 14px; }
  .close { top: max(12px, env(safe-area-inset-top)); width: 42px; height: 42px; background: rgba(10,12,12,.6); backdrop-filter: blur(10px); }
  .shortcuts { display: none !important; }
  .end-screen { padding-top: 56px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 27px; }
  .controls-row .dd.compact .dd-btn { padding: 6px 6px 6px 8px; }
  #pipBtn { display: none; }
}
/* Teléfono en horizontal: el video ocupa toda la pantalla */
@media (max-height: 500px) and (orientation: landscape) {
  .theater-panel { width: min(100%, calc(100vh * 16 / 9)); height: 100%; border-radius: 0; margin: 0 auto; }
  .player { border-radius: 0; }
  .topbar { position: static; }
}
@keyframes sheetin { from { transform: translateY(100%); } }
@keyframes fadein { from { opacity: 0; } }


.dd-prefix:empty { display: none; }

@media (max-width: 720px) { .panel .dd { display: block; width: 100%; } }

.time { white-space: nowrap; }
@media (max-width: 720px) { #pipBtn { display: none; } .close { background: rgba(255,255,255,.14); } .controls-row .dd.compact .dd-btn { padding: 6px 7px 6px 10px; } #muteBtn { margin-right: 2px; } }

.fav-hero { gap: 0 !important; }
.brand-logo { mix-blend-mode: lighten; border-radius: 0 !important; }

@media (min-width: 721px) and (max-width: 1099px) { .toolbar .search { flex: 1 1 100%; } .toolbar .search input { padding: 12px 0; } .toolbar { gap: 10px; } #timeDD { flex: 1 1 auto; } .toolbar .segmented { flex: 0 0 auto; } }

/* Botón volver (móvil): cristal oscuro, limpio */
@media (max-width: 720px) {
  .close { top: max(12px, env(safe-area-inset-top)); left: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(10,12,12,.58) !important; border: 1px solid rgba(255,255,255,.16); color: #fff;
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: opacity .25s, transform .15s; }
  .close svg { display: block; width: 20px; height: 20px; margin-right: 1px; }
  .close:active { transform: scale(.92); }
  .player.idle ~ .close { opacity: 0; pointer-events: none; }
}

/* =====================================================================
   v9 — Pestañas, VODs, selector de días, descarga por URL, página de clip
   ===================================================================== */
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--green); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
a.btn { text-decoration: none; }
#kickBtn[hidden], #dlBtn[hidden], #favBtn[hidden] { display: none; }

/* Pestañas */
.tabs { position: relative; display: flex; gap: 4px; margin: 4px 0 22px; border-bottom: 1px solid var(--line); }
.tabs[hidden] { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 14px 20px; background: none; border: 0; font-size: 16px; font-weight: 700;
  letter-spacing: -.01em; color: var(--muted); transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.tabs button.on em { background: var(--green-dim); color: var(--green); }
.tab-ind { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--green);
  box-shadow: 0 -3px 18px rgba(83,252,24,.6); transition: transform .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1); }

/* Barra de VODs */
.vod-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vod-toolbar .search { flex: 1 1 260px; background: var(--bg-2); }
.vod-toolbar .dd-btn { padding: 11px 12px 11px 16px; }
#vodSortDD, #vodPeriodDD { min-width: 178px; }

/* Selector de días */
.day-strip-wrap { margin-top: 14px; padding: 16px 18px 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.day-strip-wrap[hidden] { display: none; }
.ds-head { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.ds-head span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 26px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.day-strip::-webkit-scrollbar { display: none; }
.ds-cell { position: relative; flex: 1 0 34px; min-width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid transparent; color: #5d6a6e; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform .15s, background .2s, border-color .2s, color .2s; }
.ds-cell small { position: absolute; top: -19px; left: 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ds-cell:disabled { cursor: default; }
.ds-cell.l1 { background: rgba(83,252,24,.12); color: #8be866; }
.ds-cell.l2 { background: rgba(83,252,24,.26); color: #a8f48a; }
.ds-cell.l3 { background: rgba(83,252,24,.46); color: #eaffe0; }
.ds-cell:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(83,252,24,.6); }
.ds-cell.sel { background: var(--green); color: #0b0e0f; border-color: var(--green); box-shadow: 0 8px 24px -6px rgba(83,252,24,.55); }
.vod-grid { margin-top: 4px; }
.vod-note { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 0; }

/* Tarjetas de VOD */
.tag.live { top: 10px; left: 10px; bottom: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; color: #ffb3b3; background: rgba(40,10,12,.72); border: 1px solid rgba(255,92,92,.6); backdrop-filter: blur(8px); }
.tag.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.vod-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 2; }
.vod-prog b { display: block; height: 100%; background: var(--green); box-shadow: 0 0 10px rgba(83,252,24,.6); }
.vod-left { color: #7c898d; }
.is-vod .theater-nav { display: none; }
.end-screen.no-recs .end-head { display: none; }

/* Descargar por URL (inicio) */
.url-box { max-width: 740px; margin: 36px auto 0; }
.url-field { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 20px; color: var(--muted);
  background: linear-gradient(180deg, #171d1f, #131819); border: 1px solid #2a3235;
  box-shadow: 0 24px 60px -28px rgba(83,252,24,.28), inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s, box-shadow .25s; }
.url-field:focus-within { border-color: rgba(83,252,24,.7); box-shadow: 0 24px 70px -24px rgba(83,252,24,.45), 0 0 0 4px rgba(83,252,24,.1); color: var(--green); }
.url-field svg { flex: none; }
.url-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 17px; padding: 14px 0; }
.url-field input::placeholder { color: #6a777b; }
.url-field .btn { height: 52px; padding: 0 28px; border-radius: 14px; font-size: 15px; }
.url-hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.home .recents { margin-top: 26px; }
.home .suggest { margin-top: 18px; }

/* Página de un clip */
.clipview { max-width: 1180px; margin: 0 auto; padding: 30px 0 70px; }
.cv-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 38px; align-items: center; padding: 20px; border-radius: 30px;
  background: radial-gradient(700px 260px at 0% 0%, rgba(83,252,24,.09), transparent 70%), linear-gradient(180deg, #151b1d, #0f1415);
  border: 1px solid rgba(255,255,255,.07); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.cv-media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px -20px rgba(0,0,0,.8); }
.cv-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.cv-media:hover img { transform: scale(1.04); }
.cv-media .big-play.static { position: absolute; inset: 0; margin: auto; animation: none; pointer-events: none; }
.cv-media:hover .big-play.static { background: #6bff3a; transform: scale(1.07); }
.cv-media .tag.dur { right: 12px; bottom: 12px; }
.cv-media .tag.mature { top: 12px; left: 12px; }
.cv-info { min-width: 0; padding: 6px 10px 6px 0; }
.cv-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.cv-info h1 { margin: 10px 0 14px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.cv-channel { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 16px 10px 10px; border-radius: 16px; text-align: left;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.cv-channel:hover { border-color: rgba(83,252,24,.5); background: rgba(83,252,24,.06); }
.cv-channel img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.cv-channel span { display: flex; flex-direction: column; gap: 2px; }
.cv-channel b { font-size: 16px; }
.cv-channel small { font-size: 13px; color: var(--green); font-weight: 600; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cv-actions .btn-primary { flex: 1 1 100%; padding: 16px 24px; font-size: 16px; box-shadow: 0 14px 40px -14px rgba(83,252,24,.5); }
.cv-actions .btn-ghost { flex: 1 1 0; }
.cv-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.cv-note svg { color: var(--green); flex: none; }
.cv-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 46px 0 20px; }
.cv-more-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.clipview .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.clipview .empty { padding: 90px 20px; }
.clipview .empty .btn { margin-top: 20px; }

@media (max-width: 960px) {
  .cv-card { grid-template-columns: 1fr; gap: 22px; padding: 14px; border-radius: 24px; }
  .cv-info { padding: 0 6px 8px; }
}
@media (max-width: 720px) {
  .tabs { margin-bottom: 16px; }
  .tabs button { flex: 1; justify-content: center; padding: 14px 10px; }
  .vod-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .vod-toolbar .search { grid-column: 1 / -1; flex: none; padding: 0 14px; border-radius: 14px; }
  .vod-toolbar .search input { font-size: 16px; padding: 13px 0; }
  .vod-toolbar .dd-btn { height: 46px; border-radius: 14px; }
  #vodSortDD, #vodPeriodDD { min-width: 0; }
  .day-strip-wrap { padding: 14px 14px 10px; border-radius: 16px; }
  .ds-cell { flex: 0 0 38px; }
  .url-box { margin-top: 26px; }
  .url-field { padding: 6px 6px 6px 14px; border-radius: 18px; gap: 8px; }
  .url-field svg { display: none; }
  .url-field input { font-size: 16px; padding: 12px 0; }
  .url-field .btn { height: 46px; padding: 0 18px; }
  .url-hint { font-size: 12px; }
  .clipview { padding-top: 16px; }
  .cv-info h1 { font-size: 22px; }
  .cv-actions .btn-ghost { flex: 1 1 calc(50% - 5px); }
  .cv-more-head { margin-top: 34px; }
  .clipview .grid { grid-template-columns: 1fr; }
}


.ds-cell.l1 { background: rgba(83,252,24,.10); }
.ds-cell.l2 { background: rgba(83,252,24,.20); }
.ds-cell.l3 { background: rgba(83,252,24,.34); }

/* Página de clip: sin play gigante, pastilla de cristal discreta */
.cv-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 48%); transition: opacity .3s; }
.cv-media .tag { z-index: 2; }
.cv-pill { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; background: rgba(14,18,19,.55); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: background .25s, border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.cv-pill-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #0b0e0f; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cv-pill-ic svg { width: 15px; height: 15px; display: block; }
.cv-media:hover .cv-pill { border-color: rgba(83,252,24,.6); background: rgba(14,18,19,.72); transform: translateY(-2px); }
.cv-media:hover .cv-pill-ic { transform: scale(1.1); }

/* Un solo buscador en el inicio */
body.on-home .channel-form { display: none; }
body.on-home .topbar { justify-content: space-between; }
.url-field { position: relative; }
.url-field .suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: left; }
.url-field .btn-primary { min-width: 118px; transition: background .2s, transform .1s, box-shadow .25s; }
.url-field .btn-primary.is-dl { box-shadow: 0 8px 28px -8px rgba(83,252,24,.65); }
.url-hint { max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.5; }
@media (max-width: 720px) {
  .url-field .suggest-box { position: absolute !important; left: 0 !important; right: 0 !important; top: calc(100% + 8px) !important; max-height: 50vh; }
  .url-field .btn-primary { min-width: 96px; }
}

.suggest-box { overscroll-behavior: contain; max-height: 440px; }
.url-field .suggest-box { max-height: 440px; }

.suggest-box.flip { top: auto !important; bottom: calc(100% + 10px) !important; }

/* Botón Buscar / Descargar del inicio */
.url-field .btn.ub { position: relative; overflow: hidden; gap: 10px; height: 54px; padding: 0 26px 0 22px; border-radius: 15px; font-size: 15px; font-weight: 800; letter-spacing: -.005em;
  color: #0b0e0f; background: linear-gradient(180deg, #7bff4a 0%, #53fc18 55%, #44e30c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.14), 0 12px 28px -10px rgba(83,252,24,.75), 0 0 0 1px rgba(83,252,24,.35);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .2s; }
.url-field .btn.ub::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transition: left .6s cubic-bezier(.2,.8,.2,1); }
.url-field .btn.ub:hover { transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.14), 0 16px 34px -10px rgba(83,252,24,.9), 0 0 0 1px rgba(83,252,24,.5); }
.url-field .btn.ub:hover::after { left: 120%; }
.url-field .btn.ub:active { transform: translateY(0) scale(.97); }
.ub-icons { position: relative; width: 19px; height: 19px; display: block; flex: none; }
.ub-icons svg { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.ub-down { opacity: 0; transform: translateY(-10px) scale(.6); }
.ub.is-dl .ub-search { opacity: 0; transform: translateY(10px) scale(.6); }
.ub.is-dl .ub-down { opacity: 1; transform: none; }
.url-field .btn.ub:hover .ub-search { transform: scale(1.12) rotate(-8deg); }
.url-field .btn.ub.is-dl:hover .ub-down { transform: translateY(2px); }
@media (max-width: 720px) { .url-field .btn.ub { height: 48px; padding: 0 16px; gap: 8px; border-radius: 13px; } .url-field .btn.ub .ub-icons { width: 17px; height: 17px; } }

.url-field .btn.ub svg { display: block !important; }

/* Canales sugeridos con foto */
.suggest .chip.with-pfp { display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; min-height: 38px; }
.suggest .chip.with-pfp:not(:has(img))::before { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); flex: none; }
.suggest .chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.suggest .chip:hover img { box-shadow: 0 0 0 2px var(--green); }

/* =====================================================================
   v10 — Logo horizontal, buscador minimalista, recorte, inicio con vida
   ===================================================================== */
/* Logo del encabezado: KICK + Clips */
.brand { gap: 12px; }
.brand-wm { height: 20px; width: auto; display: block; flex: none; }
.brand-sep { width: 1px; height: 20px; background: rgba(255,255,255,.2); }
.brand-text { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
@media (max-width: 720px) { .brand-text, .brand-sep { display: none; } .brand-wm { height: 17px; } }

/* Botón buscar del inicio: minimalista */
.url-field .btn.ub { height: 52px; padding: 0 24px; border-radius: 14px; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: 0;
  background: var(--green); color: #0b0e0f; box-shadow: none; filter: none; border: 0; overflow: visible;
  transition: background .2s, transform .15s; }
.url-field .btn.ub::after { content: none; }
.url-field .btn.ub:hover { background: #66ff33; box-shadow: none; filter: none; transform: none; }
.url-field .btn.ub:active { transform: scale(.97); }
.url-field .btn.ub.is-dl { box-shadow: none; }
.ub-icons { width: 18px; height: 18px; }
.url-field .btn.ub:hover .ub-search { transform: none; }
.url-field .btn.ub.is-dl:hover .ub-down { transform: translateY(1px); }
@media (max-width: 720px) { .url-field .btn.ub { height: 46px; padding: 0 18px; border-radius: 12px; } }

/* Inicio con vida */
.home-feed { max-width: 1240px; margin: 0 auto; padding: 18px 0 40px; text-align: left; }
.home-feed[hidden] { display: none; }
.feed-block { margin-top: 38px; }
.feed-block[hidden] { display: none; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feed-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.02em; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.6); animation: livepulse 1.8s infinite; }
.live-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.live-card { display: flex; align-items: center; gap: 16px; padding: 16px; text-align: left; border-radius: 18px; color: var(--text);
  background: linear-gradient(180deg, #161c1e, #12171a); border: 1px solid var(--line); transition: border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.live-card:hover { transform: translateY(-3px); border-color: rgba(255,92,92,.45); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 30px -10px rgba(255,77,77,.25); }
.lc-av { position: relative; flex: none; width: 64px; height: 64px; }
.lc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 2px #12171a, 0 0 0 4px #ff4d4d; }
.lc-live { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; background: #ff4d4d; color: #fff; white-space: nowrap; box-shadow: 0 0 0 2px #12171a; }
.lc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lc-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.lc-name .verified { width: 16px; height: 16px; flex: none; }
.lc-title { color: #c4cdd0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta { color: var(--muted); font-size: 13px; }
.lc-meta b { color: var(--text); }
@media (max-width: 720px) {
  .feed-block { margin-top: 30px; }
  .live-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; margin: 0 -14px; padding: 4px 14px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .live-row::-webkit-scrollbar { display: none; }
  .live-card { scroll-snap-align: start; }
  .home-feed .grid { grid-template-columns: 1fr; }
}

/* Recorte */
.trim-sel { position: absolute; top: 50%; height: 14px; transform: translateY(-50%); background: rgba(83,252,24,.28); border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); z-index: 1; }
.trim-sel[hidden] { display: none; }
.trim-h { position: absolute; top: 50%; width: 14px; height: 26px; transform: translateY(-50%); border-radius: 5px; background: var(--green); cursor: ew-resize; touch-action: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.trim-h::after { content: ''; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 2px; transform: translateX(-50%); background: rgba(11,14,15,.55); border-radius: 1px; }
.trim-h.l { left: -14px; border-radius: 6px 0 0 6px; }
.trim-h.r { right: -14px; border-radius: 0 6px 6px 0; }
.seek-fill, .seek-knob, .seek-buf { z-index: 0; }
.player.trimming .seek { height: 34px; }
.trim-info { display: flex; align-items: center; gap: 12px; }
.trim-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-dim); color: var(--green); }
.trim-times { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: pre; }
.trim-len { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.07); color: var(--muted); }
.trim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trim-actions .btn { padding: 10px 14px; }
.trim-actions kbd { min-width: 22px; padding: 1px 6px; font-size: 11px; }
.trim-hint { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--muted); }
#trimToggle.on { border-color: rgba(83,252,24,.65); color: var(--green); background: var(--green-dim); }
#trimToggle[hidden] { display: none; }
#favBtn svg, #copyBtn svg, #trimToggle svg { flex: none; }
#copyBtn { gap: 8px; }
@media (max-width: 720px) {
  .trim-bar { padding: 14px 16px; }
  .trim-actions { width: 100%; }
  .trim-actions .btn-primary { flex: 1 1 100%; order: 5; padding: 14px; border-radius: 14px; }
  .trim-actions .btn-ghost { flex: 1; }
  .trim-actions kbd { display: none; }
  .theater-actions #trimToggle { flex: 1; }
}


@media (max-width: 720px) { .live-row { scroll-padding-left: 14px; } .brand-text { display: block !important; font-size: 17px; } .brand { gap: 9px; } .brand-sep { display: none; } }

/* =====================================================================
   v11 — Rótulo animado, recorte flotante, vista previa, en vivo
   ===================================================================== */
/* "Clips" ↔ "VODs" con rodillo */
.brand-roll { display: block; height: 1.3em; overflow: hidden; line-height: 1.3em; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.roll-track { display: flex; flex-direction: column; animation: brandroll 7s cubic-bezier(.76,0,.24,1) infinite; will-change: transform; }
.roll-track > span { display: block; height: 1.3em; line-height: 1.3em; }
.roll-track > span:nth-child(2) { color: var(--green); }
@keyframes brandroll {
  0%, 42% { transform: translateY(0); }
  50%, 92% { transform: translateY(-1.3em); }
  100% { transform: translateY(-2.6em); }
}
.brand:hover .roll-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .roll-track { animation: none; } }

/* Barra de recorte flotante dentro del reproductor */
.trim-bar { position: absolute; left: 16px; right: 16px; bottom: 82px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px 10px 14px; border-radius: 18px; background: rgba(12,15,16,.8); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: ddin .2s ease-out; }
.trim-bar[hidden] { display: none; }
.trim-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trim-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--green-dim); color: var(--green); }
.trim-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trim-times { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: pre; color: #fff; }
.trim-hint { font-size: 12px; color: #98a5a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.trim-len { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); color: #c9d2d5; white-space: nowrap; }
.trim-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.trim-actions .btn { height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.trim-actions .btn-ghost { background: rgba(255,255,255,.07); border-color: transparent; }
.trim-actions .btn-ghost:hover { background: rgba(255,255,255,.13); }
.trim-actions kbd { min-width: 20px; padding: 0 5px; font-size: 11px; border-bottom-width: 1px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.trim-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; color: #9aa7ab; transition: background .2s, color .2s; }
.trim-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.player.trimming .controls { opacity: 1 !important; }
.player.trimming.idle { cursor: default; }
.player.trimming .big-play { display: none; }

/* Sin prev/sig y sin barras de scroll feas */
.theater-nav { display: none !important; }
.theater-panel { scrollbar-width: thin; scrollbar-color: #2a3235 transparent; width: min(1180px, 100%, calc((100vh - 195px) * 16 / 9)); }
.theater-panel::-webkit-scrollbar { width: 8px; }
.theater-panel::-webkit-scrollbar-thumb { background: #2a3235; border-radius: 4px; }
@media (min-width: 721px) and (max-height: 800px) { .theater-panel { width: min(1180px, 100%, calc((100vh - 170px) * 16 / 9)); } }
@media (min-width: 1700px) { .theater-panel { width: min(1480px, 100%, calc((100vh - 195px) * 16 / 9)); } }
@media (max-width: 720px) {
  .theater-panel { width: 100%; }
  .trim-bar { position: static; margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; flex-wrap: wrap; padding: 12px 14px; background: linear-gradient(180deg, rgba(83,252,24,.08), transparent); backdrop-filter: none; }
  .trim-info { width: 100%; }
  .trim-hint { max-width: 60vw; }
  .trim-actions { width: 100%; flex-wrap: wrap; }
  .trim-actions .btn-ghost { flex: 1; }
  .trim-actions .btn-primary { flex: 1 1 100%; order: 5; height: 48px; }
  .trim-actions kbd { display: none; }
  .trim-x { position: absolute; top: 8px; right: 8px; }
}

/* Vista previa en las tarjetas del inicio */
.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; background: #000; }
.card.previewing .pv { opacity: 1; }
.card.previewing .thumb img { opacity: 0; }
.card .pv + .tag, .card .pv ~ .tag { z-index: 2; }

/* En vivo: prioritario destacado y mínimo 3 */
.live-card.prio { border-color: rgba(83,252,24,.3); background: radial-gradient(420px 120px at 0% 0%, rgba(83,252,24,.1), transparent 70%), linear-gradient(180deg, #161c1e, #12171a); }
.live-card.off .lc-av img { box-shadow: 0 0 0 2px #12171a, 0 0 0 4px #3a4448; filter: grayscale(.4); }
.live-card.off .lc-live { background: #3a4448; color: #c9d2d5; }
.live-card.off:hover { border-color: #3a4448; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
@media (min-width: 900px) { .live-row.n3 { grid-template-columns: repeat(3, 1fr); } }

/* Con "reducir movimiento": fundido suave en vez de rodillo */
@media (prefers-reduced-motion: reduce) {
  .brand-roll { min-width: 2.7em; position: relative; -webkit-mask-image: none; mask-image: none; }
  .roll-track { animation: none; display: block; position: relative; height: 1.3em; }
  .roll-track > span { position: absolute; left: 0; top: 0; opacity: 0; animation: brandfade 7s ease-in-out infinite; }
  .roll-track > span:nth-child(1) { animation-delay: 0s; }
  .roll-track > span:nth-child(2) { animation-delay: -3.5s; }
  .roll-track > span:nth-child(3) { display: none; }
}
@keyframes brandfade { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }

/* =====================================================================
   v12 — 3 en línea, buscar sin lupa, apoyo, recorte tipo editor
   ===================================================================== */
.nav-right { display: inline-flex; align-items: center; gap: 10px; flex: none; }
#supportSlot { display: contents; }

/* Botón de apoyo (se activa en public/site-config.js) */
.support-pill { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; text-decoration: none; color: var(--text);
  font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2,.8,.2,1), color .2s; }
.support-pill .cup { color: #ffc247; flex: none; }
.support-pill .steam { stroke-dasharray: 3 3; opacity: .7; }
.support-pill:hover { border-color: rgba(255,194,71,.55); background: rgba(255,194,71,.07); transform: translateY(-1px); }
.support-pill:hover .steam { animation: steam 1.2s linear infinite; }
@keyframes steam { to { stroke-dashoffset: -12; } }
@media (max-width: 860px) { .support-t { display: none; } .support-pill { padding: 0 12px; } }

/* Botón buscar: solo texto */
.url-field .btn.ub { padding: 0 26px; min-width: 112px; }
.ub-icons { display: none !important; }

/* Siempre de 3 en 3 (en vivo y clips del inicio) */
@media (min-width: 721px) {
  .live-row, .live-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-feed .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Vista previa con sonido */
.pv-ind { position: absolute; right: 10px; top: 54px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(14,18,19,.6); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); pointer-events: none; animation: ddin .2s ease-out; }
.pv-ind.off { color: #9aa7ab; }

/* Recorte: campos de tiempo en una sola fila */
.trim-field { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07);
  border: 1px solid transparent; transition: border-color .2s, background .2s; cursor: text; }
.trim-field:focus-within { border-color: rgba(83,252,24,.7); background: rgba(83,252,24,.06); }
.trim-field span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8d9a9e; }
.trim-field input { width: 74px; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: 700 16px var(--font); font-variant-numeric: tabular-nums; text-align: right; padding: 0 10px 0 0; }
.trim-arrow { color: #667276; font-weight: 700; }
.trim-info { gap: 10px; }
.trim-len { margin-left: 4px; }
.trim-hint, .trim-txt, .trim-times { display: none; }
@media (max-width: 720px) {
  .trim-info { flex-wrap: wrap; width: 100%; padding-right: 36px; }
  .trim-field input { width: 60px; }
}

/* Ventana de tiempo del recorte (VODs) */
.trim-win { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #8d9a9e; background: rgba(255,255,255,.05); white-space: nowrap; }
.trim-win[hidden] { display: none; }
.home .recents { display: none; }

/* Recorte de VODs: modo clip / modo fragmento */
.trim-bar { flex-direction: column; align-items: stretch; gap: 8px; }
.trim-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.trim-note { margin: 0; font-size: 12px; line-height: 1.4; color: #8d9a9e; padding: 0 2px; }
.trim-note:empty { display: none; }
.trim-mode { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.07); flex: none; }
.trim-mode[hidden] { display: none; }
.trim-mode button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 700; color: #9aa7ab; transition: background .2s, color .2s; }
.trim-mode button:hover { color: #fff; }
.trim-mode button.on { background: var(--green); color: #0b0e0f; }
.trim-mark { width: 30px; height: 30px; margin-right: 4px; border-radius: 8px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.09); color: #cfd8db; flex: none; transition: background .2s, color .2s; }
.trim-mark[hidden] { display: none; }
.trim-mark:hover { background: var(--green); color: #0b0e0f; }
.trim-field:has(.trim-mark:not([hidden])) input { padding-right: 6px; width: 84px; }
.trim-size { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-dim); white-space: nowrap; }
.trim-size[hidden], .trim-size:empty { display: none; }
#trimQDD[hidden] { display: none; }
.trim-bar .trim-info { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 720px) {
  .trim-row { flex-direction: column; align-items: stretch; }
  .trim-bar .trim-actions { width: 100%; flex-wrap: wrap; }
  .trim-bar .trim-actions .btn-primary { flex: 1 1 auto; order: 5; }
  .trim-mode { width: 100%; }
  .trim-mode button { flex: 1; }
  .trim-note { padding-right: 36px; }
}

/* Descarga directa en curso */
#trimDl.is-cancel { background: rgba(255,255,255,.12); color: #fff; }
#trimDl.is-cancel:hover { background: rgba(255,92,92,.25); }
@media (max-width: 720px) { .theater-actions #fullBtn { flex: 1 1 100%; } }

/* Pie de página (solo en el inicio) */
.site-footer { display: none; border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); }
body.on-home .site-footer { display: block; }
.ft-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  font-size: 12.5px; line-height: 1.5; color: #75828a; text-align: center; }
.ft-copy { color: #98a5a9; font-weight: 600; }
.ft-dot { opacity: .5; }
.ft-link { display: inline-flex; align-items: center; gap: 5px; color: #98a5a9; text-decoration: none; font-weight: 600; transition: color .2s; }
.ft-link:hover { color: var(--green); }
@media (max-width: 720px) { .ft-dot { display: none; } .ft-copy { flex: 1 1 100%; } }

body.on-home main { padding-bottom: 8px; }
body.on-home .home-feed { padding-bottom: 12px; }

/* Tamaño estimado junto a la calidad; el grupo de acciones no se parte */
.trim-bar .trim-actions { flex-wrap: nowrap; flex: none; }
.trim-bar .trim-actions .trim-size { order: -1; }
@media (max-width: 720px) { .trim-bar .trim-actions { flex-wrap: wrap; } .trim-bar .trim-actions .trim-size { order: 0; } }

/* Barra de recorte más compacta para que quepa en una fila */
@media (min-width: 721px) {
  .trim-bar { padding: 10px 12px; }
  .trim-bar .trim-info { gap: 8px; row-gap: 8px; }
  .trim-bar .trim-ic { width: 34px; height: 34px; }
  .trim-bar .trim-mode button { padding: 0 11px; height: 34px; }
  .trim-bar .trim-field { height: 40px; padding-left: 10px; gap: 6px; }
  .trim-bar .trim-field span { font-size: 10px; }
  .trim-bar .trim-field input { font-size: 15px; width: 70px; }
  .trim-bar .trim-field:has(.trim-mark:not([hidden])) input { width: 78px; }
  .trim-bar .trim-mark { width: 28px; height: 28px; }
  .trim-bar .trim-actions { gap: 6px; }
  .trim-bar .trim-actions .btn { height: 40px; padding: 0 14px; }
  .trim-bar .trim-len, .trim-bar .trim-size, .trim-bar .trim-win { padding: 3px 9px; font-size: 12px; }
}

/* En VODs el selector de modo ya identifica la barra: se oculta el ícono para ganar espacio */
@media (min-width: 721px) { .trim-bar:has(#trimMode:not([hidden])) .trim-ic { display: none; } }
.trim-len { position: relative; }

/* El ancho de los campos de tiempo lo ajusta el script según el texto */
.trim-bar .trim-field input, .trim-bar .trim-field:has(.trim-mark:not([hidden])) input { width: auto; min-width: 5ch; }

/* Esqueletos del "En vivo" mientras llega */
.live-card.sk { pointer-events: none; }
.sk-av, .sk-l { display: block; background: linear-gradient(100deg, #1a2123 30%, #232b2e 50%, #1a2123 70%); background-size: 200% 100%; animation: sh 1.3s infinite linear; }
.sk-av { width: 64px; height: 64px; border-radius: 50%; }
.sk-l { height: 12px; border-radius: 6px; margin: 4px 0; }
.sk-l.w60 { width: 60%; } .sk-l.w90 { width: 90%; } .sk-l.w40 { width: 40%; }

/* =====================================================================
   Contenido informativo del inicio (guía + preguntas frecuentes)
   ===================================================================== */
.seo-content { display: none; position: relative; margin-top: 130px; padding-top: 84px; }
body.on-home .seo-content { display: block; }
.seo-content::before { content: ''; position: absolute; top: 0; left: 50%; width: min(720px, 82%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(83,252,24,.6), transparent); }
.seo-content::after { content: ''; position: absolute; top: 0; left: 50%; width: 760px; max-width: 100%; height: 340px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(83,252,24,.11), transparent 70%); }
.seo-wrap { position: relative; z-index: 1; max-width: 1288px; margin: 0 auto; padding: 0 24px; }

.seo-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.seo-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); background: var(--green-dim); border: 1px solid rgba(83,252,24,.3); }
.seo-head h2 { margin: 20px 0 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.seo-lead { margin: 0; color: #aab6ba; font-size: 18px; line-height: 1.65; }
.seo-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; }
.seo-badges li { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #dfe6e4; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }

.seo-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.seo-panel { position: relative; overflow: hidden; padding: 30px 30px 26px; border-radius: 26px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(420px 180px at 0% 0%, rgba(83,252,24,.10), transparent 70%), linear-gradient(180deg, #161c1e, #11161a);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
.seo-panel:hover { transform: translateY(-4px); border-color: rgba(83,252,24,.3); box-shadow: 0 26px 60px -30px rgba(83,252,24,.25); }
.seo-panel header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.seo-panel h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.seo-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(83,252,24,.28); }
.seo-panel ol { list-style: none; margin: 0; padding: 0; }
.seo-panel li { position: relative; display: flex; gap: 16px; padding-bottom: 20px; }
.seo-panel li:last-child { padding-bottom: 0; }
.seo-panel li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, rgba(83,252,24,.45), rgba(83,252,24,.05)); }
.seo-panel .n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  color: #0b0e0f; background: var(--green); box-shadow: 0 0 0 5px rgba(83,252,24,.14); }
.seo-panel li p { margin: 6px 0 0; color: #b9c3c6; line-height: 1.6; }

.seo-h { margin: 76px 0 26px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; text-align: center; }
.seo-feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.seo-feats li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #151b1d, #11161a);
  border: 1px solid rgba(255,255,255,.07); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.seo-feats li:hover { transform: translateY(-3px); border-color: rgba(83,252,24,.28); }
.seo-feats p { margin: 0; color: #c1cbce; line-height: 1.55; font-size: 15.5px; }

.seo-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.seo-faq details { border-radius: 18px; background: linear-gradient(180deg, #151b1d, #11161a); border: 1px solid rgba(255,255,255,.07); transition: border-color .25s, background .25s; }
.seo-faq details:hover { border-color: rgba(255,255,255,.14); }
.seo-faq details[open] { border-color: rgba(83,252,24,.4); }
.seo-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-dim) no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353fc18' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.seo-faq details[open] summary::after { transform: rotate(45deg); }
.seo-faq p { margin: 0; padding: 0 22px 20px; color: #b4bec1; line-height: 1.65; }

.seo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.seo-links a { padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: #9aa7ab;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: color .2s, border-color .2s, background .2s; }
.seo-links a:hover { color: var(--green); border-color: rgba(83,252,24,.4); background: var(--green-dim); }

/* Aparición suave al hacer scroll */
.js .seo-content .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .seo-content .reveal.in { opacity: 1; transform: none; }
.js .seo-content .seo-panel.reveal.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .js .seo-content .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) { .seo-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .seo-content { margin-top: 90px; padding-top: 60px; }
  .seo-wrap { padding: 0 14px; }
  .seo-head { margin-bottom: 36px; }
  .seo-lead { font-size: 16px; }
  .seo-panels, .seo-faq, .seo-feats { grid-template-columns: 1fr; }
  .seo-panel { padding: 22px 20px; border-radius: 22px; }
  .seo-h { margin: 52px 0 20px; }
}

.js .seo-content .reveal.in { transition-delay: 0s; transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
