:root {
    --primary: #ff8400;
    --primary-dark: #e67300;
    --primary-light: #ff9d33;
    --primary-lighter: #ffb366;
    --primary-gradient: linear-gradient(135deg, #ff8400 0%, #ff9d33 50%, #ffb366 100%);
    --primary-shadow: 0 20px 60px rgba(255, 132, 0, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.live-tv-primary-content {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.live-tv-header {
    margin-bottom: 35px;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--primary-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 132, 0, 0.08);
}

.live-tv-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-lighter), transparent);
    animation: scan-line 3s infinite linear;
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

.live-tv-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 132, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.live-tv-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.live-tv-icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 35px rgba(255, 132, 0, 0.35);
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.live-tv-icon-box i {
    font-size: 32px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.live-tv-icon-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 132, 0, 0.3);
    animation: ripple-ring 2s infinite;
}

@keyframes ripple-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.live-tv-title-text {
    padding: 10px;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.live-tv-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 8px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.live-tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(255, 132, 0, 0.35);
    animation: glow-pulse 2.5s infinite;
    position: relative;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 132, 0, 0.35); }
    50% { box-shadow: 0 8px 45px rgba(255, 132, 0, 0.6); }
}

.live-tv-badge .badge-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: blink-dot 1s infinite;
    display: inline-block;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.live-tv-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 245, 235, 0.9);
    color: #7a3d00;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 500;
    margin: 0 0 25px 0;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: auto;
}

.live-tv-status.is-live {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 132, 0, 0.3);
}

.live-tv-status-dot {
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(46, 204, 113, 0.5); }
    50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(46, 204, 113, 0.8); }
}

.live-tv-status.is-live .live-tv-status-dot {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.status-icon {
    font-size: 16px;
}

.live-tv-video-container {
    background: #0a0a0a;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 30px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.live-tv-video-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    border-radius: var(--border-radius);
    z-index: -1;
    animation: gradient-move 4s ease infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.live-tv-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.live-tv-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.live-tv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    padding: 30px 40px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.live-tv-spinner {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: var(--primary-lighter);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.live-tv-loading p {
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.live-tv-controls {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 10;
}

.live-tv-mute-btn {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.live-tv-mute-btn:hover {
    background: var(--primary-gradient);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 132, 0, 0.4);
    border-color: transparent;
}

.live-tv-mute-btn i {
    font-size: 16px;
}

.live-tv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 20px 0;
}

.live-tv-stat-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.live-tv-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.live-tv-stat-card:hover::before {
    transform: scaleX(1);
}

.live-tv-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(255, 132, 0, 0.12);
}

.live-tv-stat-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    opacity: 0.7;
}

.live-tv-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.live-tv-stat-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-tv-footer-note {
    text-align: center;
    padding: 20px 0 10px 0;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.live-tv-footer-note i {
    color: var(--primary);
    margin: 0 4px;
}

@media only screen and (max-width: 767px) {
    .live-tv-primary-content {
        padding: 10px 8px;
    }

    .live-tv-header {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .live-tv-title-wrapper {
        gap: 15px;
        flex-direction: column;
    }

    .live-tv-icon-box {
        width: 60px;
        height: 60px;
    }

    .live-tv-icon-box i {
        font-size: 26px;
    }

    .live-tv-title-text {
        font-size: 1.9rem;
    }

    .live-tv-subtitle {
        font-size: 0.95rem;
    }

       .live-tv-video-wrapper {
        padding-bottom: 0;
        width: 336px;
        height: 300px;
        max-width: 100%;
        margin: 0 auto;
    }

    .live-tv-video-container {
        padding: 10px;
        margin-bottom: 20px;
    }

    .live-tv-controls {
        bottom: 15px;
        right: 15px;
    }

    .live-tv-mute-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .live-tv-mute-btn i {
        font-size: 14px;
    }

    .live-tv-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .live-tv-stat-card {
        padding: 18px 12px;
    }

    .live-tv-stat-icon {
        font-size: 20px;
    }

    .live-tv-stat-value {
        font-size: 15px;
    }

    .live-tv-stat-label {
        font-size: 0.7rem;
    }

    .live-tv-status {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .live-tv-badge {
        padding: 10px 20px;
        font-size: 11px;
    }

    .live-tv-loading {
        padding: 20px;
        width: 80%;
    }

    .live-tv-loading p {
        font-size: 0.85rem;
    }
}

@media only screen and (max-width: 480px) {
    .live-tv-title-text {
        font-size: 1.6rem;
    }

    .live-tv-icon-box {
        width: 50px;
        height: 50px;
    }

    .live-tv-icon-box i {
        font-size: 22px;
    }

    .live-tv-header {
        padding: 20px 12px;
    }

    .live-tv-stat-value {
        font-size: 15px;
    }

    .live-tv-stat-label {
        font-size: 0.65rem;
    }

    .live-tv-mute-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .live-tv-mute-btn i {
        font-size: 12px;
    }

    .live-tv-controls {
        bottom: 12px;
        right: 12px;
    }
}
