/* ============================================================
   ExoticExpansion 2 — Brand Design System
   Tokens: --bg, --text-*, --accent-* (light/dark via data-theme)
   Shared gradient: green → teal → blue → purple (brand)
   ============================================================ */

/* ── Keyframes ── */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gradientTextShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(var(--accent-green-rgb), 0.5)); }
    50%       { filter: drop-shadow(0 0 14px rgba(var(--accent-purple-rgb), 0.7)); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--accent-green-rgb), 0.4); }
    50%       { box-shadow: 0 0 20px rgba(var(--accent-purple-rgb), 0.6); }
}

/* ── Design Tokens ── */
:root,
html[data-theme="dark"] {
    /* Canonical theme (dark) */
    --bg: #080808;
    --text-primary: #D8D8E8;
    --text-secondary: #D8C8D8;
    --accent-green: #78D878;
    --accent-teal: #38B8A8;
    --accent-blue: #182898;
    --accent-purple: #2828A8;

    --accent-green-rgb: 120, 216, 120;
    --accent-teal-rgb: 56, 184, 168;
    --accent-blue-rgb: 24, 40, 152;
    --accent-purple-rgb: 40, 40, 168;

    /* Surfaces */
    --bg-base: var(--bg);
    --bg-elevated: #101010;
    --bg-card: #121212;
    --bg-hover: #1a1a1a;
    --bg-modal: rgba(8, 8, 8, 0.92);
    --border: #242424;
    --border-light: #2e2e2e;
    --border-accent: var(--accent-green);

    --text-muted: #888898;

    --brand-green: var(--accent-green);
    --brand-teal: var(--accent-teal);
    --brand-blue: var(--accent-blue);
    --brand-purple: var(--accent-purple);
    --brand-dark: #080808;
    --brand-light: #E8E8E8;

    --accent: var(--accent-green);
    --accent-hover: #68c868;
    --accent-end: var(--accent-purple);
    --accent-glow: rgba(var(--accent-green-rgb), 0.2);
    --purple-glow: rgba(var(--accent-purple-rgb), 0.2);

    /* Shared brand gradient (same in light + dark) */
    --grad: linear-gradient(135deg, #98E868, #38B8A8, #1828A8, #5828C8);
    --grad-animate: linear-gradient(270deg, #98E868, #38B8A8, #1828A8, #5828C8, #38B8A8, #98E868);
    --grad-subtle: linear-gradient(135deg, rgba(var(--accent-green-rgb), 0.12) 0%, rgba(var(--accent-purple-rgb), 0.12) 100%);
    --grad-border: var(--grad);

    /* Status */
    --red:   #f87171;
    --green: #4ade80;
    --amber: #fbbf24;

    /* Layout */
    --header-h:  60px;
    --sidebar-w: 240px;
    --radius:    8px;
    --radius-sm: 5px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Fonts */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'SF Mono', 'Fira Code', Consolas, monospace;
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

html[data-theme="light"] {
    --bg: #E8E8E8;
    --text-primary: #080818;
    --text-secondary: #585868;
    --accent-green: #98E868;
    --accent-teal: #38B8A8;
    --accent-blue: #1828A8;
    --accent-purple: #5828C8;

    --accent-green-rgb: 152, 232, 104;
    --accent-teal-rgb: 56, 184, 168;
    --accent-blue-rgb: 24, 40, 168;
    --accent-purple-rgb: 88, 40, 200;

    --bg-base: var(--bg);
    --bg-elevated: #e0e0e0;
    --bg-card: #f4f4f4;
    --bg-hover: #dedede;
    --bg-modal: rgba(232, 232, 232, 0.95);
    --border: #c8c8d8;
    --border-light: #b8b8c8;
    --border-accent: var(--accent-green);

    --text-muted: #787888;

    --accent-hover: #88d858;
    --brand-dark: #080818;
    --brand-light: #E8E8E8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-green), var(--brand-purple));
    border-radius: 3px;
}

/* ── Gradient text utility ── */
.gradient-text {
    background: var(--grad-animate);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextShift 4s ease infinite;
}

/* ── Site Header ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg-base) 92%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    /* Subtle gradient top line */
    box-shadow: 0 1px 0 rgba(var(--accent-green-rgb),0.2), 0 4px 24px rgba(0,0,0,0.4);
}
/* Animated gradient top border */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-animate);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
}
.header-inner {
    display: flex; align-items: center; gap: 16px;
    height: 100%; padding: 0 20px;
}
.header-left  { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-center { flex: 1; max-width: 560px; margin: 0 auto; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.sidebar-toggle {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--brand-green); }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo:hover .logo-icon { animation: logoGlow 1.5s ease-in-out infinite; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
    font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--grad-animate);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextShift 5s ease infinite;
}
.logo-tagline {
    font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--brand-green); opacity: 0.8;
    -webkit-text-fill-color: var(--brand-green);
}
@media (max-width: 520px) { .logo-wordmark { display: none; } }

/* Search */
.search-form { width: 100%; }
.search-wrap {
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 40px; overflow: hidden;
    transition: border-color var(--transition);
}
.search-wrap:focus-within {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(var(--accent-green-rgb),0.12);
}
.search-input {
    flex: 1; padding: 9px 18px; background: none;
    color: var(--text-primary); font-size: 0.9rem; border: none; outline: none; min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    padding: 0 18px; background: var(--bg-card); color: var(--text-secondary);
    border-left: 1px solid var(--border-light); transition: var(--transition);
}
.search-btn:hover {
    background: var(--grad); color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Header buttons */
.header-btn {
    padding: 8px 16px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
    display: flex; align-items: center; gap: 7px; transition: all var(--transition);
    white-space: nowrap;
}
.btn-upload {
    background: var(--grad); color: #fff;
    box-shadow: 0 2px 12px rgba(var(--accent-green-rgb),0.3);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
.btn-upload:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(var(--accent-green-rgb),0.5); }
.header-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: rgba(var(--accent-green-rgb), 0.1);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition);
}
.header-wallet-badge i { color: var(--brand-green); }
.header-wallet-badge strong { color: var(--brand-green); }
.header-wallet-badge:hover {
    border-color: rgba(var(--accent-green-rgb), 0.55);
    background: rgba(var(--accent-green-rgb), 0.16);
}
.header-wallet-badge.is-loading strong { color: var(--text-muted); }
.btn-ghost { border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--brand-green); color: var(--brand-green); }
.btn-primary {
    background: var(--grad); color: #fff;
    background-size: 200%; animation: gradientShift 4s ease infinite;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(var(--accent-green-rgb),0.4); }

/* User menu */
.user-menu { position: relative; }
.user-menu-trigger {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden; padding: 0;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box, var(--grad) border-box;
    transition: var(--transition);
}
.user-menu-trigger:hover { transform: scale(1.05); }
.user-avatar-sm { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 230px; background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--accent-green-rgb),0.1);
    z-index: 9999; overflow: hidden;
    animation: fadeInUp 0.15s ease;
}
.dropdown-header {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    background: var(--grad-subtle);
    border-bottom: 1px solid var(--border);
}
.dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dropdown-name { font-weight: 700; font-size: 0.9rem; }
.dropdown-username { font-size: 0.78rem; color: var(--brand-green); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px;
    font-size: 0.875rem; color: var(--text-secondary); transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }
.dropdown-item:hover i { color: var(--brand-green); }
.dropdown-item--danger:hover { color: var(--red); }
.dropdown-item--danger:hover i { color: var(--red); }
.dropdown-divider { border-top: 1px solid var(--border); }

/* ── App Layout ── */
.app-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-h);
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    position: sticky; top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto; overflow-x: hidden;
    padding: 12px 0;
    border-right: 1px solid var(--border);
    background: var(--bg-base);
    transition: transform var(--transition-slow);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-item {
    display: flex; align-items: center; gap: 13px; padding: 10px 12px;
    border-radius: var(--radius); color: var(--text-secondary);
    font-size: 0.875rem; font-weight: 500; transition: all var(--transition);
    position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item:hover i { color: var(--brand-green); }
.nav-item.active {
    background: var(--grad-subtle);
    color: var(--brand-green);
    border: 1px solid rgba(var(--accent-green-rgb),0.2);
}
.nav-item.active i { color: var(--brand-green); }
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--grad);
}
.nav-item i { width: 18px; text-align: center; font-size: 0.95rem; transition: var(--transition); }
.nav-section-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted);
    padding: 16px 12px 5px;
}

/* ── Main Content ── */
.main-content { flex: 1; min-width: 0; padding: 24px; }

/* ── Video Grid ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.video-card {
    display: flex; flex-direction: column; gap: 11px;
    cursor: pointer;
    animation: fadeInUp 0.4s ease both;
}
.video-card:nth-child(2) { animation-delay: 0.05s; }
.video-card:nth-child(3) { animation-delay: 0.1s; }
.video-card:nth-child(4) { animation-delay: 0.15s; }

.thumb-wrap {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-card); aspect-ratio: 16/9;
    transition: all 0.3s ease;
}
.thumb-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-card:hover .thumb-wrap {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--accent-green-rgb),0.2), 0 0 0 1px rgba(var(--accent-green-rgb),0.15);
}
.video-card:hover .thumb-wrap::after { opacity: 0.08; }
.thumb-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .thumb-img { transform: scale(1.04); }
.thumb-duration {
    position: absolute; bottom: 7px; right: 7px;
    background: rgba(0,0,0,0.85); color: #fff;
    font-size: 0.74rem; font-weight: 700; padding: 2px 7px; border-radius: 5px;
    font-family: var(--mono); z-index: 1;
}
.thumb-paid {
    position: absolute; top: 7px; left: 7px;
    background: linear-gradient(135deg, var(--amber), #f59e0b);
    color: #000; font-size: 0.7rem; font-weight: 800;
    padding: 3px 9px; border-radius: 5px; z-index: 1;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(251,191,36,0.4);
}

/* Play button overlay on hover */
.thumb-wrap .play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s ease; z-index: 2;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    box-shadow: 0 4px 20px rgba(var(--accent-green-rgb),0.5);
    transform: scale(0.8); transition: transform 0.25s ease;
}
.video-card:hover .play-overlay-btn { transform: scale(1); }

.video-meta { display: flex; gap: 10px; }
.video-channel-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 1.5px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box, var(--grad) border-box;
}
.video-info { flex: 1; min-width: 0; }
.video-title {
    font-weight: 600; font-size: 0.9rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; color: var(--text-primary); transition: color var(--transition);
}
.video-card:hover .video-title { color: var(--brand-green); }
.video-channel-name { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }
.video-channel-name a:hover { color: var(--brand-green); }
.video-stats { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.video-stats span::after { content: ' · '; }
.video-stats span:last-child::after { content: ''; }

/* ── Influencer / Featured Creators Section ── */
.influencer-section {
    position: relative;
    margin-bottom: 36px;
}

.influencer-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 4px 16px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.influencer-row::-webkit-scrollbar { display: none; }

/* Individual creator card */
.influencer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 18px 18px;
    min-width: 148px;
    max-width: 148px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-primary);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease both;
    cursor: pointer;
}

/* Gradient background sweep on hover */
.influencer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-subtle);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.influencer-card:hover::before { opacity: 1; }

/* Gradient top border line */
.influencer-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-animate);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.influencer-card:hover::after { opacity: 1; }

.influencer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-green-rgb),0.3);
    box-shadow: 0 14px 36px rgba(var(--accent-green-rgb),0.15), 0 4px 12px rgba(0,0,0,0.4);
}

/* Avatar ring + image */
.ic-avatar-wrap {
    position: relative;
    width: 76px; height: 76px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ic-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--grad-animate);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: 0;
}

/* Static ring on cards that aren't hovered — subtler */
.influencer-card:not(:hover) .ic-avatar-ring {
    opacity: 0.5;
}

.ic-avatar {
    position: relative;
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    z-index: 1;
    display: block;
    transition: transform 0.3s ease;
}
.influencer-card:hover .ic-avatar { transform: scale(1.06); }

/* Verified badge */
.ic-verified {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    color: var(--brand-green);
    border: 2px solid var(--bg-card);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(var(--accent-green-rgb),0.4);
}

/* Text */
.ic-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    color: var(--text-primary);
    transition: color 0.2s ease;
    position: relative;
}
.influencer-card:hover .ic-name { color: var(--brand-green); }

.ic-handle {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    position: relative;
}

.ic-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    position: relative;
}
.ic-stats i {
    font-size: 0.65rem;
    margin-right: 2px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ic-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-green);
    opacity: 0.75;
    position: relative;
}

/* Scroll arrows */
.influencer-arrow {
    position: absolute;
    top: 50%; transform: translateY(calc(-50% + 14px));
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}
.influencer-arrow:hover {
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(var(--accent-green-rgb),0.4);
    transform: translateY(calc(-50% + 14px)) scale(1.08);
}
.influencer-arrow--left  { left:  -14px; }
.influencer-arrow--right { right: -14px; }

@media (max-width: 768px) {
    .influencer-arrow { display: none; }
    .influencer-card { min-width: 130px; max-width: 130px; padding: 16px 12px 14px; }
    .ic-avatar, .ic-avatar-wrap { width: 64px; height: 64px; }
}

/* ── Category Chips ── */
.category-chips {
    display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 4px; margin-bottom: 26px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chip {
    padding: 7px 18px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 40px; font-size: 0.8rem; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
}
.category-chip:hover {
    border-color: var(--brand-green); color: var(--brand-green);
    background: rgba(var(--accent-green-rgb),0.08);
}
.category-chip.active {
    background: var(--grad); border-color: transparent; color: #fff;
    box-shadow: 0 2px 12px rgba(var(--accent-green-rgb),0.35);
}

/* ── Section Headers ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.section-link { font-size: 0.875rem; color: var(--brand-green); }
.section-link:hover { text-decoration: underline; }

/* ── Page Header ── */
.page-header { margin-bottom: 30px; }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.page-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 5px; }

/* ── Channel Page ── */
.channel-banner {
    width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg);
    background: var(--grad); margin-bottom: -64px;
}
.channel-banner-placeholder {
    width: 100%; height: 200px; border-radius: var(--radius-lg);
    background: var(--grad-animate); background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    margin-bottom: -64px;
}
.channel-info-wrap { display: flex; align-items: flex-end; gap: 18px; padding: 0 8px; margin-bottom: 26px; }
.channel-avatar-wrap {
    width: 104px; height: 104px; border-radius: 50%;
    border: 4px solid var(--bg-base); overflow: hidden; flex-shrink: 0;
    background: var(--bg-card);
    box-shadow: 0 0 0 2px var(--brand-green);
}
.channel-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.channel-details { flex: 1; padding-bottom: 10px; }
.channel-name { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.verified-badge { color: var(--brand-green); font-size: 0.95rem; }
.channel-meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 5px; }
.channel-actions { display: flex; gap: 8px; padding-bottom: 10px; flex-shrink: 0; }

/* Channel Tabs */
.channel-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.channel-tab {
    padding: 11px 22px; font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
    border-bottom: 2px solid transparent; transition: var(--transition); cursor: pointer;
}
.channel-tab:hover { color: var(--text-primary); }
.channel-tab.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

/* ── Watch Page ── */
.watch-layout { display: grid; grid-template-columns: 1fr 370px; gap: 26px; }
.video-player-container {
    width: 100%; background: #000; border-radius: var(--radius-lg);
    overflow: hidden; aspect-ratio: 16/9; position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
video { width: 100%; height: 100%; object-fit: contain; }

.watch-title { font-size: 1.25rem; font-weight: 800; margin: 16px 0 10px; letter-spacing: -0.02em; }
.watch-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.watch-stats { font-size: 0.875rem; color: var(--text-secondary); }
.watch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
    display: flex; align-items: center; gap: 7px; padding: 8px 16px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 40px; font-size: 0.85rem; color: var(--text-secondary);
    transition: all var(--transition);
}
.action-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--brand-green); }
.action-btn.liked {
    color: var(--brand-green); border-color: var(--brand-green);
    background: rgba(var(--accent-green-rgb),0.1);
    box-shadow: 0 0 12px rgba(var(--accent-green-rgb),0.2);
}

.watch-channel-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin: 14px 0;
}
.watch-channel-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.watch-channel-name { font-weight: 700; }
.watch-channel-name a:hover { color: var(--brand-green); }
.watch-channel-subs { font-size: 0.8rem; color: var(--text-muted); }
.watch-subscribe { margin-left: auto; }
.watch-description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; }
.expand-desc { background: none; border: none; color: var(--brand-green); font-size: 0.875rem; margin-top: 6px; cursor: pointer; font-weight: 600; }

/* Up Next */
.up-next-header { font-weight: 800; margin-bottom: 14px; font-size: 1rem; }
.up-next-list { display: flex; flex-direction: column; gap: 12px; }
.up-next-card {
    display: flex; gap: 10px; cursor: pointer;
    border-radius: var(--radius); padding: 6px;
    transition: all var(--transition);
}
.up-next-card:hover { background: var(--bg-card); }
.up-next-thumb-wrap { width: 124px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.up-next-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.up-next-card:hover .up-next-thumb { transform: scale(1.04); }
.up-next-info { flex: 1; min-width: 0; }
.up-next-title { font-size: 0.8rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-next-channel { font-size: 0.74rem; color: var(--text-muted); margin-top: 3px; }

/* ── Upload Page ── */
.upload-layout { max-width: 800px; }
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg); padding: 70px 20px; text-align: center;
    cursor: pointer; transition: all var(--transition-slow);
    background: var(--bg-elevated); position: relative; overflow: hidden;
}
.upload-zone::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-subtle);
    opacity: 0; transition: opacity var(--transition-slow);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(var(--accent-green-rgb),0.12), inset 0 0 40px rgba(var(--accent-green-rgb),0.05);
}
.upload-zone:hover::before, .upload-zone.drag-over::before { opacity: 1; }
.upload-zone i {
    font-size: 3.5rem; margin-bottom: 18px; display: block;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.upload-zone h3 { font-size: 1.15rem; margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 0.875rem; }
.upload-browse { color: var(--brand-green); cursor: pointer; text-decoration: underline; font-weight: 600; }

.upload-progress { margin-top: 22px; display: none; }
.progress-bar-wrap { background: var(--bg-card); border-radius: 40px; height: 8px; overflow: hidden; }
.progress-bar-fill {
    height: 100%; border-radius: 40px;
    background: var(--grad-animate); background-size: 300% 300%;
    animation: gradientShift 2s ease infinite, progressPulse 2s ease infinite;
    transition: width 0.3s ease;
}
.progress-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 7px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 7px; color: var(--text-secondary); }
.form-label span { color: var(--red); }
.form-control {
    width: 100%; padding: 11px 15px;
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: var(--radius); color: var(--text-primary);
    font-size: 0.9rem; font-family: var(--font);
    transition: all var(--transition);
}
.form-control:focus {
    outline: none; border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(var(--accent-green-rgb),0.12);
    background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }
.form-submit {
    padding: 13px 30px;
    background: var(--grad-animate); background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    color: #fff; font-size: 0.95rem; font-weight: 700;
    border-radius: var(--radius); border: none; cursor: pointer;
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(var(--accent-green-rgb),0.3);
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-green-rgb),0.45);
}
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; background: var(--bg-card); }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 0.875rem; }
.radio-label input { accent-color: var(--brand-green); }

/* ── Auth Pages ── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-base); padding: 20px;
    position: relative; overflow: hidden;
}
/* Ambient glow background */
.auth-page::before {
    content: '';
    position: fixed; top: -30%; left: -20%;
    width: 60vw; height: 60vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-green-rgb),0.08) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: fixed; bottom: -30%; right: -20%;
    width: 60vw; height: 60vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-purple-rgb),0.08) 0%, transparent 70%);
    pointer-events: none;
}
.auth-card {
    width: 100%; max-width: 430px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 42px 38px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative; z-index: 1;
    animation: fadeInUp 0.35s ease;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 28px; }
.auth-link { text-align: center; font-size: 0.875rem; color: var(--text-secondary); margin-top: 22px; }
.auth-link a { color: var(--brand-green); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

/* ── Dashboard ── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 34px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px;
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad);
    opacity: 0; transition: opacity var(--transition);
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-green-rgb),0.3); }
.stat-card:hover::before { opacity: 1; }
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.stat-card-value {
    font-size: 2.2rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-card-change { font-size: 0.8rem; margin-top: 4px; }
.stat-card-change.up { color: var(--green); }
.stat-card-change.down { color: var(--red); }

.dashboard-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dashboard-table th {
    text-align: left; padding: 10px 14px;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.dashboard-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.dashboard-table tr:hover td { background: var(--bg-hover); }
.dashboard-table td:first-child { color: var(--text-primary); font-weight: 500; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
    transition: all var(--transition); cursor: pointer; border: none;
}
.btn-sm { padding: 7px 13px; font-size: 0.8rem; }
.btn-accent {
    background: var(--grad-animate); background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    color: #fff; box-shadow: 0 3px 14px rgba(var(--accent-green-rgb),0.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--accent-green-rgb),0.45); }
.btn-outline {
    background: transparent; border: 1px solid var(--border-light); color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-hover); border-color: var(--brand-green); color: var(--brand-green); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-sub {
    background: var(--grad-animate); background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    color: #fff; font-weight: 700; padding: 9px 20px; border-radius: 40px;
    box-shadow: 0 3px 14px rgba(var(--accent-green-rgb),0.3);
}
.btn-sub:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--accent-green-rgb),0.45); }
.btn-sub.subscribed {
    background: none; animation: none;
    border: 1px solid var(--border-light); color: var(--text-secondary);
    box-shadow: none;
}
.btn-sub.subscribed:hover { border-color: var(--red); color: var(--red); background: rgba(248,113,113,0.08); }

/* ── Tags ── */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 11px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 40px; font-size: 0.75rem; color: var(--text-secondary);
    transition: var(--transition);
}
.tag:hover { border-color: var(--brand-green); color: var(--brand-green); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Alerts ── */
.alert {
    padding: 13px 17px; border-radius: var(--radius); margin-bottom: 18px;
    font-size: 0.875rem; display: flex; align-items: center; gap: 10px;
    animation: fadeIn 0.3s ease;
}
.alert-success { background: rgba(var(--accent-green-rgb),0.1); border: 1px solid rgba(var(--accent-green-rgb),0.3); color: var(--brand-green); }
.alert-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: var(--red); }
.alert-info    { background: rgba(var(--accent-blue-rgb),0.1);  border: 1px solid rgba(var(--accent-blue-rgb),0.3);  color: var(--brand-blue); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); animation: fadeIn 0.4s ease; }
.empty-state i {
    font-size: 3.5rem; margin-bottom: 18px; display: block;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    opacity: 0.6;
}
.empty-state h3 { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 8px; }

/* ── File card ── */
.file-card {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); margin-bottom: 10px;
    transition: all var(--transition);
}
.file-card:hover { border-color: rgba(var(--accent-green-rgb),0.3); background: var(--bg-hover); }
.file-card-icon {
    font-size: 1.9rem; flex-shrink: 0;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.file-card-info { flex: 1; min-width: 0; }
.file-card-name { font-weight: 600; font-size: 0.9rem; }
.file-card-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.file-card-price { font-weight: 800; font-size: 1rem; color: var(--amber); flex-shrink: 0; }

/* ── Channel Description Preview ── */
.channel-desc-preview {
    font-size: 0.875rem; color: var(--text-secondary); margin-top: 7px;
    max-width: 540px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Channel Social Pills (header row) ── */
.channel-socials {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.social-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 40px;
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.social-pill i { font-size: 0.85rem; }
.social-pill:hover { transform: translateY(-1px); }

.social-pill--yt  { --pill-color: #FF0000; }
.social-pill--ig  { --pill-color: #E1306C; }
.social-pill--tw  { --pill-color: #ffffff; }
.social-pill--tt  { --pill-color: #69C9D0; }
.social-pill--web { --pill-color: var(--brand-blue); }

.social-pill--yt:hover  { background: rgba(255,0,0,0.1);   border-color: #FF0000;              color: #FF0000; }
.social-pill--ig:hover  { background: rgba(225,48,108,0.1); border-color: #E1306C;              color: #E1306C; }
.social-pill--tw:hover  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.social-pill--tt:hover  { background: rgba(105,201,208,0.1); border-color: #69C9D0;             color: #69C9D0; }
.social-pill--web:hover { background: rgba(var(--accent-blue-rgb),0.1); border-color: var(--brand-blue);    color: var(--brand-blue); }

/* ── About Tab Layout ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    max-width: 900px;
}
@media (max-width: 720px) {
    .about-grid { grid-template-columns: 1fr; }
}
.about-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px;
}
.about-card-title {
    font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px;
}

/* About tab link rows */
.about-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-elevated);
    text-decoration: none; color: var(--text-primary);
    transition: all var(--transition);
}
.about-link:hover { background: var(--bg-hover); transform: translateX(3px); }
.about-link-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    background: var(--bg-card);
}
.about-link-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.about-link-value { font-size: 0.875rem; font-weight: 600; margin-top: 1px; }
.about-link-ext { margin-left: auto; font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }

.about-link--yt:hover  { border-color: #FF0000; }
.about-link--yt .about-link-icon  { color: #FF0000; }
.about-link--ig:hover  { border-color: #E1306C; }
.about-link--ig .about-link-icon  { color: #E1306C; }
.about-link--tw:hover  { border-color: rgba(255,255,255,0.3); }
.about-link--tw .about-link-icon  { color: #fff; }
.about-link--tt:hover  { border-color: #69C9D0; }
.about-link--tt .about-link-icon  { color: #69C9D0; }
.about-link--web:hover { border-color: var(--brand-blue); }
.about-link--web .about-link-icon { color: var(--brand-blue); }

/* About stat rows */
.about-stat-row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.about-stat-row:last-child { border-bottom: none; }
.about-stat-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--grad-subtle); border: 1px solid rgba(var(--accent-green-rgb),0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.about-stat-value { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.about-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ── Settings Page ── */
.settings-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.settings-section-title {
    font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.settings-section-title i {
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Social input with prefix */
.social-input-wrap {
    display: flex; border: 1px solid var(--border-light); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-elevated);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.social-input-wrap:focus-within {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(var(--accent-green-rgb),0.12);
}
.social-input-prefix {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px; font-size: 0.8rem; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
    border-right: 1px solid var(--border-light);
    color: var(--text-muted);
    background: var(--bg-card);
}
.social-input-prefix--yt { color: #FF0000; }
.social-input-prefix--ig { color: #E1306C; }
.social-input-prefix--tw { color: var(--text-secondary); }
.social-input-prefix--tt { color: #69C9D0; }

.social-input {
    border: none !important; border-radius: 0 !important; box-shadow: none !important;
    background: transparent !important;
}
.social-input:focus { box-shadow: none !important; }

/* Live preview link below YouTube input */
.social-preview-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    padding: 4px 10px; border-radius: 6px;
    transition: all var(--transition);
}
.social-preview-link--yt { color: #FF0000; background: rgba(255,0,0,0.08); border: 1px solid rgba(255,0,0,0.2); }
.social-preview-link--yt:hover { background: rgba(255,0,0,0.15); }

/* ── Site Footer ── */
.site-footer {
    padding: 24px; border-top: 1px solid var(--border);
    background: var(--bg-base); margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--brand-green); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ── Gradient border utility ── */
.grad-border {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--grad) border-box;
}

/* ── Spinner ── */
.fa-spin { animation: spin 1s linear infinite; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .watch-layout { grid-template-columns: 1fr; }
    .up-next-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 768px) {
    .sidebar {
        position: fixed; left: 0; top: var(--header-h); bottom: 0;
        z-index: 900; transform: translateX(-100%);
        background: var(--bg-elevated);
    }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.6); }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 899; }
    .sidebar-overlay.visible { display: block; }
    .main-content { padding: 16px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .channel-info-wrap { flex-direction: column; align-items: flex-start; }
    .channel-actions { width: 100%; }
    .auth-card { padding: 30px 22px; }
    .header-center { max-width: none; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .watch-actions { flex-wrap: wrap; }
}
