/* ============================================================
   STREAMVAULT — MASTER STYLESHEET
   Author: Dazzler
   ============================================================ */

/* ---------- Design tokens (Default Theme) ---------- */
:root {
    --bg-dark:      #0b0e14;
    --bg-card:      #151a23;
    --bg-input:     #1e2430;
    --accent:       #3b82f6;
    --accent-hover: #2563eb;
    --text-main:    #e8edf5;
    --text-muted:   #8b95a5;
    --border:       #2a3242;
    --radius:       14px;
    --shadow:       0 10px 40px rgba(0, 0, 0, 0.5);
    --font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Base ---------- */
html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
    align-self: stretch;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: radial-gradient(ellipse at top, #1a2333 0%, var(--bg-dark) 70%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-card label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-card input {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================================
   ALERTS & TOAST
   ============================================================ */
.alert {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert p { margin: 0.15rem 0; }

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.alert a:hover { opacity: 0.85; }

.flash-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
    box-shadow: var(--shadow);
    animation: flash-in 0.25s ease-out;
    margin: 0;
}

@keyframes flash-in {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   STREAMING / PLAYER PAGE
   ============================================================ */
.stream-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stream-header h1 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.stream-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.player-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    border: 1px solid var(--border);
}

#bitmovin-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-info {
    margin-top: 2rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.video-info h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 70ch;
}

/* ============================================================
   STREAM PICKER
   ============================================================ */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.stream-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text-main);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.stream-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.stream-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.stream-meta { padding: 0.9rem 1rem 1.1rem; }
.stream-meta h2 { font-size: 1rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.stream-meta span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.site-footer-sep { opacity: 0.5; }

/* ============================================================
   BITMOVIN PLAYER — CUSTOM SKIN
   ============================================================ */
.custom-bitmovin-skin .bmpui-ui-controlbar {
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95), transparent) !important;
    padding-bottom: 12px !important;
}

.custom-bitmovin-skin .bmpui-seekbar-backdrop {
    background: rgba(255, 255, 255, 0.15) !important;
    height: 4px !important;
    border-radius: 4px !important;
}

.custom-bitmovin-skin .bmpui-seekbar-playbackposition {
    background: var(--accent) !important;
    border-radius: 4px !important;
}

.custom-bitmovin-skin .bmpui-seekbar-bufferlevel {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
}

.custom-bitmovin-skin .bmpui-ui-playbacktogglebutton {
    color: var(--accent) !important;
    transition: transform 0.15s ease;
}

.custom-bitmovin-skin .bmpui-ui-playbacktogglebutton:hover { transform: scale(1.12); }

.custom-bitmovin-skin .bmpui-ui-volumeslider .bmpui-seekbar-backdrop {
    background: rgba(255, 255, 255, 0.2) !important;
}

.custom-bitmovin-skin .bmpui-ui-settingstogglebutton,
.custom-bitmovin-skin .bmpui-ui-fullscreentogglebutton {
    color: #fff !important;
    opacity: 0.9;
    transition: opacity 0.15s;
}

.custom-bitmovin-skin .bmpui-ui-settingstogglebutton:hover,
.custom-bitmovin-skin .bmpui-ui-fullscreentogglebutton:hover { opacity: 1; }

.custom-bitmovin-skin .bmpui-ui-postercontainer { background: rgba(0, 0, 0, 0.4) !important; }

.custom-bitmovin-skin .bmpui-ui-titlebar {
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.8), transparent) !important;
    padding: 16px !important;
}

.custom-bitmovin-skin .bmpui-title {
    font-family: var(--font) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.custom-bitmovin-skin .bmpui-ui-settings-panel {
    background: rgba(21, 26, 35, 0.98) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px);
}

.custom-bitmovin-skin .bmpui-ui-watermark { opacity: 0.7; }

/* ============================================================
   SITE NAV
   ============================================================ */
.site-nav {
    flex-shrink: 0;
    background: rgba(21, 26, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* --- Brand / Logo --- */
.site-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.site-nav-brand:hover { text-decoration: none; }

/* --- Het Nieuwe Premium Logo (32x32) --- */
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 15px -2px rgba(59, 130, 246, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.brand-svg {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.site-nav-brand:hover .brand-mark {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px -2px rgba(59, 130, 246, 0.8);
}

.brand-text {
    font-weight: 800;
    font-size: 1.0rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* --- Links --- */
.site-nav-links {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    position: relative;
}

.site-nav-link svg {
    opacity: 0.7;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.site-nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.site-nav-link:hover svg { opacity: 1; transform: scale(1.08); }

.site-nav-link.is-active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.12);
}

.site-nav-link.is-active svg { opacity: 1; color: var(--accent); }

.site-nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
}

/* --- User Dropdown --- */
.site-nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu { position: relative; }

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    border-color: var(--accent);
    background: var(--bg-input);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-chevron {
    opacity: 0.7;
    transition: transform .15s;
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: menuFadeIn .12s ease-out;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-menu-label {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background .12s;
}

.user-menu-item:hover { background: var(--bg-input); }
.user-menu-item svg { flex-shrink: 0; opacity: 0.75; }
.user-menu-item--danger { color: #fca5a5; }
.user-menu-item--danger:hover { background: rgba(239, 68, 68, 0.12); }
.user-menu-divider { height: 1px; background: var(--border); margin: 0.35rem 0.25rem; }

/* ============================================================
   MATCHES / WEDSTRIJDENOVERZICHT
   ============================================================ */
.schedule-header { align-items: flex-end; }
.date-nav { display: flex; gap: 0.4rem; }

.date-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.date-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.date-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.league-block { margin-bottom: 2rem; }

.league-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.league-count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    background: var(--bg-input);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: middle;
}

.league-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.15s;
}

.match-card:hover { border-color: var(--accent); }

.match-card.is-live {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.match-card--link { color: inherit; text-decoration: none; cursor: pointer; }
.match-card--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.match-card--link:hover .team-name { color: var(--accent); }

.match-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-kickoff {
    font-weight: 600;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.match-status { font-size: 0.75rem; color: #fca5a5; }
.match-teams { display: flex; flex-direction: column; gap: 0.35rem; }
.team-row { display: flex; align-items: center; gap: 0.55rem; }
.team-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

.team-logo--placeholder {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
}

.team-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-score {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 1.2rem;
    text-align: right;
}

/* ============================================================
   BADGES / CHANNELS
   ============================================================ */
.match-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.channel-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-badge--link {
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.channel-badge--link:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent);
    color: var(--accent-hover);
    text-decoration: none;
}

.channel-badge--live {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.channel-badge--live:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    color: #fff;
    text-decoration: none;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.channel-badge--pending {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
    cursor: default;
}

.channel-badge--upcoming {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    cursor: default;
}

/* ============================================================
   VIAPLAY & LIVE TV CARDS
   ============================================================ */
.viaplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Live TV: Forceer 3 grotere kolommen op desktop */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.viaplay-card, .channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.15s;
}

.viaplay-card:hover, .channel-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.viaplay-card.is-live {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.viaplay-thumb, .channel-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.viaplay-thumb > img, .channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viaplay-thumb-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #1a2333, #0b0e14);
}

.channel-thumb-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

.channel-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.channel-name { font-weight: 600; font-size: 0.95rem; color: #fff; }

.viaplay-body, .channel-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.channel-body { gap: 0.75rem; }

.viaplay-format, .program-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.viaplay-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.viaplay-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.viaplay-footer, .channel-footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border);
}

.channel-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.channel-watch-btn:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.channel-watch-btn--disabled {
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Badges op afbeeldingen */
.viaplay-live-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.viaplay-live-badge--live { right: auto; left: 0.5rem; }

.viaplay-live-badge .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-dot 1.5s infinite;
}

.program-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.program-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* ============================================================
   THEMES & FIXES
   ============================================================ */

/* Netflix Red */
[data-theme="netflix"] {
    --bg-dark:      #141414;
    --bg-card:      #1f1f1f;
    --bg-input:     #2d2d2d;
    --accent:       #e50914;
    --accent-hover: #b80710;
    --text-main:    #ffffff;
    --text-muted:   #b3b3b3;
    --border:       #333333;
}

/* Cyberpunk Neon */
[data-theme="cyberpunk"] {
    --bg-dark:      #0a001a;
    --bg-card:      #120029;
    --bg-input:     #1c0038;
    --accent:       #00ffcc;
    --accent-hover: #00ccaa;
    --text-main:    #e0d4ff;
    --text-muted:   #8877aa;
    --border:       #331166;
}

/* Oceanic Blue */
[data-theme="oceanic"] {
    --bg-dark:      #001220;
    --bg-card:      #001e33;
    --bg-input:     #002b4d;
    --accent:       #00b4d8;
    --accent-hover: #0077b6;
    --text-main:    #caf0f8;
    --text-muted:   #90e0ef;
    --border:       #003554;
}

/* Light Mode */
[data-theme="light"] {
    --bg-dark:      #f4f6f8;
    --bg-card:      #ffffff;
    --bg-input:     #e9ecef;
    --accent:       #2563eb;
    --accent-hover: #1d4ed8;
    --text-main:    #1e293b;
    --text-muted:   #64748b;
    --border:       #cbd5e1;
    --shadow:       0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Specifieke fixes voor Light Mode */
[data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .brand-text {
    background: linear-gradient(to right, #1e293b, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

[data-theme="light"] .auth-container {
    background: radial-gradient(ellipse at top, #e2e8f0 0%, var(--bg-dark) 70%);
}

[data-theme="light"] .viaplay-thumb-placeholder {
    background: linear-gradient(135deg, #cbd5e1, #f4f6f8);
}

/* ============================================================
   RESPONSIVE (ALGEMEEN)
   ============================================================ */
@media (max-width: 768px) {
    .stream-container { padding: 1.5rem 1rem 2rem; }
    .stream-header h1 { font-size: 1.25rem; }
    .video-info { padding: 1.25rem; }
}

@media (max-width: 600px) {
    .site-nav { padding: 0.6rem 1rem; }
    .brand-text { display: none; }
}

@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.25rem; }
    .schedule-header { flex-direction: column; align-items: flex-start; }
    .match-grid { grid-template-columns: 1fr; }
    .site-footer-sep { display: none; }
    .site-footer-inner { flex-direction: column; gap: 0.2rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
   PAGE LOADER (SPINNER)
   ============================================================ */
#page-loader {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 20, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#page-loader.show {
    opacity: 1;
    pointer-events: auto;
}

.page-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
    border-radius: 50%;
    animation: page-spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes page-spin {
    to { transform: rotate(360deg); }
}

[data-theme="light"] #page-loader {
    background: rgba(244, 246, 248, 0.75);
}
[data-theme="light"] .page-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent);
}

/* ============================================================
   MOBIEL DROPDOWN MENU
   ============================================================ */
.mobile-menu-btn {
    display: none; /* Standaard verborgen op desktop */
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.mobile-menu-btn:hover {
    background: var(--bg-input);
}

@media (max-width: 900px) {
    /* Toon de hamburger knop */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }

    .site-nav-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative; /* essentieel voor de dropdown positionering */
    }

    .site-nav-brand {
        order: 1;
        flex: 1;
    }

    .site-nav-user {
        order: 3;
    }

    /* De dropdown container */
    .site-nav-links {
        display: none; /* Verberg standaard */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .site-nav-links.is-open {
        display: flex !important;
    }

    .site-nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .site-nav-link span {
        display: inline !important;
    }

    .site-nav-link svg {
        width: 20px !important;
        height: 20px !important;
        opacity: 0.8;
    }

    .site-nav-link.is-active::after {
        display: none;
    }

    .user-name {
        display: none;
    }
}