/*!
 * StudioLiveCode IBO Player — telas do player
 * Desenvolvido por StudioLiveCode
 * © 2026 StudioLiveCode. Todos os direitos reservados. Proibida a revenda ou redistribuição sem autorização.
 */
:root {
    --slc-brand: #b71c1c;
    --bg: #050508;
    --col1: #111114;
    --col2: #0a0a0c;
    --line: rgba(255, 255, 255, .08);
    --muted: #a0a0a8;
    --yellow: #ffeb3b;
    --active-ch: #0277bd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: #fff; font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; overflow: hidden; display: flex; flex-direction: column; }
button, input { font-family: inherit; }
a { color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.slc-screen { min-height: 0; }

/* Logo */
.slc-logo-l { font-weight: 300; }
.slc-logo-r { font-weight: 800; }

/* ================================ MAC E PLAYLISTS ================================ */
.slc-start-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto;
    background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--slc-brand) 28%, transparent), transparent 55%), radial-gradient(circle at center, #1a0b0b 0%, #050508 100%); }
.slc-start-card { display: flex; width: 100%; max-width: 980px; min-height: 480px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.slc-start-left { flex: 1; padding: 40px; background: linear-gradient(160deg, color-mix(in srgb, var(--slc-brand) 55%, #000), #1a0000); display: flex; flex-direction: column; gap: 26px; }
.slc-start-brand { display: flex; align-items: center; gap: 16px; }
.slc-start-brand h1 { font-size: 2rem; letter-spacing: 3px; text-transform: uppercase; }
.slc-big-play { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.slc-mac-box { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 18px 20px; }
.slc-mac-box span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.slc-mac-box b { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 1.9rem; letter-spacing: 2px; color: var(--yellow); word-break: break-all; }
.slc-start-steps { padding-left: 20px; display: grid; gap: 10px; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.45; }
.slc-start-steps a { color: var(--yellow); font-weight: 700; word-break: break-all; }
.slc-start-free { margin-top: auto; font-size: .85rem; color: rgba(255,255,255,.8); }
.slc-start-free i { color: #69f0ae; margin-right: 6px; }
.slc-start-right { flex: 1; background: #0d0d10; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.slc-error-msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; background: rgba(255, 82, 82, .12); color: #ff8a80; border: 1px solid rgba(255, 82, 82, .3); font-size: .9rem; }
.slc-error-msg.slc-wait { background: rgba(255, 215, 0, .1); color: #ffd54f; border-color: rgba(255, 215, 0, .3); }
.slc-dev-credit { margin-top: 18px; font-size: .75rem; color: rgba(255,255,255,.4); }

/* ================================ PAINEL IBO ================================ */
.slc-app-container { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.slc-home-screen { flex: 1; display: flex; flex-direction: column; padding: 26px 50px 18px; overflow-y: auto; background: radial-gradient(circle at center, #1a0b0b 0%, #050508 100%); }
.slc-top-header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 16px; }
.slc-clock-area { display: flex; flex-direction: column; line-height: 1.1; }
.slc-clock-area b { font-size: 1.6rem; font-weight: 600; }
.slc-clock-area span { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.slc-logo-area { position: absolute; left: 50%; transform: translateX(-50%); font-size: 2rem; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.slc-expiry-info { font-size: .9rem; color: #ddd; }
.slc-expiry-info b { color: var(--yellow); }
.slc-dashboard-container { flex: 1; display: flex; justify-content: center; align-items: center; gap: 20px; max-width: 1200px; width: 100%; margin: 0 auto; min-height: 340px; }
.slc-card-big, .slc-card-square { background: linear-gradient(145deg, color-mix(in srgb, var(--slc-brand) 45%, #000), #250000); border-radius: 14px; box-shadow: 0 4px 15px rgba(0,0,0,.5);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 2px solid transparent; cursor: pointer; transition: .25s; outline: none; font-weight: 700; letter-spacing: 1px; }
.slc-card-wide { background: rgba(255,255,255,.05); border: 1px solid color-mix(in srgb, var(--slc-brand) 70%, transparent); border-radius: 10px; display: flex; align-items: center; gap: 14px; padding: 0 20px; cursor: pointer; transition: .25s; outline: none; font-weight: 600; }
.slc-card-big:hover, .slc-card-square:hover, .slc-card-wide:hover, .slc-card-big:focus-visible, .slc-card-square:focus-visible, .slc-card-wide:focus-visible {
    transform: scale(1.03); border-color: #fff; box-shadow: 0 0 22px color-mix(in srgb, var(--slc-brand) 60%, transparent); z-index: 2; }
.slc-col-big { width: 320px; height: 340px; display: flex; flex-shrink: 0; }
.slc-card-big { width: 100%; font-size: 1.3rem; }
.slc-card-big i { font-size: 4.2rem; }
.slc-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 340px; height: 340px; flex-shrink: 0; }
.slc-card-square { font-size: .95rem; }
.slc-card-square i { font-size: 2.3rem; }
.slc-col-menu { width: 260px; height: 340px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.slc-col-menu .slc-card-wide { flex: 1; }
.slc-card-wide i { width: 22px; text-align: center; color: var(--slc-brand); filter: brightness(1.6); }
.slc-footer-area { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: .85rem; color: var(--muted); }
.slc-footer-left { display: flex; gap: 22px; flex-wrap: wrap; }
.slc-footer-left b { color: #fff; font-weight: 600; }
.slc-reload-btn { background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #fff; padding: 9px 18px; border-radius: 30px; cursor: pointer; font-weight: 600; }
.slc-reload-btn:hover { border-color: var(--slc-brand); }
.slc-footer-right { font-size: .75rem; }

/* ================================ TOPO DAS TELAS INTERNAS ================================ */
.slc-header-area { display: none; align-items: center; gap: 16px; height: 60px; padding: 0 18px; background: #000; border-bottom: 1px solid var(--line); flex-shrink: 0; }
body.slc-compact-mode .slc-header-area:not([hidden]) { display: flex; }
.slc-back-btn-header { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--slc-brand) 25%, transparent); border: 1px solid var(--slc-brand); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.slc-back-btn-header:hover { background: var(--slc-brand); }
.slc-logo-text { cursor: pointer; font-size: 1.4rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 auto; }

/* ================================ COLUNAS (TV ao vivo e grade) ================================ */
.slc-tv-interface, .slc-vod-interface { flex: 1; display: flex; min-height: 0; }
.slc-col-categories { width: 25%; min-width: 220px; max-width: 320px; background: var(--col1); border-right: 1px solid var(--line); }
.slc-col-channels { width: 30%; min-width: 250px; background: var(--col2); border-right: 1px solid var(--line); }
.slc-col-categories, .slc-col-channels { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.slc-col-search { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 0 14px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.slc-col-search:focus-within { border-color: var(--slc-brand); }
.slc-col-search i { color: #888; font-size: .85rem; }
.slc-col-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; padding: 9px 0; font-size: .9rem; }
.slc-col-head { padding: 4px 16px 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slc-col-list { flex: 1; min-height: 0; overflow-y: auto; }
.slc-col-empty { padding: 20px; color: #888; font-size: .9rem; text-align: center; }
.slc-sentinel { height: 1px; }
.slc-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; font-size: .92rem; transition: background .15s; }
.slc-list-item:hover { background: rgba(255,255,255,.06); }
.slc-col-categories .slc-list-item.slc-active { background: #d50000; font-weight: 700; }
.slc-col-channels .slc-list-item.slc-active { background: var(--active-ch); font-weight: 700; }
.slc-cat-item .slc-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slc-cat-item .slc-lock { color: #ffb74d; margin-left: 8px; font-size: .8rem; }
.slc-list-item.slc-active .slc-lock { color: #fff; }
.slc-ch-item { justify-content: flex-start; gap: 10px; padding: 9px 12px; }
.slc-ch-num { width: 28px; font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.slc-list-item.slc-active .slc-ch-num { color: #fff; }
.slc-ch-logo { width: 46px; height: 32px; object-fit: contain; flex-shrink: 0; border-radius: 4px; background: rgba(255,255,255,.04); }
.slc-ch-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.slc-ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slc-ch-sub { font-size: .72rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slc-row-fav { color: #ff4d8d; font-size: .75rem; }

/* Player da TV + programação */
.slc-col-player { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #000; }
#slc-video-player-container { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; max-height: 62%; background: #000; }
#slc-main-player { width: 100%; height: 100%; display: block; background: #000; }
.slc-player-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; pointer-events: none; }
.slc-player-idle i { font-size: 3rem; }
.slc-player-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(0,0,0,.85); color: #ffab91; font-weight: 600; z-index: 5; }
.slc-live-info { flex: 1; overflow-y: auto; padding: 16px 20px; background: #0b0b0d; border-top: 2px solid var(--slc-brand); }
.slc-live-info-head { display: flex; align-items: center; gap: 10px; }
.slc-live-info-head h2 { flex: 1; min-width: 0; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--yellow); }
.slc-round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; flex-shrink: 0; font-size: 1rem; transition: .2s; }
.slc-round-btn:hover { border-color: var(--slc-brand); }
.slc-round-btn.slc-on { color: #ff4d8d; border-color: #ff4d8d; }
.slc-round-btn.slc-big { width: 54px; height: 54px; font-size: 1.3rem; }
.slc-epg-time { color: #fff; background: var(--slc-brand); display: inline-block; padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: .78rem; margin: 10px 0; }
.slc-epg-time:empty { display: none; }
.slc-epg-now-title { font-size: 1.05rem; font-weight: 700; }
.slc-epg-bar { height: 5px; background: rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; margin: 8px 0 10px; }
.slc-epg-bar i { display: block; height: 100%; background: var(--slc-brand); }
.slc-epg-now-desc, .slc-epg-none { color: #bbb; font-size: .9rem; line-height: 1.5; }
.slc-epg-label { color: var(--yellow); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 14px; }
.slc-epg-next { list-style: none; margin-top: 6px; }
.slc-epg-next li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #ccc; font-size: .9rem; }
.slc-epg-next b { color: var(--yellow); margin-right: 8px; }

/* ================================ GRADE (filmes, séries, favoritos, histórico, busca) ================================ */
.slc-vod-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 18px 0; }
.slc-vod-searchbar { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); padding: 6px 8px 6px 16px; border-radius: 8px; border: 1px solid var(--line); }
.slc-vod-searchbar:focus-within { border-color: var(--slc-brand); }
.slc-vod-searchbar i { color: #888; }
.slc-vod-searchbar input { flex: 1; min-width: 0; background: transparent; border: none; color: #fff; outline: none; padding: 6px 0; font-size: .95rem; }
.slc-search-all { background: var(--slc-brand); color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.slc-search-all.slc-danger { background: #ff4b4b; }
.slc-vod-status { color: var(--muted); font-size: .85rem; padding: 10px 2px 6px; min-height: 1.4em; }
.slc-vod-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-content: start; padding: 6px 4px 30px; }
.slc-vod-card { cursor: pointer; min-width: 0; transition: transform .2s; }
.slc-vod-card:hover { transform: translateY(-4px); }
.slc-vod-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #151518; border: 2px solid transparent; transition: border-color .2s; }
.slc-vod-card:hover .slc-vod-poster { border-color: var(--slc-brand); }
.slc-vod-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slc-vod-card.slc-is-live .slc-vod-poster { aspect-ratio: 16 / 10; }
.slc-vod-card.slc-is-live .slc-vod-poster img { object-fit: contain; padding: 18px; }
.slc-vod-title { font-size: .85rem; margin-top: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slc-vod-sub { font-size: .7rem; color: #999; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slc-vod-badge { position: absolute; top: 6px; left: 6px; background: var(--slc-brand); color: #fff; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; }
.slc-vod-fav { position: absolute; top: 7px; right: 7px; color: #ff4d8d; filter: drop-shadow(0 0 3px #000); }
.slc-vod-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.6); }
.slc-vod-bar i { display: block; height: 100%; background: var(--slc-brand); }
.slc-vod-interface .slc-col-categories .slc-col-head { padding-top: 14px; }

/* ================================ DETALHES ================================ */
.slc-details-modal { position: fixed; inset: 0; z-index: 2000; background: linear-gradient(90deg, #000 30%, rgba(20,0,0,.96)); overflow-y: auto; }
.slc-details-modal.slc-dim { background: rgba(0,0,0,.88); display: flex !important; align-items: center; justify-content: center; padding: 16px; }
.slc-details-modal.slc-dim[hidden] { display: none !important; }
.slc-close-vod-btn { position: fixed; top: 24px; right: 30px; z-index: 5; background: var(--slc-brand); border: 0; color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.slc-details-content { display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 80px 40px 40px; }
.slc-details-poster { width: 300px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #111; flex-shrink: 0; box-shadow: 0 20px 50px rgba(0,0,0,.7); align-self: flex-start; }
.slc-details-info { flex: 1; min-width: 0; }
.slc-details-info h1 { font-size: 2.2rem; margin-bottom: 12px; color: var(--yellow); }
.slc-details-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.slc-details-meta span { background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 4px; font-size: .85rem; }
.slc-details-plot { color: #ccc; line-height: 1.7; margin-bottom: 24px; white-space: pre-line; }
.slc-detail-cast { display: block; margin-top: 12px; color: #999; font-size: .95rem; }
.slc-detail-resume { color: var(--yellow); font-weight: 600; margin: -10px 0 20px; }
.slc-detail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slc-play-btn-large { background: var(--slc-brand); color: #fff; border: 0; padding: 15px 34px; border-radius: 8px; font-size: 1.05rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.slc-play-btn-large:hover { filter: brightness(1.15); }
#slc-episodes-area { margin-top: 30px; }
.slc-episodes-title { margin-bottom: 14px; }
.slc-seasons-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.slc-season-btn { background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.slc-season-btn.slc-active { background: var(--slc-brand); border-color: var(--slc-brand); }
.slc-episodes-list { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; max-height: 420px; overflow-y: auto; padding-right: 8px; }
.slc-ep-item { justify-content: flex-start; gap: 14px; border-radius: 8px; background: rgba(255,255,255,.04); }
.slc-ep-play { font-size: 1.6rem; color: var(--slc-brand); flex-shrink: 0; }
.slc-ep-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slc-ep-name { font-weight: 600; }
.slc-ep-plot { font-size: .8rem; color: #999; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slc-ep-bar { height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; max-width: 260px; }
.slc-ep-bar i { display: block; height: 100%; background: var(--slc-brand); }

/* ================================ MINIPLAYER ================================ */
#slc-mini-player-wrapper { position: fixed; right: 20px; bottom: 20px; width: 480px; z-index: 2500; background: #000; border: 2px solid var(--slc-brand); border-radius: 10px; overflow: hidden; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.8); }
#slc-mini-player-wrapper:not([hidden]) { display: flex; }
#slc-mini-player-wrapper.slc-expanded { inset: 0; width: auto; border-radius: 0; border: 0; }
.slc-mini-player-header { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #111; }
.slc-mini-title { font-size: 12px; font-weight: bold; color: var(--yellow); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.slc-mini-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.slc-mini-btn.slc-close { background: color-mix(in srgb, var(--slc-brand) 50%, transparent); border-color: var(--slc-brand); }
#slc-mini-video-element { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
#slc-mini-player-wrapper.slc-expanded #slc-mini-video-element { flex: 1; aspect-ratio: auto; min-height: 0; }
#slc-mini-player-wrapper .slc-player-error { top: 46px; }

/* ================================ CONTA, CONFIGURAÇÕES, PIN ================================ */
.slc-account-card, .slc-settings-content { width: 100%; max-width: 520px; background: #121215; border: 1px solid var(--line); border-top: 3px solid var(--slc-brand); border-radius: 14px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.7); max-height: calc(100vh - 32px); overflow-y: auto; }
.slc-modal-title { margin-bottom: 18px; text-align: center; font-size: 1.3rem; }
.slc-account-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.slc-account-label { color: var(--muted); }
.slc-account-value { text-align: right; font-weight: 600; word-break: break-all; }
.slc-modal-actions { display: flex; gap: 12px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.slc-btn-red, .slc-btn-glass, .slc-btn-brand { border-radius: 8px; padding: 11px 20px; font-weight: 700; cursor: pointer; border: 0; color: #fff; }
.slc-btn-red { background: var(--slc-brand); flex: 1; }
.slc-btn-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); flex: 1; }
.slc-btn-glass.slc-small { flex: 0 0 auto; padding: 8px 14px; font-size: .85rem; }
.slc-btn-brand { background: var(--slc-brand); }
.slc-btn-red.slc-small { flex: 0 0 auto; padding: 9px 16px; }
.slc-btn-brand:disabled { opacity: .6; cursor: wait; }
.slc-settings-content { max-width: 640px; padding: 0; }
.slc-settings-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.slc-icon-x { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.slc-settings-list { list-style: none; }
.slc-setting-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.slc-setting-item.slc-column { flex-direction: column; align-items: stretch; gap: 12px; }
.slc-setting-info h4 { margin-bottom: 4px; }
.slc-setting-info p { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.slc-toggle-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.slc-toggle-switch input { opacity: 0; width: 0; height: 0; }
.slc-slider { position: absolute; inset: 0; background: #333; border-radius: 28px; cursor: pointer; transition: .2s; }
.slc-slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.slc-toggle-switch input:checked + .slc-slider { background: var(--slc-brand); }
.slc-toggle-switch input:checked + .slc-slider::before { transform: translateX(22px); }
.slc-pin-change { display: flex; gap: 8px; flex-wrap: wrap; }
.slc-pin-change input { flex: 1; min-width: 110px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #fff; padding: 10px; outline: none; }
.slc-pin-change input:focus { border-color: var(--slc-brand); }
.slc-set-msg { font-size: .85rem; min-height: 1.1em; }
.slc-set-msg.slc-err { color: #ff6b6b; }
.slc-set-msg.slc-ok { color: #69f0ae; }
.slc-settings-foot { padding: 14px; text-align: center; font-size: .78rem; color: #777; }
.slc-dialog { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.82); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.slc-dialog-box { width: 100%; max-width: 340px; background: #121215; border: 1px solid var(--line); border-top: 3px solid var(--slc-brand); border-radius: 14px; padding: 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.slc-pin-icon { font-size: 2.2rem; color: var(--slc-brand); }
.slc-dialog-box h3 { margin: 12px 0 4px; }
.slc-dialog-box p { color: var(--muted); margin-bottom: 16px; }
.slc-dialog-box input { width: 170px; text-align: center; font-size: 1.6rem; letter-spacing: 10px; padding: 10px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; outline: none; }
.slc-dialog-box input:focus { border-color: var(--slc-brand); }
.slc-dialog-err { color: #ff6b6b !important; min-height: 1.2em; margin: 10px 0 0 !important; font-size: .9rem; }
.slc-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 4000; background: #1b0505; border: 1px solid var(--slc-brand); color: #fff; padding: 12px 20px; border-radius: 8px; transition: .3s; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.slc-toast.slc-on { opacity: 1; transform: translate(-50%, 0); }

/* ================================ TELAS MENORES ================================ */
@media (max-width: 1100px) {
    .slc-home-screen { padding: 20px 24px 16px; }
    .slc-dashboard-container { flex-wrap: wrap; align-content: center; }
    .slc-col-big { width: 260px; height: 280px; }
    .slc-col-grid { width: 290px; height: 280px; gap: 14px; }
    .slc-col-menu { width: 100%; max-width: 580px; height: auto; flex-direction: row; flex-wrap: wrap; }
    .slc-col-menu .slc-card-wide { flex: 1 1 30%; height: 54px; }
}
@media (max-width: 768px) {
    body { overflow: auto; height: auto; min-height: 100%; }
    .slc-start-card { flex-direction: column; min-height: 0; }
    .slc-start-left, .slc-start-right { padding: 24px 20px; }
    .slc-mac-box b { font-size: 1.5rem; }
    .slc-start-brand h1 { font-size: 1.5rem; }
    .slc-home-screen { padding: 16px 14px; overflow: visible; }
    .slc-top-header { height: auto; flex-wrap: wrap; gap: 8px; }
    .slc-logo-area { position: static; transform: none; order: -1; width: 100%; text-align: center; font-size: 1.5rem; }
    .slc-dashboard-container { flex-direction: column; gap: 12px; min-height: 0; }
    .slc-col-big { width: 100%; height: 130px; }
    .slc-card-big { flex-direction: row; font-size: 1.1rem; }
    .slc-card-big i { font-size: 2.4rem; }
    .slc-col-grid { width: 100%; height: auto; gap: 12px; }
    .slc-card-square { height: 100px; gap: 8px; }
    .slc-card-square i { font-size: 1.7rem; }
    .slc-col-menu { width: 100%; height: auto; flex-direction: column; }
    .slc-col-menu .slc-card-wide { flex: none; height: 50px; }
    .slc-footer-area { flex-direction: column; align-items: stretch; text-align: center; }
    .slc-footer-left { justify-content: center; }
    .slc-header-area { position: sticky; top: 0; z-index: 50; }
    .slc-tv-interface, .slc-vod-interface { flex-direction: column; }
    .slc-col-categories, .slc-col-channels { width: 100%; max-width: none; min-width: 0; flex: none; height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
    .slc-col-player { flex: none; }
    #slc-video-player-container { max-height: none; }
    .slc-vod-main { padding: 12px; }
    .slc-vod-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 12px; overflow: visible; }
    .slc-details-content { flex-direction: column; padding: 70px 16px 30px; gap: 20px; }
    .slc-details-poster { width: 180px; align-self: center; }
    .slc-details-info h1 { font-size: 1.5rem; }
    .slc-close-vod-btn { top: 12px; right: 12px; }
    #slc-mini-player-wrapper { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
}
/* Celular deitado: painel IBO em uma linha, sem rolar */
@media (max-height: 520px) and (orientation: landscape) {
    .slc-home-screen { padding: 10px 20px; }
    .slc-top-header { height: 40px; margin-bottom: 6px; }
    .slc-logo-area { font-size: 1.3rem; }
    .slc-dashboard-container { flex-direction: row; flex-wrap: nowrap; min-height: 0; gap: 10px; }
    .slc-col-big { width: 30%; height: 62vh; }
    .slc-col-grid { width: 36%; height: 62vh; gap: 10px; }
    .slc-col-menu { width: 30%; height: 62vh; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
    .slc-col-menu .slc-card-wide { flex: 1; height: auto; font-size: .8rem; }
    .slc-card-big i { font-size: 2.6rem; }
    .slc-card-square i { font-size: 1.5rem; }
    .slc-card-square { font-size: .75rem; gap: 6px; }
    .slc-footer-area { padding-top: 6px; }
}

/* Tela inicial: formulário de usuário e senha */
.slc-start-title { font-size: 1.3rem; margin-bottom: 8px; }
.slc-xlogin-form { display: flex; flex-direction: column; }
.slc-xl-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; }
.slc-xl-input { position: relative; display: flex; align-items: center; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; transition: .2s; }
.slc-xl-input:focus-within { border-color: var(--slc-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--slc-brand) 25%, transparent); }
.slc-xl-input > i { width: 42px; text-align: center; color: #888; flex-shrink: 0; }
.slc-xl-input input, .slc-xl-input select { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; padding: 13px 12px 13px 0; font-size: 1rem; font-family: inherit; }
.slc-xl-input select option { background: #151518; color: #fff; }
.slc-xl-eye { background: none; border: 0; color: #888; padding: 0 14px; cursor: pointer; font-size: 1rem; }
.slc-xl-eye:hover { color: #fff; }
.slc-login-btn { margin-top: 22px; padding: 14px; border: 0; border-radius: 10px; background: var(--slc-brand); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 1px; cursor: pointer; transition: .2s; }
.slc-login-btn i { margin-left: 8px; }
.slc-login-btn:hover { filter: brightness(1.15); }
.slc-login-btn:disabled { opacity: .6; cursor: wait; }
#slc-start-status { margin-bottom: 12px; }
.slc-start-pl-list { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.slc-start-pl-list::-webkit-scrollbar { height: 6px; }
.slc-start-pl-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.slc-start-pl { position: relative; flex: 0 0 116px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; font: inherit; text-align: center; cursor: pointer; transition: .2s; scroll-snap-align: start; }
.slc-start-pl:hover:not(:disabled), .slc-start-pl:focus-visible { border-color: var(--slc-brand); background: color-mix(in srgb, var(--slc-brand) 14%, transparent); outline: none; }
.slc-start-pl:disabled { opacity: .5; cursor: not-allowed; }
.slc-start-pl-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--slc-brand) 22%, transparent); color: #fff; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; }
.slc-start-pl b { width: 100%; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slc-start-pl small { color: var(--muted); font-size: .7rem; }
.slc-start-pl small.slc-pl-denied { color: #ffab91; }
.slc-start-pl-badge { position: absolute; top: 6px; right: 8px; font-size: .7rem; color: var(--yellow); }
.slc-start-or { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.slc-start-or::before, .slc-start-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
