/* =========================================
   0. LOCAL FONTS (DSGVO Safe)
   ========================================= */

/* --- Orbitron (Headlines) --- */
/* Pfad: fonts/orbitron/ */

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400; /* Regular */
    src: url('../fonts/orbitron/orbitron-v35-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 500; /* Medium */
    src: url('../fonts/orbitron/orbitron-v35-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600; /* SemiBold */
    src: url('../fonts/orbitron/orbitron-v35-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700; /* Bold */
    src: url('../fonts/orbitron/orbitron-v35-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 800; /* ExtraBold */
    src: url('../fonts/orbitron/orbitron-v35-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900; /* Black */
    src: url('../fonts/orbitron/orbitron-v35-latin-900.woff2') format('woff2');
}

/* --- Rajdhani (Body Text) --- */
/* Pfad: fonts/rajdhani/ */

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 300; /* Light */
    src: url('../fonts/rajdhani/rajdhani-v17-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 400; /* Regular */
    src: url('../fonts/rajdhani/rajdhani-v17-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 500; /* Medium */
    src: url('../fonts/rajdhani/rajdhani-v17-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600; /* SemiBold */
    src: url('../fonts/rajdhani/rajdhani-v17-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700; /* Bold */
    src: url('../fonts/rajdhani/rajdhani-v17-latin-700.woff2') format('woff2');
}

/* =========================================
   1. SYSTEM CONFIGURATION (The Digital HUD Core)
   ========================================= */
:root {
    /* --- Brand Identity --- */
    --primary: #00F0FF;   /* Cyan (HUD Active) */
    --secondary: #B026FF; /* Purple (HUD Accent) */
    
    /* --- Surfaces (Glassmorphism Layers) --- */
    --bg-dark: #050505;   /* Deep Void (Main Background) */
    --bg-panel: #0a0a0a;  /* Solid Panel */
    --bg-glass: rgba(10, 10, 10, 0.7); /* See-through layer */

    /* --- Spacing Scale (The "Rhythm") --- */
    /* We use variables so we can tweak the whole site's spacing instantly */
    --space-xs: 0.5rem;  /* 8px  */
    --space-sm: 1rem;    /* 16px */
    --space-md: 2rem;    /* 32px */
    --space-lg: 4rem;    /* 64px */
    --space-xl: 8rem;    /* 128px */
    
    /* --- Layout Constraints --- */
    --container-width: 1600px;
    --grid-gap: clamp(1rem, 3vw, 2rem); /* Grows with screen size */
    
    /* --- Typography --- */
    --font-head: 'Orbitron', sans-serif; /* Headers */
    --font-body: 'Rajdhani', sans-serif; /* Text */
    --text-white: #ffffff;
    --text-muted: #888888;
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
    /* The most important line in CSS. 
       Ensures padding doesn't make elements wider than 100% */
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scrollbars */
}

/* Smooth Scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom Text Selection */
::selection {
    background: var(--secondary); /* Dein Lila */
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* --- Custom Scrollbar (Chrome, Edge, Safari) --- */
::-webkit-scrollbar {
    width: 10px; /* Schön schmal */
}

::-webkit-scrollbar-track {
    background: var(--bg-dark); /* Verschmilzt mit Hintergrund */
}

::-webkit-scrollbar-thumb {
    background: var(--primary); /* Dein Cyan */
    border-radius: 5px;
    border: 2px solid var(--bg-dark); /* Kleiner Abstand zum Rand */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); /* Lila beim Drüberfahren */
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head); /* Orbitron */
    font-weight: 700;
    color: var(--primary); /* Headlines in Cyan */
    margin-bottom: var(--space-sm);
    text-transform: uppercase; /* Sci-Fi wirkt oft besser in GROSSBUCHSTABEN */
    letter-spacing: 2px; /* Etwas Luft zwischen den Buchstaben */
}

/* Bilder bändigen */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hidden {
    display: none !important;
}

/* =========================================
   3. THE LAYOUT ENGINE (Grid & Container)
   ========================================= */

/* A. The Universal Container 
   Holds your content in the center of the screen. */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

/* B. The 12-Column Tactical Grid (For complex layouts)
   Default: Stacked (Mobile) */
.grid-12 {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: 1fr; 
}

/* Desktop Expansion: Activates 12 columns only when screen is wide enough */
@media (min-width: 900px) {
    .grid-12 {
        grid-template-columns: repeat(12, 1fr);
    }
    
    /* Column Spans - Control how wide an element is */
    .col-3 { grid-column: span 3; }
    .col-4 { grid-column: span 4; }
    .col-6 { grid-column: span 6; } /* Half Width */
    .col-8 { grid-column: span 8; }
    .col-12 { grid-column: span 12; } /* Full Width */
}

/* C. The Auto-Grid (The "Magic" Grid)
   Perfect for Roster Cards. No media queries needed! */
.grid-auto {
    display: grid;
    gap: var(--grid-gap);
    /* Creates as many columns as fit, with a min-width of 300px per item */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* D. Standard Section Padding */
.section-pad {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    position: relative; /* Context for absolute positioning */
}

/* =========================================
   4. THE COMPONENT LIBRARY (Cards, HUD & Buttons)
   ========================================= */

/* --- A. THE HUD CARD SYSTEM --- */

/* 1. Base Chassis */
.card {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden; /* Critical for scanline animation */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; 
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents grid blowout on mobile */
}

/* 2. Interactive Modifier */
.card--interactive:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.2);
}

/* 3. Profile Modifier */
.card--profile { padding: 0; }
.card--profile .card-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 4. HUD Modifier (Tactical Layout) */
.card--hud { padding: var(--space-md); }

/* Corner Decoration */
.card--hud::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 20px; height: 20px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    z-index: 2;
}

/* Logo styling within the rank box */
.team-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 auto 5px;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2));
}

/* Link Hover Effects */
.link-hover {
    text-decoration: none;
    transition: all 0.2s ease;
}
.link-hover:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
}

.next-match-badge.clickable:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

/* Action Button in Expanded Bay */
.action-btn {
    font-family: var(--font-head);
    font-size: 0.6rem;
    padding: 5px 12px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}
.action-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* 5. NEW: Scanline Animation (Subtle "Radar" effect) */
.card--scan::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.05), transparent);
    transform: translateY(-100%);
    animation: hudScan 4s infinite linear;
    pointer-events: none;
}

@keyframes hudScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- B. ABOUT SECTION COMPONENTS --- */

/* 1. Data Tags (The 3 Blocks on Left) */
.data-tags-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* CRITICAL: Allows stacking on mobile */
    margin-bottom: var(--space-md);
}

.data-tag {
    display: flex; flex-direction: column;
    font-family: var(--font-head);
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 10px;
}

.dt-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }
.dt-value { color: var(--primary); font-size: 0.9rem; font-weight: 700; }


/* 2. Skill Bars (The Progress Bars) */
.hud-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.hud-bar-group { width: 100%; }

.hud-bar-label {
    display: flex; justify-content: space-between;
    font-family: var(--font-head); font-size: 0.8rem;
    font-weight: 700; margin-bottom: 8px;
    letter-spacing: 1px; color: #fff;
}

.hud-progress-bg {
    width: 100%; height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg); /* Tactical Slant */
}

.hud-progress-fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    position: relative;
    /* Striped "Caution" Pattern */
    background-image: linear-gradient(45deg, rgba(0,0,0,0.2) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    
    /* Animation: Grow on load */
    animation: barGrow 1.5s ease-out forwards;
    width: 0; /* Start at 0 for animation */
}

@keyframes barGrow {
    to { width: var(--target-width, 100%); } /* Falls back to inline style width */
}


/* --- C. BUTTON SYSTEM --- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    text-decoration: none; transition: all 0.3s ease;
    border: 1px solid transparent; cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background: var(--primary); color: var(--bg-dark);
}
.btn-primary:hover {
    background: var(--text-white); box-shadow: 0 0 20px var(--primary);
}

.btn-outline {
    border-color: rgba(255,255,255,0.3); color: var(--text-white); background: transparent;
}
.btn-outline:hover {
    border-color: var(--primary); color: var(--primary);
}

/* =========================================
   5. NAVIGATION: THE OBSIDIAN RAIL (FIXED)
   ========================================= */

/* --- A. CHASSIS (The Bar) --- */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 90px;
    z-index: 9000;
    background: rgba(8, 8, 10, 0.95); /* Nearly solid for better contrast */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- B. LOGO MODULE --- */
.logo-module {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
    z-index: 9002;
}

.logo-icon { height: 48px; width: auto; transition: 0.3s; }
.logo-module:hover .logo-icon { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--primary)); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; letter-spacing: 1px; }
.brand-sub { font-size: 0.7rem; color: var(--primary); letter-spacing: 3px; font-weight: 700; }

/* --- C. SEPARATORS (Desktop Only) --- */
.nav-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 25px;
}

/* --- D. NAVIGATION LINKS (Desktop Layout) --- */
.nav-deck {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: 0.3s;
}

.nav-link:hover { color: #fff; }

/* Bracket Hover Effect (Desktop Only) */
.nav-link::before, .nav-link::after {
    content: ''; position: absolute; top: 50%;
    width: 6px; height: 6px;
    border: 2px solid var(--primary);
    opacity: 0; transition: 0.3s;
    transform: translateY(-50%);
}
.nav-link::before { left: 0; border-right: none; border-bottom: none; }
.nav-link::after { right: 0; border-left: none; border-top: none; }

.nav-link:hover::before { opacity: 1; transform: translateY(-50%) translateX(5px); }
.nav-link:hover::after { opacity: 1; transform: translateY(-50%) translateX(-5px); }

/* --- E. CTA BUTTON --- */
.nav-cta { display: flex; align-items: center; }

.btn-obsidian {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    padding: 10px 24px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}
.btn-obsidian:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); transform: translateY(-2px); }

.nav-burger { display: none; }

/* =========================================
   MOBILE MODE (< 1100px) - FIXED
   ========================================= */
@media (max-width: 1100px) {
    
    /* 1. ELEMENTS TO HIDE */
    .desktop-only { display: none; }
    .nav-link::before, .nav-link::after { display: none; } /* No brackets on mobile */

    /* 2. BURGER BUTTON (Visible) */
    .nav-burger {
        display: flex; flex-direction: column; gap: 6px;
        cursor: pointer; padding: 10px; z-index: 9005;
        margin-left: auto; /* Pushes it to the far right */
    }
    .nav-burger .line {
        width: 32px; height: 2px; background: #fff;
        transition: 0.3s ease-in-out;
    }

    /* 3. MOBILE MENU CONTAINER (The Fix) */
    .nav-deck {
        position: fixed;
        top: 90px; /* Starts exactly below the header */
        left: 0;
        width: 100%;
        height: calc(100vh - 90px); /* Fills rest of screen */
        
        background: #050505; /* SOLID BLACK - No transparency issues */
        border-top: 1px solid rgba(255,255,255,0.1);
        
        flex-direction: column; /* Stack items vertically */
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        
        /* Animation Logic */
        transform: translateX(100%); /* Hidden to the right */
        transition: transform 0.4s ease;
        overflow-y: auto;
    }

    /* 4. MOBILE LINKS */
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin: 0;
        align-items: center;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.4rem; /* Big readable text */
        padding: 10px;
        display: block;
        text-align: center;
    }
    
    .nav-cta {
        margin-bottom: 50px; /* Space at bottom */
    }

    /* 5. ACTIVE STATE (Slide In) */
    #nav-toggle:checked ~ .navbar .nav-deck {
        transform: translateX(0);
    }

    /* 6. BURGER ANIMATION */
    #nav-toggle:checked ~ .navbar .nav-burger .line:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--primary); }
    #nav-toggle:checked ~ .navbar .nav-burger .line:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .navbar .nav-burger .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--primary); }
}

/* =========================================
   6. HERO SECTION (Clean & Stable)
   ========================================= */

.hero-section {
    position: relative;
    /* 'dvh' verhindert Probleme mit mobilen Adressleisten, sonst Fallback auf vh */
    height: 100vh;
    height: 100dvh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-dark); /* Sicherstellung des Hintergrunds */
}

/* --- BACKGROUND LAYERS --- */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.95) 100%);
    z-index: 1;
}

.hero-grid-pattern {
    position: absolute; inset: 0; z-index: 2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Original Maske wiederhergestellt */
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* --- LAYOUT CONTAINER (Ersetzt h-100 & inline styles) --- */
.hero-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3; /* Wichtig: Über dem Grid (z-index 2) */
}

/* --- CONTENT --- */
.hero-content {
    position: relative;
    max-width: 900px;
    padding-left: 20px;
    border-left: 2px solid var(--primary);
}

.hero-label {
    font-family: var(--font-head);
    color: var(--primary);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* --- TITLE & ANIMATION --- */
.hero-title {
    font-family: var(--font-head);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6rem); 
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block; 
}

.holo-text {
    display: inline-block;
    opacity: 0;
    animation: holoFocus 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes holoFocus {
    0% {
        filter: blur(15px);
        opacity: 0;
        letter-spacing: 20px;
        transform: scale(1.1);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        letter-spacing: 0px;
        transform: scale(1);
    }
}

/* Scanner Line Effect */
.hero-title::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    opacity: 0;
    pointer-events: none;
    animation: scanline 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes scanline {
    0%   { top: -10%; opacity: 0; }
    10%  { opacity: 0.8; }
    40%  { top: 110%; opacity: 0; }
    100% { top: 110%; opacity: 0; }
}

/* --- TEXT VARIANTS --- */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    color: transparent;
}

.text-primary {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-lead {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #cccccc;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- ANIMATIONS & SCROLL --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: simpleFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes simpleFade { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); z-index: 10;
    opacity: 0.7;
    transition: 0.3s;
}
.scroll-indicator:hover { opacity: 1; transform: translateX(-50%) translateY(5px); }

.scroll-arrow {
    display: block; width: 20px; height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% {transform: rotate(45deg) translate(0, 0);}
    50% {transform: rotate(45deg) translate(-10px, -10px);}
}

/* =========================================
   7. FOOTER SECTION (Obsidian Theme)
   ========================================= */

.site-footer {
    background: #050505; /* Solid dark base to match Nav Overlay */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    position: relative;
}

/* --- FOOTER BRANDING (Matches Nav Module) --- */
.footer-logo-module {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2));
    transition: 0.3s;
}

.footer-logo-module:hover .footer-logo-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary));
}

.footer-logo-text { display: flex; flex-direction: column; line-height: 1; }
/* Reusing Nav Font Styles */
.footer-logo-text .brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; letter-spacing: 1px; }
.footer-logo-text .brand-sub { font-size: 0.7rem; color: var(--primary); letter-spacing: 3px; font-weight: 700; }


/* --- TITLES & TYPOGRAPHY --- */
.footer-title {
    font-family: var(--font-head);
    color: var(--text-white);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

/* Cyan Underline Accent */
.footer-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 20px; height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}


/* --- LINKS (With Bracket Animation) --- */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(10px); /* Slide right */
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* The Bracket [ ] Effect on Hover */
.footer-links a::before {
    content: '[';
    opacity: 0;
    margin-right: 5px;
    color: var(--primary);
    transition: 0.3s;
    font-weight: 700;
}
.footer-links a:hover::before { opacity: 1; }


/* --- CONNECT BUTTONS (Ghost Version) --- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-obsidian-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    
    /* Tactical Clip Path */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}

.btn-obsidian-ghost:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}


/* --- BOTTOM BAR --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-xl);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}


/* --- MOBILE ADAPTATIONS --- */
@media (max-width: 768px) {
    .site-footer { text-align: center; }
    
    /* Center the title underlines */
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    
    /* Center the branding */
    .footer-logo-module { justify-content: center; margin-bottom: 1.5rem; }
    
    /* Center the social buttons */
    .social-links { justify-content: center; margin-bottom: 1.5rem; }
}

/* =========================================
   8. SECTION TYPOGRAPHY (Global Headers)
   ========================================= */

.section-header {
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.section-subtitle {
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem); /* Fluid scaling */
    color: var(--text-white);
    line-height: 1.1;
}

.text-highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.lead-text {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    border-left: 2px solid var(--primary);
    padding-left: var(--space-sm);
}

/* =========================================
   9. TEAMS & PLAYER MODULES (Tactical HUD)
   ========================================= */
.card--profile {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Tactical Corner Bracket */
.card--profile::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 15px; height: 15px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    z-index: 10;
}

.card--profile:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

.role-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(5, 5, 5, 0.85);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 3px 12px;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
}

.card--profile .card-body {
    padding: var(--space-sm);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, transparent 100%);
}

/* Identity Row (Icon + Name + Level) */
.player-identity {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.mini-riot-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background-color: var(--bg-dark); /* Masks broken icons */
    background-size: cover;
    object-fit: cover;
}

.name-box { display: flex; flex-direction: column; }

.card--profile .card-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text-white);
    margin: 0;
    letter-spacing: 1px;
}

.player-level {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--primary);
    font-weight: 900;
    opacity: 0.8;
}

/* Status Row (Rank + W/L) */
.player-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.card--profile .card-meta { font-family: var(--font-head); font-size: 0.75rem; color: var(--primary); }
.card--profile .card-stats { font-family: var(--font-body); font-size: 0.65rem; color: var(--text-muted); }

.card--profile .card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* =========================================
   10. TEAM SELECTOR & VISIBILITY LOGIC
   ========================================= */

.team-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: var(--space-md);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Mobile Horizontal Scroll */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.team-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-transform: uppercase;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 900;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    border-color: var(--primary);
}

/* VISIBILITY LOGIC: Hides all grids except .active */
.team-grid {
    display: none;
}

.team-grid.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--grid-gap);
    animation: teamFadeIn 0.5s ease-out forwards;
}

@keyframes teamFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .team-tabs {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* =========================================
   11. STATS SECTION (Tactical Telemetry)
   ========================================= */

#stats-telemetry-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* --- THE UNIT --- */
.telemetry-unit {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid transparent; 
    transition: all 0.3s ease;
    overflow: hidden;
}

.telemetry-unit:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
}

.telemetry-unit.active {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--primary);
    border-left-width: 4px; 
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
}

/* --- HEADER --- */
.telemetry-header {
    display: grid;
    /* Identity | NextMatch | Form | Points | Arrow */
    grid-template-columns: 2fr 1.5fr 1fr 0.8fr 40px;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
}

/* Identity Section */
.tm-identity { display: flex; align-items: center; gap: 15px; }

/* Circular Icon Wrapper */
.tm-logo-wrapper {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tm-logo { width: 100%; height: 100%; object-fit: cover; }

.tm-info h4 { 
    margin: 0; font-family: 'Orbitron', sans-serif; 
    font-size: 1rem; color: #fff; line-height: 1.1; 
}
.tm-division { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 0.75rem; color: #888; text-transform: uppercase; 
}

/* Separation Lines (Vertical Dividers) */
.tm-section {
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Separator Line */
    height: 30px;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

/* Next Match Link Styles */
.tm-next-link {
    display: flex; flex-direction: column; justify-content: center;
    text-decoration: none; transition: 0.2s;
}
.tm-next-link:hover .accent { color: var(--secondary); text-shadow: 0 0 8px var(--secondary); }
.tm-next-link:hover .next-label { color: #fff; }

.next-label { font-size: 0.55rem; color: #666; font-family: 'Orbitron', sans-serif; margin-bottom: 2px; transition: 0.2s; }
.next-details { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; font-weight: 700; color: #fff; display: flex; gap: 8px; align-items: baseline; }
.next-time { font-size: 0.75rem; color: #888; font-weight: 400; }
.tm-next-empty { font-size: 0.7rem; color: #555; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.1); }

/* Form Dots */
.tm-form { gap: 4px; }
.form-dot { width: 6px; height: 6px; transform: skewX(-20deg); opacity: 0.4; margin-right: 2px; }
.form-dot.win { background: #00ff88; opacity: 1; box-shadow: 0 0 5px #00ff88; }
.form-dot.loss { background: #ff0055; opacity: 1; }
.form-dot.draw { background: #ffd700; opacity: 1; }

/* Points */
.tm-stat { justify-content: flex-end; }
.tm-stat .value { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.tm-stat .highlight { color: var(--primary); text-shadow: 0 0 10px rgba(0,240,255,0.4); }
.label-inline { font-size: 0.6rem; color: #888; margin-left: 2px; }

/* Arrow Animation (Turn in place, no swing) */
.tm-arrow { 
    display: flex; justify-content: flex-end; color: #555; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Precise rotation */
    transform-origin: center center;
}
.telemetry-unit.active .tm-arrow { 
    transform: rotate(180deg); /* Simple flip */
    color: var(--primary); 
}

/* --- BODY (EXPANDED) --- */
.telemetry-body {
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 240, 255, 0.01);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.telemetry-unit.active .telemetry-body { max-height: 500px; }

.tb-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tb-title {
    font-family: 'Orbitron', sans-serif; font-size: 0.7rem; color: var(--secondary);
    margin-bottom: 10px; letter-spacing: 1px;
}

/* Last Match Box */
.last-match-box {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    padding: 10px; margin-bottom: 15px;
}
.lm-header { font-size: 0.6rem; color: #666; margin-bottom: 5px; }
.lm-content { display: flex; justify-content: space-between; align-items: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; }
.lm-vs { color: #fff; }
.text-win { color: #00ff88; } .text-loss { color: #ff0055; } .text-draw { color: #ffd700; }
.dimmed { opacity: 0.5; font-size: 0.8rem; }

/* Stat Pills */
.stats-mini-row { display: flex; gap: 10px; }
.stat-pill { 
    background: rgba(255,255,255,0.05); padding: 5px 10px; 
    flex: 1; display: flex; flex-direction: column; align-items: center; 
}
.sp-label { font-size: 0.55rem; color: #888; }
.sp-value { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: bold; }
.text-primary { color: var(--primary); }

/* Roster */
.tb-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.link-external { font-size: 0.65rem; color: var(--primary); text-decoration: none; border: 1px solid var(--primary); padding: 2px 6px; transition: 0.2s; }
.link-external:hover { background: var(--primary); color: #000; }

.roster-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip {
    background: rgba(255,255,255,0.03); border: 1px solid transparent;
    padding: 4px 10px; font-size: 0.75rem; color: #ddd; font-family: 'Rajdhani', sans-serif;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.mini-chip.captain { border-color: var(--secondary); color: #fff; }

/* Mobile */
@media (max-width: 900px) {
    .telemetry-header { grid-template-columns: 1fr auto 40px; } /* Identity | Points | Arrow */
    .tm-next-match, .tm-form { display: none; }
    .tb-content { grid-template-columns: 1fr; gap: 15px; }
}

/* =========================================
   12. PARTNERS SECTION (The Alliance)
   ========================================= */

.partner-grid {
    display: grid;
    /* Small logos that fit many in a row */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    align-items: center;
    justify-items: center;
}

.partner-logo {
    max-width: 120px;
    opacity: 0.5;
    filter: grayscale(100%); /* Start black & white */
    transition: all 0.4s ease;
    cursor: pointer;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%); /* Full color on hover */
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary)); /* Glow effect */
}

/* =========================================
   13. STREAM SECTION (Live Feed)
   ========================================= */

.stream-frame {
    border: 1px solid var(--primary);
    background: rgba(0,0,0,0.5);
    padding: 5px; /* Creates a double-border look */
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.stream-embed {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0055; /* Red for LIVE */
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: 2px;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { opacity: 1; text-shadow: 0 0 10px #ff0055; }
    50% { opacity: 0.5; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 10px #ff0055; }
}

/* =========================================
   TWITCH PRIVACY WRAPPER
   ========================================= */

/* 1. Permanent Layout Container (Prevents Jumping) */
#twitch-embed {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    /* CRITICAL: Enforce height so content doesn't jump when iframe loads */
    min-height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 2. Placeholder State (Only visible BEFORE click) */
.twitch-placeholder {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle, #1a1a1a 0%, #000 100%);
}

/* 3. The Overlay Box */
.twitch-overlay {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* 4. Stream Frame Wrapper (Your existing style) */
.stream-frame {
    border: 1px solid var(--primary);
    background: rgba(0,0,0,0.5);
    padding: 5px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}



/* =========================================
   14. RECRUITMENT (CTA)
   ========================================= */

.cta-box {
    background: linear-gradient(45deg, var(--bg-panel) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Background decoration line */
.cta-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* =========================================
   15. EVENTS SECTION (Tactical Deployment)
   ========================================= */

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* The Event Strip (Glass Bar) */
.event-row {
    display: grid;
    /* Desktop Layout: Date (Fixed) | Info (Flexible) | Button (Fixed) */
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: var(--space-md);
    
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-sm) var(--space-md);
    transition: all 0.3s ease;
    
    /* The "Power Bar" on the left */
    border-left: 2px solid transparent; 
}

/* Hover Effect: The strip "powers up" */
.event-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.3);
    border-left-color: var(--primary); /* Cyan glow on left edge */
    transform: translateX(5px); /* Slides slightly right */
}

/* Modifier: Highlight Row (For Special Events) */
.highlight-row {
    border-left: 2px solid var(--secondary); /* Purple edge */
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.05) 0%, transparent 100%);
}

/* Typography & Layout details */
.event-meta {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: var(--space-md);
}

.event-type {
    display: block;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
}

.event-date {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-white);
}

.event-details h4 {
    font-family: var(--font-head);
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 1px;
}

/* The "GO" Button (Mini-Tactical) */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px; /* Square target */
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    background: rgba(0,0,0,0.5);
    /* Cut corners */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-glass:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary);
    border-color: var(--primary);
}

/* MOBILE ADAPTATION (Automatic Stacking) */
@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .event-meta {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: var(--space-sm);
    }
    
    .btn-glass {
        width: 100%; /* Full width button on mobile */
        height: 40px; 
    }
}

/* =========================================
   MARK VII: SYSTEM MEDIA PLAYER (FINAL)
   ========================================= */

/* --- 1. COMPONENT CONTAINER --- */
.media-component {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 10000;
    width: 400px; /* Default Width */
    font-family: var(--font-head);
    
    /* CRITICAL: Animates from the bottom right corner */
    transform-origin: bottom right; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Cinema Zoom Mode (Desktop Only) --- */
.media-component.cinema-zoom {
    width: 65vw; /* Grow huge */
    max-width: 1000px;
}
/* Ensure elements inside scale nicely */
.media-component.cinema-zoom .deck-visual-stage {
    /* Height grows automatically because of aspect-ratio: 16/9 */
}


/* --- 2. COLLAPSED STATE --- */
.media-component.collapsed {
    height: 60px;
    width: 320px;
}
.media-component.collapsed .main-deck {
    opacity: 0; pointer-events: none; transform: translateY(20px);
}
.media-component.collapsed .mini-ui {
    opacity: 1; pointer-events: all; transform: translateY(0);
}

/* Mini UI */
.mini-ui {
    position: absolute; bottom: 0; right: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--primary);
    backdrop-filter: blur(20px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transform: translateY(20px);
    transition: 0.3s; cursor: pointer; overflow: hidden;
}
.desktop-bar-info { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 15px; }
.mobile-circle-icon { display: none; }
.mini-beat-circle { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
.mini-title { font-size: 0.8rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; }


/* --- 3. EXPANDED MAIN DECK --- */
.media-component:not(.collapsed) .main-deck {
    opacity: 1; pointer-events: all; transform: translateY(0);
}
.media-component:not(.collapsed) .mini-ui {
    opacity: 0; pointer-events: none;
}

.main-deck {
    position: relative;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 3px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex; flex-direction: column;
    overflow: hidden;
    /* Sharp corners default */
}

/* Header */
.deck-header {
    height: 40px; display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.deck-brand { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; }
.header-actions { display: flex; gap: 10px; }

/* Visual Stage */
.deck-visual-stage {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; overflow: hidden; transition: all 0.4s ease;
}
.media-engine, .track-art { width: 100%; height: 100%; object-fit: cover; }
.track-art { position: absolute; top: 0; left: 0; z-index: 2; display: none; }

/* Fallback Animation */
.fallback-visualizer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,20,30,1) 0%, rgba(0,0,0,1) 100%);
    z-index: 1; display: flex; justify-content: center; align-items: center;
}
.fallback-visualizer.hidden { display: none; }
.cyber-core { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 20px var(--primary); animation: pulse 1s infinite alternate; }
.cyber-ring { position: absolute; width: 60px; height: 60px; border: 1px solid var(--primary); border-radius: 50%; animation: ripple 2s infinite linear; opacity: 0; }
.ring-2 { animation-delay: 1s; }
@keyframes ripple { 0% { width: 20px; height: 20px; opacity: 1; border-width: 3px; } 100% { width: 150px; height: 150px; opacity: 0; border-width: 0px; } }

/* Unmute Overlay */
.visual-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 10;
    display: flex; justify-content: center; align-items: center; cursor: pointer; transition: opacity 0.3s;
}
.visual-overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-icon-box { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.overlay-icon-box span { font-size: 0.7rem; letter-spacing: 2px; font-weight: 700; }

/* Controls */
.deck-controls { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.progress-wrap { width: 100%; height: 10px; cursor: pointer; display: flex; align-items: center; }
.progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); position: relative; }
.progress-fill { height: 100%; width: 0%; background: var(--primary); position: absolute; left: 0; top: 0; transition: width 0.1s linear; }
.meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.marquee-wrapper { width: 70%; overflow: hidden; white-space: nowrap; }
.track-title { font-size: 0.9rem; color: #fff; font-weight: 700; text-transform: uppercase; }
.track-time { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.actions-row { display: flex; justify-content: space-between; align-items: center; }
.playback-group, .secondary-group { display: flex; align-items: center; gap: 15px; }
.media-component .btn-icon-small, 
.media-component .btn-icon, 
.media-component .btn-ctrl { 
    background: none; 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-small:hover, .btn-ctrl:hover { color: var(--primary); }
.btn-play { color: var(--primary); transform: scale(1.1); }
.volume-box { display: flex; align-items: center; gap: 5px; width: 100px; }
.volume-box input[type=range] { width: 100%; height: 4px; accent-color: var(--primary); cursor: pointer; }

/* Playlist Drawer */
.playlist-internal {
    max-height: 0; overflow-y: auto; transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 5px;
    scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.playlist-internal.open { max-height: 150px; }
.playlist-item { padding: 10px 5px; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.playlist-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.playlist-item.active { color: var(--primary); border-left: 2px solid var(--primary); padding-left: 8px; }


/* =========================================
   MOBILE ADJUSTMENTS (Corner Animation)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Mobile Collapsed: CIRCLE BUTTON */
    .media-component.collapsed {
        width: 60px; height: 60px;
        border-radius: 50%;
        bottom: 20px; right: 20px; 
        left: auto; /* Reset left */
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }
    
    .media-component.collapsed .mini-ui {
        border-radius: 50%;
        border: 2px solid var(--primary);
    }
    
    /* 2. Mobile Expanded: SHARP EDGES & FULL WIDTH */
    .media-component:not(.collapsed) {
        width: 100vw; /* Take full width */
        right: 0; left: 0; bottom: 0;
        /* RESET transform for full screen, but animation still flows from corner */
        border-radius: 0; 
    }
    
    .main-deck {
        border-radius: 0; /* Sharp Edges as requested */
        padding-bottom: 30px; 
        border: none;
        border-top: 3px solid var(--primary);
    }

    /* Switch Icons */
    .desktop-bar-info { display: none !important; }
    .mobile-circle-icon { display: flex; color: var(--primary); animation: glowPulse 2s infinite ease-in-out; }

    /* Touch Targets */
    .btn-ctrl svg { width: 32px; height: 32px; }
    .btn-play svg { width: 48px; height: 48px; }
    .volume-box { display: none; }
}

@keyframes glowPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--primary)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--primary)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--primary)); }
}

/* =========================================
   17. Brand-Kit & Media Vault
   ========================================= */

/* --- Card Base --- */
#media-vault .card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
}

/* --- Media Preview Area --- */
.media-preview {
    height: 160px;
    background: rgba(0, 0, 0, 0.4);
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.preview-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    opacity: 0.3;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--hud:hover .preview-icon {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary));
}

/* --- Scanline Animation --- */
.media-card-scanline {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: absolute;
    top: -10%;
    left: 0;
    opacity: 0.2;
    animation: mediaScan 4s infinite linear;
}

@keyframes mediaScan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* --- Download Button --- */
.btn-media-download {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 0.7rem;
    padding: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-media-download:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Brand Specs Row --- */
.brand-specs-row {
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: var(--space-md);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-md);
}

.spec-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding-bottom: 8px;
}

.spec-label {
    font-family: var(--font-head);
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.spec-value {
    font-family: var(--font-head);
    font-size: 0.55rem;
    color: var(--text-muted);
}

.color-specs, .font-specs { display: flex; gap: 30px; }
.color-item { display: flex; align-items: center; gap: 15px; }

.color-swatch {
    width: 32px;
    height: 32px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.color-name { font-family: var(--font-head); font-size: 0.7rem; color: var(--text-white); }
.color-hex { font-family: var(--font-head); font-size: 0.6rem; color: var(--primary); opacity: 0.8; }

.font-preview { font-size: 1.4rem; color: var(--text-white); letter-spacing: 2px; line-height: 1; }
.font-usage { font-family: var(--font-head); font-size: 0.55rem; color: var(--primary); margin-top: 5px; }

.spec-divider {
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    width: 1px;
    height: 80%;
    opacity: 0.2;
    align-self: center;
}

/* --- Responsive Layout --- */
@media (max-width: 991px) {
    .brand-specs-row { grid-template-columns: 1fr; }
    .spec-divider { display: none; }
    .color-specs, .font-specs { flex-direction: column; gap: 20px; }
}

.pulse-dot {
    width: 6px; height: 6px; background: var(--primary);
    border-radius: 50%; display: inline-block; margin-left: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(1); opacity: 0; }
}
