/* ==========================================================================
   MILLENNIUM FALCK ENTERPRISE (MFE) — PREMIUM CORE STYLE ENGINE v4.0
   DESIGN SYSTEM: "HELSINKI 2080" CYBERPUNK & READABILITY ENGINE
   ========================================================================== */

/* --- Variable Declarations & Design Tokens --- */
:root {
    /* Fonts */
    --mfe-font-title: 'Orbitron', sans-serif;
    --mfe-font-copy: 'Inter', sans-serif;
    
    /* Cosmic void palette */
    --mfe-bg-void: #050508;       /* Pure pitch-black void (page body) */
    --mfe-bg-deep: #0a0a14;       /* Deep space dark-blue (structural rows) */
    --mfe-bg-glass: rgba(10, 10, 18, 0.88); /* Bento frost glass background (darkened for 100% contrast) */
    --mfe-border-glass: rgba(255, 255, 255, 0.08); /* Clean white glass stroke */
    
    /* Accents & Glow Coordinates (The Three Worlds) */
    --mfe-sonic-primary: #9d00ff; /* Sonic Purple */
    --mfe-sonic-glow: rgba(157, 0, 255, 0.45);
    
    --mfe-gaming-primary: #ff007f; /* Gaming Magenta */
    --mfe-gaming-glow: rgba(255, 0, 127, 0.45);
    
    --mfe-synch-primary: #00bcd4; /* Synch Cyan */
    --mfe-synch-glow: rgba(0, 188, 212, 0.45);
    
    --mfe-accent-yellow: #f5ff00; /* Attention highlights */
    --mfe-accent-yellow-glow: rgba(245, 255, 0, 0.35);

    /* Text Colors */
    --mfe-text-bright: #ffffff;
    --mfe-text-muted: #e2e8f0;    /* Boosted from #c8d0e0 for premium visibility */
    --mfe-text-dim: rgba(226, 232, 240, 0.6);
    
    /* Animation Speeds */
    --mfe-transition-fluid: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   1. AGGRESSIVE GLOBAL VOID BACKGROUND ENFORCERS
   ========================================================================== */

/* Force all theme structural content wrappers to pitch-black void */
body, 
html, 
#page, 
#page #main,
#page-content,
#main-content,
.site-main,
.block-content,
.content-area,
.page-title-block,
.page-title-wrapper,
#site-header-wrapper,
.mfe-premium-active,
.mfe-premium-active #page,
.mfe-premium-active #main,
.mfe-premium-active #page-content,
.mfe-premium-active #main-content,
.mfe-premium-active .site-main,
.mfe-premium-active .block-content,
.mfe-premium-active .content-area,
.mfe-premium-active .page-title-block,
.vc_row,
.wpb_row,
.vc_row-has-fill {
    background-color: var(--mfe-bg-void) !important;
    background: var(--mfe-bg-void) !important;
    border-color: transparent !important;
}

/* Custom retro-futuristic neon scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: var(--mfe-bg-void);
}
::-webkit-scrollbar-track {
    background: var(--mfe-bg-deep);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--mfe-synch-primary);
    border: 2px solid var(--mfe-bg-void);
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0, 188, 212, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mfe-gaming-primary);
    box-shadow: inset 0 0 6px rgba(255, 0, 127, 0.8);
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY READABILITY MODULE (FONT SCALE & WEIGHT BOOST)
   ========================================================================== */

/* Force solid weight (400) and large fluid sizes globally to kill theme defaults */
.mfe-premium-active p,
.mfe-premium-active span,
.mfe-premium-active li,
.mfe-premium-active div,
.mfe-premium-active div.styled-subtitle,
.mfe-premium-active div.vc_column_text,
.mfe-premium-active .wpb_text_column p,
.mfe-premium-active .wpb_text_column li {
    font-family: var(--mfe-font-copy) !important;
    font-weight: 400 !important;      /* Boosted from 300 to 400 for crisp text strokes */
    line-height: 1.85 !important;     /* Boosted from 1.75 for maximum breathing space */
}

/* Boosted body typography scale for solid print-like clarity */
.mfe-premium-active p,
.mfe-premium-active .wpb_text_column p,
.mfe-premium-active li,
.mfe-premium-active .wpb_text_column li {
    font-size: clamp(1.025rem, 1.1vw + 0.35rem, 1.35rem) !important; /* Boosted all around (~17px to 22px) */
    color: var(--mfe-text-muted) !important;
}

/* High-Contrast highlights */
.mfe-text-bright {
    color: var(--mfe-text-bright) !important;
    font-weight: 600 !important;
}

/* Headline Fluid Scales Boost */
.mfe-premium-active h1,
.mfe-premium-active .title-h1,
.mfe-premium-active .title-xlarge {
    font-family: var(--mfe-font-title) !important;
    font-size: clamp(2.25rem, 5vw + 0.5rem, 4.5rem) !important; /* Boosted from 1.75rem-3.5rem scale */
    line-height: 1.15 !important;
    letter-spacing: 0.06em !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
    margin-top: 0 !important;
}

.mfe-premium-active h2,
.mfe-premium-active .title-h2,
.mfe-premium-active .title-large {
    font-family: var(--mfe-font-title) !important;
    font-size: clamp(1.6rem, 3.2vw + 0.5rem, 2.85rem) !important; /* Boosted from 1.25rem-2.25rem scale */
    line-height: 1.2 !important;
    letter-spacing: 0.04em !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
}

.mfe-premium-active h3,
.mfe-premium-active .title-h3,
.mfe-premium-active .title-medium {
    font-family: var(--mfe-font-title) !important;
    font-size: clamp(1.25rem, 2vw + 0.4rem, 1.85rem) !important;  /* Boosted from 1.05rem-1.5rem scale */
    line-height: 1.3 !important;
    letter-spacing: 0.04em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
}

.mfe-premium-active h4,
.mfe-premium-active .title-h4,
.mfe-premium-active .title-small {
    font-family: var(--mfe-font-title) !important;
    font-size: clamp(1.05rem, 1.2vw + 0.3rem, 1.4rem) !important; /* Boosted from 0.85rem-1.125rem scale */
    line-height: 1.4 !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
}

/* Glowing text highlights */
.mfe-glow-text {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--mfe-synch-primary), 0 0 25px var(--mfe-synch-glow) !important;
}

/* Trademark superscript system */
.mfe-tm {
    font-size: 0.5em;
    vertical-align: super;
    font-family: var(--mfe-font-copy);
    font-weight: 300;
    letter-spacing: 0;
    opacity: 0.7;
    text-transform: none;
}

/* ==========================================================================
   3. GLOBAL NAVIGATION HEADER OVERHAUL (THE STICKY NAV MODULE)
   ========================================================================== */

/* Styles the header container bar as translucent glass void */
#page .site-header,
#page .site-header.sticky-header,
.site-header {
    background: rgba(5, 5, 8, 0.9) !important;   /* Slightly darker opacity for header items */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2) !important;
    box-shadow: 0 4px 35px rgba(0, 0, 0, 0.65) !important;
    transition: var(--mfe-transition-fluid) !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Force Orbitron title font to menu navigation */
.gem-navigation a,
#primary-menu > li > a,
.primary-navigation a {
    font-family: var(--mfe-font-title) !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;                 /* Boosted from 0.72rem for legibility */
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
    transition: all 0.25s ease !important;
}

/* Dropdown containers general overrides */
.gem-navigation ul.sub-menu,
#primary-menu ul.sub-menu {
    background: rgba(10, 10, 20, 0.98) !important;  /* Ultra dark drop backdrop */
    border-radius: 8px !important;
    padding: 12px 0 !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.gem-navigation ul.sub-menu li a,
#primary-menu ul.sub-menu li a {
    font-family: var(--mfe-font-title) !important;
    font-size: 0.76rem !important;                 /* Boosted from 0.65rem */
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 10px 24px !important;
    transition: all 0.2s ease !important;
}

/* --- Color-Coded Dropdown Active States based on Parent World --- */

/* WORLD 1: SONIC (Music Hub) - PURPLE ACCENTS */
#primary-menu li.menu-item a[href*="/music/"]:hover,
#primary-menu li.menu-item.menu-item-active a[href*="/music/"],
.gem-navigation li.menu-item a[href*="/music/"]:hover {
    color: var(--mfe-sonic-primary) !important;
    text-shadow: 0 0 10px var(--mfe-sonic-glow) !important;
}
/* Sonic sub-menu outline */
#primary-menu li.menu-item a[href*="/music/"] ~ ul.sub-menu,
#primary-menu li.menu-item:hover a[href*="/music/"] ~ ul.sub-menu {
    border: 1px solid var(--mfe-sonic-primary) !important;
    box-shadow: 0 8px 30px rgba(157, 0, 255, 0.35) !important;
}
#primary-menu li.menu-item a[href*="/music/"] ~ ul.sub-menu li a:hover {
    color: var(--mfe-sonic-primary) !important;
    background: rgba(157, 0, 255, 0.12) !important;
}

/* WORLD 2: GAMING (Silly Con Valley) - MAGENTA ACCENTS */
#primary-menu li.menu-item a[href*="/silly-con-valley/"]:hover,
#primary-menu li.menu-item.menu-item-active a[href*="/silly-con-valley/"],
.gem-navigation li.menu-item a[href*="/silly-con-valley/"]:hover {
    color: var(--mfe-gaming-primary) !important;
    text-shadow: 0 0 10px var(--mfe-gaming-glow) !important;
}
/* Gaming sub-menu outline */
#primary-menu li.menu-item a[href*="/silly-con-valley/"] ~ ul.sub-menu,
#primary-menu li.menu-item:hover a[href*="/silly-con-valley/"] ~ ul.sub-menu {
    border: 1px solid var(--mfe-gaming-primary) !important;
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.35) !important;
}
#primary-menu li.menu-item a[href*="/silly-con-valley/"] ~ ul.sub-menu li a:hover {
    color: var(--mfe-gaming-primary) !important;
    background: rgba(255, 0, 127, 0.12) !important;
}

/* WORLD 3: SYNCH & SCORING (Multi-Platform Integration) - CYAN ACCENTS */
#primary-menu li.menu-item a[href*="/synch-scoring/"]:hover,
#primary-menu li.menu-item.menu-item-active a[href*="/synch-scoring/"],
.gem-navigation li.menu-item a[href*="/synch-scoring/"]:hover {
    color: var(--mfe-synch-primary) !important;
    text-shadow: 0 0 10px var(--mfe-synch-glow) !important;
}
/* Synch sub-menu outline */
#primary-menu li.menu-item a[href*="/synch-scoring/"] ~ ul.sub-menu,
#primary-menu li.menu-item:hover a[href*="/synch-scoring/"] ~ ul.sub-menu {
    border: 1px solid var(--mfe-synch-primary) !important;
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.35) !important;
}
#primary-menu li.menu-item a[href*="/synch-scoring/"] ~ ul.sub-menu li a:hover {
    color: var(--mfe-synch-primary) !important;
    background: rgba(0, 188, 212, 0.12) !important;
}

/* Navigation CTA Button (Contact / Business Enquiries anchor) */
.mfe-nav-cta {
    font-family: var(--mfe-font-title) !important;
    font-size: 0.74rem !important;                 /* Boosted from 0.65rem */
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--mfe-synch-primary) !important;
    border: 1px solid rgba(0, 188, 212, 0.6) !important;
    padding: 10px 22px !important;                 /* Increased dimensions */
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    margin-left: 15px !important;
}
.mfe-nav-cta:hover {
    background: var(--mfe-synch-primary) !important;
    color: var(--mfe-bg-void) !important;
    border-color: var(--mfe-synch-primary) !important;
    box-shadow: 0 0 16px rgba(0, 188, 212, 0.65) !important;
}

/* ==========================================================================
   4. GLASSMORPHIC BENTO CARDS & ROW ENGINE
   ========================================================================== */

/* Bento Containers */
.mfe-glass {
    background: var(--mfe-bg-glass) !important;    /* Darkened to #0a0a12 for 100% background contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--mfe-border-glass) !important;
    border-radius: 16px !important;
    padding: 40px !important;                      /* Boosted from 35px */
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55) !important;
    transition: var(--mfe-transition-fluid) !important;
}

.mfe-glass:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7) !important;
}

/* Columns World Overlays */
.mfe-world-sonic { border-left: 5px solid var(--mfe-sonic-primary) !important; }
.mfe-world-sonic:hover { border-left-color: var(--mfe-sonic-primary) !important; }

.mfe-world-gaming { border-left: 5px solid var(--mfe-gaming-primary) !important; }
.mfe-world-gaming:hover { border-left-color: var(--mfe-gaming-primary) !important; }

.mfe-world-synch { border-left: 5px solid var(--mfe-synch-primary) !important; }
.mfe-world-synch:hover { border-left-color: var(--mfe-synch-primary) !important; }

/* Dynamic Glow States on hover */
.mfe-world-sonic:hover { box-shadow: 0 15px 45px rgba(157, 0, 255, 0.22), 0 0 25px rgba(157, 0, 255, 0.08) !important; }
.mfe-world-gaming:hover { box-shadow: 0 15px 45px rgba(255, 0, 127, 0.22), 0 0 25px rgba(255, 0, 127, 0.08) !important; }
.mfe-world-synch:hover { box-shadow: 0 15px 45px rgba(0, 188, 212, 0.22), 0 0 25px rgba(0, 188, 212, 0.08) !important; }

/* Right-Side sunglasses Terminal redesign (force high contrast dark widget backdrop) */
.vc_custom_mfe_music_hero .wpb_column:last-child .vc_column-inner,
.vc_custom_mfe_music_hero .vc_column_container:last-child .vc_column-inner,
.vc_custom_mfe_music_hero .wpb_column:last-child .wpb_wrapper > div {
    background: rgba(157, 0, 255, 0.08) !important;
    border: 2px solid rgba(157, 0, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 25px rgba(157, 0, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 30px !important;
}

/* Pulsing neon glow for sunglasses CAO visualizer */
@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 4px rgba(157, 0, 255, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 16px rgba(157, 0, 255, 0.85)); transform: scale(1.08); }
    100% { filter: drop-shadow(0 0 4px rgba(157, 0, 255, 0.4)); transform: scale(1); }
}
.vc_custom_mfe_music_hero span[style*="font-size:3.5rem"] {
    display: inline-block !important;
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Grid Separator & Headers */
.mfe-label {
    display: inline-block;
    font-family: var(--mfe-font-title);
    font-size: 0.72rem;                           /* Boosted from 0.62rem */
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mfe-synch-primary);
    border: 1px solid rgba(0, 188, 212, 0.3);
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: rgba(0, 188, 212, 0.04);
}

.mfe-label--sonic {
    color: var(--mfe-sonic-primary);
    border-color: rgba(157, 0, 255, 0.3);
    background: rgba(157, 0, 255, 0.04);
}
.mfe-label--gaming {
    color: var(--mfe-gaming-primary);
    border-color: rgba(255, 0, 127, 0.3);
    background: rgba(255, 0, 127, 0.04);
}

.mfe-rule {
    border: none;
    border-top: 1px solid rgba(0, 188, 212, 0.15);
    margin: 0;
}

/* ==========================================================================
   5. PREMIUM GLOW BUTTON MODULE (.MFE-BTN)
   ========================================================================== */
.mfe-btn {
    display: inline-block;
    font-family: var(--mfe-font-title);
    font-size: 0.78rem;                           /* Boosted from 0.68rem */
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mfe-synch-primary);
    border: 1px solid var(--mfe-synch-primary);
    padding: 14px 32px;                           /* Boosted all around */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
    background: transparent;
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.mfe-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mfe-synch-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mfe-btn:hover {
    color: var(--mfe-bg-void) !important;
    box-shadow: 0 0 16px var(--mfe-synch-glow);
    text-decoration: none;
    transform: translateY(-2px);
}

.mfe-btn:hover::after { 
    transform: scaleX(1); 
}

/* Sonic button (Purple) */
.mfe-btn--sonic {
    color: var(--mfe-sonic-primary);
    border-color: var(--mfe-sonic-primary);
}
.mfe-btn--sonic::after { background: var(--mfe-sonic-primary); }
.mfe-btn--sonic:hover { box-shadow: 0 0 16px var(--mfe-sonic-glow); }

/* Gaming button (Pink) */
.mfe-btn--gaming {
    color: var(--mfe-gaming-primary);
    border-color: var(--mfe-gaming-primary);
}
.mfe-btn--gaming::after { background: var(--mfe-gaming-primary); }
.mfe-btn--gaming:hover { box-shadow: 0 0 16px var(--mfe-gaming-glow); }


/* ==========================================================================
   6. INVESTOR STRIPS & COMPONENT MODULES
   ========================================================================== */

/* CTA strip used at page bottoms */
.mfe-cta-strip {
    background: linear-gradient(90deg, rgba(157, 0, 255, 0.06) 0%, rgba(0, 188, 212, 0.06) 100%);
    border-top: 1px solid rgba(0, 188, 212, 0.15);
    border-bottom: 1px solid rgba(0, 188, 212, 0.15);
    padding: 56px 24px;
    text-align: center;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1150px;
}

.mfe-cta-strip__title {
    font-family: var(--mfe-font-title) !important;
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important; /* Boosted sizing */
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--mfe-text-bright) !important;
    margin: 0 0 8px !important;
}

.mfe-cta-strip__sub {
    font-size: 0.95rem !important;                  /* Boosted from 0.85rem */
    color: var(--mfe-text-muted) !important;
    margin: 0 0 28px !important;
    font-weight: 300;
}

/* Latest Activity Columns */
.mfe-latest-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 188, 212, 0.15);
    border-top: 1px solid rgba(0, 188, 212, 0.15);
    border-bottom: 1px solid rgba(0, 188, 212, 0.15);
    max-width: 1150px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
}

.mfe-latest-item {
    background: var(--mfe-bg-void);
    padding: 32px 28px;
    transition: background 0.25s ease;
}

.mfe-latest-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mfe-latest-item__dept {
    font-family: var(--mfe-font-title);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.mfe-latest-item--sonic  .mfe-latest-item__dept { color: var(--mfe-sonic-primary); }
.mfe-latest-item--gaming .mfe-latest-item__dept { color: var(--mfe-gaming-primary); }
.mfe-latest-item--synch  .mfe-latest-item__dept { color: var(--mfe-synch-primary); }

.mfe-latest-item__title {
    font-family: var(--mfe-font-title) !important;
    font-size: 0.95rem !important;                 /* Boosted from 0.85rem */
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.45 !important;
    letter-spacing: 0.03em !important;
    margin: 0 0 8px !important;
    text-transform: none !important;
}

.mfe-latest-item__title a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.mfe-latest-item__title a:hover {
    color: var(--mfe-synch-primary) !important;
}

.mfe-latest-item__meta {
    font-size: 0.78rem !important;                 /* Boosted from 0.72rem */
    color: var(--mfe-text-dim) !important;
    margin: 0 !important;
    font-weight: 300 !important;
}

/* Silly Con Valley page (ID 1934) grey resets */
.page-id-1934 .vc_row[style*="background-color: #f1f4f3"],
.page-id-1934 .vc_row[style*="background-color:#f1f4f3"],
.page-id-1934 .wpb_row.vc_custom_1775413547556 {
    background-color: #0d0d18 !important;
}
.page-id-1934 .vc_custom_1775413547556 p,
.page-id-1934 .vc_custom_1775413547556 li,
.page-id-1934 .vc_custom_1775413547556 .vc_column_text {
    color: var(--mfe-text-muted) !important;
}
.page-id-1934 .gem-quickfinder-item-title { color: #ffffff !important; }
.page-id-1934 .gem-quickfinder-item-text { color: var(--mfe-text-muted) !important; }


/* ==========================================================================
   7. WIDGET SHORTCODES: CASSETTE PLAYER, OS WINDOW & HOVER SYNC
   ========================================================================== */

/* A. Cassette Player CSS overrides */
.mfe-sonic-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 360px;
    background: rgba(14, 16, 26, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 15px var(--mfe-sonic-glow);
    transition: var(--mfe-transition-fluid);
}

.mfe-cassette-deck { display: flex; flex-direction: column; gap: 12px; }

.mfe-cassette-body {
    height: 70px;
    background: #252839;
    border-radius: 6px;
    border: 2px solid #3b3f58;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfe-cassette-label {
    font-family: var(--mfe-font-title);
    font-size: 9px;
    color: var(--mfe-gaming-primary);
    letter-spacing: 1.5px;
    border-bottom: 2px dashed var(--mfe-gaming-primary);
    padding-bottom: 2px;
}

.mfe-cassette-spindles { position: absolute; width: 60%; display: flex; justify-content: space-between; }

.mfe-spindle {
    width: 20px;
    height: 20px;
    background: var(--mfe-bg-void);
    border-radius: 50%;
    border: 3px dashed var(--mfe-sonic-primary);
}

.mfe-spindle.spinning { animation: spin 3s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.mfe-player-controls { display: flex; align-items: center; gap: 10px; }

.mfe-control-btn {
    background: #252839;
    border: 1px solid #3b3f58;
    color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mfe-control-btn:hover {
    background: var(--mfe-sonic-primary);
    border-color: var(--mfe-sonic-primary);
    color: #000;
}

.mfe-track-title {
    font-family: var(--mfe-font-title);
    font-size: 8px;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.mfe-equalizer { display: flex; align-items: flex-end; gap: 4px; height: 25px; justify-content: center; }

.mfe-eq-bar {
    width: 4px;
    height: 2px;
    background: var(--mfe-sonic-primary);
    transition: height 0.1s ease;
}

.mfe-equalizer.active .mfe-eq-bar { animation: eq-bounce 0.8s ease infinite alternate; }
.mfe-equalizer.active .mfe-eq-bar:nth-child(2) { animation-delay: 0.15s; }
.mfe-equalizer.active .mfe-eq-bar:nth-child(3) { animation-delay: 0.3s; }
.mfe-equalizer.active .mfe-eq-bar:nth-child(4) { animation-delay: 0.05s; }
.mfe-equalizer.active .mfe-eq-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes eq-bounce { 0% { height: 2px; } 100% { height: 25px; } }

/* B. SiliconOS 95 CSS overrides */
.mfe-silicon-os-window {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 3px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
    color: #000000;
}

.mfe-os-header { background: #000080; color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-weight: bold; }
.mfe-os-title { font-size: 11px; letter-spacing: 0.5px; }

.mfe-os-controls button {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000;
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 2px;
    cursor: pointer;
}

.mfe-os-menu { display: flex; gap: 12px; padding: 4px 8px; font-size: 11px; border-bottom: 1px solid #808080; }
.mfe-os-body { background: #ffffff; border: 2px solid inset #808080; padding: 15px; min-height: 250px; }
.mfe-os-tabs { display: flex; gap: 2px; border-bottom: 1px solid #808080; margin-bottom: 15px; }

.mfe-tab-btn {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: none;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
}

.mfe-tab-btn.active { background: #ffffff; border-bottom: 1px solid #ffffff; font-weight: bold; transform: translateY(1px); }
.mfe-tab-content { display: none; }
.mfe-tab-content.active { display: block; }

.mfe-heading-os {
    font-family: var(--mfe-font-title) !important;
    font-size: 14px !important;
    color: var(--mfe-gaming-primary) !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.mfe-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.mfe-metric-box { background: #f0f0f0; border: 1px solid #808080; padding: 8px; display: flex; flex-direction: column; }
.mfe-metric-label { font-size: 8px; color: #555555; letter-spacing: 0.5px; margin-bottom: 4px; }

.mfe-metric-val {
    font-family: var(--mfe-font-title);
    font-size: 12px;
    font-weight: 700;
}

.mfe-os-divider { height: 1px; background: #808080; margin: 15px 0; }
.mfe-os-info { font-size: 10px; margin: 0; }
.mfe-card-simulator { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; }
.mfe-card-deck { flex-basis: 45%; display: flex; align-items: center; justify-content: center; }

.mfe-draw-card-btn {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    font-family: var(--mfe-font-title);
    font-weight: bold;
    font-size: 10px;
    padding: 12px;
    cursor: pointer;
    width: 100%;
}
.mfe-draw-card-btn:active {
    border-top: 2px solid #808080; border-left: 2px solid #808080;
    border-right: 2px solid #ffffff; border-bottom: 2px solid #ffffff;
}

.mfe-drawn-card-display { flex-basis: 50%; }
.mfe-pitch-card {
    background: #ffffff; border: 2px solid #808080; border-radius: 6px;
    padding: 10px; min-height: 90px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

.mfe-card-type { font-size: 7px; color: var(--mfe-gaming-primary); font-weight: bold; letter-spacing: 1px; }
.mfe-card-title { font-family: var(--mfe-font-title); font-size: 11px; font-weight: bold; margin: 4px 0; }
.mfe-card-desc { font-size: 9px; color: #333333; text-align: center; margin: 0; }

.mfe-vc-feedback-box { background: #ffffe0; border: 1px solid #808080; padding: 8px 12px; margin-top: 15px; font-size: 11px; }
.mfe-vc-avatar { font-weight: bold; color: #800000; }
.mfe-vc-quote { margin: 4px 0 0 0; font-style: italic; }
.mfe-os-footer { display: flex; justify-content: space-between; font-size: 10px; padding: 4px 8px; border-top: 1px solid #808080; }

/* C. Hover Synch Showcase grid */
.mfe-synch-gallery-container { padding: 10px 0; }
.mfe-synch-section-title { color: var(--mfe-synch-primary) !important; font-size: 16px !important; text-align: center; margin-bottom: 25px !important; }
.mfe-synch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.mfe-synch-tile {
    background: rgba(28, 31, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--mfe-transition-fluid);
}
.mfe-synch-tile:hover {
    border-color: var(--mfe-synch-primary);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.25);
    transform: translateY(-4px);
}

.mfe-synch-video-mock {
    height: 120px;
    background: #1c1f30;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.mfe-synch-tile:nth-child(1) .mfe-synch-video-mock {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('http://millenniumfalck.com/wp-content/uploads/2020/01/blocks-image-22.jpg');
}
.mfe-synch-tile:nth-child(2) .mfe-synch-video-mock {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('http://millenniumfalck.com/wp-content/uploads/2020/01/blocks-image-23.jpg');
}
.mfe-synch-tile:nth-child(3) .mfe-synch-video-mock {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('http://millenniumfalck.com/wp-content/uploads/2020/01/blocks-image-24.jpg');
}

.mfe-tile-play-indicator { font-size: 24px; opacity: 0.3; transition: all 0.3s ease; }
.mfe-synch-tile:hover .mfe-tile-play-indicator { opacity: 1; transform: scale(1.2); color: var(--mfe-synch-primary); }

.mfe-tile-info { padding: 15px; }
.mfe-tile-genre { font-family: var(--mfe-font-title); font-size: 7px; color: var(--mfe-synch-primary); font-weight: 700; letter-spacing: 1px; }
.mfe-tile-title { font-family: var(--mfe-font-title); font-size: 12px !important; color: #ffffff; margin: 4px 0 8px 0 !important; }
.mfe-tile-desc { font-size: 10px; color: #b6c6c9; margin: 0; line-height: 1.4; }

.mfe-glitch-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: transparent; pointer-events: none; }
.mfe-synch-tile:hover .mfe-glitch-overlay {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}


/* ==========================================================================
   8. COMPREHENSIVE MOBILE OPTIMIZATION ENGINE
   ========================================================================== */

@media (max-width: 991px) {
    /* Main navigation container overrides on tablet/medium viewports */
    #page .site-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .mfe-nav-cta {
        margin-left: 8px !important;
        padding: 6px 14px !important;
    }
}

@media (max-width: 768px) {
    /* A. Bento card padding overrides (prevents spacing crush) */
    .gem-textbox-content {
        padding: 32px 24px !important;
    }
    
    .mfe-glass {
        padding: 24px !important;
    }

    /* B. Grid layout column collapses */
    .mfe-col-split,
    .mfe-col-3,
    .mfe-synch-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .mfe-col-split--left,
    .mfe-col-split--right {
        width: 100% !important;
        flex: none !important;
    }
    
    /* C. Horizontal strips layout overrides */
    .mfe-latest-strip {
        grid-template-columns: 1fr !important;
        margin: 20px auto;
        border-radius: 6px;
    }
    
    .mfe-latest-item {
        padding: 24px 20px !important;
        border-bottom: 1px solid rgba(0, 188, 212, 0.15);
    }
    .mfe-latest-item:last-child {
        border-bottom: none;
    }

    .mfe-cta-strip {
        padding: 36px 20px !important;
        margin: 20px auto;
    }
    
    /* D. Mobile Navigation Drawer styling */
    .mobile-menu-layout,
    .dl-menuwrapper,
    .dl-menuwrapper ul,
    #primary-menu.mobile-menu,
    .mobile-navigation {
        background: #050508 !important;
    }

    .mobile-navigation a,
    .dl-menuwrapper li a {
        font-family: var(--mfe-font-title) !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        font-size: 0.95rem !important;                 /* Boosted on mobile drawer */
    }
    
    .mobile-navigation li.menu-item a[href*="/music/"]:hover { color: var(--mfe-sonic-primary) !important; }
    .mobile-navigation li.menu-item a[href*="/silly-con-valley/"]:hover { color: var(--mfe-gaming-primary) !important; }
    .mobile-navigation li.menu-item a[href*="/synch-scoring/"]:hover { color: var(--mfe-synch-primary) !important; }
    
    /* Hamburger Menu Toggle Icon color */
    .menu-toggle .icon-menu,
    .menu-toggle span {
        background-color: #ffffff !important;
    }

    /* E. Section vertical spacings on mobile */
    .mfe-section { padding: 48px 0 !important; }
    .mfe-section--lg { padding: 60px 0 !important; }
    .mfe-section--sm { padding: 28px 0 !important; }

    /* F. Disables card lift jump on mobile tap */
    .mfe-glass:hover {
        transform: none !important;
    }
    
    /* G. Inner elements & buttons responsive wrapping */
    .mfe-btn {
        display: block !important;
        text-align: center !important;
        margin: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* H. Tracklist Rows responsiveness */
    #page .mfe-glass[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    
    #page .mfe-glass[style*="display: flex"] > div:last-child {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    
    #page .mfe-glass[style*="display: flex"] .mfe-btn {
        flex: 1 !important;
        margin: 0 4px !important;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile Viewport tweaks */
    .gem-textbox-content {
        padding: 24px 18px !important;
    }
    
    .mfe-glass {
        padding: 20px 16px !important;
    }
    
    /* Album card labels centering */
    .mfe-premium-active h3 {
        font-size: 1.35rem !important;                 /* Boosted mobile title scale */
    }
    
    /* Stack track row links vertically on extremely tiny displays */
    #page .mfe-glass[style*="display: flex"] > div:last-child {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* ==========================================================================
   9. 4K & HIGH-DEFINITION SCREEN SCALES
   ========================================================================== */
@media (min-width: 2560px) {
    .mfe-container {
        max-width: 1600px;
    }
    .mfe-section { padding: 120px 0 !important; }
    .mfe-section--lg { padding: 180px 0 !important; }
}

/* ==========================================================================
   END OF STYLE ENGINE — HELSINKI 2080 CONTRAST OVERHAUL v4.0
   ========================================================================== */
