/* style.css - Ultra High-Contrast Neon Dark Theme for Jahon Chempionati 2026 */

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

:root {
    --bg-main: #000000;
    --bg-card: rgba(15, 15, 15, 0.75);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    
    --neon-blue: #ffffff;
    --neon-green: #ffffff;
    --neon-purple: #ffffff;
    --neon-yellow: #ffffff;
    
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #737373 100%);
    --premium-gradient: linear-gradient(135deg, #ffffff 0%, #404040 100%);
    --danger-gradient: linear-gradient(135deg, #ffffff 0%, #171717 100%);
    --success-gradient: linear-gradient(135deg, #ffffff 0%, #525252 100%);
    
    --neon-glow: 0 0 15px rgba(255, 255, 255, 0.15);
    --blue-glow: 0 0 15px rgba(255, 255, 255, 0.15);
    --premium-glow: 0 0 15px rgba(255, 255, 255, 0.2);
    --card-glow: 0 15px 40px rgba(0, 0, 0, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background floating animations */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000000;
}
.bg-circle-1 {
    display: none !important;
}
.bg-circle-2 {
    display: none !important;
}

/* App Container */
.container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 20px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-glow), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.glowing-card-premium {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--card-glow), 0 0 15px rgba(255, 255, 255, 0.05);
}
.glowing-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
}
.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-live {
    background: #000000;
    color: white;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
    animation: live-blink 1s infinite alternate;
}
@keyframes live-blink {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Viewers Badge */
.badge-viewers {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
}
.user-badge .avatar {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #000;
}
.user-badge.premium {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}
.user-badge.premium .avatar {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Video Player Frame */
.player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    aspect-ratio: 16/9;
}
.player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Quality select & buttons overlays */
.quality-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
.quality-badge.premium {
    background: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    color: #000;
    font-weight: 900;
}

/* Redesigned Custom Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 20;
    pointer-events: none;
}
.player-wrapper:hover .video-controls-overlay,
.player-wrapper.touch-active .video-controls-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Seek / Timeline Slider */
.timeline-container {
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
}
.timeline-slider {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: height 0.15s ease;
}
.timeline-container:hover .timeline-slider {
    height: 6px;
}
.timeline-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.timeline-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    width: 0;
}
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 0;
}
.timeline-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.timeline-container:hover .timeline-handle {
    transform: translate(-50%, -50%) scale(1.3);
}

/* Control Buttons styling */
.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Volume Slider slide-out reveal */
.volume-container {
    display: flex;
    align-items: center;
    position: relative;
}
.volume-slider {
    width: 0;
    opacity: 0;
    visibility: hidden;
    margin-left: 0;
    transition: width 0.25s ease, opacity 0.25s ease, margin-left 0.25s ease;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}
.volume-container:hover .volume-slider,
.volume-container:focus-within .volume-slider {
    width: 60px;
    opacity: 1;
    visibility: visible;
    margin-left: 6px;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Time display formatting */
.time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 6px;
    user-select: none;
}
.time-separator {
    color: rgba(255, 255, 255, 0.4);
}
.live-dot {
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    display: none;
    margin-right: 4px;
    box-shadow: 0 0 8px #ff0000;
    animation: live-blink 1.2s infinite alternate ease-in-out;
}

/* Dropdown settings menus */
.quality-wrapper, .audio-boost-wrapper {
    position: relative;
}
.quality-dropdown, .audio-boost-dropdown {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.quality-dropdown.active, .audio-boost-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.quality-option, .boost-option {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-align: left;
}
.quality-option:hover, .boost-option:hover,
.quality-option.active, .boost-option.active {
    color: #000000;
    background: #ffffff;
}

/* Offline Splash Overlay */
.offline-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(8, 8, 20, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    z-index: 5;
}
.offline-placeholder svg {
    width: 60px;
    height: 60px;
    color: #ffffff;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
    animation: offline-pulse 2s infinite alternate ease-in-out;
}
@keyframes offline-pulse {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.08) translateY(-4px); }
}
.offline-placeholder h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}
.offline-placeholder p {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 85%;
}

/* Fullscreen Advertisement Interstitial Overlay */
.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.ad-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ad-label-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #a3a3a3;
    text-transform: uppercase;
}
.ad-timer-badge {
    background: #ffffff;
    color: #000000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}
.ad-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #000000;
}
.ad-media-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ad-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-cta-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 800;
    font-size: 12px;
    padding: 10px 24px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    animation: ad-pulse 2s infinite alternate ease-in-out;
}
@keyframes ad-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}


/* Prediction Card */
.prediction-card h4 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}
.predict-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.predict-inputs input {
    width: 64px;
    height: 48px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.predict-inputs input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}
.predict-inputs span {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-secondary);
}
.btn-primary {
    background: #ffffff;
    border: none;
    color: #000;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* Premium Obuna Card */
.premium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 10, 10, 0.85) 100%);
}
.premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.premium-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--neon-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.premium-price {
    font-weight: 900;
    font-size: 20px;
    color: white;
}
.premium-features {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.premium-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.premium-features li svg {
    color: var(--neon-yellow);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.btn-premium {
    background: #ffffff;
    border: none;
    color: #000;
    font-weight: 900;
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* Mandatory sub LOCK */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lock-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--card-glow);
}
.lock-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.lock-card h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.lock-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.channel-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: white;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.channel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.channel-btn svg {
    color: #ffffff;
}

/* Payment dialog */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.payment-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.payment-card {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.card-details-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 18px;
}
.card-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.card-details-row:last-child {
    margin-bottom: 0;
}
.card-label {
    font-size: 12px;
    color: var(--text-secondary);
}
.card-value {
    font-weight: 700;
    font-size: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-copy {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.2s ease;
}
.btn-copy:hover {
    transform: scale(1.15);
}

.file-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-box:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}
.file-upload-box svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.file-name-preview {
    font-size: 12px;
    color: #ffffff;
    margin-top: 10px;
    word-break: break-all;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: white;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    text-align: center;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 380px;
}
.toast {
    background: rgba(6, 6, 6, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.success {
    border-left: 4px solid #ffffff;
}
.toast.error {
    border-left: 4px solid #525252;
}
@keyframes toast-slide {
    from { transform: translateY(-24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Real-time Scoreboard */
.scoreboard-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-glow), 0 0 15px rgba(255, 255, 255, 0.05);
}
.scoreboard-card .score-team {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
}
.scoreboard-card .score-team .flag {
    font-size: 26px;
}
.scoreboard-card .score-team .team-name {
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.scoreboard-card .score-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.scoreboard-card .score-divider {
    color: var(--text-primary);
    text-shadow: none;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }
    .glass-card {
        padding: 20px 16px;
    }
    .brand {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .scoreboard-card {
        padding: 12px 16px;
    }
    .scoreboard-card .score-team {
        font-size: 15px;
        gap: 6px;
    }
    .scoreboard-card .score-team .flag {
        font-size: 20px;
    }
    .scoreboard-card .score-display {
        font-size: 22px;
        gap: 6px;
    }
}

/* Big Centered Play Button */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 25;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.big-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}


/* Fullscreen and Pseudo-Fullscreen styles */
.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen,
.player-wrapper:-moz-full-screen,
.player-wrapper:-ms-fullscreen,
.player-wrapper.pseudo-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    aspect-ratio: auto !important;
    background: #000000 !important;
}
.player-wrapper:fullscreen video,
.player-wrapper:-webkit-full-screen video,
.player-wrapper:-moz-full-screen video,
.player-wrapper:-ms-fullscreen video,
.player-wrapper.pseudo-fullscreen video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.pseudo-fullscreen {
    overflow: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
}

.player-wrapper.pseudo-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
}

/* Mobile Landscape Mode Fullscreen */
@media (orientation: landscape) and (max-height: 600px) {
    body {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }
    header, .scoreboard-card, .prediction-card, .premium-card {
        display: none !important;
    }
    .player-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        border: none !important;
        aspect-ratio: auto !important;
    }
    .player-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .video-controls-overlay {
        bottom: 8px !important;
        left: 8px !important;
        width: calc(100% - 16px) !important;
        padding: 8px 12px !important;
    }
}

/* =========================================================
   Desktop Layout — Two-column grid (min-width: 1024px)
   ========================================================= */
@media (min-width: 1024px) {
    body {
        overflow-y: auto;
        min-height: 100vh;
    }
    
    .container {
        max-width: 1280px;
        padding: 28px 32px;
        display: grid;
        grid-template-columns: 1fr 400px;
        grid-template-rows: auto;
        gap: 24px;
        align-items: start;
        /* Named grid areas for clean placement */
    }
    
    /* Header spans both columns */
    .container > header {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 0 0 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 4px;
    }
    
    /* Scoreboard — left column, below header */
    #scoreboard-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Player — left column, below scoreboard */
    .player-card {
        grid-column: 1;
        grid-row: 3;
    }
    
    /* Prediction card — right sidebar, row 2 */
    .prediction-card {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Premium card — right sidebar, row 3 */
    .premium-card {
        grid-column: 2;
        grid-row: 3;
    }
    
    /* Make player maintain 16:9 comfortably on desktop */
    .player-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 20px;
    }
    
    /* Header brand sizing uplift */
    .brand {
        font-size: 28px;
    }
    
    /* Slightly larger scoreboard text on desktop */
    .scoreboard-card .score-display {
        font-size: 34px;
    }
    
    .scoreboard-card .score-team {
        font-size: 20px;
    }
    
    .scoreboard-card .score-team .flag {
        font-size: 30px;
    }
}
