*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Header ── */
.header {
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.logo span { color: #3b82f6; }

.search-box { flex: 1; max-width: 500px; position: relative; }
.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: #161616;
    border: 1px solid #222;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.search-box input:focus { border-color: #3b82f6; }
.search-box::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: .4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.movie-count { color: #555; font-size: 14px; white-space: nowrap; }

/* ── Search overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
}
.search-overlay.show { display: flex; }

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    flex-shrink: 0;
}

.search-overlay-input {
    flex: 1;
    padding: 14px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    outline: none;
}
.search-overlay-input:focus { border-color: #3b82f6; }

.search-overlay-close {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #222;
    background: transparent;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-overlay-close:hover { color: #fff; border-color: #444; }

.search-overlay-body { flex: 1; overflow-y: auto; padding: 24px 40px; }

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.sr-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .2s;
}
.sr-card:hover { transform: scale(1.04); }
.sr-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #151515; }

.sr-card .sr-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

.sr-card .sr-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-card .sr-card-meta { font-size: 12px; color: #888; margin-top: 3px; }
.sr-card .sr-card-meta .rating { color: #3b82f6; font-weight: 600; }
.sr-card-overlay { display: none; }

.sr-card .sr-badge-wrap { position: absolute; top: 8px; right: 8px; z-index: 2; }
.sr-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sr-badge.local { background: #22c55e; color: #000; }
.sr-badge.tmdb { background: rgba(255, 255, 255, .15); color: #ccc; }

.sr-no-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.sr-no { padding: 80px 20px; color: #555; font-size: 16px; text-align: center; }
.sr-hint { padding: 80px 20px; text-align: center; color: #444; font-size: 16px; }

/* ── Browse grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 30px 40px;
    max-width: 1800px;
    margin: 0 auto;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform .2s;
}
.card:hover { transform: scale(1.04); z-index: 2; }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #151515; }

.card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    opacity: 0;
    transition: opacity .2s;
}
.card:hover .info { opacity: 1; }

.card .title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .meta { font-size: 12px; color: #888; margin-top: 3px; display: flex; gap: 8px; }
.card .meta .rating { color: #3b82f6; font-weight: 600; }
.card-overlay { display: none; }

.no-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

/* ── Detail page ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 40px;
    color: #999;
    font-size: 14px;
    text-decoration: none;
}
.back-link:hover { color: #fff; }

.backdrop-wrap { position: relative; overflow: hidden; }
.backdrop { width: 100%; height: 60vh; min-height: 360px; max-height: 600px; object-fit: cover; object-position: center 20%; }
.backdrop-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,.4) 0%, rgba(10,10,10,.7) 50%, #0a0a0a 100%);
}

.detail {
    max-width: 1100px;
    margin: -55vh auto 0;
    position: relative;
    z-index: 2;
    padding: 0 40px 60px;
}

.detail-top { display: flex; gap: 36px; align-items: flex-start; }

.detail-poster {
    width: 260px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}
.detail-poster img { width: 100%; }

.detail-info { flex: 1; min-width: 0; padding-top: 8px; }
.detail-info h1 { font-size: 36px; color: #fff; font-weight: 700; line-height: 1.15; margin-bottom: 4px; }
.detail-info .year-label { color: #666; font-weight: 400; font-size: 28px; }
.detail-info .tagline { color: #777; font-style: italic; margin: 6px 0 14px; font-size: 15px; }

.detail-info .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 15px;
    color: #888;
    margin-bottom: 14px;
    align-items: center;
}
.detail-info .meta-row .sep { width: 4px; height: 4px; border-radius: 50%; background: #444; }
.detail-info .rating-val { color: #3b82f6; font-weight: 700; }

.detail-info .genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-info .genre-tag {
    background: #161616;
    border: 1px solid #282828;
    color: #aaa;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.detail-info .genre-tag:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.detail-info .overview { font-size: 16px; line-height: 1.7; color: #aaa; }

/* ── Report button ── */
.report-btn {
    margin-top: 14px;
    padding: 8px 22px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.report-btn:hover { background: #b91c1c; }
.report-btn:disabled { cursor: default; }

/* ── Report modal ── */
.report-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.report-box {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
}
.report-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.report-sub { font-size: 13px; color: #71717a; margin-bottom: 18px; }
.report-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.report-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #0f0f12;
    border: 1px solid #27272a;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s;
    color: #a1a1aa;
    font-size: 14px;
}
.report-opt:hover { border-color: #3f3f46; }
.report-opt input[type="radio"] { accent-color: #dc2626; }
.report-opt input[type="radio"]:checked + span { color: #fff; }
.report-detail {
    width: 100%;
    background: #0f0f12;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 14px;
    color: #e4e4e7;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 18px;
    font-family: inherit;
    box-sizing: border-box;
}
.report-detail:focus { outline: none; border-color: #3f3f46; }
.report-actions { display: flex; gap: 10px; justify-content: flex-end; }
.report-cancel {
    padding: 9px 20px;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.report-cancel:hover { border-color: #3f3f46; color: #fff; }
.report-submit {
    padding: 9px 20px;
    background: #dc2626;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.report-submit:hover { background: #b91c1c; }
.report-submit:disabled { background: #7f1d1d; cursor: default; }

/* ── Player ── */
.player-section { margin-top: 32px; }
.player-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.player-header h2 { font-size: 18px; color: #fff; font-weight: 600; }

.source-select {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #282828;
    background: #161616;
    color: #aaa;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}
.source-select:focus { border-color: #3b82f6; }

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.player-wrap:fullscreen {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
}
.player-wrap:-webkit-full-screen {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
}

/* ── Provider links ── */
.links-section { margin-top: 24px; }
.links-section h3 {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.prov-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.prov-card { background: #111; border: 1px solid #1a1a1a; border-radius: 8px; padding: 12px 18px; }
.prov-card:hover { border-color: #333; }
.prov-card .prov-name { font-weight: 600; color: #ddd; font-size: 14px; margin-bottom: 4px; }
.prov-card .prov-link { font-size: 13px; color: #666; margin: 2px 0; }
.prov-card .prov-link a { color: #3b82f6; }
.prov-card .prov-link a:hover { color: #60a5fa; }
.prov-card .prov-error { color: #ef4444; font-size: 13px; }

/* ── Fetch ── */
.fetch-section {
    margin-top: 32px;
    padding: 32px;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    text-align: center;
}

.fetch-btn {
    padding: 14px 44px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.fetch-btn.primary { background: #3b82f6; color: #fff; }
.fetch-btn.primary:hover { background: #2563eb; }
.fetch-btn:disabled { opacity: .35; cursor: not-allowed; }

.not-available .na-title { font-size: 18px; color: #ddd; font-weight: 600; margin-bottom: 6px; }
.not-available .na-sub { color: #777; font-size: 15px; margin-bottom: 20px; }

/* ── Progress ring ── */
.progress-tracker {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.progress-tracker.active { display: flex; }

.ring-wrap { position: relative; width: 120px; height: 120px; }
.ring-wrap svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.ring-bg { fill: none; stroke: #1a1a1a; stroke-width: 5; }
.ring-fg {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset .4s ease, stroke .3s;
}
.ring-fg.done { stroke: #22c55e; }
.ring-fg.fail { stroke: #ef4444; }

.ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ring-pct .pct-num {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ring-pct .pct-sign { font-size: 13px; color: #555; margin-top: 2px; }

.tracker-detail { font-size: 14px; color: #888; font-weight: 500; text-align: center; }
.tracker-timer {
    font-size: 16px;
    color: #555;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.tracker-note { font-size: 12px; color: #555; text-align: center; margin-top: 4px; }

/* ── Responsive ── */

/* Large screens — fill width */
@media (min-width: 1600px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Tablets */
@media (max-width: 1024px) {
    .header { padding: 0 24px; }
    .grid { padding: 24px; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .search-overlay-header { padding: 20px 24px; }
    .search-overlay-body { padding: 20px 24px; }
    .detail { padding: 0 24px 40px; }
    .detail-poster { width: 220px; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
    .header { padding: 0 16px; gap: 12px; }
    .logo { font-size: 20px; }
    .search-box input { font-size: 14px; padding: 8px 12px 8px 36px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 16px; }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .search-overlay-header { padding: 16px; }
    .search-overlay-body { padding: 16px; }
    .search-overlay-input { font-size: 16px; padding: 12px 14px; }
    .prov-grid { flex-direction: column; }

    /* ── DETAIL PAGE: full mobile overhaul ── */
    .back-link { padding: 10px 16px; font-size: 13px; position: relative; z-index: 10; }
    .backdrop { height: 42vh; min-height: 240px; }
    .backdrop-grad {
        background: linear-gradient(to bottom, rgba(10,10,10,.1) 0%, rgba(10,10,10,.6) 40%, #0a0a0a 100%);
    }
    .detail { padding: 0 16px 30px; margin-top: -32vh; }
    .detail-top {
        display: block !important;
    }
    .detail-poster {
        width: 120px;
        float: left;
        margin: 0 16px 10px 0;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,.7);
    }
    .detail-poster img { border-radius: 10px; }
    .detail-info { padding-top: 0; overflow: hidden; }
    .detail-info h1 { font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
    .detail-info .year-label { font-size: 16px; }
    .detail-info .tagline { font-size: 13px; margin: 4px 0 8px; }
    .detail-info .meta-row { font-size: 12px; gap: 4px 8px; margin-bottom: 10px; flex-wrap: wrap; }
    .detail-info .genres { gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
    .detail-info .genre-tag { padding: 6px 14px; font-size: 12px; border-radius: 20px; }
    .detail-info .overview { font-size: 14px; line-height: 1.65; margin-top: 14px; clear: left; }
    /* Player section: edge-to-edge */
    .player-section { margin: 20px -16px 0; }
    .player-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 16px;
        margin-bottom: 10px;
    }
    .player-header h2 { font-size: 16px; }
    .source-select {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
        -webkit-appearance: none;
    }
    .player-wrap { border-radius: 0; }
    /* Fetch section */
    .fetch-section { padding: 28px 20px; border-radius: 12px; }
    .fetch-btn { padding: 16px 40px; font-size: 16px; width: 100%; border-radius: 12px; }
    /* Report */
    .report-btn { padding: 12px 28px; font-size: 14px; width: 100%; border-radius: 10px; margin-top: 16px; }
    .report-overlay { padding: 0; align-items: flex-end; }
    .report-box {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 90vh;
        overflow-y: auto;
    }
    .report-title { font-size: 20px; }
    .report-opt { padding: 16px 16px; font-size: 15px; border-radius: 12px; }
    .report-detail { font-size: 15px; padding: 14px 16px; border-radius: 12px; }
    .report-actions { flex-direction: column-reverse; gap: 8px; }
    .report-cancel, .report-submit {
        width: 100%; text-align: center;
        padding: 16px; font-size: 16px; font-weight: 600;
        border-radius: 12px;
    }
}

/* Phones */
@media (max-width: 480px) {
    .header { height: 52px; padding: 0 12px; gap: 10px; }
    .logo { font-size: 18px; }
    .movie-count { font-size: 12px; }
    .search-box input { padding: 7px 10px 7px 32px; font-size: 13px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
    .search-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card .title { font-size: 12px; }
    .card .meta { font-size: 10px; }
    .sr-card .sr-card-title { font-size: 12px; }
    .sr-card .sr-card-meta { font-size: 10px; }

    /* ── DETAIL PAGE: phone-specific ── */
    .back-link { padding: 8px 12px; font-size: 12px; }
    .backdrop { height: 38vh; min-height: 200px; max-height: 280px; }
    .detail { margin-top: -28vh; padding: 0 12px 20px; }
    .detail-poster { width: 100px; margin-right: 12px; border-radius: 8px; }
    .detail-poster img { border-radius: 8px; }
    .detail-info h1 { font-size: 19px; }
    .detail-info .year-label { font-size: 15px; }
    .detail-info .tagline { font-size: 12px; }
    .detail-info .meta-row { font-size: 11px; gap: 3px 6px; }
    .detail-info .meta-row .sep { width: 3px; height: 3px; }
    .detail-info .genre-tag { padding: 5px 12px; font-size: 11px; }
    .detail-info .overview { font-size: 13.5px; line-height: 1.6; }
    /* Player: edge to edge */
    .player-section { margin: 16px -12px 0; }
    .player-header { padding: 0 12px; }
    .source-select { padding: 12px 14px; font-size: 15px; }
    /* Fetch */
    .fetch-section { padding: 24px 16px; }
    .not-available .na-title { font-size: 17px; }
    .not-available .na-sub { font-size: 14px; }
    .fetch-btn { padding: 16px; font-size: 16px; }
    /* Report */
    .report-btn { font-size: 14px; }
    .report-box { padding: 24px 16px; }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 360px) {
    .detail { padding: 0 10px 16px; }
    .detail-poster { width: 85px; margin-right: 10px; }
    .detail-info h1 { font-size: 17px; }
    .detail-info .year-label { font-size: 14px; }
    .detail-info .genre-tag { padding: 4px 10px; font-size: 10px; }
    .detail-info .overview { font-size: 13px; }
    .player-section { margin: 14px -10px 0; }
    .player-header { padding: 0 10px; }
    .fetch-section { padding: 20px 12px; }
    .ring-wrap { width: 90px; height: 90px; }
    .ring-wrap svg { width: 90px; height: 90px; }
    .ring-pct .pct-num { font-size: 22px; }
}

/* Touch devices — bigger tap targets, no hover effects */
@media (hover: none) and (pointer: coarse) {
    .card:hover { transform: none; }
    .card .info { opacity: 1; }
    .sr-card:hover { transform: none; }
    .genre-tag { min-height: 36px; display: inline-flex; align-items: center; }
    .report-opt { min-height: 48px; }
    .fetch-btn { min-height: 52px; }
    .source-select { min-height: 48px; }
    .back-link { min-height: 44px; display: inline-flex; align-items: center; }
    .report-cancel, .report-submit { min-height: 48px; }
}

/* ── Focus states for D-pad / TV navigation ── */
.back-link:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:6px}
.genre-tag:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;box-shadow:0 0 0 4px rgba(59,130,246,.3)}
.source-select:focus-visible{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.35)}
.report-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;box-shadow:0 0 0 4px rgba(59,130,246,.3)}
.report-opt:focus-visible{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.35)}
.report-cancel:focus-visible,.report-submit:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
.fetch-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;box-shadow:0 0 0 4px rgba(59,130,246,.3)}
.card:focus-visible{outline:none;border:3px solid #3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.3);transform:scale(1.05);z-index:5}

/* ── Quality badge ── */
.quality-badge {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    letter-spacing: .3px;
}

/* ── Live TV pulsing dot ── */
@keyframes livedot{0%,100%{opacity:1}50%{opacity:.3}}
