* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --dark-bg: #000000;
    --text-primary: #ffffff;
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --mosaic-bg: #1a1a1a;
}

/* Light mode (inverted colors) */
body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --mosaic-bg: #f5f5f5;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 300;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.lmhi-home {
    background: var(--bg-color);
    color: var(--text-color);
}

/* NIGHT MODE TOGGLE BUTTON */
.night-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
}

body.light-mode .night-mode-toggle {
    background: rgba(255, 255, 255, 0.8);
}

.night-mode-toggle:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
}

.night-mode-toggle:active {
    transform: scale(0.95);
}

.night-mode-toggle svg {
    transition: transform 0.3s ease;
}

body.light-mode .night-mode-toggle svg {
    transform: rotate(180deg);
}

/* PERFORMANCE: Preload critical fonts */
@font-face {
    font-family: 'Bebas Neue';
    font-display: swap;
}

/* SCROLL ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Fade-in on scroll for sections */
.content-section {
    animation: fadeInUp 0.6s ease-out;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* TYPOGRAPHY UTILITIES - SHARED SYSTEM */
.heading-xl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.heading-l {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.heading-m {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.label-xs {
    font-family: 'Roboto', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: color 0.3s ease;
}

/* CARD STYLING - UNIFIED SYSTEM */
.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* TOP RADIO LINK */
.top-radio-link {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

/* NOW PLAYING - UNIFIED SYSTEM */
.now-playing-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.now-playing-widget:hover {
    opacity: 0.7;
}

.now-playing-widget.hidden {
    display: none;
}

.now-playing-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: color 0.3s ease;
}

.now-playing-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.radio-top-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.3s ease;
    display: block;
    text-align: center;
}

.radio-top-link:hover {
    opacity: 0.7;
}

/* HERO - UNIFIED SPACING */
.hero {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: border-color 0.3s ease;
}

.hero-title {
    margin-bottom: 16px;
}

.hero-title,
.hero-title.heading-xl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.hero-location {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

/* CONTENT SECTIONS - UNIFIED SPACING */
.content-section {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.content-section:last-child {
    border-bottom: none;
}

.celebration-section {
    border-bottom: none;
    margin-top: 40px;
}

.section-title {
    margin-bottom: 24px;
}

.section-title,
.section-title.heading-l {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.section-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.05em;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.section-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.section-link:hover {
    opacity: 0.7;
}

/* PLAYLISTS */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.playlist-card {
    width: 100%;
}

/* PUBLISHING MOSAIC */
.publishing-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin: 40px auto 32px;
    max-width: 1000px;
}

.mosaic-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.mosaic-item:nth-child(1) { animation-delay: 0.1s; }
.mosaic-item:nth-child(2) { animation-delay: 0.15s; }
.mosaic-item:nth-child(3) { animation-delay: 0.2s; }
.mosaic-item:nth-child(4) { animation-delay: 0.25s; }
.mosaic-item:nth-child(5) { animation-delay: 0.3s; }
.mosaic-item:nth-child(6) { animation-delay: 0.35s; }
.mosaic-item:nth-child(7) { animation-delay: 0.4s; }
.mosaic-item:nth-child(8) { animation-delay: 0.45s; }
.mosaic-item:nth-child(9) { animation-delay: 0.5s; }
.mosaic-item:nth-child(10) { animation-delay: 0.55s; }
.mosaic-item:nth-child(11) { animation-delay: 0.6s; }
.mosaic-item:nth-child(12) { animation-delay: 0.65s; }
.mosaic-item:nth-child(13) { animation-delay: 0.7s; }
.mosaic-item:nth-child(14) { animation-delay: 0.75s; }
.mosaic-item:nth-child(15) { animation-delay: 0.8s; }
.mosaic-item:nth-child(n+16) { animation-delay: 0.85s; }

.mosaic-item:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.mosaic-artwork {
    width: 100%;
    aspect-ratio: 1;
    background: var(--mosaic-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.mosaic-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mosaic-item:hover .mosaic-artwork {
    transform: scale(1.02);
}

.mosaic-item:hover .mosaic-artwork img {
    transform: scale(1.05);
}

/* Hover overlay removed - keeping only artwork scale effect */

.mosaic-info {
    text-align: left;
}

.mosaic-track {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.mosaic-artist {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* ROSTER */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px auto 24px;
    max-width: 1000px;
    align-items: stretch;
}

.roster-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    background: var(--bg-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    height: 100%;
}

.roster-item:nth-child(1) { animation-delay: 0.1s; }
.roster-item:nth-child(2) { animation-delay: 0.2s; }
.roster-item:nth-child(3) { animation-delay: 0.3s; }
.roster-item:nth-child(4) { animation-delay: 0.4s; }

.roster-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.light-mode .roster-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.roster-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.roster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.roster-item:hover .roster-image img {
    transform: scale(1.08);
    transition: transform 0.4s ease;
}

.roster-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1.2;
    padding: 16px 24px 0;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.roster-role {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 0 24px;
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.roster-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.roster-credits {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-color);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    line-height: 1.6;
    opacity: 0.9;
    padding: 0 24px 20px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.roster-socials .social-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.roster-socials .social-link:hover {
    opacity: 0.7;
}

/* CONTACT */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .playlist-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Ensure minimum touch target size (44x44px) */
    .mosaic-item,
    .roster-item,
    .control-btn,
    .radio-top-link,
    .contact-link,
    .social-link,
    .roster-socials .social-link {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Improve touch feedback */
    .mosaic-item:active,
    .roster-item:active {
        transform: scale(0.98);
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .mosaic-item:hover,
        .roster-item:hover {
            transform: none;
            opacity: 1;
        }
    }
    
    .container {
        padding: 40px 20px;
    }
    
    .hero {
        margin-bottom: 60px;
        padding-bottom: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle,
    .hero-location {
        font-size: 0.85rem;
    }
    
    .content-section {
        margin-bottom: 60px;
        padding-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .section-text {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .playlist-grid {
        gap: 24px;
    }
    
    .publishing-mosaic {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .roster-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    .roster-name {
        font-size: 1.75rem;
        padding: 16px 20px 0;
    }
    
    .roster-role {
        padding: 0 20px;
    }
    
    .roster-socials {
        padding: 12px 20px;
    }
    
    .roster-credits {
        padding: 0 20px 24px;
    }
    
    /* Hide now playing ticker on mobile */
    .now-playing-widget {
        display: none !important;
    }
    
    /* Night mode toggle on mobile */
    .night-mode-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .night-mode-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 0.85rem;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}
