/* ==========================================================================
   Lumify Stream — Warm Brutalism Design System
   Brand: LK BotVerse TG Web Streamer
   Tokens strictly follow DESIGN.md specifications
   ========================================================================== */

:root {
    /* Surfaces */
    --surface: #f7f2ec;
    --surface-dim: #ece7e1;
    --surface-bright: #fffdf9;
    --surface-container-lowest: #faf8f5;
    --surface-container-low: #f5f0eb;
    --surface-container: #f0ebe5;
    --surface-container-high: #e9e4de;
    --surface-container-highest: #e3ddd7;

    /* On-Surfaces */
    --on-surface: #191c21;
    --on-surface-variant: #596273;
    --inverse-surface: #2d3038;
    --inverse-on-surface: #f1eff4;

    /* Outlines & Borders */
    --outline: #687180;
    --outline-variant: #c4c7c8;
    --border-light: rgba(25, 28, 33, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Primary Colors & Containers */
    --primary: #191c21;
    --on-primary: #ffffff;
    --primary-container: #242930;
    --primary-container-hover: #2d3038;
    --on-primary-container: #f1eff4;

    /* Secondary (Warm Coral) */
    --secondary: #cc8066;
    --on-secondary: #ffffff;
    --secondary-container: #e7a891;
    --on-secondary-container: #3d2817;

    /* Tertiary (Functional Blue) */
    --tertiary: #0893d4;
    --on-tertiary: #ffffff;

    /* Typography */
    --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Shapes & Radii */
    --radius-sm: 10px;
    --radius-default: 14px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Elevation Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 50px rgba(44, 37, 33, 0.07);
    --shadow-dark: 0 20px 45px rgba(0, 0, 0, 0.28);

    /* Container */
    --container-max: 1180px;

    /* Plyr Overrides */
    --plyr-color-main: #cc8066;
    --plyr-video-background: #000000;
    --plyr-border-radius: 14px;
}

/* Hide default Plyr spinner so custom pill takes center stage */
.plyr--loading .plyr__loading-spinner {
    display: none !important;
}

/* Base Resets */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
    min-height: 100vh;
}

/* Selection */
::selection {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

/* Links & Typography */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* Container */
.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Technical Eyebrow */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    display: inline-block;
    margin-bottom: 12px;
}

.eyebrow-coral {
    color: var(--secondary);
}

.eyebrow-light {
    color: rgba(241, 239, 244, 0.7);
}

/* ==========================================================================
   Lumify Stream — Warm Brutalism Design System
   ========================================================================== */
.site-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 24px;
    margin-bottom: 32px;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 60px;
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--on-surface);
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    position: relative;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--on-surface);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Pill Buttons
   ========================================================================== */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
    background-color: var(--surface-container-high);
    border-color: var(--outline);
}

.btn-coral {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-coral:hover {
    background-color: #ba6d53;
    transform: translateY(-1px);
}

.btn-light {
    background-color: var(--surface-bright);
    color: var(--on-surface);
    border: 1px solid var(--border-light);
}

.btn-light:hover {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-vlc {
    background-color: rgba(204, 128, 102, 0.15);
    color: #b05c40;
    border: 1px solid rgba(204, 128, 102, 0.3);
}

.btn-vlc:hover {
    background-color: rgba(204, 128, 102, 0.25);
    transform: translateY(-1px);
}

.btn-mx {
    background-color: rgba(8, 147, 212, 0.12);
    color: #0277ab;
    border: 1px solid rgba(8, 147, 212, 0.25);
}

.btn-mx:hover {
    background-color: rgba(8, 147, 212, 0.22);
    transform: translateY(-1px);
}

.btn-download {
    background-color: var(--surface-bright);
    color: var(--on-surface);
    border: 1px solid var(--border-light);
}

.btn-download:hover {
    background-color: var(--surface-container-high);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    background: var(--primary);
    color: var(--on-primary);
    padding: 64px 0 32px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 36px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.brand-icon-img,
.brand-icon img,
.brand-logo img,
.footer-logo img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-columns {
    display: flex;
    gap: 64px;
}

.footer-col h6 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 16px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #64748b;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   Error Page Styles
   ========================================================================== */
.error-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.error-card {
    max-width: 580px;
    width: 100%;
    background: var(--surface-bright);
    border: 1px solid var(--surface-container-high);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.error-icon-box {
    width: 72px;
    height: 72px;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #d9534f;
    margin: 0 auto 24px;
}

.error-card h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.error-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
}

.error-actions-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* VLC SVG Icon Helper */
.vlc-svg-icon {
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

/* Minimalist Page Footer (Player, Get Stream, Expired, 404, Error) */
.minimal-footer {
    text-align: center;
    margin-top: 48px;
    padding: 28px 16px 36px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--on-surface-variant);
    text-transform: uppercase;
}

.footer-links-row {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    line-height: 1.8;
}

.footer-links-row a {
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-row a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-links-row .sep {
    opacity: 0.45;
    user-select: none;
}

.footer-credits-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.6;
    text-align: center;
}

.footer-credits-stack .credit-brand {
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--on-surface);
}

.footer-credits-stack .credit-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

@media (max-width: 600px) {
    .minimal-footer {
        margin-top: 36px;
        padding: 20px 12px 28px;
        font-size: 10.5px;
    }
    .footer-links-row {
        gap: 6px 10px;
        margin-bottom: 14px;
    }
    .footer-credits-stack {
        gap: 4px;
    }
    .footer-credits-stack .credit-brand {
        font-size: 11px;
    }
    .footer-credits-stack .credit-sub {
        font-size: 9.5px;
    }
}

