/* PANEL TV - Premium Global Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #070313 0%, #110926 50%, #030107 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --accent-purple: #9d4edd;
    --accent-purple-glow: rgba(157, 78, 221, 0.4);
    --accent-cyan: #00d2ff;
    --accent-cyan-glow: rgba(0, 210, 255, 0.4);
    --accent-green: #38b000;
    --accent-red: #ff4d6d;
    --text-primary: #f8f9fa;
    --text-secondary: #a2a2b5;
    --transition-speed: 0.3s;
    
    /* Player (Plyr) variables */
    --plyr-color-main: #ff4d6d;
    --plyr-font-family: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Force Western/French numerals (0123456789) instead of Eastern Arabic (٠١٢٣٤٥٦٧٨٩) */
* {
    font-variant-numeric: lining-nums tabular-nums;
}
html, body, input, select, textarea, button, table, th, td, span, div, p, a, h1, h2, h3, h4, h5, h6, label, code, pre {
    font-feature-settings: "lnum" 1, "tnum" 1;
    -webkit-locale: "fr";
}

/* Ambient glow background layers */
.bg-glow-purple {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    filter: blur(150px);
    opacity: 0.1;
    top: -50px;
    left: -50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-cyan {
    position: absolute;
    width: 450px;
    height: 450px;
    background: var(--accent-cyan);
    filter: blur(150px);
    opacity: 0.08;
    bottom: -50px;
    right: -50px;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism containers */
.glass-container {
    background: rgba(20, 15, 35, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 1;
    position: relative;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(7, 3, 19, 0.5);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

@media (max-width: 991px) {
    header {
        padding: 12px 16px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, #e0aaff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--accent-purple-glow));
}

@media (max-width: 991px) {
    .logo i {
        font-size: 24px;
    }
    .logo h1 {
        font-size: 16px !important;
    }
}

.logo h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #7b2cbf);
    color: #fff;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
    color: #070313;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-danger {
    background: rgba(255, 77, 109, 0.1);
    border-color: rgba(255, 77, 109, 0.3);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    overflow-y: auto;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 8px rgba(157, 78, 221, 0.3);
}

/* Lists and Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 13px;
}

th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.channel-logo-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

/* Category badging */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(157, 78, 221, 0.15);
    color: #e0aaff;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

/* Logo Title responsive class */
.logo-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    display: block !important;
}

.logo-title span {
    color: #00d2ff;
}

/* Shoffree Header */
.shof-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(27, 33, 44, 0.8);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.shof-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.header-icon {
    background: none;
    border: none;
    color: #a2a2b5;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-icon:hover {
    color: #fff;
}

.header-left-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Category Horizontal Scroller (Round Flag icons) */
.categories-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 58px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.category-circle-wrapper:hover {
    transform: scale(1.05);
}

.category-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #151a24;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.25s;
}

.category-circle-wrapper.active .category-circle {
    border-color: #00e676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

.category-name {
    font-size: 11px;
    font-weight: 700;
    color: #a2a2b5;
    text-align: center;
    white-space: nowrap;
}

.category-circle-wrapper.active .category-name {
    color: #fff;
}

/* Active Section Title & Header Row */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 8px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.list-search-wrapper {
    flex: 1;
    max-width: 300px;
    min-width: 120px;
}

/* Inline Player Flow Layout */
.player-flow-panel {
    background: rgba(20, 15, 35, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.player-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-status {
    color: #00e676;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00e676;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #00e676; }
    100% { transform: scale(1); opacity: 0.8; }
}

.btn-close-stream {
    background: #ff3366;
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.2);
}

.btn-close-stream:hover {
    background: #ff0040;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 51, 102, 0.4);
}

.btn-close-stream:active {
    transform: translateY(0);
}

.btn-report-stream {
    background: rgba(247, 127, 0, 0.1);
    border: 1px solid rgba(247, 127, 0, 0.3);
    color: #ff9f1c;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-report-stream:hover {
    background: #ff9f1c;
    color: #070313;
    box-shadow: 0 4px 10px rgba(255, 159, 28, 0.3);
}

.btn-report-stream:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: var(--text-secondary);
    cursor: default;
    box-shadow: none;
}

.video-panel {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

/* Subcategories Filter Pills (Genre Pills) */
.genre-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.genre-tabs::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    background: #1b212c;
    color: #a2a2b5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.genre-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.genre-pill.active {
    background: #00e676;
    color: #070313;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

@media (min-width: 576px) {
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.channel-grid-card {
    background: #151a24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    text-align: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.channel-grid-card:hover {
    background: #1c2331;
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

.channel-grid-card.active {
    border-color: #00e676;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.08);
}

.channel-grid-card .live-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff3366;
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-grid-logo {
    width: 28px;
    height: 28px;
    max-width: 45%;
    max-height: 35%;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.channel-grid-card:hover .channel-grid-logo {
    transform: scale(1.08);
}

.channel-grid-name {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding: 0 2px;
    box-sizing: border-box;
}

/* Drawer Navigation CSS */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #0f0b21;
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: all 0.25s;
    text-align: right;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(-4px);
}

.drawer-item.active {
    background: linear-gradient(135deg, var(--accent-purple), #7b2cbf);
    color: #fff;
    border-color: transparent;
}

/* ===== GLOBAL MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Glass containers */
    .glass-container {
        border-radius: 14px;
        padding: 14px;
    }

    /* Modals full width */
    .modal {
        padding: 16px 0;
        align-items: flex-start;
    }
    .modal-content {
        width: 94%;
        max-width: 100%;
        border-radius: 16px;
    }
    .modal-content .glass-container {
        padding: 18px !important;
    }
    .modal-header h2 {
        font-size: 15px;
    }

    /* Forms */
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    .form-label {
        font-size: 11px;
    }

    /* Buttons */
    .btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 8px;
        gap: 6px;
    }

    /* Tables */
    .table-container {
        border-radius: 10px;
    }
    table {
        font-size: 11px;
    }
    th {
        padding: 10px 12px;
        font-size: 10px;
    }
    td {
        padding: 10px 12px;
    }
    .channel-logo-img {
        width: 28px;
        height: 28px;
    }

    /* Badge */
    .badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* User frontend */
    .section-title {
        font-size: 15px;
    }
    .section-header-row {
        gap: 8px;
    }
    .list-search-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
    .category-circle {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
    .category-name {
        font-size: 10px;
    }
    .category-circle-wrapper {
        min-width: 50px;
    }

    /* Player */
    .player-flow-panel {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    /* Ambient glows smaller */
    .bg-glow-purple {
        width: 250px;
        height: 250px;
    }
    .bg-glow-cyan {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 400px) {
    .modal-content {
        width: 98%;
    }
    .btn {
        padding: 7px 10px;
        font-size: 11px;
    }
    th, td {
        padding: 8px 10px;
    }
}

/* Language Switcher */
.lang-option:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
.lang-option.active {
    background: rgba(0, 212, 255, 0.12) !important;
    color: var(--accent-cyan) !important;
}

/* LTR Layout Fixes */
[dir="ltr"] .shof-header {
    flex-direction: row-reverse;
}
[dir="ltr"] .header-left-icons {
    order: -1;
}
[dir="ltr"] .genre-tabs {
    direction: ltr;
}
[dir="ltr"] .btn-close-stream,
[dir="ltr"] .btn-report-stream {
    direction: ltr;
}
[dir="ltr"] .modal-close {
    left: auto !important;
    right: 20px !important;
}

/* Favorites & Player Buttons */
.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    z-index: 5;
    transition: all 0.2s;
}
.fav-btn:hover {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.2);
}
.fav-btn.active {
    color: #ff4d6d;
    filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.6));
}
.btn-action-stream:hover {
    background: rgba(255,255,255,0.2) !important;
}
@media (max-width: 576px) {
    .hide-mobile { display: none !important; }
}

/* ===== Custom Plyr Player Overrides (Native Style) ===== */
.plyr {
    --plyr-color-main: #00d2ff;
    --plyr-control-icon-size: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.plyr__controls {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
    padding: 8px 12px !important;
    gap: 4px;
}

.plyr__control {
    color: #fff !important;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.15s;
}

.plyr__control:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12) !important;
    transform: scale(1.08);
}

.plyr__control--overlaid {
    background: rgba(0,0,0,0.55) !important;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.plyr__control--overlaid:hover {
    background: rgba(0,210,255,0.35) !important;
    border-color: rgba(0,210,255,0.6);
}

/* Live dot animation inside Plyr controls */
.plyr-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Cast SVG icon color */
#custom-plyr-cast svg {
    fill: currentColor;
}

/* Remove progress bar for live streams (no seeking) */
.plyr__progress,
.plyr__time {
    display: none !important;
}

/* Plyr volume slider compact */
.plyr__volume {
    max-width: 90px !important;
    min-width: 60px !important;
}

/* ============================================================ */
/* 📺 AD OVERLAY & LIVE 10S COUNTDOWN TIMER DESIGN SYSTEM       */
/* ============================================================ */
#player-ad-overlay {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    max-width: 95%;
    width: 340px;
    max-height: 230px;
    background: rgba(15, 11, 33, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-ad-header {
    position: absolute;
    top: -14px;
    right: 12px;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

#player-ad-timer {
    background: rgba(7, 3, 19, 0.95);
    color: #00f2fe;
    border: 1px solid #00f2fe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

#player-ad-timer i {
    color: #00f2fe;
    animation: timer-pulse 1.2s infinite ease-in-out;
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

#player-ad-close-btn {
    display: none;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff758c 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.5);
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#player-ad-close-btn:active {
    transform: scale(0.9);
}

#player-ad-content {
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    max-height: 190px;
    overflow-y: auto;
    margin-top: 4px;
}

/* AdBlock Modal Countdown & Skip Button */
#adblock-timer-btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    transition: background 0.3s ease;
}

#adblock-timer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================ */
/* 🌐 GLOBAL FLOATING SITE AD OVERLAY (10S TIMER + REVEAL CLOSE) */
/* ============================================================ */
#global-ad-overlay {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999 !important;
    max-width: 92%;
    width: 350px;
    max-height: 240px;
    background: rgba(15, 11, 33, 0.96);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    #global-ad-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 15px;
        width: 92%;
    }
}

#global-ad-header {
    position: absolute;
    top: -14px;
    right: 12px;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

#global-ad-timer {
    background: rgba(7, 3, 19, 0.95);
    color: #00f2fe;
    border: 1px solid #00f2fe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

#global-ad-timer i {
    color: #00f2fe;
    animation: timer-pulse 1.2s infinite ease-in-out;
}

#global-ad-close-btn {
    display: none;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff758c 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.5);
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#global-ad-close-btn:active {
    transform: scale(0.9);
}

#global-ad-content {
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}


