/* ============================================
   AIRWAVE - Ghost Radio Theme
   Radio Plato Inspired Design
   ============================================ */

/* CSS Variables */
:root {
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-surface: #111111;
    --color-surface-hover: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-dim: #555555;
    --color-border: #222222;
    --accent-color: #ff3333;
    
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    
    /* Desktop: 72px + 30% = 94px */
    --header-height: 94px;
    /* Mobile header: 72px + 10% = 79px */
    --header-height-mobile: 79px;
    /* Mobile player: 64px + 15% = 74px */
    --mobile-player-height: 74px;
    /* Persistent schedule width */
    --schedule-width: 400px;
    --footer-height: 60px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-mono);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   DESKTOP HEADER (30% larger)
   ============================================ */

.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.mobile-header {
    display: none;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 32px;
    gap: 24px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.site-title-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Header Player */
.header-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.header-album-art {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: 8px;
}

.header-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Play Button */
.header-play-btn {
    width: 62px;
    height: 62px;
    border: 1px solid var(--color-text);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.header-play-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.header-play-btn svg {
    width: 28px;
    height: 28px;
}

.header-play-btn .icon-pause,
.header-play-btn .icon-loading {
    display: none;
}

.header-play-btn.playing .icon-play { display: none; }
.header-play-btn.playing .icon-pause { display: block; }
.header-play-btn.loading .icon-play { display: none; }
.header-play-btn.loading .icon-loading { display: block; animation: spin 1s linear infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Track Info */
.header-track-info {
    flex: 1;
    min-width: 0;
}

.on-air-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.on-air-badge.large {
    font-size: 13px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.header-track-title {
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Volume */
.header-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.volume-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.volume-btn:hover {
    opacity: 1;
}

.volume-btn .icon-muted { display: none; }
.volume-btn.muted .icon-volume { display: none; }
.volume-btn.muted .icon-muted { display: block; }

.volume-slider-wrap {
    width: 100px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider.large {
    height: 6px;
    width: 200px;
}

.volume-slider.large::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
}

.volume-slider.large::-moz-range-thumb {
    width: 18px;
    height: 18px;
}

/* Header Stream Links */
.header-stream-links {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.stream-link {
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.stream-link:hover {
    color: var(--color-text);
}

/* Header Fullscreen Button */
.header-fullscreen-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.header-fullscreen-btn:hover {
    opacity: 1;
}

/* Header Merch Button */
.header-donate-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid var(--color-text);
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-donate-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ============================================
   MOBILE HEADER (10% larger)
   ============================================ */

@media (max-width: 900px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height-mobile);
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        z-index: 100;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
    
    .mobile-header .site-logo img {
        height: 36px;
    }
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-donate-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    z-index: 200;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.side-nav.active {
    transform: translateX(0);
}

.nav-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.nav-close-btn:hover {
    color: var(--color-text);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 16px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Secondary Navigation in Side Menu (Sign up button) */
.nav-secondary {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-secondary .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid var(--color-text);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.nav-secondary .nav-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ============================================
   PERSISTENT SCHEDULE SIDEBAR (Desktop)
   ============================================ */

.persistent-schedule {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: var(--schedule-width);
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schedule-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.schedule-sidebar-header .section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.day-btn {
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all var(--transition-fast);
    text-transform: lowercase;
}

.day-btn:hover {
    color: var(--color-text);
    border-color: var(--color-border);
}

.day-btn.active {
    color: var(--color-text);
    border-color: var(--color-text);
}

.persistent-schedule .schedule-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

@media (max-width: 900px) {
    .persistent-schedule {
        display: none;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main {
    padding-top: var(--header-height);
    margin-right: var(--schedule-width);
    padding-bottom: var(--footer-height);
    transition: opacity 0.15s ease;
}

/* PJAX Page Transitions */
.pjax-loading .site-main {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 900px) {
    .site-main {
        padding-top: calc(var(--header-height-mobile) + var(--mobile-player-height));
        margin-right: 0;
        padding-bottom: 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: var(--schedule-width);
    height: var(--footer-height);
    border-top: 1px solid var(--color-border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    background: var(--color-bg);
    z-index: 100;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.footer-nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-nav {
    margin-bottom: 0;
}

.footer-nav-primary {
    margin-bottom: 0;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-nav-primary a {
    color: var(--color-text);
    font-weight: 500;
}

.footer-nav-primary a:hover {
    opacity: 0.7;
}

/* Style secondary navigation links as buttons (for Sign up, etc.) */
.footer-nav-secondary a {
    padding: 8px 16px;
    border: 1px solid var(--color-text);
    border-radius: 6px;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.footer-nav-secondary a:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Footer Newsletter Button */
.footer-newsletter-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-text);
    border-radius: 6px;
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer-newsletter-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-left: auto;
}

.footer-copyright a {
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.footer-copyright a:hover {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .site-footer {
        position: static;
        right: auto;
        bottom: auto;
        padding: 16px;
        height: auto;
        min-height: auto;
        z-index: 1;
        border-top: 1px solid var(--color-border);
        margin-top: auto;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
    
    .footer-copyright {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    /* Show navigation in footer on mobile */
    .footer-nav-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .footer-nav {
        display: block;
    }
    
    .footer-nav ul {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-nav a {
        font-size: 12px;
    }
}

/* ============================================
   HOMEPAGE
   ============================================ */

.homepage {
    /* Let content determine height naturally */
}

/* ============================================
   MOBILE HORIZONTAL SWIPE LAYOUT
   ============================================ */

/* Hide mobile swipe container on desktop */
.mobile-swipe-container,
.mobile-page-dots {
    display: none;
}

/* Show desktop homepage on desktop */
.desktop-homepage {
    display: block;
}

@media (max-width: 900px) {
    /* Hide desktop homepage on mobile */
    .desktop-homepage {
        display: none;
    }
    
    /* Mobile homepage flex container */
    .homepage {
        display: flex;
        flex-direction: column;
        height: calc(100vh - var(--header-height-mobile) - var(--mobile-player-height) - 44px);
    }
    
    /* Show mobile swipe container */
    .mobile-swipe-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        min-height: 0;
    }
    
    .mobile-swipe-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Each screen */
    .mobile-screen {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow-y: auto;
        position: relative;
    }
    
    .mobile-screen-inner {
        padding: 20px 16px;
        min-height: 100%;
    }
    
    /* Screen-specific styles */
    .mobile-screen-news .section-header {
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-screen-news .section-title {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    /* Swipe hint - inline with title, discrete */
    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: var(--color-text-dim);
        animation: swipeHintBlink 1.5s ease-in-out infinite;
    }
    
    .swipe-hint svg {
        animation: swipeHintArrow 1.5s ease-in-out infinite;
    }
    
    @keyframes swipeHintBlink {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.8; }
    }
    
    @keyframes swipeHintArrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(3px); }
    }
    
    .mobile-screen-news .news-card.featured {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-screen-news .news-card.featured .news-image-link {
        aspect-ratio: 16/10;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .mobile-screen-news .news-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    
    .mobile-screen-news .news-excerpt {
        font-size: 14px;
        color: var(--color-text-muted);
        line-height: 1.5;
        margin-top: 8px;
    }
    
    /* Previous Posts Screen */
    .mobile-screen-posts .section-header {
        margin-bottom: 16px;
    }
    
    .mobile-screen-posts .section-title {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    .mobile-posts-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-post-item {
        background: var(--color-surface);
        border-radius: 10px;
        overflow: hidden;
    }
    
    .mobile-post-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        transition: background var(--transition-fast);
    }
    
    .mobile-post-link:active {
        background: var(--color-surface-hover);
    }
    
    .mobile-post-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        background: var(--color-bg-secondary);
    }
    
    .mobile-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-post-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-post-title {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .mobile-post-date {
        font-size: 12px;
        color: var(--color-text-muted);
    }
    
    .no-posts-message {
        color: var(--color-text-muted);
        font-size: 14px;
        text-align: center;
        padding: 40px 20px;
    }
    
    /* Schedule Screen */
    .mobile-screen-schedule .section-header {
        margin-bottom: 16px;
    }
    
    .mobile-screen-schedule .section-title {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .mobile-screen-schedule .schedule-days {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .mobile-screen-schedule .schedule-list {
        margin-top: 8px;
    }
    
    /* Page Indicator Dots - fixed at bottom above player bar area */
    .mobile-page-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-bg);
        z-index: 50;
        border-top: 1px solid var(--color-border);
    }
    
    /* Hide footer on homepage with swipe layout */
    .home-template .site-footer {
        display: none;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-border);
        transition: all var(--transition-fast);
        cursor: pointer;
    }
    
    .page-dot.active {
        background: var(--color-text);
        width: 24px;
        border-radius: 4px;
    }
}

/* ============================================
   MOBILE POST SWIPE NAVIGATION
   ============================================ */

/* Hide mobile post swipe on desktop */
.mobile-post-swipe-wrapper {
    display: none;
}

@media (max-width: 900px) {
    /* Hide desktop post on mobile */
    .desktop-post {
        display: none;
    }
    
    .mobile-post-swipe-wrapper {
        display: flex;
        flex-direction: column;
        height: calc(100vh - var(--header-height-mobile) - var(--mobile-player-height) - 44px);
    }
    
    .mobile-post-swipe-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        min-height: 0;
    }
    
    .mobile-post-swipe-container::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-post-screen {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow-y: auto;
    }
    
    /* Current post screen */
    .mobile-post-current .post-container {
        padding: 20px 16px;
    }
    
    .mobile-post-current .post-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .mobile-post-current .post-title {
        font-size: 1.75rem;
    }
    
    /* Previous post preview screen */
    .mobile-post-prev {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-bg-secondary);
        padding: 24px;
    }
    
    .mobile-post-preview {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 300px;
        color: var(--color-text);
    }
    
    .mobile-post-preview-image {
        width: 200px;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
        background: var(--color-surface);
    }
    
    .mobile-post-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-post-preview-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-text-muted);
        margin-bottom: 8px;
    }
    
    .mobile-post-preview-title {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .mobile-post-preview-cta {
        font-size: 13px;
        color: var(--accent-color);
    }
    
    /* Post page dots */
    .mobile-post-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-bg);
        z-index: 50;
        border-top: 1px solid var(--color-border);
    }
    
    .post-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-border);
        transition: all var(--transition-fast);
        cursor: pointer;
    }
    
    .post-dot.active {
        background: var(--color-text);
        width: 24px;
        border-radius: 4px;
    }
    
    /* Hide footer on post pages with swipe */
    .post-template .site-footer {
        display: none;
    }
}

/* Adjust for smaller phones */
@media (max-width: 400px) {
    .mobile-screen-news .news-title {
        font-size: 1.2rem;
    }
    
    .mobile-post-image {
        width: 50px;
        height: 50px;
    }
}

/* News Section */
.news-section {
    padding: 24px 32px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-fast);
}

.section-title-link:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.category-tag:hover {
    color: var(--color-text);
    border-color: var(--color-border);
}

/* News Cards */
.news-card {
    margin-bottom: 16px;
}

.news-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

.news-card.featured.single {
    max-width: 100%;
}

.news-card.featured.single .news-image-link {
    aspect-ratio: 4/3;
}

.news-card.featured.single .news-title {
    font-size: 2rem;
}

.news-card.featured.single .news-excerpt {
    font-size: 14px;
    line-height: 1.6;
}

.news-image-link {
    display: block;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: 12px;
}

.news-card.featured .news-image-link {
    aspect-ratio: 4/3;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image {
    transform: scale(1.03);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-tag {
    transition: color var(--transition-fast);
}

.news-tag:hover {
    color: var(--color-text);
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.news-card.small .news-title {
    font-size: 1.125rem;
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .news-section {
        padding: 24px 16px;
    }
    
    .news-card.featured {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-card.featured.single .news-title {
        font-size: 1.5rem;
    }
    
    .news-card.featured.single .news-excerpt {
        font-size: 14px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
}

/* Previous Posts Section */
.previous-posts-section {
    padding: 0 32px 24px;
}

.previous-posts {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.previous-posts-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.previous-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.previous-post-item {
    display: block;
}

.previous-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.previous-post-link:hover {
    padding-left: 8px;
}

.previous-post-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

.previous-post-link:hover .previous-post-name {
    color: var(--accent-color);
}

.previous-post-date {
    font-size: 12px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .previous-posts-section {
        padding: 0 16px 24px;
    }
    
    .previous-posts {
        padding-top: 20px;
    }
    
    .previous-post-name {
        font-size: 13px;
    }
}

/* ============================================
   MOBILE SCHEDULE SECTION (Now part of swipe container)
   ============================================ */

/* Old mobile schedule section - now handled by swipe container */
.mobile-schedule-section {
    display: none;
}

/* ============================================
   SCHEDULE ITEMS
   ============================================ */

.schedule-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: transparent;
    transition: background var(--transition-fast);
}

.schedule-item:hover {
    background: var(--color-surface);
}

.schedule-item.on-air {
    background: var(--color-surface);
    border-left: 3px solid var(--accent-color);
}

.schedule-artwork {
    width: 60px;
    height: 60px;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: 6px;
}

.schedule-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.schedule-on-air-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.schedule-time {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.schedule-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-type {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.schedule-description {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.schedule-loading {
    padding: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ============================================
   MOBILE PLAYER BAR (15% larger)
   ============================================ */

.mobile-player-bar {
    display: none;
}

@media (max-width: 900px) {
    .mobile-player-bar {
        display: flex;
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        height: var(--mobile-player-height);
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        z-index: 100;
        align-items: center;
        padding: 0 12px;
        gap: 12px;
    }
}

.mobile-player-art {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: 6px;
}

.mobile-player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-player-info {
    flex: 1;
    min-width: 0;
}

.mobile-player-info .on-air-badge {
    font-size: 10px;
    margin-bottom: 2px;
}

.mobile-track-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-play-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-text);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-play-btn .icon-pause,
.mobile-play-btn .icon-loading {
    display: none;
}

.mobile-play-btn.playing .icon-play { display: none; }
.mobile-play-btn.playing .icon-pause { display: block; }
.mobile-play-btn.loading .icon-play { display: none; }
.mobile-play-btn.loading .icon-loading { display: block; animation: spin 1s linear infinite; }

/* ============================================
   PLAYER PAGE (New Layout - Artwork Left, Controls Right)
   ============================================ */

.player-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - var(--header-height));
    background: var(--color-bg);
}

/* Left: Artwork Section */
.player-page-artwork-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-right: 1px solid var(--color-border);
}

.player-page-artwork {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: 12px;
}

.player-page-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: Controls Section */
.player-page-controls-section {
    display: flex;
    align-items: center;
    padding: 48px;
}

.player-page-controls {
    width: 100%;
    max-width: 400px;
}

.player-page-controls .on-air-badge {
    margin-bottom: 16px;
}

/* Playlist Badge */
.playlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 16px;
}

.playlist-badge .live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.player-page-track {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* Play Button Row */
.player-page-play-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.player-page-play-btn {
    width: 72px;
    height: 72px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    background: transparent;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.player-page-play-btn:hover {
    background: var(--accent-color);
    color: var(--color-bg);
}

.player-page-play-btn .icon-pause,
.player-page-play-btn .icon-loading {
    display: none;
}

.player-page-play-btn.playing .icon-play { display: none; }
.player-page-play-btn.playing .icon-pause { display: block; }
.player-page-play-btn.loading .icon-play { display: none; }
.player-page-play-btn.loading .icon-loading { display: block; animation: spin 1s linear infinite; }

/* Volume Control in Player Page */
.player-page-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.player-page-volume .volume-slider {
    flex: 1;
    max-width: 200px;
}

/* Stream Links Row */
.player-page-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-page-links {
    display: flex;
    gap: 8px;
}

.player-page-links .stream-link {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-text);
    border-right: 1px solid var(--color-border);
}

.player-page-links .stream-link:last-child {
    border-right: none;
}

.player-page-links .stream-link:hover {
    opacity: 0.7;
}

.player-page-eq {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.player-page-eq:hover {
    opacity: 1;
}

/* Player Page Mobile */
@media (max-width: 900px) {
    .player-page {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: calc(var(--mobile-player-height) + 50px);
    }
    
    .player-page-artwork-section {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .player-page-artwork {
        max-width: 300px;
    }
    
    .player-page-controls-section {
        padding: 24px;
    }
    
    .player-page-controls {
        max-width: 100%;
    }
    
    .player-page-track {
        font-size: 1.25rem;
    }
    
    .player-page-play-btn {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   POST / PAGE TEMPLATES
   ============================================ */

.page-container,
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 32px;
}

.post-header {
    margin-bottom: 32px;
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta a {
    transition: color var(--transition-fast);
}

.post-meta a:hover {
    color: var(--color-text);
}

.post-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.post-feature-image {
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 12px;
}

.post-feature-image img {
    width: 100%;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2em 0 1em;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 3px solid var(--color-border);
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Ghost Koenig Editor Cards */
.kg-width-wide {
    max-width: 1000px;
    margin-left: calc(50% - 500px);
    margin-right: calc(50% - 500px);
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-image-card,
.kg-gallery-card {
    margin: 2em 0;
}

.kg-image-card img {
    width: 100%;
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-gallery-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-embed-card {
    margin: 2em 0;
}

.kg-embed-card iframe {
    width: 100%;
}

.kg-bookmark-card {
    margin: 2em 0;
}

.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.kg-bookmark-content {
    flex: 1;
    padding: 20px;
}

.kg-bookmark-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
}

.kg-bookmark-thumbnail {
    width: 200px;
    min-height: 160px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-callout-card {
    margin: 2em 0;
    padding: 20px;
    background: var(--color-surface);
    display: flex;
    gap: 16px;
}

.kg-callout-emoji {
    font-size: 1.25rem;
}

.kg-callout-text {
    flex: 1;
}

.kg-toggle-card {
    margin: 2em 0;
    border: 1px solid var(--color-border);
}

.kg-toggle-heading {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kg-toggle-content {
    padding: 0 20px 16px;
}

.kg-file-card {
    margin: 2em 0;
}

.kg-file-card-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
}

.kg-file-card-contents {
    flex: 1;
}

.kg-file-card-title {
    font-weight: 600;
}

.kg-file-card-metadata {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.kg-audio-card,
.kg-video-card {
    margin: 2em 0;
}

.kg-product-card {
    margin: 2em 0;
    border: 1px solid var(--color-border);
    padding: 24px;
}

.kg-button-card {
    margin: 2em 0;
}

.kg-button-card a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.kg-button-card a:hover {
    opacity: 0.8;
}

.kg-header-card {
    margin: 2em 0;
    padding: 48px 24px;
    text-align: center;
}

.kg-header-card h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.kg-header-card h3 {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .kg-width-wide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .page-container,
    .post-container {
        padding: 32px 16px;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .kg-bookmark-container {
        flex-direction: column;
    }
    
    .kg-bookmark-thumbnail {
        width: 100%;
        min-height: 200px;
        order: -1;
    }
}

/* ============================================
   ARCHIVE PAGES (Tag, Author)
   ============================================ */

.archive-container {
    padding: 48px 32px;
}

.archive-header {
    margin-bottom: 48px;
}

.archive-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.archive-description {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.archive-card {
    background: var(--color-surface);
    transition: background var(--transition-fast);
}

.archive-card:hover {
    background: var(--color-surface-hover);
}

.archive-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-content {
    padding: 20px;
}

.archive-card-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.archive-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.archive-card-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .archive-container {
        padding: 32px 16px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 48px 32px;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.1;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--color-text);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.error-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
}

.pagination a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--color-text);
}

.pagination .page-number {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */

/* Newsletter Button in Side Nav */
.nav-newsletter {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--color-text);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Newsletter Modal */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.newsletter-modal-content {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 48px;
    max-width: 440px;
    width: 90%;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.newsletter-modal.active .newsletter-modal-content {
    transform: translateY(0);
}

.newsletter-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.newsletter-close-btn:hover {
    color: var(--color-text);
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-text);
}

.newsletter-input::placeholder {
    color: var(--color-text-dim);
}

.newsletter-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.newsletter-submit:hover {
    opacity: 0.85;
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    font-size: 13px;
    text-align: center;
    display: none;
}

.newsletter-error {
    color: var(--accent-color);
}

.newsletter-success {
    color: #4ade80;
}

/* Footer Newsletter (optional inline version) */
.footer-newsletter {
    margin-bottom: 24px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
}

.footer-newsletter-form .newsletter-input {
    flex: 1;
}

.footer-newsletter-form .newsletter-submit {
    width: auto;
    padding: 14px 20px;
}

@media (max-width: 600px) {
    .newsletter-modal-content {
        padding: 32px 24px;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   DEDICATED MOBILE FOOTER
   ============================================ */

.mobile-footer {
    display: none;
}

@media (max-width: 900px) {
    /* Show mobile footer */
    .mobile-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        z-index: 98;
    }
    
    .mobile-footer-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 16px;
        gap: 12px;
    }
    
    .mobile-footer-nav {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mobile-footer-nav::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-footer-nav a {
        font-size: 12px;
        color: var(--color-text-muted);
        white-space: nowrap;
        transition: color var(--transition-fast);
    }
    
    .mobile-footer-nav a:hover {
        color: var(--color-text);
    }
    
    .mobile-footer-player-link {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-color);
        border-radius: 50%;
        color: var(--color-bg);
        flex-shrink: 0;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
    }
    
    .mobile-footer-player-link:hover {
        transform: scale(1.05);
    }
    
    .mobile-footer-player-link:active {
        transform: scale(0.95);
    }
    
    .mobile-footer-copyright {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-footer-nav {
        gap: 12px;
    }
    
    .mobile-footer-nav a {
        font-size: 11px;
    }
}

/* ============================================
   DEDICATED MOBILE PLAYER PAGE
   ============================================ */

.mobile-player-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 150;
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 24px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

/* Close Button */
.mobile-player-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 50%;
    color: var(--color-text);
    z-index: 10;
    transition: background var(--transition-fast);
}

.mobile-player-close:hover {
    background: var(--color-surface-hover);
}

/* Main Content */
.mobile-player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Artwork */
.mobile-player-artwork-wrap {
    width: 100%;
    max-width: 280px;
}

.mobile-player-artwork {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mobile-player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Track Info */
.mobile-player-track-info {
    text-align: center;
    width: 100%;
}

.mobile-player-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}

.mobile-player-badge .live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.mobile-player-track-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Controls */
.mobile-player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.mobile-player-main-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    background: transparent;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-player-main-btn:hover,
.mobile-player-main-btn:active {
    background: var(--accent-color);
    color: var(--color-bg);
}

.mobile-player-main-btn .icon-pause,
.mobile-player-main-btn .icon-loading {
    display: none;
}

.mobile-player-main-btn.playing .icon-play { display: none; }
.mobile-player-main-btn.playing .icon-pause { display: block; }
.mobile-player-main-btn.loading .icon-play { display: none; }
.mobile-player-main-btn.loading .icon-loading { display: block; animation: spin 1s linear infinite; }

/* Volume */
.mobile-player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.mobile-player-volume-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.mobile-player-volume-btn:hover {
    opacity: 1;
}

.mobile-player-volume-btn .icon-muted { display: none; }
.mobile-player-volume-btn.muted .icon-volume { display: none; }
.mobile-player-volume-btn.muted .icon-muted { display: block; }

.mobile-player-volume-slider-wrap {
    flex: 1;
}

.mobile-player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    cursor: pointer;
}

.mobile-player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
}

.mobile-player-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Stream Links */
.mobile-player-stream-links {
    display: flex;
    gap: 12px;
}

.mobile-player-stream-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-surface);
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.mobile-player-stream-link:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

/* Station Info */
.mobile-player-station {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.mobile-player-station-logo {
    height: 32px;
    width: auto;
    opacity: 0.5;
}

.mobile-player-station-name {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Hide mobile player bar on mobile player page */
.page-mobile-player .mobile-player-bar,
.page-mobile-player .mobile-footer,
.page-mobile-player .site-header,
.page-mobile-player .mobile-header {
    display: none !important;
}

/* Hide desktop elements on mobile player page */
.page-mobile-player .site-main {
    padding: 0;
    margin: 0;
}

/* Responsive adjustments for very small screens */
@media (max-height: 600px) {
    .mobile-player-page {
        padding: 16px;
    }
    
    .mobile-player-artwork-wrap {
        max-width: 200px;
    }
    
    .mobile-player-content {
        gap: 16px;
    }
    
    .mobile-player-main-btn {
        width: 64px;
        height: 64px;
    }
    
    .mobile-player-main-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 901px) {
    /* On desktop, redirect to regular player page or hide mobile player page */
    .mobile-player-page {
        display: none;
    }
}
