/* Live Draw Page Styles */
.live-stream-container {
    background: linear-gradient(135deg, #1e1537 0%, #241d48 100%);
    border-radius: 25px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.live-stream-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.live-stream-container:hover::before {
    transform: translateX(100%);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.live-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.date-filter-container {
    background: linear-gradient(135deg, #1e1537 0%, #241d48 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.date-selector {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.date-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.filter-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.draw-result-card {
    background: linear-gradient(135deg, #1e1537 0%, #241d48 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.draw-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.draw-result-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.draw-result-card:hover::before {
    transform: translateX(100%);
}

.draw-result-card:hover::after {
    opacity: 1;
}

.draw-result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.draw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-icon {
    font-size: 3rem;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.game-details h4 {
    color: #e0e0e0;
    margin-bottom: 8px;
    font-weight: 700;
}

.draw-date {
    color: #b0a7d4;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.draw-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.status-upcoming {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.status-live {
    background: linear-gradient(45deg, #dc3545, #e91e63);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    animation: pulse-live 2s ease-in-out infinite alternate;
}

.status-not-available {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

.status-unknown {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.6);
        transform: scale(1.05);
    }
}

.date-filter-container {
    background: rgba(30, 21, 55, 0.6);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.date-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-selector:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: white;
}

.filter-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

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

/* Draw API Integration Styles */
.draws-loading-container {
    background: rgba(30, 21, 55, 0.8);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.draws-loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.draw-error-container {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.draw-no-results-container {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

/* Enhanced video play button */
.video-container .play-button-overlay {
    transition: all 0.3s ease;
}

.video-container .play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
}

.video-container.playing .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Loading state for individual draw cards */
.draw-card-loading {
    background: rgba(30, 21, 55, 0.4);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .live-stream-container {
        padding: 20px;
    }

    .date-filter-container {
        padding: 20px;
    }

    .draw-result-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .game-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .game-icon {
        font-size: 2.5rem;
        padding: 12px;
    }

    .draw-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .winning-tickets {
        padding: 15px;
    }

    .ticket-prize-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .winning-ticket-badge {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin: 2px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .countdown-item {
        padding: 8px 10px;
        min-width: 50px;
    }

    .countdown-number {
        font-size: 1.2rem;
    }

    .date-filter-container {
        padding: 15px;
    }

    .date-filter-container .row {
        text-align: center;
    }

    .date-filter-container .col-md-6 {
        margin-bottom: 15px;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .live-stream-container {
        padding: 15px;
    }

    .draw-result-card {
        padding: 15px;
    }

    .winning-tickets {
        padding: 15px;
    }

    .ticket-prize-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .winning-ticket-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin: 3px;
    }
}