

:root {
    --app-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-red: #ff0000;
    --accent-red: #cc0000;
    --text-primary: #ffffff;
    --text-gray: #aaaaaa;
    --vs-red: #ff0000;
}

/* User's HTML Structure Mappings */
#vpplay-wrapper {
    font-family: 'Roboto', sans-serif;
    background-color: var(--app-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    direction: ltr;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid white;
    border-radius: 15px;
}

#vpplay-header {
    margin-bottom: 2rem;
    text-align: center;
}

#vpplay-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#vpplay-date-display {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 500;
}

#vpplay-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none !important;
}

/* ---------------
   Match Card (Reusing existing classes output by JS)
   --------------- */

.vpplay-match-node {
    background: var(--card-bg);
    border: 1px solid #333;
    border-left: 4px solid var(--border-red);
    border-right: 1px solid #333;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vpplay-match-node:hover {
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: #ff3333;
}

/* League badge in upper left corner */
.vpplay-league-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    z-index: 5;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
}

.vpplay-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.vpplay-match-node:hover .vpplay-hover-overlay {
    opacity: 1;
}

.vpplay-play-icon {
    width: 50px;
    height: 50px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 20px;
}

.vpplay-match-node:hover .vpplay-play-icon {
    transform: scale(1);
}

.vpplay-side-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 1;
}

.vpplay-side-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.vpplay-side-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}

.vpplay-center-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vpplay-vs-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vs-red);
    margin-bottom: 3px;
}

.vpplay-meta-line {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.vpplay-status-pill {
    background: #2a2a2a;
    color: #fff;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vpplay-status-pill.live {
    background: #ff0000;
    color: white;
}

/* Modal Styling */
.vpplay-modal-dimmer {
    display: none;
    /* JS toggles 'flex' */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 20px;
    align-items: flex-start;
    justify-content: center;
}

.vpplay-modal-dimmer.visible {
    display: flex;
}

.vpplay-modal-panel {
    background: #1a1a1a;
    border: 1px solid var(--border-red);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 10px 50px rgba(255, 0, 0, 0.2);
    min-height: 100px;
}

.vpplay-close-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}

.vpplay-close-trigger:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.vpplay-modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
    min-height: 1.5rem;
}

.vpplay-player-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    direction: ltr;
}

.vpplay-video-frame {
    width: 100%;
    height: 130%;
    border: none;
    transform: translateY(-11.5%);
    overflow: hidden;
    pointer-events: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.vpplay-video-frame::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Tablet - already working perfectly */
@media (max-width: 1024px) and (min-width: 769px) {
    .vpplay-video-frame {
        height: 130%;
        transform: translateY(-11.5%);
    }
}

/* Mobile - show full player, crop top more */
@media (max-width: 768px) {
    .vpplay-video-frame {
        height: 170%;
      
         transform: translateY(-30%);
    }
}

.vpplay-player-shield {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: 10;
    pointer-events: auto;
    color: #ff0000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    direction: ltr;
}

.vpplay-channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.vpplay-link-node {
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    background: #2a2a2a;
}

.vpplay-link-node:hover {
    border-color: var(--border-red);
    background: #333;
    color: var(--border-red);
}

@media (max-width: 768px) {
    .vpplay-match-node {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .vpplay-side-name {
        font-size: 1.1rem;
    }

    .vpplay-side-logo {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    #vpplay-wrapper {
        padding: 10px;
    }

    .vpplay-match-node {
        padding: 1.25rem 0.75rem;
        border-radius: 10px;
    }

    .vpplay-side-name {
        font-size: 1rem;
    }

    .vpplay-vs-label {
        font-size: 1.4rem;
    }

    .vpplay-side-logo {
        width: 40px;
        height: 40px;
    }
}