/*
Theme Name: Ferbeatz DJ Theme
Theme URI: https://ferbeatz.com
Author: Ferbeatz DJ
Description: Professional DJ theme. v19.1.7 — Bidirectional AW Animations, QA Pixel Perfect, Social Sidebar.
Version: v19.1.7-HeroFinal
Text Domain: ferbeatz
*/

/* ==========================================================================
   0. FUENTES & CARGA (LUXURY) - RESTAURADO DE v19.1.1
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

@font-face {
    font-family: 'Nohemi';
    src: url('fonts/Nohemi-Bold.woff2') format('woff2'),
         url('fonts/Nohemi-Bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Nohemi';
    src: url('fonts/Nohemi-Black.woff2') format('woff2'),
         url('fonts/Nohemi-Black.woff') format('woff');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ==========================================================================
   1. VARIABLES (ORIGINAL v19.1.1)
   ========================================================================== */
:root {
    /* Colores Base (Luxury) */
    --bg-dark: #191d31;
    --bg-deep: #0f121f;
    --bg-sticky: rgba(25, 29, 49, 0.98);

    --accent: #fdeb19;
    --accent-dark: #dccb02;
    --accent-light: #fdf050;

    --text-white: #ffffff;
    --text-gray: #94a3b8;

    /* Tipografía ORIGINAL */
    --font-head: 'Nohemi', 'Montserrat', sans-serif;
    --font-body: 'Dosis', sans-serif;

    /* UI Tokens */
    --radius-premium: 16px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 20px 50px rgba(0,0,0,0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   2. ESTILOS BASE (ORIGINAL v19.1.1)
   ========================================================================== */
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; width: 100%; overflow-x: hidden;
    background-color: var(--bg-deep); color: #f8fafc;
    font-family: var(--font-body); line-height: 1.6; font-size: 18px;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-head); font-weight: 900; margin: 0;
    line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* Utilidades */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.text-yellow { color: var(--accent); }
.text-gradient {
    background: linear-gradient(to right, #facc15, #eab308);
    -webkit-background-clip: text; color: transparent;
}

/* Botones (v19 Luxury) */
.btn-header, .btn-mobile-cta, .msb-btn, .view-all-btn, .h-btn {
    background-color: var(--accent); color: #0f172a;
    padding: 14px 34px; border-radius: 50px;
    font-weight: 800; font-size: 0.9rem; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; transition: var(--transition-smooth);
    font-family: var(--font-head); letter-spacing: 0.05em; gap: 8px;
}
.btn-header:hover, .view-all-btn:hover, .h-btn:hover {
    background-color: #fff; transform: translateY(-2px); color: #000;
    box-shadow: 0 10px 20px rgba(253, 235, 25, 0.2);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
    color: white; padding: 14px 34px; border-radius: 50px;
    font-weight: 800; font-size: 0.9rem; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    backdrop-filter: blur(5px);
}
.btn-hero-secondary:hover {
    background: #ffffff; border-color: #ffffff; color: #000000;
    box-shadow: 0 10px 25px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.h-btn svg, .btn-hero-secondary svg {
    fill: currentColor; stroke: currentColor; transition: inherit;
}


/* ==========================================================================
   3. NAVBAR (ORIGINAL v19.1.1)
   ========================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    height: 90px; display: flex; align-items: center;
    transition: 0.4s; z-index: 9999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.scrolled {
    background-color: var(--bg-sticky); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    height: 70px; border: none; backdrop-filter: blur(10px);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.logo-sub { display: block; font-size: 0.6rem; letter-spacing: 3px; color: #aaa; margin-top: 2px; font-family: var(--font-body); font-weight: 600; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-menu-ul { display: flex; gap: 20px; }
.desktop-menu-ul li a {
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    color: rgba(255,255,255,0.8); font-family: var(--font-body); letter-spacing: 0.05em;
}
.desktop-menu-ul li a:hover { color: var(--accent); }
@media (max-width: 900px) { .desktop-nav { display: none; } }


/* ==========================================================================
   4. MOBILE MENU (ORIGINAL v19.1.1)
   ========================================================================== */
.mobile-toggle { display: none; }
@media (max-width: 900px) {
    .mobile-toggle {
        display: flex !important; flex-direction: column; justify-content: center;
        align-items: center; gap: 6px; width: 44px; height: 44px; padding: 0;
        background: transparent; border: none; cursor: pointer; z-index: 10001; margin-right: -10px;
    }
    .mobile-toggle .bar {
        display: block !important; width: 28px !important; height: 2px !important;
        background-color: #ffffff !important; border-radius: 2px; opacity: 1 !important; flex-shrink: 0;
    }
}
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 10000; display: flex; flex-direction: column;
    align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; padding-top: 0;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.mobile-menu-logo { margin-bottom: 30px; transform: scale(1.2); }
.mobile-menu-ul { display: flex; flex-direction: column; gap: 20px; text-align: center; margin-bottom: 30px; }
.mobile-menu-ul li a {
    font-family: var(--font-head); font-size: 1.8rem; font-weight: 900;
    color: #fff; text-transform: uppercase; letter-spacing: -0.02em;
}
.mobile-close { position: absolute; top: 25px; right: 25px; background: none; border: none; font-size: 2rem; color: #fff; cursor: pointer; }


/* ==========================================================================
   5. HERO (ORIGINAL v19.1.1)
   ========================================================================== */
.hero-section {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; background-color: var(--bg-dark);
    padding-top: 90px; box-sizing: border-box;
}
.post-type-archive-series .hero-section,
.single-series .hero-section { height: 50vh; min-height: 400px; }

.hero-bg-img, .hero-bg-image {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0.5; animation: kenBurns 20s ease-out infinite alternate;
}
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

.hero-overlay-gradient {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(15,18,31,0.8), var(--bg-dark));
}
.hero-noise {
    position: absolute; inset: 0; z-index: 2; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none; mix-blend-mode: overlay;
}
.hero-content {
    position: relative; z-index: 10; width: 100%; max-width: 1280px;
    padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-subtitle {
    color: #fff; font-family: var(--font-body); font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 20px;
}
.hero-seo-title {
    color: #fff; font-family: var(--font-body); font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem;
    margin: 0; padding: 0; line-height: 1;
}
.hero-title {
    font-family: var(--font-head); font-weight: 900; color: white; line-height: 0.9;
    margin-bottom: 0; letter-spacing: -0.01em; font-size: 3.5rem; text-transform: uppercase;
}
.hero-title-accent {
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 6.5rem; } }
@media (min-width: 1200px) { .hero-title { font-size: 8rem; } }

/* =========================================
   TEXT OUTLINE — CLEAN GLOBAL VERSION
   ========================================= */

.text-outline {
    -webkit-text-stroke: 1px var(--accent);
    color: transparent;
    transition:
        color 0.3s ease,
        -webkit-text-stroke 0.3s ease;
}

.text-outline:hover {
    color: var(--accent);
    -webkit-text-stroke: 0px;
}

/* =========================================
   TEXT OUTLINE — HERO AURA VERSION
   ========================================= */

.text-outline-aura {
    position: relative;
    display: inline-block;

    -webkit-text-stroke: 1px var(--accent);
    color: transparent;

    transition:
        color 0.35s ease,
        -webkit-text-stroke 0.35s ease;
}

.text-outline-aura::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%) scale(0.85);

    width: 120%;
    height: 140%;

    background: radial-gradient(
        circle,
        rgba(253,235,25,0.35) 0%,
        rgba(253,235,25,0.18) 35%,
        rgba(253,235,25,0.08) 55%,
        transparent 75%
    );

    filter: blur(30px);
    opacity: 0;

    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.16,1,0.3,1);

    pointer-events: none;
    z-index: -1;
}

.text-outline-aura:hover {
    color: var(--accent);
    -webkit-text-stroke: 0px;
}

.text-outline-aura:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-desc {
    font-size: 1.15rem; color: #e2e8f0; margin-bottom: 2rem; max-width: 800px;
    font-family: var(--font-body); font-weight: 400; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; flex-direction: column; gap: 16px; align-items: center; }
@media (min-width: 768px) { .hero-btns { flex-direction: row; justify-content: center; } }

.scroll-wrapper {
    position: absolute; bottom: 40px;
    left: 0; right: 0; margin: 0 auto; width: fit-content;
    z-index: 20; cursor: pointer; opacity: 0.6; transition: 0.3s; animation: bounce 2s infinite;
}
.scroll-wrapper:hover { opacity: 1; }
.scroll-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-text { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: white; font-weight: 700; display: block; margin-bottom: 8px; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); margin: 0 auto; }

/* v19.1.7: Hero Mobile Fixes */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        padding-top: 110px;
        padding-bottom: 20px;
    }
    .hero-seo-title { font-size: 0.55rem; letter-spacing: 0.15em; }
    .hero-badges { gap: 8px; margin-bottom: 6px; }
    .hero-title { font-size: 2.8rem; line-height: 0.9; }
    .hero-title-accent { margin-top: 0.5rem; margin-bottom: 0.8rem; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 1rem; }
    .hero-btns { gap: 10px; }
    .hero-btns .h-btn,
    .hero-btns .btn-hero-secondary { padding: 11px 26px; font-size: 0.78rem; }
    .scroll-wrapper {
        position: relative; bottom: auto;
        left: auto; right: auto;
        margin: 50px auto 0; transform: scale(0.75); width: fit-content;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}


/* ==========================================================================
   6. MARQUEE (ORIGINAL v19.1.1)
   ========================================================================== */
.fb-marquee-wrapper {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw; overflow: hidden;
    background: var(--accent); padding: 14px 0; transform: rotate(-1deg);
    margin-top: -50px; margin-bottom: 50px; z-index: 20;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-top: 1px solid #fff; border-bottom: 1px solid #fff;
}
.fb-marquee-track {
    display: flex; white-space: nowrap; gap: 40px;
    animation: marqueeScroll 30s linear infinite; width: fit-content;
}
.marquee-item {
    font-family: var(--font-head); font-weight: 900; font-size: 1.5rem;
    color: var(--bg-dark); text-transform: uppercase; letter-spacing: 0.02em;
}
.marquee-separator { color: var(--bg-dark); font-weight: 400; opacity: 0.5; font-size: 1.5rem; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 767px) {
    .fb-marquee-wrapper { padding: 8px 0; margin-top: -30px; margin-bottom: 30px; }
    .marquee-item { font-size: 0.9rem; }
    .marquee-separator { font-size: 0.9rem; }
    .fb-marquee-track { gap: 24px; }
}

/* ==========================================================================
   7. SERVICES (ORIGINAL v19.1.1)
   ========================================================================== */
#services { background-color: var(--bg-deep); position: relative; padding: 4rem 0 8rem; }
.sec-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 10; }
.sec-tag {
    color: var(--accent); font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 1rem;
}
.sec-title { font-size: 2.5rem; color: white; line-height: 1; text-transform: uppercase; }
@media (min-width: 768px) { .sec-title { font-size: 4rem; } }
.srv-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.srv-card {
    position: relative; height: 100%; min-height: 320px; border-radius: var(--radius-premium);
    overflow: hidden; cursor: pointer; background-color: var(--bg-dark);
    border: var(--glass-border); transition: var(--transition-smooth);
}
.srv-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease; filter: grayscale(100%);
}
.srv-card:hover .srv-img { transform: scale(1.1); filter: grayscale(0%); }
.srv-content-box {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(25, 29, 49, 0.9) 100%);
    backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.05);
}
.srv-title { font-size: 1.5rem; color: white; margin-bottom: 0.5rem; }
.srv-desc { font-size: 0.95rem; color: #cbd5e1; opacity: 0.8; line-height: 1.5; font-family: var(--font-body); }
.srv-link {
    margin-top: 1rem; color: var(--accent); font-weight: 700; text-transform: uppercase;
    font-size: 0.8rem; font-family: var(--font-head);
    display: inline-flex; align-items: center; gap: 6px;
    transition: transform 0.4s ease, color 0.3s ease;
}
.srv-link span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.srv-card:hover .srv-link { color: #ffffff; transform: translateX(4px); }
.srv-card:hover .srv-link span { transform: translateX(6px); }
@media (min-width: 1024px) {
    .srv-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 320px 320px; gap: 24px; }
    .srv-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .srv-card:nth-child(2) { grid-column: span 1; grid-row: span 2; }
    .srv-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .srv-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}

/* --- SERVICES MOBILE: Square images + stacked layout --- */
@media (max-width: 767px) {
    .srv-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
        height: auto;
    }
    .srv-img {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .srv-content-box {
        position: relative;
        background: var(--bg-dark);
        backdrop-filter: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
}


/* ==========================================================================
   8. EXPERIENCE (ORIGINAL v19.1.1 - SE MANTIENE COMO BASE PARA EL FIX)
   ========================================================================== */
#experience {
    background-color: var(--bg-dark); padding: 8rem 0; position: relative;
    border-top: 1px solid rgba(255,255,255,0.03);
}
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .exp-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

.exp-images-collage { position: relative; height: 500px; width: 100%; }
@media (min-width: 768px) { .exp-images-collage { height: 600px; } }

.exp-img-main {
    width: 80%; height: 80%; object-fit: cover; border-radius: var(--radius-premium);
    filter: grayscale(100%); transition: 0.5s; position: absolute; top: 0; left: 0; z-index: 1;
}
.exp-img-small {
    width: 45%; height: 45%; object-fit: cover; border-radius: var(--radius-premium);
    position: absolute; bottom: 0; right: 0; z-index: 2;
    border: 8px solid var(--bg-dark); box-shadow: var(--shadow-premium);
    filter: grayscale(100%); transition: 0.5s;
}
.exp-images-collage:hover .exp-img-main { filter: grayscale(0%); }
.exp-images-collage:hover .exp-img-small { filter: grayscale(0%); }

.exp-title { font-size: 2.5rem; color: white; margin-bottom: 2rem; }
@media (min-width: 768px) { .exp-title { font-size: 3.5rem; } }

.exp-text-lead { font-size: 1.2rem; color: #fff; margin-bottom: 1.5rem; font-weight: 500; }
.exp-text-body { color: var(--text-gray); margin-bottom: 2rem; font-size: 1.05rem; }
.exp-check-item { display: flex; gap: 1.2rem; margin-bottom: 1.5rem; align-items: flex-start; }
.exp-check-title { font-weight: 800; color: white; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.2rem; }

/* Mobile: small image higher to avoid quote overlap */
@media (max-width: 767px) {
    .exp-img-small {
        bottom: auto;
        top: 55%;
        right: 0;
    }
    .exp-quote-card {
        bottom: -10px;
        left: 5%;
        max-width: 300px;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   9. STATS — RADIAL AURA LUXURY (v19.4)
   ========================================================================== */

#stats {
    background-color: var(--bg-deep);
    padding: 10rem 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* CARD */
.stat-item {
    position: relative; /* REQUIRED */
    transition: var(--transition-smooth);
    border-radius: 16px;
    padding: 2.5rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(253,235,25,0.25);
    box-shadow:
        0 0 60px rgba(253,235,25,0.06),
        0 25px 60px rgba(0,0,0,0.5);
}

/* =========================================
   RADIAL ENERGY AURA (REAL GLOW FEEL)
   ========================================= */

.stat-item::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 140px;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%) scale(0.8);
    background: radial-gradient(
        circle,
        rgba(253,235,25,0.35) 0%,
        rgba(253,235,25,0.2) 35%,
        rgba(253,235,25,0.08) 55%,
        transparent 75%
    );
    filter: blur(40px);
    opacity: 0;
    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}

.stat-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   NUMBER SYSTEM (UNCHANGED STRUCTURE)
   ========================================= */

.odometer-container {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    height: 1em;
    overflow: hidden;
    padding: 0 0.2em;
}

@media (min-width: 1024px) {
    .odometer-container { font-size: 6rem; }
}

.digit-window {
    position: relative;
    width: 0.72em;
    height: 1.1em;
    overflow: hidden;
    display: inline-block;
}

.digit-strip {
    display: flex;
    flex-direction: column;
    transition: transform 2s cubic-bezier(0.1, 1, 0.2, 1);
}

/* BASE STATE */
.digit-strip span {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;

    color: transparent;
    -webkit-text-stroke: 1.8px rgba(255,255,255,0.35);

    transition:
        color 0.35s ease,
        -webkit-text-stroke 0.35s ease;
}

/* HOVER NUMBER ACTIVATION */
.stat-item:hover .digit-strip span {
    color: var(--accent);
    -webkit-text-stroke: 0px;
}

/* LABEL */
.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: white;
    font-family: var(--font-body);
}

/* MOBILE */
@media (max-width: 767px) {

    #stats { padding: 5rem 0; }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto;
        max-width: 360px;
        padding: 0 24px;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }

    .odometer-container {
        font-size: 4rem;
    }

    .digit-strip span {
        -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }
}


/* ==========================================================================
   10. EVENTS (ORIGINAL v19.1.1)
   ========================================================================== */
#events {
    background-color: var(--bg-dark); padding: 8rem 0; position: relative;
    border-top: 1px solid rgba(255,255,255,0.03);
}


/* ==========================================================================
   11. BOOKING / CONTACT (ORIGINAL v19.1.1)
   ========================================================================== */
#contact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
    padding: 8rem 0;
}
.input-field {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1rem 0;
    color: white; font-family: var(--font-body); font-size: 1rem;
    transition: 0.3s; border-radius: 0;
}
.input-field:focus { outline: none; border-bottom-color: var(--accent); background: transparent; }


/* ==========================================================================
   12. MIXES CAROUSEL (ORIGINAL v19.1.1)
   ========================================================================== */
#mixes {
    background-color: var(--bg-dark);
    padding: 8rem 0;
    overflow: hidden;
    color: white;
    position: relative;
}
.mixes-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 10; }
.mixes-tag {
    color: var(--accent); font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; font-size: 0.875rem; display: block; margin-bottom: 0.5rem;
}
.mixes-title {
    font-family: var(--font-head); font-size: 2.5rem; font-weight: 900;
    line-height: 1; text-transform: uppercase;
}
@media (min-width: 768px) { .mixes-title { font-size: 4rem; } }
.mixes-desc {
    color: var(--text-gray); margin-top: 1.5rem; font-size: 1.1rem;
    line-height: 1.6; margin-left: auto; margin-right: auto; max-width: 30rem;
}

/* ===== MIXES TITLE REFINEMENT ===== */

.mixes-title {
    font-family: var(--font-head);
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}

.mixes-desc {
    max-width: 520px;
    margin: 0 auto 3rem auto;
    line-height: 1.5;
    opacity: 0.8;
}

/* Outline aura version */
.mixes-outline {
    position: relative;
    display: inline-block;

    -webkit-text-stroke: 1px var(--accent);
    color: transparent;

    transition:
        color 0.35s ease,
        -webkit-text-stroke 0.35s ease;
}

.mixes-outline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%) scale(0.9);

    width: 115%;
    height: 140%;

    background: radial-gradient(
        circle,
        rgba(253,235,25,0.35) 0%,
        rgba(253,235,25,0.18) 35%,
        rgba(253,235,25,0.08) 55%,
        transparent 75%
    );

    filter: blur(35px);
    opacity: 0;

    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.16,1,0.3,1);

    pointer-events: none;
    z-index: -1;
}

.mixes-outline:hover {
    color: var(--accent);
    -webkit-text-stroke: 0px;
}

.mixes-outline:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.carousel-3d-container {
    position: relative; width: 100%; height: 450px;
    perspective: 1200px; -webkit-perspective: 1200px;
    display: flex; justify-content: center; align-items: center;
}
.carousel-track {
    position: relative; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}

.mix-slide {
    position: absolute; width: 280px; height: 280px;
    background: #1e293b; border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: transform 0.6s, opacity 0.6s;
    overflow: hidden; pointer-events: none;
    transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    transform: translateZ(0); -webkit-transform: translateZ(0);
    will-change: transform;
}
.mix-slide:active { cursor: grabbing; }
@media (min-width: 768px) { .mix-slide { width: 450px; height: 450px; } }

.mix-slide.active {
    opacity: 1;
    transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0);
    z-index: 20;
    box-shadow: 0 0 40px rgba(253,235,25,0.15);
    border: 1px solid rgba(253,235,25,0.4);
    cursor: default; pointer-events: auto;
}
.mix-slide.prev {
    opacity: 0.7;
    transform: translate3d(-280px, 0, -100px) rotateY(35deg) scale(0.85);
    -webkit-transform: translate3d(-280px, 0, -100px) rotateY(35deg) scale(0.85);
    z-index: 10;
}
.mix-slide.next {
    opacity: 0.7;
    transform: translate3d(280px, 0, -100px) rotateY(-35deg) scale(0.85);
    -webkit-transform: translate3d(280px, 0, -100px) rotateY(-35deg) scale(0.85);
    z-index: 10;
}
.mix-slide.far-left {
    transform: translate3d(-560px, 0, -200px) rotateY(40deg) scale(0.7);
    -webkit-transform: translate3d(-560px, 0, -200px) rotateY(40deg) scale(0.7);
    opacity: 0; pointer-events: none;
}
.mix-slide.far-right {
    transform: translate3d(560px, 0, -200px) rotateY(-40deg) scale(0.7);
    -webkit-transform: translate3d(560px, 0, -200px) rotateY(-40deg) scale(0.7);
    opacity: 0; pointer-events: none;
}

@media (min-width: 768px) {
    .mix-slide.prev {
        transform: translate3d(-350px, 0, -120px) rotateY(32deg) scale(0.85);
        -webkit-transform: translate3d(-350px, 0, -120px) rotateY(32deg) scale(0.85);
    }
    .mix-slide.next {
        transform: translate3d(350px, 0, -120px) rotateY(-32deg) scale(0.85);
        -webkit-transform: translate3d(350px, 0, -120px) rotateY(-32deg) scale(0.85);
    }
    .mix-slide.far-left {
        transform: translate3d(-700px, 0, -240px) rotateY(38deg) scale(0.7);
        -webkit-transform: translate3d(-700px, 0, -240px) rotateY(38deg) scale(0.7);
    }
    .mix-slide.far-right {
        transform: translate3d(700px, 0, -240px) rotateY(-38deg) scale(0.7);
        -webkit-transform: translate3d(700px, 0, -240px) rotateY(-38deg) scale(0.7);
    }
}

.mix-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(3px) sepia(100%) hue-rotate(190deg) saturate(200%) brightness(0.6);
    -webkit-filter: blur(3px) sepia(100%) hue-rotate(190deg) saturate(200%) brightness(0.6);
    transform: scale(1.05); transition: 0.5s; pointer-events: none;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    will-change: filter, transform;
}
.mix-slide.active.is-hovering .mix-img,
.mix-slide.active.is-revealed .mix-img {
    filter: none; -webkit-filter: none; transform: scale(1);
}

.state-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    pointer-events: auto; opacity: 1; transition: 0.3s;
    z-index: 200 !important; -webkit-transform: translateZ(0); transform: translateZ(0);
}
.mix-slide.active .state-overlay { opacity: 1; }

.big-play-btn {
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; pointer-events: auto; touch-action: manipulation;
    position: relative; z-index: 999 !important;
    -webkit-transform: translateZ(0); transform: translateZ(0);
}
.big-play-btn:hover, .big-play-btn.is-hover { transform: scale(1.1); }
.big-play-btn svg { pointer-events: none; }
.custom-play-svg {
    width: 70px; height: 70px; fill: white;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); pointer-events: none;
}

.mix-slide .icon-play { display: block; }
.mix-slide .icon-pause { display: none; }

.eq-bars { display: none; align-items: flex-end; gap: 4px; height: 40px; pointer-events: none; }
.bar { width: 6px; background: var(--accent); animation: eq 1s infinite ease-in-out; }
.bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.bar:nth-child(2) { height: 30%; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 90%; animation-delay: 0.4s; }
.bar:nth-child(4) { height: 50%; animation-delay: 0.1s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.mix-slide.is-playing .icon-play { display: none; }
.mix-slide.is-playing .eq-bars { display: flex; }
.mix-slide.is-playing.is-hovering .eq-bars,
.mix-slide.is-playing.is-revealed .eq-bars { display: none; }
.mix-slide.is-playing.is-hovering .icon-pause,
.mix-slide.is-playing.is-revealed .icon-pause { display: block; }

.mix-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(15,23,42,0.95), transparent);
    text-align: center; transition: 0.3s; opacity: 1; pointer-events: none;
    z-index: 220 !important;
}
.mix-slide.active.is-hovering .mix-info,
.mix-slide.active.is-revealed .mix-info { opacity: 0; transform: translateY(20px); }

.mix-name {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.mix-genre {
    color: var(--accent); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body);
}

#mixes-prev, #mixes-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    z-index: 60; color: white; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
#mixes-prev:hover, #mixes-next:hover { background: var(--accent); color: black; border-color: var(--accent); }
#mixes-prev { left: 5%; }
#mixes-next { right: 5%; }
.mixes-btn-container { text-align: center; margin-top: 3rem; position: relative; z-index: 10; }


/* ==========================================================================
   13. PLAYER UI (ORIGINAL v19.1.1)
   ========================================================================== */
.player-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 80px;
    background: #0f172a; border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999; padding: 0 15px; display: flex; flex-direction: column;
    justify-content: center; transform: translateY(100%);
    transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.player-container.active { transform: translateY(0); }
.player-container.minimized { transform: translateY(120%) !important; opacity: 0; pointer-events: none; }
.player-container:not(.active) { pointer-events: none; }

.player-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: 1200px; margin: 0 auto; width: 100%;
}
.player-track-info { display: flex; align-items: center; gap: 12px; width: 30%; min-width: 200px; }
.player-controls { display: flex; flex-direction: row; align-items: center; justify-content: center; width: 40%; gap: 15px; }
.player-extras { display: flex; align-items: center; justify-content: center; gap: 15px; width: 30%; }

.player-cover {
    width: 48px; height: 48px; border-radius: 6px; overflow: hidden;
    background: #1e293b; box-shadow: 0 4px 10px rgba(0,0,0,0.3); flex-shrink: 0;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.player-meta h4 {
    font-size: 0.9rem; color: #fff; margin: 0; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-body);
}
.player-meta span { font-size: 0.75rem; color: #94a3b8; font-weight: 500; font-family: var(--font-body); }

.player-buttons { display: flex; align-items: center; gap: 18px; }
.player-btn-icon {
    background: transparent; border: none; color: #94a3b8; cursor: pointer;
    padding: 0; display: flex; align-items: center; transition: 0.2s;
}
.player-btn-icon:hover { color: #fff; }
.player-btn-icon.active { color: var(--accent) !important; text-shadow: 0 0 8px rgba(253, 235, 25, 0.4); }
.player-btn-icon svg { width: 16px; height: 16px; overflow: visible; }

.player-min-toggle svg { transition: transform 0.2s; }
.player-min-toggle.active svg { transform: rotate(180deg); }

.player-btn-play {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000;
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s; box-shadow: 0 0 15px rgba(255,255,255,0.15);
}
.player-btn-play:hover { transform: scale(1.1); }
.player-btn-play svg { width: 16px; height: 16px; fill: black; margin-left: 2px; }

.player-timer {
    font-size: 0.75rem; color: #64748b; font-family: monospace;
    letter-spacing: 1px; min-width: 40px; text-align: center;
}

.player-volume-wrapper { display: flex; align-items: center; gap: 8px; }
.volume-slider-container input[type=range] {
    -webkit-appearance: none; width: 70px; height: 4px;
    background: rgba(255,255,255,0.1); border-radius: 2px; cursor: pointer;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 100% 100%; background-repeat: no-repeat;
}
.volume-slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; background: #fff;
    border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.5); transition: transform 0.2s;
}
.volume-slider-container input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); }

.player-progress-bar-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.1); cursor: pointer; z-index: 10000; touch-action: none;
}
.player-progress-bar-container:hover { height: 6px; top: -3px; }
.player-progress-bar {
    height: 100%; background: var(--accent); width: 0%; position: relative;
    transition: width 0.1s linear; box-shadow: 0 0 10px rgba(253, 235, 25, 0.6);
}
.player-progress-handle {
    position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px; background: #fff; border-radius: 50%;
    opacity: 0; transition: 0.2s; pointer-events: auto;
}
.player-progress-handle::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%;
}
.player-progress-bar-container:hover .player-progress-handle { opacity: 1; }

.player-close-btn {
    position: absolute; top: 8px; right: 15px; background: transparent; color: #64748b;
    border: none; font-size: 1.5rem; cursor: pointer; line-height: 1; display: none;
    z-index: 10001; width: 40px; height: 25px; padding: 0; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
    .player-container { height: auto; padding: 18px 15px 12px; }
    .player-wrapper { flex-wrap: nowrap; gap: 10px; }
    .player-track-info { width: auto; flex: 1; min-width: 0; }
    .player-cover { width: 42px; height: 42px; }
    .player-controls { width: auto; flex: 0 0 auto; }
    .player-buttons { gap: 15px; }
    .player-timer { display: none; }
    .player-extras { width: auto; flex: 0 0 auto; gap: 12px; }
    .volume-slider-container { display: none; }
    .player-close-btn {
        display: flex; top: -28px; right: 10px; background: #0f172a;
        border-radius: 8px 8px 0 0; padding: 4px 10px;
        border: 1px solid rgba(255,255,255,0.1); border-bottom: none;
    }
    .player-progress-bar-container { height: 6px; }
    .player-progress-bar-container:hover { height: 6px; top: 0; }
    .player-progress-handle { opacity: 1; width: 14px; height: 14px; }
}


/* ==========================================================================
   14. PLAYLIST PANEL (ORIGINAL v19.1.1)
   ========================================================================== */
.playlist-backdrop {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0); opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.playlist-backdrop.active { opacity: 1; pointer-events: auto; }

.playlist-panel {
    position: fixed; top: 0; right: 0; width: 350px; height: 100vh;
    background: #0f172a; border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 10002; transform: translateX(100%); transition: 0.3s;
    display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding-top: 100px;
}
.playlist-panel.open { transform: translateX(0); }

.playlist-header {
    position: absolute; top: 0; left: 0; width: 100%; height: 100px;
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 20px 20px; background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 10;
}
.playlist-header h3 { color: white; margin: 0; font-size: 1.2rem; }

.playlist-header-controls { display: flex; gap: 8px; align-items: center; }
.queue-control-btn {
    background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8; padding: 8px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.queue-control-btn:hover { background: rgba(148, 163, 184, 0.2); border-color: #94a3b8; transform: translateY(-2px); }
.queue-control-btn.active { background: var(--accent); color: #0f172a; border-color: var(--accent); }
.queue-control-btn.active:hover { background: #fef08a; }
#close-playlist { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; padding: 0; margin: 0; }

.playlist-instructions {
    padding: 16px; background: rgba(253, 235, 25, 0.05);
    border-left: 3px solid var(--accent); margin: 12px; border-radius: 8px;
    font-size: 13px; line-height: 1.6; color: #cbd5e1; font-family: var(--font-body);
}
.playlist-instructions strong { color: var(--accent); display: block; margin-bottom: 8px; font-size: 14px; }

.playlist-content { flex: 1; overflow-y: auto; padding: 10px; margin-top: 10px; }

#playlist-list .queue-item {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
    transition: 0.2s; opacity: 0.7; position: relative;
}
#playlist-list .queue-item:hover { background: rgba(253, 235, 25, 0.08); opacity: 1; }
#playlist-list .queue-item.is-current { background-color: rgba(253, 235, 25, 0.05); border-left: 4px solid var(--accent); opacity: 1; }
#playlist-list .queue-item.is-current .q-title { color: var(--accent); font-weight: 800; }

.q-cover { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; overflow: hidden; }
.q-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-state {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s ease;
}
#playlist-list .queue-item:hover .q-state,
#playlist-list .queue-item.is-playing .q-state { opacity: 1; }

.q-icon { width: 20px; height: 20px; fill: white; display: none; }

.q-eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.q-eq .bar { width: 3px; background: var(--accent); animation: qeq 1s infinite ease-in-out; }
.q-eq .bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.q-eq .bar:nth-child(2) { height: 30%; animation-delay: 0.2s; }
.q-eq .bar:nth-child(3) { height: 90%; animation-delay: 0.4s; }
.q-eq .bar:nth-child(4) { height: 50%; animation-delay: 0.1s; }

@keyframes qeq {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

#playlist-list .queue-item.is-current.is-playing .q-eq { display: flex; }
#playlist-list .queue-item:not(.is-playing):hover .q-play { display: block; }
#playlist-list .queue-item.is-current.is-playing:hover .q-eq { display: none; }
#playlist-list .queue-item.is-current.is-playing:hover .q-pause { display: block; }

.q-info { flex: 1; overflow: hidden; }
.q-title {
    display: block; color: white; font-size: 0.9rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-body);
}
.q-artist { display: block; color: #64748b; font-size: 0.75rem; font-weight: 500; font-family: var(--font-body); }

.q-repeat-icon {
    width: 16px; height: 16px; color: #94a3b8; opacity: 0;
    transition: opacity 0.2s, color 0.2s; margin-left: auto; cursor: pointer; flex-shrink: 0;
}
.q-repeat-icon.active { opacity: 1; color: var(--accent); }
.q-repeat-icon:hover { transform: scale(1.1); }
#playlist-list .queue-item.is-current .q-repeat-icon { opacity: 1; }
#playlist-list .queue-item.is-current .q-repeat-icon.active { opacity: 1; }
#playlist-list .queue-item.is-current .q-repeat-icon:hover { opacity: 1; color: #fff; }

.q-remove { background: none; border: none; color: #ef4444; opacity: 0; cursor: pointer; font-size: 1.2rem; padding: 0 10px; }
#playlist-list .queue-item:hover .q-remove { opacity: 1; }
.sortable-ghost { opacity: 0.4; background: rgba(253,235,25,0.1); border: 1px dashed var(--accent); }


/* ==========================================================================
   15. PLAYER MINI WIDGET (ORIGINAL v19.1.1)
   ========================================================================== */
.player-mini {
    position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px;
    border-radius: 8px; background: var(--accent); border: none;
    box-shadow: 0 12px 26px rgba(0,0,0,0.55);
    display: none; align-items: center; justify-content: center;
    z-index: 999999; cursor: pointer;
}
.player-mini .eq-bars { display: flex; height: 18px; gap: 3px; align-items: flex-end; }
.player-mini .bar {
    width: 4px; height: 100%; border-radius: 3px;
    background: rgba(15, 23, 42, 0.9); transform-origin: bottom;
    transform: scaleY(0.35); animation: none;
}
.player-mini.is-playing .bar { animation-name: qeq; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.player-mini.is-playing .bar:nth-child(1) { animation-duration: 0.9s; animation-delay: 0s; }
.player-mini.is-playing .bar:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.15s; }
.player-mini.is-playing .bar:nth-child(3) { animation-duration: 0.8s; animation-delay: 0.3s; }
.player-mini.is-playing .bar:nth-child(4) { animation-duration: 1.2s; animation-delay: 0.05s; }
.player-mini:hover { transform: translateY(-2px); }

/* Show mini widget when player is minimized */
#ferbeatz-player.active.minimized ~ #player-mini { display: flex; }

/* iOS safe area */
@supports (padding: max(0px)) {
    .player-mini { bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
    #btn-toggle-player-visibility { display: none; }
}


/* ==========================================================================
   16. PLAYER MODAL (ORIGINAL v19.1.1)
   ========================================================================== */
.player-modal-overlay {
    position: fixed; inset: 0; z-index: 10005;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.player-modal-overlay.active { opacity: 1; pointer-events: auto; }
.player-modal {
    background: #1e293b; padding: 30px; border-radius: 16px;
    width: 90%; max-width: 400px; text-align: center;
    transform: scale(0.9); transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.player-modal-overlay.active .player-modal { transform: scale(1); }
.pm-title { font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 10px; }
.pm-desc { color: #94a3b8; margin: 0 0 30px; font-size: 0.9rem; }
.pm-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pm-btn { padding: 14px 20px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; transition: 0.2s; }
.pm-btn-primary { background: var(--accent); color: black; }
.pm-btn-primary:hover { background: #fff; transform: scale(1.05); }
.pm-btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.pm-btn-secondary:hover { background: rgba(255,255,255,0.15); }
.pm-cancel { background: none; border: none; color: #64748b; cursor: pointer; padding: 10px; font-size: 0.9rem; }
.pm-cancel:hover { color: white; }


/* ==========================================================================
   17. FERBEATZ VIBES (ORIGINAL v19.1.1)
   ========================================================================== */
#vibes, .section-vibes {
    background-color: var(--bg-deep);
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    color: white;
}

.section-vibes .container {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 10;
}

/* Header */
.section-vibes .section-header { text-align: center; margin-bottom: 4rem; }

.vibes-icon-wrapper {
    display: inline-block; padding: 2px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    border-radius: 50%; margin-bottom: 1rem;
}
.vibes-icon-inner { background: var(--bg-deep); padding: 8px; border-radius: 50%; }

.section-vibes .section-title {
    font-family: var(--font-head); font-size: 2.25rem; font-weight: 900;
    color: white; line-height: 1.1; margin-bottom: 1rem; text-transform: uppercase;
}
@media (min-width: 768px) {
    .section-vibes .section-title { font-size: 3rem; }
}

.section-vibes .section-subtitle {
    color: #94a3b8; font-size: 0.9rem; max-width: 42rem; margin: 0 auto;
}

/* Vibes Grid */
.vibes-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .vibes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vibes-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Vibe Column */
.vibe-column { display: flex; flex-direction: column; gap: 1.5rem; position: relative; }

/* Platform Logos */
.platform-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 700;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em;
    align-self: center; width: fit-content;
}
.platform-logo svg { width: 24px; height: 24px; }
.instagram-logo { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.tiktok-logo { background: #000000; color: #25F4EE; border: 2px solid #25F4EE; }
.youtube-logo { background: #FF0000; color: white; }

/* Vibe Content */
.vibe-content {
    position: relative; width: 100%; aspect-ratio: 9 / 16;
    border-radius: 1rem; overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: all 0.3s ease;
}
.vibe-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(253, 235, 25, 0.3);
}
.vibe-content iframe { width: 100%; height: 100%; border: none; display: block; }

/* Custom embeds (Instagram/TikTok via iframe) */
.vibe-content .vibes-embed { position: absolute; inset: 0; overflow: hidden; }
.vibe-content .vibes-embed iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: none; display: block; transform-origin: center;
}
.vibe-content .vibes-embed--instagram iframe {
    transform: translate(0, var(--fb-vibes-ig-offset, -14%)) scale(var(--fb-vibes-ig-zoom, 1.45));
}
.vibe-content .vibes-embed--tiktok iframe {
    transform: translate(0, var(--fb-vibes-tt-offset, -6%)) scale(var(--fb-vibes-tt-zoom, 1.12));
}
.vibe-content--youtube iframe {
    transform: translate(0, var(--fb-vibes-yt-offset, 0%)) scale(var(--fb-vibes-yt-zoom, 1));
    transform-origin: center top;
}

/* Instagram/TikTok Blockquote Embeds */
.vibe-content .instagram-media {
    max-width: 100% !important; min-width: 100% !important; width: 100% !important;
    height: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
}
.vibe-content .tiktok-embed {
    max-width: 100% !important; min-width: 100% !important; width: 100% !important;
    height: 100% !important; margin: 0 !important; border: 0 !important;
}

/* Placeholder */
.vibes-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #64748b; font-size: 0.875rem; padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* View More Button */
.view-more-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white !important; font-weight: 700; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 0.1em; border-radius: 9999px;
    text-decoration: none !important; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    align-self: center; position: relative; overflow: hidden;
}
.view-more-btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.view-more-btn:hover::before { left: 100%; }
.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
}
.view-more-btn:active { transform: translateY(0); }

/* Loading State */
.vibe-content.loading { position: relative; }
.vibe-content.loading::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 40px; height: 40px;
    border: 3px solid rgba(253, 235, 25, 0.2);
    border-top-color: #fdeb19; border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Vibes Responsive */
@media (max-width: 767px) {
    #vibes, .section-vibes { padding: 4rem 0; }
    .section-vibes .section-header { margin-bottom: 3rem; }
    .section-vibes .section-title { font-size: 2rem; }
    .vibe-content { aspect-ratio: 9 / 14; }
}
@media (max-width: 480px) {
    .section-vibes .section-title { font-size: 1.75rem; }
    .platform-logo { padding: 0.5rem 1rem; font-size: 0.65rem; }
    .platform-logo svg { width: 20px; height: 20px; }
    .view-more-btn { padding: 0.75rem 1.5rem; font-size: 0.7rem; }
}

/* Dark Theme Compat */
.section-vibes * { color-scheme: dark; }
.vibe-content iframe, .vibe-content blockquote { background-color: transparent !important; }

/* Accessibility */
.view-more-btn:focus { outline: 2px solid #fdeb19; outline-offset: 2px; }
.vibe-content:focus-within { border-color: rgba(253, 235, 25, 0.5); box-shadow: 0 0 0 3px rgba(253, 235, 25, 0.1); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Vibes Animation on Scroll */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.vibe-column { animation: fadeInUp 0.6s ease-out; animation-fill-mode: both; }
.vibe-column:nth-child(1) { animation-delay: 0.1s; }
.vibe-column:nth-child(2) { animation-delay: 0.2s; }
.vibe-column:nth-child(3) { animation-delay: 0.3s; }
@media (max-width: 767px) { .vibe-column { animation: none; } }


/* ==========================================================================
   18. FOOTER (ORIGINAL v19.1.1)
   ========================================================================== */
.site-footer {
    background: #0f111a; border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 50px; padding: 80px 0 140px;
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-logo-text { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; max-width: 800px; }
.footer-socials a { color: #94a3b8; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.footer-socials a:hover { color: var(--accent); transform: translateY(-5px); }
.footer-social-icon svg { width: 24px; height: 24px; }
.copyright { color: #555; font-size: 0.8rem; margin-top: 10px; }

@media (max-width: 900px) {
    .site-footer { padding-bottom: 160px !important; padding-top: 60px; }
    .footer-socials { max-width: 340px; margin: 0 auto; gap: 15px 5px; }
    .footer-socials a { flex: 0 0 16%; max-width: 16%; }
}


/* ==========================================================================
   19. RELEASES / SERIES GRID (ORIGINAL v19.1.1)
   ========================================================================== */
.genre-card {
    position: relative; height: 380px; border-radius: 16px; overflow: hidden;
    display: block; text-decoration: none; background: #191d31;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.4s;
}
.genre-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(253,235,25,0.2); }
.genre-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: 0.5s; }
.genre-card:hover .genre-bg { transform: scale(1.1); }
.genre-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.95), transparent 60%); }
.genre-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; z-index: 2; }
.genre-sub { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 8px; }
.genre-name { color: white; font-size: 1.8rem; font-weight: 900; margin: 0; }
.genres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 3rem; }

/* Genre Filter */
.releases-filter-container { text-align: center; position: relative; z-index: 20; margin-bottom: 3rem; margin-top: 2rem; }
.filter-bar {
    display: inline-flex; gap: 10px; background: rgba(255,255,255,0.1);
    padding: 10px; border-radius: 50px; backdrop-filter: blur(10px);
    flex-wrap: wrap; justify-content: center;
}
.filter-btn {
    background: transparent; border: none; color: white; padding: 10px 20px;
    font-weight: 700; text-transform: uppercase; font-size: 0.8rem;
    cursor: pointer; border-radius: 30px; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #000; }


/* ==========================================================================
   20. TOAST NOTIFICATIONS (ORIGINAL v19.1.1)
   ========================================================================== */
#fb-toast {
    position: fixed; bottom: 110px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95); color: #fff;
    padding: 12px 24px; border-radius: 50px; font-size: 14px; font-weight: 700;
    opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999999; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(253,235,25,0.3);
    display: flex; align-items: center; gap: 10px;
}
#fb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ==========================================================================
   21. LOADING OVERLAY (ORIGINAL v19.1.1)
   ========================================================================== */
.fbz-loading {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center;
    background: rgba(5, 10, 20, 0.72);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fbz-loading.is-active { display: flex; }
.fbz-loading__card {
    padding: 22px 26px; border-radius: 18px;
    background: rgba(10, 18, 35, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    text-align: center; min-width: 260px;
}
.fbz-loading__brand { font-weight: 800; letter-spacing: 0.12em; font-size: 12px; opacity: 0.9; margin-bottom: 12px; color: #fff; }
.fbz-loading__text { margin-top: 12px; font-size: 13px; opacity: 0.85; color: #fff; }
.fbz-loading__eq { display: flex; gap: 6px; height: 30px; align-items: flex-end; justify-content: center; }
.fbz-loading__eq span {
    width: 6px; height: 8px; border-radius: 999px;
    background: var(--accent); animation: fbzEq 900ms ease-in-out infinite; opacity: 0.95;
}
.fbz-loading__eq span:nth-child(2) { animation-delay: 120ms; }
.fbz-loading__eq span:nth-child(3) { animation-delay: 240ms; }
.fbz-loading__eq span:nth-child(4) { animation-delay: 360ms; }
.fbz-loading__eq span:nth-child(5) { animation-delay: 480ms; }

@keyframes fbzEq {
    0%, 100% { height: 8px; opacity: 0.55; }
    50% { height: 30px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fbz-loading__eq span { animation: none; height: 18px; }
}


/* ==========================================================================
   22. ADD-ON: EXPERIENCE REDESIGN & AW ANIMATIONS (v19.1.3-Revised)
   ========================================================================== */

/* --- 22.1 WAVE ICON FOR BULLETS --- */
.wave-icon {
    width: 24px; height: 24px; color: var(--accent); flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(253, 235, 25, 0.6));
}

/* --- 22.2 EXPERIENCE GRID REFINEMENTS --- */
/* Sobrescribe estilos específicos de #experience solo si es necesario, 
   pero respetando las fuentes globales */
.exp-label-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-top: 15px; /* Fix para outline cortado */
}
.exp-anim-label {
    /* Usa la fuente global var(--font-head) */
    font-weight: 900;
    font-size: 4rem; 
    line-height: 1.2;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15); 
    position: relative;
    white-space: nowrap;
    opacity: 0.5;
    margin: 0;
    padding-bottom: 5px; 
}
.exp-anim-label::before {
    content: attr(data-text);
    position: absolute; left: 0; top: 0; width: 0; height: 100%;
    color: rgba(255, 255, 255, 0.05); -webkit-text-stroke: 1px var(--accent);
    border-right: 2px solid var(--accent); overflow: hidden;
    animation: fillText 8s linear infinite alternate;
}
@keyframes fillText {
    0% { width: 0; opacity: 0.5; }
    50% { width: 100%; opacity: 1; }
    100% { width: 0; opacity: 0.5; }
}
@media (min-width: 1024px) { 
    .exp-anim-label { font-size: 6rem; margin-left: -5px; } 
}

/* Grid 2x2 para Features en Experience */
.exp-features {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem;
}
@media(min-width: 600px) { .exp-features { grid-template-columns: 1fr 1fr; } }

/* Quote Card Overlay */
.exp-quote-card {
    position: absolute; bottom: -30px; left: 10%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--accent);
    padding: 2rem; border-radius: 12px; z-index: 10; max-width: 350px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); transition: transform 0.4s ease;
}
.exp-collage-inner:hover .exp-quote-card { transform: translateY(-10px); }
.quote-icon {
    font-size: 4rem; color: var(--accent); line-height: 0; opacity: 0.3; 
    position: absolute; top: 20px; left: 10px;
}
.quote-text {
    font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: white; 
    margin: 0; position: relative; z-index: 2; text-transform: uppercase;
}

/* --- 22.3 FERBEATZ SCROLL ANIMATIONS --- */

/* A. Fade Up — paragraphs, containers */
.fbz-fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

/* B. Text Reveal — titles, headings */
.fbz-reveal {
    opacity: 0;
    clip-path: inset(-15% 0 100% 0);
    transform: translateY(30px);
    will-change: opacity, clip-path, transform;
}

/* C. Scale + Blur — cards, images */
.fbz-scale-blur {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(8px);
    will-change: opacity, transform, filter;
}

/* D. Delays (handled by JS stagger) */
.delay-100, .delay-200, .delay-300,
.delay-400, .delay-500, .delay-600 { /* JS reads these */ }


/* ==========================================================================
   23. v19.1.7 PATCHES — Utility Classes, Structural, Social Sidebar
   ========================================================================== */

/* --- 23.1 TEXT UTILITIES --- */
.text-white { color: var(--text-white, #ffffff); }
.hidden-mobile { display: inline; }
@media (max-width: 767px) { .hidden-mobile { display: none; } }

/* --- 23.2 HERO BADGES --- */
.hero-badges {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-bottom: 24px; width: 100%;
}
.hero-line { flex: 1; max-width: 60px; height: 1px; background: rgba(255,255,255,0.3); }
.hero-subtitle { flex-shrink: 0; }
@media (max-width: 767px) {
    .hero-badges { gap: 10px; margin-bottom: 8px; }
    .hero-line { max-width: 30px; }
}

/* --- 23.3 EXPERIENCE: COLLAGE INNER --- */
.exp-collage-inner { position: relative; width: 100%; height: 100%; }

/* --- 23.4 EXPERIENCE: CHECK DESCRIPTION --- */
.exp-check-desc {
    color: var(--text-gray, #94a3b8); font-size: 0.9rem;
    line-height: 1.5; margin: 0; font-family: var(--font-body);
}

/* --- 23.5 SECTION HEADER: Subtitle / Description --- */
.sec-desc {
    color: var(--text-gray, #94a3b8); font-size: 1.05rem; line-height: 1.7;
    max-width: 680px; margin: 1.2rem auto 0; text-align: center;
    font-family: var(--font-body);
}
.stats-header { margin-bottom: 4rem; }
.stats-subtitle {
    font-family: var(--font-body); font-size: 1.1rem;
    color: var(--text-gray, #94a3b8); text-align: center;
    margin-top: 1rem; font-weight: 400;
}

/* --- 23.6 HEADING CONSISTENCY (sec-tag + sec-title) --- */
/* All section tags: yellow accent, uppercase, spaced */
.sec-tag {
    color: var(--accent); font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 1rem;
    font-family: var(--font-body);
}
/* Section titles: .text-outline for yellow stroke variant */
.sec-title .text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}
.sec-title .text-outline:hover {
    color: var(--accent);
    cursor: default;
}

/* --- 23.7 SOCIAL SIDEBAR — Gordo DJ Style (Desktop only) --- */
#social-sidebar { display: none; }

@media (min-width: 1024px) {
    #social-sidebar {
        display: flex; flex-direction: column; align-items: center; gap: 18px;
        position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
        z-index: 900; padding: 16px 8px;
    }
    #social-sidebar::before,
    #social-sidebar::after {
        content: ''; width: 1px; height: 28px;
        background: rgba(255,255,255,0.15);
    }
    #social-sidebar a {
        display: flex; align-items: center; justify-content: center;
        width: 34px; height: 34px;
        color: rgba(255,255,255,0.45);
        transition: color 0.3s ease, transform 0.3s ease;
    }
    #social-sidebar a:hover {
        color: var(--accent); transform: scale(1.25);
    }
    #social-sidebar a svg,
    #social-sidebar a img {
        width: 18px; height: 18px;
    }
}