/* ============================================================
   PirloTV Live Matches — Sports Streaming Theme
   Inspired by ESPN / DAZN / beIN Sports
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
    /* Backgrounds — near-black, like ESPN+ / DAZN dark mode */
    --ptv-bg:           #0a0a0f;
    --ptv-surface:      #111118;
    --ptv-card:         #16161f;
    --ptv-card-hover:   #1c1c28;
    --ptv-border:       rgba(255,255,255,0.06);
    --ptv-border-glow:  rgba(220, 38, 38, 0.4);

    /* Primary accent — ESPN/beIN sports red */
    --ptv-accent:       #dc2626;
    --ptv-accent-2:     #ea580c;          /* orange for gradient depth */
    --ptv-accent-glow:  rgba(220,38,38,0.18);

    /* Status colors */
    --ptv-red:          #ef4444;          /* live dot */
    --ptv-green:        #16a34a;
    --ptv-gold:         #f59e0b;          /* match time badge */
    --ptv-hd:           #0ea5e9;          /* HD badge — Sky Sports blue */

    /* Text */
    --ptv-text-primary:   #f5f5f5;
    --ptv-text-secondary: #a1a1aa;
    --ptv-text-muted:     #52525b;

    /* Radii */
    --ptv-radius-sm:  6px;
    --ptv-radius-md:  12px;
    --ptv-radius-lg:  18px;
    --ptv-radius-xl:  24px;

    /* Shadows */
    --ptv-shadow-card: 0 2px 12px rgba(0,0,0,0.5);
    --ptv-shadow-glow: 0 0 40px rgba(220,38,38,0.08);

    --ptv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ptv-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* Light theme overrides */
.ptv-theme-light {
    --ptv-bg:           #f4f4f5;
    --ptv-surface:      #ffffff;
    --ptv-card:         #ffffff;
    --ptv-card-hover:   #fef2f2;
    --ptv-border:       rgba(0,0,0,0.08);
    --ptv-border-glow:  rgba(220,38,38,0.3);

    --ptv-text-primary:   #09090b;
    --ptv-text-secondary: #52525b;
    --ptv-text-muted:     #a1a1aa;

    --ptv-shadow-card: 0 2px 12px rgba(0,0,0,0.08);
}

/* ─── Wrapper ────────────────────────────────────────────── */
.ptv-wrapper {
    font-family: var(--ptv-font);
    background: var(--ptv-bg);
    border-radius: var(--ptv-radius-xl);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ptv-shadow-glow);
}

/* Animated background gradient blob */
.ptv-wrapper::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: ptv-blob 8s ease-in-out infinite alternate;
}

.ptv-wrapper::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: ptv-blob 10s ease-in-out infinite alternate-reverse;
}

@keyframes ptv-blob {
    0%   { transform: scale(1)   translate(0, 0); }
    50%  { transform: scale(1.1) translate(20px, -15px); }
    100% { transform: scale(0.95) translate(-10px, 10px); }
}

/* ─── Header ─────────────────────────────────────────────── */
.ptv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ptv-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.ptv-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Animated live pulse dot */
.ptv-live-dot {
    width: 10px;
    height: 10px;
    background: var(--ptv-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
    animation: ptv-pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes ptv-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.ptv-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ptv-text-primary);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #fff 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ptv-theme-light .ptv-heading {
    background: linear-gradient(135deg, #09090b 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ptv-badge {
    background: var(--ptv-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ptv-refresh-timer {
    font-size: 0.78rem;
    color: var(--ptv-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ptv-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ptv-surface);
    border: 1px solid var(--ptv-border);
    color: var(--ptv-text-secondary);
    font-family: var(--ptv-font);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--ptv-radius-sm);
    cursor: pointer;
    transition: var(--ptv-transition);
    letter-spacing: 0.02em;
}

.ptv-refresh-btn:hover {
    border-color: var(--ptv-accent);
    color: var(--ptv-accent);
    background: var(--ptv-accent-glow);
    transform: translateY(-1px);
}

.ptv-refresh-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.6s ease;
}

.ptv-refresh-btn.loading svg {
    animation: ptv-spin 0.8s linear infinite;
}

@keyframes ptv-spin {
    to { transform: rotate(360deg); }
}

/* ─── Filter Bar ─────────────────────────────────────────── */
.ptv-filter-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.ptv-filter-btn {
    background: var(--ptv-surface);
    border: 1px solid var(--ptv-border);
    color: var(--ptv-text-secondary);
    font-family: var(--ptv-font);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--ptv-transition);
    white-space: nowrap;
}

.ptv-filter-btn:hover,
.ptv-filter-btn.active {
    background: linear-gradient(135deg, var(--ptv-accent), var(--ptv-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(220,38,38,0.35);
    transform: translateY(-1px);
}

/* ─── Match Minimalist List Layout ──────────────────────── */
.ptv-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* ─── Match Row ─────────────────────────────────────────── */
.ptv-card,
.ptv-list-row {
    background: var(--ptv-card);
    border: 1px solid var(--ptv-border);
    border-radius: var(--ptv-radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background var(--ptv-transition), border-color var(--ptv-transition);
    position: relative;
    animation: ptv-card-in 0.3s ease both;
}

@keyframes ptv-card-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ptv-list-row:hover {
    border-color: var(--ptv-border-glow);
    background: var(--ptv-card-hover);
}

/* ─── Match Info (Icon, Time, League & Teams) ────────────── */
.ptv-match-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
}

.ptv-sport-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.ptv-time {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ptv-gold);
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ptv-match-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ptv-league-name {
    font-weight: 700;
    color: var(--ptv-text-secondary);
    margin-right: 4px;
}

.ptv-teams-text {
    font-weight: 600;
    color: var(--ptv-text-primary);
}

/* ─── Minimalist Channels Section ───────────────────────── */
.ptv-channels {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ptv-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.25);
    border-radius: 6px;
    color: var(--ptv-text-primary);
    font-family: var(--ptv-font);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--ptv-transition);
    white-space: nowrap;
}

.ptv-channel-btn:hover {
    background: linear-gradient(135deg, var(--ptv-accent), var(--ptv-accent-2));
    border-color: transparent;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(220,38,38,0.4);
}

.ptv-channel-hd {
    border-color: rgba(14,165,233,0.35);
    background: rgba(14,165,233,0.1);
}

.ptv-channel-hd:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(14,165,233,0.4);
}

.ptv-hd-badge {
    font-size: 0.6rem;
    font-weight: 900;
    background: var(--ptv-hd);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}

.ptv-channels-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ptv-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ptv-channel-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ptv-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--ptv-radius-sm);
    color: var(--ptv-text-primary);
    font-family: var(--ptv-font);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--ptv-transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.ptv-channel-btn:hover {
    background: linear-gradient(135deg, var(--ptv-accent), var(--ptv-accent-2));
    border-color: transparent;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    text-decoration: none !important;
}

.ptv-channel-hd {
    border-color: rgba(6,182,212,0.35);
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.12));
}

.ptv-channel-hd:hover {
    background: linear-gradient(135deg, var(--ptv-hd), #3b82f6);
    box-shadow: 0 6px 20px rgba(6,182,212,0.4);
}

.ptv-hd-badge {
    font-size: 0.6rem;
    font-weight: 900;
    background: var(--ptv-hd);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.ptv-play-icon {
    width: 11px;
    height: 11px;
    fill: currentColor;
    opacity: 0.8;
    flex-shrink: 0;
}

/* ─── Empty State ────────────────────────────────────────── */
.ptv-empty {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.ptv-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 14px;
    animation: ptv-bounce 2s ease infinite;
}

@keyframes ptv-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.ptv-empty p {
    color: var(--ptv-text-secondary);
    font-size: 1rem;
    margin-bottom: 18px;
}

/* ─── Loading Skeleton ───────────────────────────────────── */
.ptv-skeleton-card {
    background: var(--ptv-card);
    border: 1px solid var(--ptv-border);
    border-radius: var(--ptv-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ptv-skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: ptv-shimmer 1.5s ease infinite;
    border-radius: var(--ptv-radius-sm);
}

@keyframes ptv-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ptv-skeleton-line {
    height: 12px;
    border-radius: 6px;
}

.ptv-skeleton-short { width: 55%; }
.ptv-skeleton-med   { width: 75%; }
.ptv-skeleton-full  { width: 100%; }
.ptv-skeleton-tall  { height: 80px; }

/* ─── Responsive: Tablet ─────────────────────────────────── */
@media (max-width: 768px) {

    /* Wrapper */
    .ptv-wrapper {
        padding: 16px 14px;
        border-radius: var(--ptv-radius-lg);
    }

    /* Header — stack left/right into one row, allow wrapping */
    .ptv-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .ptv-header-left {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    /* Title: smaller on mobile, don't overflow */
    .ptv-heading {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    /* Hide the countdown timer — saves space */
    .ptv-refresh-timer { display: none; }

    /* Refresh button — compact icon-only on mobile */
    .ptv-refresh-btn {
        padding: 6px 10px;
        font-size: 0;        /* hide text */
        gap: 0;
    }
    .ptv-refresh-btn svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    /* Filter bar — horizontal scroll instead of wrapping chaotically */
    .ptv-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
        margin-bottom: 12px;
    }
    .ptv-filter-bar::-webkit-scrollbar { display: none; }

    .ptv-filter-btn {
        flex-shrink: 0;
        font-size: 0.74rem;
        padding: 5px 12px;
    }

    /* Match rows — stack vertically */
    .ptv-card,
    .ptv-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 11px 13px;
    }

    .ptv-match-info {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ptv-match-title {
        white-space: normal;
        word-break: break-word;
        font-size: 0.88rem;
    }

    .ptv-channels {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ─── Responsive: Small Phone ────────────────────────────── */
@media (max-width: 400px) {
    .ptv-wrapper {
        padding: 12px 10px;
    }

    .ptv-heading {
        font-size: 0.9rem;
        max-width: 140px;
    }

    .ptv-badge {
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    .ptv-channel-btn {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

/* ─── Hidden utility ─────────────────────────────────────── */
.ptv-hidden { display: none !important; }

/* ─── Stream Modal Player ────────────────────────────────── */
.ptv-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(9, 10, 17, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ptv-fade-in 0.3s ease;
}

@keyframes ptv-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ptv-modal-container {
    width: 100%;
    max-width: 960px;
    background: var(--ptv-surface);
    border: 1px solid var(--ptv-border-glow);
    border-radius: var(--ptv-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--ptv-shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: ptv-modal-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ptv-modal-pop {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.ptv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0d0f1a;
    border-bottom: 1px solid var(--ptv-border);
}

.ptv-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.ptv-modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ptv-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptv-modal-channel {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ptv-accent);
    background: var(--ptv-accent-glow);
    border: 1px solid rgba(99,102,241,0.3);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.ptv-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ptv-border);
    color: var(--ptv-text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ptv-transition);
    margin-left: 12px;
    flex-shrink: 0;
}

.ptv-modal-close:hover {
    background: var(--ptv-red);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
}

.ptv-modal-body {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

#ptv-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ptv-modal-loading {
    position: absolute;
    inset: 0;
    background: #0d0f1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
    color: var(--ptv-text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.ptv-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--ptv-accent);
    border-radius: 50%;
    animation: ptv-spin 0.8s linear infinite;
}

/* ===============================================================
   DOWNLOAD BANNER — Top of shortcode, full-width, pure red theme
   =============================================================== */
.ptv-download-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 16px 0 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16) 0%, rgba(185, 28, 28, 0.24) 100%) !important;
    border: 1px solid rgba(220, 38, 38, 0.45) !important;
    border-radius: var(--ptv-radius-md, 12px) !important;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.18) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.ptv-download-banner:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.24) 0%, rgba(185, 28, 28, 0.35) 100%) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3) !important;
    text-decoration: none !important;
}

.ptv-download-banner-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.ptv-download-banner-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(220, 38, 38, 0.2) !important;
    border: 1px solid rgba(220, 38, 38, 0.4) !important;
    border-radius: 10px !important;
    color: #ef4444 !important;
    flex-shrink: 0 !important;
}

.ptv-download-banner-icon svg {
    stroke: #ef4444 !important;
    display: block !important;
}

.ptv-download-banner-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.ptv-download-banner-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.ptv-download-banner-sub {
    font-size: 0.8rem !important;
    color: #fca5a5 !important;
    line-height: 1.3 !important;
}

.ptv-download-banner-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s ease !important;
}

.ptv-download-banner:hover .ptv-download-banner-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
    transform: scale(1.02) !important;
}

.ptv-download-banner-btn svg {
    stroke: #ffffff !important;
    display: block !important;
    flex-shrink: 0 !important;
}

@media (max-width: 640px) {
    .ptv-download-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
    }
    .ptv-download-banner-left {
        width: 100% !important;
    }
    .ptv-download-banner-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 11px 16px !important;
    }
}

/* ===============================================================
   DOWNLOAD PAGE /ptv-descargar/ — Red Theme & SVGs
   =============================================================== */
.ptv-download-page-wrap {
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    padding: 50px 20px 70px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
}
.ptv-download-card {
    background: #12121a;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 20px;
    padding: 44px 38px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(220, 38, 38, 0.15);
}
.ptv-download-logo {
    margin-bottom: 28px;
}
.ptv-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.4);
    border-radius: 50%;
    margin-bottom: 16px;
    color: #ef4444;
}
.ptv-download-icon svg {
    stroke: #ef4444;
}
.ptv-download-title {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f87171 60%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ptv-download-subtitle {
    color: #94a3b8;
    font-size: 0.92rem;
    margin: 0;
}
.ptv-download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 32px;
}
.ptv-download-feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.28);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fca5a5;
}
.ptv-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}
.ptv-feature-icon svg {
    stroke: #ef4444;
}
.ptv-download-action {
    margin-top: 10px;
}
.ptv-countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ptv-countdown-ring {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ptv-countdown-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.ptv-countdown-track {
    fill: none;
    stroke: rgba(220, 38, 38, 0.15);
    stroke-width: 4;
}
.ptv-countdown-fill {
    fill: none;
    stroke: #dc2626;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.ptv-countdown-num {
    position: relative;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ef4444;
    z-index: 1;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}
.ptv-countdown-label {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}
.ptv-download-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: ptv-fade-in 0.4s ease;
}
.ptv-download-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 38px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    color: #ffffff !important;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 8px 26px rgba(220, 38, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}
.ptv-download-now-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 34px rgba(239, 68, 68, 0.65);
    color: #ffffff !important;
    text-decoration: none !important;
}
.ptv-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ptv-btn-icon svg {
    stroke: #ffffff;
}
.ptv-download-note {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}
@media (max-width: 480px) {
    .ptv-download-card {
        padding: 30px 18px;
    }
    .ptv-download-title {
        font-size: 1.45rem !important;
    }
    .ptv-download-now-btn {
        padding: 12px 26px;
        font-size: 0.95rem;
        width: 100%;
    }
}

/* ===============================================================
   WORDPRESS-THEMED PLAYER PAGE — Pure Red Theme
   =============================================================== */
.ptv-player-page-wrap {
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background: #09090f;
    width: 100%;
}
.ptv-player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #0d0f1a 0%, #151826 100%);
    border-bottom: 1px solid rgba(220, 38, 38, 0.25);
    flex-wrap: wrap;
}
.ptv-player-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ptv-player-match-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ptv-player-channel-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ptv-player-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ptv-player-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.ptv-player-download-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.6);
    color: #ffffff !important;
    text-decoration: none !important;
}
.ptv-player-download-btn svg {
    stroke: #ffffff;
    display: block;
}
.ptv-player-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1 !important;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ptv-player-home-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
}
.ptv-player-home-btn svg {
    stroke: currentColor;
    display: block;
}
.ptv-channel-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #0d0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.ptv-channel-selector-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}
.ptv-channel-selector-label svg {
    stroke: #ef4444;
}
.ptv-channel-selector-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.ptv-ch-sel-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 999px;
    color: #fca5a5 !important;
    font-family: var(--ptv-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ptv-ch-sel-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    color: #ffffff !important;
    text-decoration: none !important;
}
.ptv-ch-sel-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.45);
}
.ptv-ch-sel-btn.hd {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc !important;
}
.ptv-ch-sel-btn.hd.active,
.ptv-ch-sel-btn.hd:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.45);
}
.ptv-player-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
    min-height: 320px;
}
.ptv-player-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ptv-player-loading {
    position: absolute;
    inset: 0;
    background: #09090f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 5;
    transition: opacity 0.5s ease;
}
.ptv-player-loading.ptv-hidden {
    opacity: 0;
    pointer-events: none;
}
.ptv-loading-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}
.ptv-loading-match {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
}
@media (max-width: 600px) {
    .ptv-player-topbar {
        padding: 10px 12px;
        gap: 8px;
    }
    .ptv-player-match-title {
        font-size: 0.85rem;
    }
    .ptv-player-download-btn,
    .ptv-player-home-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .ptv-channel-selector {
        padding: 8px 12px;
    }
}
