/* ==========================================================================
   components.css — cards, buttons, fields, keyboard, details, player,
   dialogs, settings rows, empty states
   Focus language: white 3px ring + slight scale on imagery; solid white
   fill with black text on controls. Always visible from 3 metres.
   ========================================================================== */

/* ==========================================================================
   Card (poster 138×207, 2:3)
   ========================================================================== */
.card {
    position: relative;
    width: 138px;
    height: 207px;
    margin-right: 8px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: -webkit-linear-gradient(-70deg, #232323 0%, #121212 100%);
    background: linear-gradient(160deg, #232323 0%, #121212 100%);
    -webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.15s ease;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card.is-focused {
    outline: none;
    z-index: 2;
    -webkit-box-shadow: 0 0 0 3px #fff;
    box-shadow: 0 0 0 3px #fff;
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}
.card-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
}
.card-img.is-loaded { opacity: 1; }
.card-shade {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0) 60%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0) 60%);
}
.card-type {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}
.card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    padding: 0 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    padding: 2px 5px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}
.card-fav {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 22px;
    height: 22px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #e50914;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.card-fav .ic { stroke-width: 3; }
.card-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
}
.card-progress i, .ep-progress i, .btn-progress i {
    display: block;
    height: 100%;
    background: #e50914;
}

.card--skeleton { background: #151515; }

/* channel tile 204×115 */
.card--live {
    width: 204px;
    height: 115px;
    margin-right: 12px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background: -webkit-linear-gradient(-55deg, #202020 0%, #121212 100%);
    background: linear-gradient(145deg, #202020 0%, #121212 100%);
}
.card--live .card-img {
    left: 22px;
    right: 22px;
    top: 14px;
    bottom: 34px;
    width: auto;
    height: auto;
    -webkit-background-size: contain;
    background-size: contain;
}
.card-name {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card--live.is-focused { -webkit-transform: scale(1.05); transform: scale(1.05); }
.card--live.is-focused .card-name { color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    margin-right: 12px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    -webkit-transition: -webkit-transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn .ic { margin-right: 10px; }
.btn--primary { background: #e50914; }
.btn.is-focused {
    background: #fff;
    color: #000;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
.btn--block { display: -webkit-box; display: -webkit-flex; display: flex; width: 100%; margin-right: 0; height: 58px; font-size: 18px; }
.btn--block.is-focused { -webkit-transform: scale(1.02); transform: scale(1.02); }
.btn.is-busy { opacity: 0.85; }
.btn-progress {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 8px;
    height: 3px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.btn.is-focused .btn-progress { background: rgba(0, 0, 0, 0.15); }

/* ==========================================================================
   Fields (login)
   ========================================================================== */
.field {
    height: 74px;
    margin-bottom: 14px;
    padding: 0 20px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    -webkit-transition: border-color 0.15s ease, background-color 0.15s ease;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field-body { margin-left: 16px; min-width: 0; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.field-val {
    margin-top: 3px;
    min-height: 26px;
    font-size: 21px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.field.is-empty .field-val:before { content: 'Selecione para digitar'; font-weight: 400; font-size: 17px; color: rgba(255, 255, 255, 0.3); }
.field.is-focused { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.field.is-editing { border-color: #e50914; background: rgba(229, 9, 20, 0.08); color: #fff; }
.field.is-editing .field-val:after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 22px;
    margin-left: 2px;
    vertical-align: -3px;
    background: #e50914;
    -webkit-animation: blink 1s step-end infinite;
    animation: blink 1s step-end infinite;
}
.field.is-editing.is-empty .field-val:before { content: ''; }

/* ==========================================================================
   On-screen keyboard (10 columns of 44px keys, 6px gutters)
   ========================================================================== */
.kb-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-bottom: 6px;
}
.kb-key {
    height: 44px;
    margin-right: 6px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    -webkit-transition: -webkit-transform 0.1s ease, background-color 0.1s ease;
    transition: transform 0.1s ease, background-color 0.1s ease;
}
.kb-key:last-child { margin-right: 0; }
.kb-key span { font-size: 14px; font-weight: 600; margin-left: 6px; }
.kb-key--ok span { margin-left: 0; font-size: 15px; }
.kb-w1 { width: 44px; }
.kb-w2 { width: 94px; }
.kb-w4 { width: 194px; }
.kb-key.is-on { background: rgba(255, 255, 255, 0.22); }
.kb-key--ok { background: rgba(229, 9, 20, 0.85); color: #fff; }
.kb-key.is-focused {
    background: #fff;
    color: #000;
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}
/* numeric pad */
.kb--num .kb-row { -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.kb--num .kb-key { width: 76px; height: 54px; font-size: 22px; }

/* ==========================================================================
   Details
   ========================================================================== */
#layer-details { background: #000; }
.details { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; overflow: hidden; }
.details.is-loading .d-body { top: 330px; }

.d-bd {
    position: absolute;
    right: 0;
    top: 0;
    width: 74%;
    height: 100%;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center 20%;
    opacity: 0;
}
.d-bd.is-loaded { opacity: 1; }
.details--series .d-bd { height: 470px; }
.d-shade {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        -webkit-linear-gradient(left, #000 0%, #000 24%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.08) 82%),
        -webkit-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 45%);
    background:
        linear-gradient(to right, #000 0%, #000 24%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.08) 82%),
        linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 45%);
}
.details--series .d-shade {
    background:
        -webkit-linear-gradient(left, #000 0%, #000 24%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.08) 82%),
        -webkit-linear-gradient(bottom, #000 0%, #000 36%, rgba(0, 0, 0, 0) 72%);
    background:
        linear-gradient(to right, #000 0%, #000 24%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.08) 82%),
        linear-gradient(to top, #000 0%, #000 36%, rgba(0, 0, 0, 0) 72%);
}
.d-poster-solo {
    position: absolute;
    right: 130px;
    top: 90px;
    width: 260px;
    height: 390px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background-color: #161616;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center;
    -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
}
.d-poster-solo.is-loaded { opacity: 1; }

.d-body { position: absolute; left: 80px; top: 70px; width: 620px; }
.details--series .d-body { top: 46px; }
.d-kicker {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.d-title {
    margin-top: 10px;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.details--series .d-title { -webkit-line-clamp: 1; font-size: 46px; }
.d-meta { margin-top: 16px; }
.d-plot {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.details--series .d-plot { -webkit-line-clamp: 2; }
.d-credits { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.d-credits div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.d-credits b { color: rgba(255, 255, 255, 0.85); font-weight: 600; margin-right: 8px; }
.details--series .d-credits div + div { display: none; }
.d-actions {
    margin-top: 28px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    white-space: nowrap;
}
.details--series .d-actions { margin-top: 22px; }
.d-error .d-actions { margin-top: 30px; }
.d-empty { color: rgba(255, 255, 255, 0.5); font-size: 16px; }

/* series: left column ~35%, episode panel on the right 65% */
.details--series .d-body { width: 340px; }
.details--series .d-actions { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.details--series .d-actions .btn { margin-bottom: 10px; }

/* ── Season list (inside left panel) ───────────────────────────────────── */
.season-list {
    position: relative;
    margin-top: 24px;
    max-height: 240px;
    overflow: hidden;
}
.season-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    color: rgba(255,255,255,0.45);
    font-size: 16px;
    font-weight: 500;
    -webkit-transition: color 0.15s ease, border-color 0.15s ease;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.season-item.is-selected { color: #fff; border-color: rgba(255,255,255,0.6); }
.season-item.is-focused  { color: #fff; border-color: #fff; background: rgba(255,255,255,0.06); }
.si-label { font-weight: 600; }
.si-count { font-size: 13px; color: rgba(255,255,255,0.4); }
.season-item.is-focused .si-count { color: rgba(255,255,255,0.7); }

/* ── Episode panel (right side) ─────────────────────────────────────────── */
.d-ep-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 65%;
    padding: 36px 32px 36px 0;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
}
.d-ep-heading {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.ep-list {
    position: relative;   /* offsetTop of rows is relative to the list */
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 4px;         /* room for the focus ring */
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.ep-list::-webkit-scrollbar { display: none; }

/* ── Episode row ─────────────────────────────────────────────────────────── */
.ep-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    margin-bottom: 16px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}
.ep-thumb {
    position: relative;
    width: 280px;
    height: 158px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1a1a1a;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center;
    -webkit-transition: -webkit-box-shadow 0.15s ease;
    transition: box-shadow 0.15s ease;
}
.ep-thumb:before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: -webkit-linear-gradient(bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 55%);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 55%);
}
.ep-code {
    position: absolute;
    left: 10px;
    bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}
.ep-thumb .ic-play {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -12px;
    opacity: 0;
    -webkit-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
}
.ep-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255,255,255,0.25);
}
.ep-progress i {
    display: block;
    height: 100%;
    background: #e50914;
}
.ep-info {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 4px 0 0 16px;
    min-width: 0;
}
.ep-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ep-sub {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.ep-dur {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
/* Focus state */
.ep-row.is-focused .ep-thumb {
    -webkit-box-shadow: 0 0 0 3px #fff;
    box-shadow: 0 0 0 3px #fff;
}
.ep-row.is-focused .ic-play { opacity: 1; }
.ep-row.is-focused .ep-title { color: #fff; }

/* ==========================================================================
   Player
   ========================================================================== */
#layer-player { background: #000; }
.player { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; overflow: hidden; }
.pl-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}
.pl-shade-top, .pl-shade-bottom, .pl-top, .pl-bottom {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.player.is-ui .pl-shade-top, .player.is-ui .pl-shade-bottom,
.player.is-ui .pl-top, .player.is-ui .pl-bottom { opacity: 1; }
.pl-shade-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 180px;
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}
.pl-shade-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}
.pl-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 38px 56px 0 56px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.pl-back { color: rgba(255, 255, 255, 0.8); }
.pl-titles { margin-left: 20px; min-width: 0; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.pl-title { font-size: 28px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { margin-top: 2px; font-size: 16px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-clock { margin-left: 24px; font-size: 24px; font-weight: 600; }

.pl-bottom { position: absolute; left: 56px; right: 56px; bottom: 40px; }
.pl-bar {
    position: relative;
    height: 5px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
}
.pl-buf, .pl-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
.pl-buf { background: rgba(255, 255, 255, 0.35); }
.pl-fill { background: #e50914; }
.pl-knob {
    position: absolute;
    top: -6px;
    left: 0;
    width: 17px;
    height: 17px;
    margin-left: -8px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.35);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.35);
}
.pl-seek {
    position: absolute;
    bottom: 22px;
    left: 0;
    padding: 5px 12px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.player.is-seeking .pl-seek { opacity: 1; }
.pl-row {
    margin-top: 18px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.pl-time { margin-left: 18px; font-size: 18px; font-weight: 600; }
.pl-dur { color: rgba(255, 255, 255, 0.5); }
.pl-hints { margin-left: auto; font-size: 14px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.pl-hints span { margin-left: 24px; }
.player--live .pl-bottom { display: none; }

.pl-loading, .pl-error {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    pointer-events: none;
}
.player.is-buffering .pl-loading { display: -webkit-box; display: -webkit-flex; display: flex; }
.player.is-error .pl-loading { display: none; }
.player.is-error .pl-error { display: -webkit-box; display: -webkit-flex; display: flex; background: rgba(0, 0, 0, 0.75); }
.pl-error-title { font-size: 30px; font-weight: 700; }
.pl-error-text { margin-top: 10px; max-width: 560px; text-align: center; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }
.pl-error-hint { margin-top: 28px; font-size: 14px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.45); }
.pl-vlc {
    margin-top: 18px;
    padding: 12px 26px;
    background: #e50914;
    color: #fff;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
}
.pl-vlc:focus { outline: 3px solid #fff; outline-offset: 2px; }

/* live OSD */
.pl-osd {
    position: absolute;
    left: 56px;
    bottom: 48px;
    width: 620px;
    padding: 20px 26px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border-left: 4px solid #e50914;
    background: rgba(12, 12, 12, 0.88);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    opacity: 0;
    -webkit-transform: translate3d(0, 16px, 0);
    transform: translate3d(0, 16px, 0);
    -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.player.is-osd .pl-osd { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.pl-osd-logo {
    width: 120px;
    height: 68px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.pl-osd-body { margin-left: 22px; min-width: 0; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.pl-osd-num { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.5); }
.pl-osd-name { margin-top: 2px; font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-osd-epg { margin-top: 6px; }
.epg-line { font-size: 15px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.epg-line span { display: inline-block; min-width: 54px; margin-right: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, 0.45); }
.epg-line.is-now { color: #fff; }
.epg-line.is-now span { color: #e50914; }

/* ==========================================================================
   Dialogs
   ========================================================================== */
#layer-dialog { background: rgba(0, 0, 0, 0.78); }
.dialog {
    position: absolute;
    left: 400px;
    top: 50%;
    width: 480px;
    padding: 36px 36px 30px 36px;
    -webkit-border-radius: 14px;
    border-radius: 14px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.dialog-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.15);
    color: #e50914;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.dialog-title { font-size: 25px; font-weight: 700; }
.dialog-text { margin-top: 8px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.dialog-actions { margin-top: 28px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.dialog-actions .btn:last-child { margin-right: 0; }
.pin-dots { margin: 24px 0 6px 0; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.pin-dots i {
    width: 16px;
    height: 16px;
    margin: 0 9px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    -webkit-transition: background-color 0.12s ease, border-color 0.12s ease;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}
.pin-dots i.is-set { background: #fff; border-color: #fff; }
.dialog-error { min-height: 22px; font-size: 14px; font-weight: 500; color: #ff6b6b; }
.dialog-kb { margin-top: 8px; }

/* ==========================================================================
   Settings rows + account card
   ========================================================================== */
.set-row {
    height: 72px;
    margin-bottom: 6px;
    padding: 0 22px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    -webkit-transition: background-color 0.15s ease, color 0.15s ease, -webkit-transform 0.15s ease;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.set-text { margin-left: 18px; min-width: 0; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.set-label { font-size: 18px; font-weight: 600; color: #fff; }
.set-desc { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.set-value { margin-left: 20px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.set-chev { margin: 0 10px; color: rgba(255, 255, 255, 0.3); }
.set-row.is-focused {
    background: #fff;
    color: #000;
    -webkit-transform: scale(1.015);
    transform: scale(1.015);
}
.set-row.is-focused .set-label, .set-row.is-focused .set-value { color: #000; }
.set-row.is-focused .set-desc, .set-row.is-focused .set-chev { color: rgba(0, 0, 0, 0.55); }

.account-avatar {
    width: 68px;
    height: 68px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background: #e50914;
    font-size: 30px;
    font-weight: 700;
    line-height: 68px;
    text-align: center;
}
.account-user { margin-top: 18px; font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-status {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}
.account-status.is-ok { background: rgba(70, 211, 105, 0.14); color: #46d369; }
.account-facts { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.account-facts dt {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.account-facts dd { margin-top: 4px; font-size: 18px; font-weight: 600; }
.account-version { margin-top: 26px; font-size: 12px; color: rgba(255, 255, 255, 0.3); letter-spacing: 1px; }

/* ==========================================================================
   Empty states
   ========================================================================== */
.empty {
    padding: 70px 40px 0 40px;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.5);
}
.empty .ic { color: rgba(255, 255, 255, 0.3); margin-bottom: 16px; }
.empty-title { font-size: 24px; font-weight: 700; color: #fff; }
.empty-text { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.empty-text b { color: #fff; }
