/* Panel IPTV · Películas y series y discos del Dashboard */
.vv { display: flex; flex-direction: column; gap: 14px; }
.vk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vk .kpi { min-height: 104px; }
.k-run { color: var(--blue); } .k-wait { color: var(--amber); } .k-ok { color: var(--good); }
.vod-note { margin: 0; }
.vod-note a { color: inherit; font-weight: 600; }
.vmeter { height: 8px; border-radius: 5px; background: var(--panel-2); overflow: hidden; margin: 4px 0 2px; }
.vmeter i { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .4s; }
.vmeter.ok i { background: var(--good); } .vmeter.wait i { background: var(--amber); } .vmeter.bad i { background: var(--red); } .vmeter.dl i { background: var(--violet); } .vmeter.run i { background: var(--blue); }
.vmini { height: 4px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.vmini i { display: block; height: 100%; background: var(--blue); }
.vmini.dl i { background: var(--violet); }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; width: max-content; max-width: 100%; white-space: nowrap; }
.st.ok { background: color-mix(in srgb, var(--good) 18%, transparent); color: color-mix(in srgb, var(--good) 70%, var(--text)); }
.st.run { background: color-mix(in srgb, var(--blue) 20%, transparent); color: color-mix(in srgb, var(--blue) 75%, var(--text)); }
.st.wait { background: color-mix(in srgb, var(--amber) 20%, transparent); color: color-mix(in srgb, var(--amber) 80%, var(--text)); }
.st.bad { background: color-mix(in srgb, var(--red) 20%, transparent); color: color-mix(in srgb, var(--red) 80%, var(--text)); }
.st.dl { background: color-mix(in srgb, var(--violet) 22%, transparent); color: color-mix(in srgb, var(--violet) 80%, var(--text)); }
.st.muted { background: var(--panel-2); color: var(--muted); }

/* pósters */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pst { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s, transform .15s; }
.pst:hover { border-color: var(--brand); transform: translateY(-2px); }
.pst.unpub .art { filter: saturate(.55) brightness(.85); }
.art { position: relative; aspect-ratio: 2/3; display: flex; align-items: flex-end; padding: 10px; color: #fff; overflow: hidden; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art img + .art-t { display: none; }
.art-t { position: relative; font-weight: 800; font-size: 15px; line-height: 1.15; text-shadow: 0 2px 6px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.art.big { width: 200px; border-radius: 10px; font-size: 18px; }
.pst .q { position: absolute; top: 8px; left: 8px; font: 700 10px/1 var(--mono); color: #fff; background: rgba(0,0,0,.6); padding: 3px 5px; border-radius: 4px; }
.pst .chk { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.35); }
.pst .meta { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.pst .meta .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst .meta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border-radius: 10px; font-size: 13px; }
.bulk .sel { width: auto; }
.btn.danger-ghost { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: transparent; }
.note-box { border-left: 3px solid var(--brand-2); background: color-mix(in srgb, var(--brand-2) 9%, var(--panel)); padding: 10px 12px; border-radius: 8px; font-size: 12.5px; }
.note-box b { color: var(--brand-2); }
.small { font-size: 11.5px; }
.arrow { color: var(--muted); }

/* categorías */
.vcat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vcat-cols .card h3 { margin: 0; }
.vcat-new input { flex: 1; }
.vc-rename input { width: 220px; }

/* orígenes */
.sec2 { font-size: 15px; margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.sec2 .num, .pill-q { display: inline-grid; place-items: center; }
.sec2 .num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-2); color: #1b1203; font-size: 12px; font-weight: 800; }
.src-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.vsrc h3 .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); font-size: 16px; }
.vsrc .foot { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; align-items: center; flex-wrap: wrap; }
.kv2 { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; margin: 0; }
.kv2 dt { color: var(--muted); } .kv2 dd { margin: 0; overflow-wrap: anywhere; }
.vdrop { display: block; border: 2px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.vdrop:hover, .vdrop.over { border-color: var(--brand); color: var(--text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.vup { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: center; font-size: 12px; }
.vup > span { overflow-wrap: anywhere; }
.vup > b { white-space: nowrap; }
.vsrc.vupcard { grid-column: span 2; }
@media (max-width: 760px) { .vsrc.vupcard { grid-column: auto; } }
.vup .vmeter, .vup small { grid-column: 1 / -1; }
.vup .btn.sm { padding: 2px 9px; font-size: 11.5px; }
.vup .icon-btn { width: 24px; height: 24px; font-size: 15px; line-height: 1; }
#vup-list { display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.vup-all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.vup-all .spacer { flex: 1; }
.vup-all .seg button { height: 24px; padding: 0 10px; font-size: 12px; }
.xt-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; align-items: start; }
.xt-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xt-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xt-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xt-grid .span2 { grid-column: span 2; } .xt-grid .span3 { grid-column: span 3; } .xt-grid .span4 { grid-column: span 4; }
.row.tight { gap: 6px; align-items: center; flex-wrap: nowrap; }
.row.tight select { width: auto; }
.ok-box { border: 1px solid color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, var(--panel)); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.radio2 { display: flex; gap: 10px; }
.radio2 div { flex: 1; border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.radio2 div.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.radio2 div b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.radio2 div b::before { content: "○ "; color: var(--muted); } .radio2 div.on b::before { content: "● "; color: var(--brand); }
.xt-cats { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.xt-h { position: sticky; top: 0; background: var(--panel-2); padding: 6px 10px; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.xt-c { display: grid; grid-template-columns: 18px 1fr auto 80px; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-direction: row; color: var(--text); font-size: 13px; cursor: pointer; }
.xt-c small.mono { text-align: right; }
.xt-cats p { padding: 6px 10px; margin: 0; }

/* cola */
.q-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
.q-cols .card h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.pill-q { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: var(--brand-2); color: #1b1203; }
.rules { padding-left: 18px; margin: 0; } .rules li { margin: 0 0 7px; font-size: 12.5px; }
#q-body td { vertical-align: middle; }

/* detalle */
.tt-top { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.tt-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tt-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.tt-main textarea { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: inherit; resize: vertical; }
.tmdb-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tmdb-c { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.tmdb-c img, .tmdb-c .noimg { width: 70px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; background: var(--panel-2); display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.tmdb-c p { margin: 4px 0; font-size: 12px; }
.pk-sub { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* discos (Dashboard) */
.disk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 14px; }
.disk { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.disk h3 { margin: 0 0 2px; font-size: 15px; }
.disk .roles { font-size: 12px; color: var(--muted); }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .c b { font-size: 28px; font-weight: 700; }
.ring .c small { display: block; color: var(--muted); font-size: 11px; }
.disk-nums { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 18px; justify-content: start; margin: 8px 0; }
.disk-nums span { font-size: 11.5px; color: var(--muted); }
.disk-nums b { font-size: 17px; font-weight: 650; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-2); gap: 2px; }
.stack i { display: block; height: 100%; min-width: 3px; }
.legend2 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.disk-msg { font-size: 12.5px; margin-top: 6px; }
.phys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.phys .pd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12.5px; }
.phys .pd .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); font: 700 10px var(--mono); color: var(--muted); }
.phys .pd b { font-size: 14px; }

@media (max-width: 1280px) { .vk { grid-template-columns: repeat(3, minmax(0, 1fr)); } .q-cols, .xt-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .vcat-cols { grid-template-columns: 1fr; } .tt-top { grid-template-columns: 1fr; } .xt-grid { grid-template-columns: 1fr 1fr; } .xt-grid .span3, .xt-grid .span4 { grid-column: span 2; } }
@media (max-width: 700px) { .vk { grid-template-columns: repeat(2, minmax(0, 1fr)); } .posters { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } .disk { grid-template-columns: 1fr; } .radio2 { flex-direction: column; } }
.good-ink { color: var(--good); }

/* películas y series en proceso (Dashboard) */
.act-card { margin-top: 14px; border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.act-card h3 { display: flex; align-items: center; gap: 8px; }
.act-src { display: flex; flex-direction: column; gap: 4px; }
.act-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.act-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.act-row { display: grid; grid-template-columns: 172px minmax(180px, 1fr) minmax(160px, 260px) 46px minmax(220px, 1fr); gap: 10px; align-items: center; font-size: 12.5px; }
.act-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row .vmeter { margin: 0; }
.act-row .st { display: block; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .act-row { grid-template-columns: 1fr 1fr; } }

/* horario de copia y «Copiar ahora» */
.lbl { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.lbl label.check { font-size: 12.5px; gap: 6px; }
.vsrc dd .st { white-space: normal; width: auto; }
.lbl select:disabled { opacity: .45; }
.cn-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.cn-opts label.check { border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; font-size: 13px; }
.cn-opts label.check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--panel)); }
.cn-opts input[type=radio] { width: 16px; height: 16px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--brand); }
.cn-opts label.check span { display: flex; flex-direction: column; gap: 2px; }
.cn-opts label.check b { font-size: 13.5px; } .cn-opts label.check small { color: var(--muted); font-size: 12px; }
.act-h .btn.sm { padding: 3px 10px; }

.act-h .st { white-space: normal; width: auto; max-width: 70%; }
#preview-video { display: block; width: 100%; max-height: 65vh; background: #000; border-radius: 10px; }
#preview-msg { margin: 10px 0 0; }
.ts-wrap { max-height: 45vh; overflow-y: auto; margin-top: 8px; }

/* orden de los títulos de una categoría */
.vord-tools { gap: 10px; align-items: center; }
.vord-tools .search:first-child { flex: 1; max-width: 340px; }
ol.vord { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ol.vord li { display: grid; grid-template-columns: auto 60px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
ol.vord li[draggable] { cursor: grab; }
ol.vord li.dragging { opacity: .45; }
ol.vord li.drop-before { box-shadow: inset 0 3px 0 var(--accent, #0a7cff); }
ol.vord li.drop-after { box-shadow: inset 0 -3px 0 var(--accent, #0a7cff); }
ol.vord li.hit { border-color: var(--accent, #0a7cff); }
ol.vord li.flash { animation: vflash 1.2s ease-out; }
@keyframes vflash { from { background: color-mix(in srgb, var(--accent, #0a7cff) 35%, var(--panel-2)); } to { background: var(--panel-2); } }
ol.vord .grip { color: var(--muted); letter-spacing: -2px; user-select: none; }
ol.vord .vpos { width: 60px; height: 28px; padding: 0 6px; text-align: right; }
ol.vord .th { width: 26px; height: 38px; border-radius: 4px; overflow: hidden; background: var(--line); }
ol.vord .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
ol.vord .vt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.vord .vt small { color: var(--muted); }
ol.vord .mv { display: flex; gap: 2px; }
ol.vord .mv .icon-btn { width: 28px; height: 28px; }
#dlg-vorder footer { align-items: center; }
