@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════
   StreamVault — Cyberpunk Neon Design System
   ═══════════════════════════════════════════ */

:root {
    /* ── Core palette ── */
    --bg-base: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a26;
    --bg-card: rgba(18, 18, 26, 0.7);

    /* Neon purple accents */
    --accent: #f88c53;
    --accent-bright: #ffa371;
    --accent-dim: #c76c3d;
    --accent-bg: rgba(248, 140, 83, 0.10);
    --accent-border: rgba(248, 140, 83, 0.25);
    --accent-glow: 0 0 20px rgba(248, 140, 83, 0.25), 0 0 60px rgba(248, 140, 83, 0.08);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #55556a;

    /* Glass */
    --glass-bg: rgba(18, 18, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(20px);

    /* Misc */
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;

    /* Spacing / Radius */
    --sidebar-width: 240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease);

    /* Z layers */
    --z-sidebar: 900;
    --z-header: 800;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: var(--font); }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient glow background */
body::before {
    content: '';
    position: fixed;
    top: -40%; left: -20%;
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, rgba(248, 140, 83, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(ellipse, rgba(248, 140, 83, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══ APP LAYOUT: Sidebar + Main ═══ */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sidebar);
    padding: 1.5rem 0;
    transition: transform 0.4s var(--ease);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

.sidebar-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(248, 140, 83, 0.3);
}

.sidebar-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

/* Nav items */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: var(--accent-bright);
    background: var(--accent-bg);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.sidebar-separator {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 1.5rem;
}

.sidebar-link.danger {
    color: var(--danger);
}
.sidebar-link.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.sidebar-link.muted {
    color: var(--text-muted);
}

/* Sidebar footer / user */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 2px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-bright);
    overflow: hidden;
}
.sidebar-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}
.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.sidebar-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Main content ── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 2rem 2.5rem;
    position: relative;
}

/* ── Top bar (search + actions) ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 0 1 400px;
}
.search-box input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
    border-color: var(--accent-border);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(248, 140, 83, 0.08);
}
.search-box button {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ═══ GLASS CARD ═══ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--accent-border);
}

/* ═══ HERO ═══ */
.hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2.5rem;
}

.hero-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(8px) brightness(0.9) saturate(1.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.1) 0%, rgba(10,10,15,0.6) 60%, var(--bg-base) 100%);
}

.hero-poster {
    position: relative;
    z-index: 2;
    width: 200px;
    min-width: 200px;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(248, 140, 83, 0.15);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    flex-wrap: wrap;
}
.hero-meta .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.hero-meta .rating {
    color: var(--accent-bright);
    font-weight: 700;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(248, 140, 83, 0.3);
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(248, 140, 83, 0.45);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-icon {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon:hover {
    color: var(--accent-bright);
    border-color: var(--accent-border);
    background: var(--accent-bg);
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

/* Legacy compat */
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(248,140,83,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); }
.w-full { width: 100%; }
.gold-text { color: var(--accent-bright); }

/* ═══ SECTION TITLES ═══ */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}
.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dim));
    border-radius: 3px;
}

/* ═══ MOVIE CARD (Poster style) ═══ */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-elevated);
    border: 1px solid transparent;
}
.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-border);
    box-shadow: var(--accent-glow);
}

.movie-card img,
.movie-card .poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-card .poster {
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elevated);
}

.movie-card-info {
    padding: 0.7rem 0.8rem;
}
.movie-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

/* ═══ HORIZONTAL CAROUSEL ═══ */
.carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .movie-card {
    flex: 0 0 165px;
    scroll-snap-align: start;
}

.carousel-section {
    margin-bottom: 2.5rem;
}

/* ═══ VIDEO CARD (16:9 thumbnail) ═══ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-elevated);
    border: 1px solid transparent;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: var(--accent-glow);
}
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-thumb .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.video-info {
    padding: 0.8rem 1rem;
}
.video-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px rgba(248, 140, 83, 0.08);
}
.form-input::placeholder { color: var(--text-muted); }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

/* ═══ MODALS ═══ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 1rem;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--accent-glow);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s var(--ease);
}
.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-bright);
}

/* ═══ STAT CARDS ═══ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--accent-border);
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}
.stat-value.accent { color: var(--accent-bright); }
.stat-value.success { color: var(--success); }

/* ═══ TABLES ═══ */
.sv-table-wrap {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sv-table {
    width: 100%;
    border-collapse: collapse;
}
.sv-table th {
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--glass-border);
}
.sv-table td {
    padding: 0.9rem 1.2rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.sv-table tr:hover td { background: rgba(248, 140, 83, 0.03); }

/* ═══ BADGES ═══ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-accent { background: var(--accent-bg); color: var(--accent-bright); border: 1px solid var(--accent-border); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); }

/* ═══ TOAST ═══ */
.toast-container {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--accent-border);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateX(120%);
    transition: transform 0.4s var(--ease);
}
.toast.show { transform: translateX(0); }

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-elevated);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-xl);
}
.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ═══ PAGE LAYOUT HELPERS ═══ */
.page-header {
    margin-bottom: 2rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.filter-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}
.filter-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}
.filter-item {
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-item:hover, .filter-item.active {
    background: var(--accent-bg);
    color: var(--accent-bright);
}

/* ═══ UTILITIES ═══ */
.text-accent { color: var(--accent-bright); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Legacy compat selectors */
.premium-card { background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.form-switch-link { color: var(--accent-bright); cursor: pointer; font-weight: 600; }
.form-error { display: none; font-size: 0.82rem; margin-top: 0.4rem; }

/* ═══ MOBILE HAMBURGER ═══ */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem; left: 1rem;
    width: 44px; height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.2rem;
    z-index: calc(var(--z-sidebar) + 1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: calc(var(--z-sidebar) - 1);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .filter-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-overlay.show { display: block; }
    .main-content {
        margin-left: 0;
        padding: 1.2rem;
        padding-top: 4rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .hero-poster { width: 140px; min-width: 140px; }
    .hero-actions { justify-content: center; }
    .hero-desc { max-width: 100%; }
    .topbar { flex-direction: column; }
    .search-box { flex: 1; width: 100%; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
    .video-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
}

/* ═══ AVATAR BORDERS (Gamifikace) ═══ */

.avatar-base {
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
}

/* Lv. 1-4: Basic */
.avatar-border-basic {
    border: 2px solid var(--glass-border);
}

/* Lv. 5-9: Neon */
.avatar-border-neon {
    border: 2px solid var(--accent-bright);
    box-shadow: 0 0 10px rgba(248, 140, 83, 0.5);
}

/* Lv. 10-24: Cyber (Dýchající glow) */
.avatar-border-cyber {
    border: 2px solid #00f0ff;
    animation: cyberGlow 2s infinite alternate;
}
@keyframes cyberGlow {
    0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.4), inset 0 0 5px rgba(0, 240, 255, 0.4); }
    100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), inset 0 0 10px rgba(0, 240, 255, 0.6); }
}

/* Lv. 25-49: Glitch */
.avatar-border-glitch {
    border: 2px solid #ff003c;
    animation: glitchBorder 3s infinite;
}
@keyframes glitchBorder {
    0%, 90%, 100% { box-shadow: 2px 0 0 #00f0ff, -2px 0 0 #ff003c; }
    92% { box-shadow: -3px 0 0 #00f0ff, 3px 0 0 #ff003c; }
    95% { box-shadow: 4px 0 0 #00f0ff, -4px 0 0 #ff003c; }
}

/* Lv. 50+: Legend */
.avatar-border-legend {
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.4);
    animation: legendPulse 2s infinite alternate;
}
@keyframes legendPulse {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(30deg) brightness(1.2); }
}
