/* ===== VARIABLES CSS ===== */
:root {
    /* Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    --secondary-50: #fdf4ff;
    --secondary-100: #fae8ff;
    --secondary-200: #f5d0fe;
    --secondary-300: #f0abfc;
    --secondary-400: #e879f9;
    --secondary-500: #d946ef;
    --secondary-600: #c026d3;
    --secondary-700: #a21caf;
    --secondary-800: #86198f;
    --secondary-900: #701a75;
    
    /* Light mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Fonts */
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(192, 38, 211, 0.39);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 38, 211, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
}

.btn-twitch {
    background: #9146ff;
    color: white;
}

.btn-twitch:hover {
    background: #7d3cd2;
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.8);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-full {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .logo-full {
    background: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: var(--transition);
}

.youtube-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.youtube-btn:hover {
    background: rgba(255, 0, 0, 0.2);
}

.twitch-btn {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.twitch-btn:hover {
    background: rgba(145, 70, 255, 0.2);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: rotate(20deg);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--border-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('../images/bckg_hero_lightmod.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .hero-bg {
    background-image: url('../images/bckg_hero.jpg');
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.5) 0%, 
        rgba(192, 38, 211, 0.5) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.stat-item:nth-child(1) .stat-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.stat-item:nth-child(2) .stat-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-600);
}

.stat-item:nth-child(3) .stat-icon {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-tertiary);
    font-size: 1.5rem;
}

/* ===== SECTION BASE ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
    background: var(--bg-secondary);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-tertiary);
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.youtube-channel-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}

.channel-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.channel-switch-btn:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    transform: translateY(-2px);
}

.channel-switch-btn.active {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--bg-tertiary);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.9;
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===== MIDNIGHT GUILD PAGE ===== */
.midnight-hero {
    position: relative;
    overflow: hidden;
    padding-top: 16rem;
    padding-bottom: 5rem;
    min-height: 70vh;
    background: 
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.14), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(192, 38, 211, 0.14), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.12), transparent 45%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('../images/midnightbackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(2px);
    color: var(--text-primary);
}

[data-theme="light"] .midnight-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.6));
}

@media (min-width: 768px) {
    .midnight-hero {
        padding-top: 7rem;
    }
}

@media (min-width: 768px) {
    .midnight-hero {
        padding-top: 7rem;
    }
}

/* Hero Spacer for mobile header overlap prevention */
.hero-spacer {
    height: 5rem;
    display: block;
}

@media (min-width: 768px) {
    .hero-spacer {
        display: none;
    }
}

/* ===== Gallery & Lightbox ===== */
.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-radius: 0.9rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: "Voir";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: var(--transition);
    font-weight: 700;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover::after {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

/* ===== Article page ===== */
.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.article-hero img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.article-body {
    padding: 2rem 2.25rem;
    color: var(--text-primary);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-body ul {
    margin: 0.75rem auto;
    color: var(--text-secondary);
    text-align: left;
    display: inline-block;
    padding-left: 1.2rem;
}

.article-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin: 0.75rem 0 0.35rem;
}

.article-body h2 {
    font-size: 1.75rem;
}

.article-body h3 {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.article-body .article-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
}

.midnight-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.midnight-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

.midnight-hero-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
    text-align: left;
    z-index: 1;
    padding-top: 3rem;
}

@media (min-width: 768px) {
    .midnight-hero-content {
        padding-top: 0;
    }
}

.midnight-hero-text {
    display: flex;
    flex-direction: column;
    max-width: 680px;
    gap: 1rem;
}

.midnight-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-500);
    font-size: 0.85rem;
}

.midnight-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
}

.midnight-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
}

.midnight-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-700);
    border: 1px solid rgba(37, 99, 235, 0.25);
    font-weight: 600;
    font-size: 0.95rem;
}

.midnight-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.midnight-cta.center {
    justify-content: center;
    margin-top: 3rem;
}

.midnight-hero-panel {
    display: flex;
    justify-content: flex-end;
}

.midnight-panel-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    border-radius: 1.25rem;
    padding: 1.75rem;
    max-width: 420px;
}

.panel-art {
    height: 140px;
    border-radius: 0.9rem;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.panel-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.panel-label {
    color: var(--primary-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.panel-value {
    margin: 0.35rem 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.panel-note {
    color: var(--text-secondary);
}

.panel-bars {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.panel-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    overflow: hidden;
}

.panel-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
    border-radius: 9999px;
}

.panel-meta {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.midnight-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.midnight-stats {
    background: var(--bg-primary);
}

.stat-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--primary-600);
}

.badge-soft {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-700);
    font-weight: 700;
    font-size: 0.85rem;
}

.midnight-raid {
    background: var(--bg-secondary);
}

.raid-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.raid-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

    .raid-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .raid-time {
        color: var(--primary-700);
        font-weight: 700;
    }

    .midnight-roster {
        background: var(--bg-primary);
    }

    .recruit-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .recruit-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .recruit-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .recruit-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .need-tag {
        padding: 0.35rem 0.75rem;
        border-radius: 0.75rem;
        background: rgba(37, 99, 235, 0.12);
        color: var(--primary-700);
        font-weight: 700;
        font-size: 0.85rem;
    }

    .need-tag.alt {
        background: rgba(192, 38, 211, 0.14);
        color: var(--secondary-700);
    }

    .need-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 1rem;
    }

    .need-list span {
        padding: 0.4rem 0.65rem;
        background: var(--bg-secondary);
        border-radius: 0.65rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .midnight-faq {
        background: var(--bg-secondary);
    }

    .faq-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .faq-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: 1.25rem;
        box-shadow: var(--shadow-sm);
    }

    /* Follow Channels */
    .follow-section {
        background: var(--bg-secondary);
    }

    /* Contact sections (non-home) */
    .contact-section {
        background: var(--bg-secondary);
    }

    .follow-rows {
        display: grid;
        gap: 1.25rem;
    }

    .follow-row {
        display: grid;
        gap: 1.25rem;
        justify-items: center;
    }

    .twitch-row {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        max-width: 760px;
        margin: 0 auto;
    }

    .youtube-row {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-width: 1100px;
        margin: 0 auto;
    }

    .follow-card {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
        border: 1px solid var(--border-color);
        border-radius: 1.25rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .follow-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-600);
    }

    .follow-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        font-size: 1.2rem;
        color: white;
    }

    .follow-twitch .follow-icon {
        background: linear-gradient(135deg, #9146ff, #7a2ce3);
    }

    .follow-yt .follow-icon {
        background: linear-gradient(135deg, #ff0000, #d40000);
    }

    .follow-body h3 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    .follow-body p {
        margin: 0.2rem 0 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    .follow-arrow {
        color: var(--text-tertiary);
        font-size: 1rem;
    }

    /* Guild page accent */
    .midnight-follow {
        background: var(--bg-primary);
    }

    .midnight-follow .follow-card {
        background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
        border: 1px solid var(--border-color);
    }

    .midnight-follow .follow-card:hover {
        border-color: var(--primary-600);
    }

    @media (max-width: 640px) {
        .follow-card {
            grid-template-columns: 1fr;
            text-align: center;
            justify-items: center;
        }
        .follow-body h3 {
            font-size: 1.05rem;
        }
    }

    @media (max-width: 900px) {
        .twitch-row {
            grid-template-columns: 1fr;
        }
        .youtube-row {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }
    }

    @media (max-width: 640px) {
        .follow-row {
            grid-template-columns: 1fr;
        }
        .twitch-row,
        .youtube-row {
            max-width: 100%;
            justify-items: stretch;
        }
    }

    .guild-follow {
        background: var(--bg-primary);
    }

    .guild-follow-grid {
        display: grid;
        grid-template-columns: minmax(260px, 1fr) minmax(380px, 1.2fr);
        gap: 1.5rem;
        align-items: start;
    }

    .guild-follow-group {
        background: linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
        border: 1px solid var(--border-color);
        border-radius: 1.25rem;
        padding: 1.1rem;
        box-shadow: var(--shadow-md);
    }

    .group-title {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--text-primary);
        margin-bottom: 0.85rem;
    }

    .guild-follow-list {
        display: grid;
        gap: 1rem;
    }

    .guild-follow-list.three {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    @media (max-width: 900px) {
        .guild-follow-grid {
            grid-template-columns: 1fr;
        }
        .guild-follow-list.three {
            grid-template-columns: 1fr;
        }
    }

    /* Midnight extras */
    .midnight-stats,
    .midnight-raid,
    .midnight-roster,
    .midnight-faq,
    .midnight-follow {
        position: relative;
        overflow: hidden;
    }

    .midnight-stats::before,
    .midnight-raid::before,
    .midnight-roster::before,
    .midnight-faq::before,
    .midnight-follow::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1), transparent 45%),
            radial-gradient(circle at 80% 10%, rgba(192, 38, 211, 0.1), transparent 45%),
            radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.08), transparent 40%);
        pointer-events: none;
    }

    .midnight-feature {
        background: var(--bg-primary);
        position: relative;
        overflow: hidden;
    }

    .midnight-feature::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.12), transparent 45%),
            radial-gradient(circle at 75% 10%, rgba(192, 38, 211, 0.12), transparent 45%);
        pointer-events: none;
    }

    .feature-grid {
        position: relative;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
        z-index: 1;
    }

    .feature-card {
        background: linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
        border: 1px solid var(--border-color);
        border-radius: 1.1rem;
        padding: 1.25rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        display: grid;
        gap: 0.75rem;
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-600);
    }

    .feature-thumb {
        height: 160px;
        border-radius: 0.85rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(192, 38, 211, 0.35));
        display: grid;
        place-items: center;
        color: #ffffff;
        font-size: 1.8rem;
    }

    .feature-meta {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        color: var(--text-tertiary);
        font-size: 0.9rem;
    }

    .midnight-follow .follow-grid {
        max-width: 1100px;
        margin: 0 auto;
    }

/* ===== TWITCH SECTION ===== */
.twitch-section {
    background: var(--bg-primary);
}

.live-status {
    background: var(--bg-secondary);
    border: 2px solid #9146ff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    font-weight: 700;
    color: #ff0000;
    font-size: 1.125rem;
}

.live-info {
    color: var(--text-secondary);
}

.twitch-stream-switch {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.stream-switch-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.stream-switch-btn:hover {
    border-color: #9146ff;
    color: #9146ff;
    transform: translateY(-2px);
}

.stream-switch-btn.active {
    background: #9146ff;
    border-color: #9146ff;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(145, 70, 255, 0.39);
}

.twitch-embed-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.twitch-follow-cta {
    margin: 0.5rem 0 2.5rem;
    display: flex;
    justify-content: center;
}

.twitch-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.twitch-iframe.active {
    opacity: 1;
    visibility: visible;
}

.twitch-embed.active {
    opacity: 1;
    visibility: visible;
}

.vods-section {
    margin-top: 3rem;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.vods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vod-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.vod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.vod-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg-tertiary);
}

.vod-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vod-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.vod-info {
    padding: 1rem;
}

.vod-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vod-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
    background: var(--bg-secondary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition);
}

.youtube-card::before { background: #ff0000; }
.twitch-card::before { background: #9146ff; }
.twitter-card::before { background: #1da1f2; }
.instagram-card::before { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.discord-card::before { background: #5865f2; }
.tiktok-card::before { background: #000000; }

[data-theme="dark"] .tiktok-card::before { background: #ffffff; }

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.social-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.youtube-card .social-card-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.twitch-card .social-card-icon {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.twitter-card .social-card-icon {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.instagram-card .social-card-icon {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.discord-card .social-card-icon {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.tiktok-card .social-card-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

[data-theme="dark"] .tiktok-card .social-card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.social-card:hover .social-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.social-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-card-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.social-card:hover .social-card-arrow {
    transform: translateX(5px);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    background: white;
    color: var(--primary-600);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-600);
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-600);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
}

/* Ensure the inner player fills the modal */
.modal-body #modalPlayer {
    width: 100%;
    height: 100%;
}

/* Actions row under the video (CTA, etc.) */
.modal-actions {
    width: 100%;
    max-width: 1000px;
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.modal-error {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1100;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.back-to-top.show {
    display: inline-flex;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .social-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .youtube-channel-switch {
        flex-direction: column;
    }
    
    .twitch-stream-switch {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-full {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-info {
        text-align: center;
    }
}

/* ===== BLOG CATEGORY FILTERS ===== */
.video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--primary-500);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active i {
    animation: pulse 1.5s infinite;
}

.filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.15);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
    
    .video-filters {
        gap: 0.75rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
