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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    /* Prevent pull-to-refresh and overscroll on mobile */
    overscroll-behavior: none;
    /* Disable text selection for better touch experience */
    -webkit-user-select: none;
    user-select: none;
    /* Improve tap responsiveness on iOS */
    -webkit-tap-highlight-color: transparent;
    /* Prevent accidental zoom on double-tap */
    touch-action: manipulation;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

/* ========== TOP AUTH NOTICE ========== */
.top-auth-notice {
    width: 100%;
    max-width: 600px;
    background: rgba(29, 185, 84, 0.1);
    border: 2px solid rgba(29, 185, 84, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    animation: slideDown 0.4s ease-out;
}

.top-auth-notice p {
    color: #1db954;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RADIO BODY ========== */
.radio {
    width: 600px;
    max-width: 95vw;
    background: linear-gradient(145deg, #3a2d28, #2d2420);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 50px rgba(255, 183, 77, 0.1);
    position: relative;
    border: 3px solid #1a1410;
}

.radio::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 25px;
    border: 1px solid rgba(139, 90, 43, 0.3);
    pointer-events: none;
}

/* ========== SPEAKER GRILLE ========== */
.speaker-grille {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.grille-line {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.4) 5%, 
        rgba(0, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.4) 95%, 
        transparent 100%);
    border-radius: 2px;
}

.top-grille {
    margin-bottom: 25px;
}

.bottom-grille {
    margin-top: 25px;
}

/* ========== SCREEN ========== */
.screen {
    background: linear-gradient(180deg, #0d1b0d 0%, #000000 100%);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 
        inset 0 4px 15px rgba(0, 0, 0, 0.8),
        inset 0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 5px rgba(0, 0, 0, 0.3);
    border: 3px solid #1a1410;
    position: relative;
    overflow: hidden;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    opacity: 0.3;
}

.screen-content {
    position: relative;
    z-index: 1;
}

.brand {
    text-align: center;
    color: #ff6b35;
    font-size: 14px;
    letter-spacing: 8px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transition: opacity 0.3s ease;
}

.year-display {
    text-align: center;
    font-size: 56px;
    font-weight: bold;
    color: #39ff14;
    text-shadow: 
        0 0 20px rgba(57, 255, 20, 0.8),
        0 0 40px rgba(57, 255, 20, 0.4);
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    margin: 20px 0;
    transition: opacity 0.3s ease;
}

/* ========== STATION INDICATOR ========== */
.station-indicator {
    position: relative;
    height: 40px;
    margin: 20px 0;
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.indicator-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #ff6b35 0%, 
        #f7931e 25%, 
        #ffd700 50%, 
        #f7931e 75%, 
        #ff6b35 100%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.indicator-marker {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 3px;
    height: 30px;
    background: #39ff14;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    transition: left 0.1s ease;
    pointer-events: none;
    z-index: 1;
}

.frequency-labels {
    display: flex;
    justify-content: space-between;
    color: #ff6b35;
    font-size: 11px;
    margin-top: 10px;
    opacity: 0.7;
}

/* ========== CONTROLS ========== */
.controls {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    margin-top: 30px;
    gap: 20px;
    padding: 0 20px;
}

.dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 120px;
}

.dial-label {
    color: #ff6b35;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.dial {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #2d2420, #1a1410);
    border-radius: 50%;
    box-shadow: 
        inset 0 4px 10px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: grab;
    transition: transform 0.05s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial:hover {
    box-shadow: 
        inset 0 4px 10px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(255, 255, 255, 0.1),
        0 0 15px rgba(255, 107, 53, 0.3);
}

.dial:active {
    cursor: grabbing;
}

.dial-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 35%;
    background: #ff6b35;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.8);
}

/* Power icon */
.power-icon {
    font-size: 32px;
    color: #ff6b35;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* ========== PLAY BUTTON ========== */
.play-button {
    /* Reset button defaults and inherit dial styling */
    border: none;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
}

.play-icon {
    width: 32px;
    height: 32px;
    color: #ff6b35;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.8));
    transition: all 0.2s ease;
    pointer-events: none;
}

/* ========== GENRE PRESETS ========== */
.genre-presets {
    margin-top: 25px;
    padding: 0 20px;
}

.preset-label {
    text-align: center;
    color: #ff6b35;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 12px;
    opacity: 0.8;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.preset-btn {
    background: rgba(45, 36, 32, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #ff6b35;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    touch-action: manipulation;
    user-select: none;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.6);
    background: rgba(45, 36, 32, 1);
    transform: translateY(-1px);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    color: #ffd700;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 107, 53, 0.4);
}

.preset-btn.active::before {
    background: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
}

/* Fade in/out animation for preset changes */
.preset-buttons.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.preset-buttons.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* ========== LED INDICATOR ========== */
/* ========== ANTENNA & LED ========== */
.antenna {
    position: absolute;
    top: -78px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Base mount */
.antenna-base {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #888, #444);
    border-radius: 2px 2px 0 0;
    border: 1px solid #333;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.6),
        inset -1px -1px 2px rgba(0, 0, 0, 0.4);
}

/* Telescoping segments */
.antenna-segment {
    position: relative;
    background: linear-gradient(to right, #666, #999, #666);
    box-shadow: 
        inset 1px 0 1px rgba(255, 255, 255, 0.3),
        1px 0 2px rgba(0, 0, 0, 0.5);
}

/* Grooves between segments */
.segment-groove {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    border-top: 1px solid rgba(0, 0, 0, 0.4);
}

/* Segment 1 - thickest (bottom) */
.antenna-segment.segment-1 {
    width: 6px;
    height: 22px;
}

/* Segment 2 - middle */
.antenna-segment.segment-2 {
    width: 5px;
    height: 20px;
}

/* Segment 3 - thinnest */
.antenna-segment.segment-3 {
    width: 4px;
    height: 18px;
}

/* Tapered tip */
.antenna-tip {
    width: 3px;
    height: 10px;
    background: linear-gradient(to bottom, #777, #444);
    border-radius: 1.5px 1.5px 0 0;
    box-shadow: 
        inset 0.5px 0 0.5px rgba(255, 255, 255, 0.2),
        0.5px 0 1px rgba(0, 0, 0, 0.5);
}

.led-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 5;
}

.led-indicator.active {
    opacity: 1;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.9),
        0 0 35px rgba(255, 0, 0, 0.5),
        0 0 50px rgba(255, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(255, 0, 0, 0.9),
            0 0 35px rgba(255, 0, 0, 0.5),
            0 0 50px rgba(255, 0, 0, 0.3),
            inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.7),
            0 0 25px rgba(255, 0, 0, 0.3),
            0 0 35px rgba(255, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
}

/* ========== PLAYLIST CONTAINER ========== */
.playlist-container {
    width: 100%;
    max-width: 700px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    flex-direction: column;
    display: none;
    margin-bottom: 20px;
}

.playlist-container.show {
    display: flex;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.playlist-header h2 {
    color: #ff6b35;
    font-size: 24px;
    font-weight: bold;
}

.close-button {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Better touch target */
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.close-button:hover {
    transform: rotate(90deg);
    color: #ff4500;
}

/* ========== AUTH NOTICE ========== */
.auth-notice {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-notice p {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 14px;
}

.spotify-button {
    background: #1db954;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.3);
    /* Better touch target */
    min-height: 44px;
    touch-action: manipulation;
}

.spotify-button:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 185, 84, 0.5);
}

/* ========== PLAYLIST CONTENT ========== */
.playlist-content {
    flex: 1;
    margin-bottom: 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #ff6b35;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Add padding to bottom to prevent jitter */
    padding-bottom: 10px;
}

.track-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.track-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
}

.track-number {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
    min-width: 30px;
}

.track-album-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

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

.track-info {
    flex: 1;
    min-width: 0;
    /* Allow text selection in track info */
    -webkit-user-select: text;
    user-select: text;
}

.track-name {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: #aaa;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== PLAYLIST ACTIONS ========== */
.playlist-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.action-button {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Better touch targets */
    min-height: 44px;
    touch-action: manipulation;
}

.create-button {
    background: #1db954;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.3);
}

.create-button:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 185, 84, 0.5);
}

.create-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.open-button {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.open-button:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.5);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    body {
        padding: 5px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 10px;
    }

    .container {
        gap: 15px;
    }

    .top-auth-notice {
        padding: 12px 15px;
        border-radius: 12px;
        margin: 0 5px;
    }

    .top-auth-notice p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .logout-notice {
        padding: 8px 15px;
        border-radius: 6px;
        margin: 0 5px 15px 5px;
        gap: 12px;
    }

    .logout-notice p {
        font-size: 13px;
    }

    .logout-button {
        background: transparent;
        color: #ff6b35;
        border: 1px solid rgba(255, 107, 53, 0.5);
        border-radius: 4px;
        padding: 4px 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 12px;
    }

    .radio {
        padding: 20px 15px 15px;
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
    }

    .radio::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 18px;
    }

    .screen {
        padding: 15px 12px;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .brand {
        font-size: 10px;
        letter-spacing: 5px;
        margin-bottom: 10px;
    }

    .year-display {
        font-size: 44px;
        letter-spacing: 3px;
        margin: 12px 0;
    }

    .station-indicator {
        height: 35px;
        margin: 15px 0 10px;
    }

    .indicator-marker {
        height: 25px;
    }

    .frequency-labels {
        font-size: 9px;
        margin-top: 8px;
    }

    /* Cleaner speaker grilles */
    .speaker-grille {
        gap: 5px;
        margin: 10px 0;
    }

    .top-grille {
        margin-bottom: 15px;
    }

    .bottom-grille {
        margin-top: 15px;
    }

    .grille-line {
        height: 2px;
    }

    /* Tighter controls layout */
    .controls {
        flex-direction: row;
        gap: 12px;
        justify-content: space-evenly;
        align-items: flex-end;
        margin-top: 20px;
        padding: 0 12px;
    }

    .dial-container {
        flex: 1;
        gap: 6px;
        max-width: none;
    }

    .dial-label {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .dial {
        width: 60px;
        height: 60px;
    }

    .dial-indicator {
        top: 8px;
        height: 32%;
    }

    .power-icon {
        font-size: 26px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-icon {
        width: 28px;
        height: 28px;
    }

    /* LED smaller on mobile */
    .led-indicator {
        width: 10px;
        height: 10px;
        top: 15px;
        right: 15px;
    }

    /* Playlist optimizations */
    .playlist-container {
        padding: 15px 12px;
        border-radius: 15px;
        width: 100%;
        margin-bottom: 15px;
    }

    .playlist-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .playlist-header h2 {
        font-size: 18px;
    }

    .close-button {
        font-size: 28px;
        width: 32px;
        height: 32px;
    }

    .playlist-actions {
        flex-direction: row;
        gap: 8px;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .action-button {
        padding: 10px 16px;
        font-size: 12px;
        min-height: 40px;
    }

    .track-item {
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
    }

    .track-album-art {
        width: 48px;
        height: 48px;
        border-radius: 4px;
    }

    .track-number {
        font-size: 15px;
        min-width: 22px;
    }

    .track-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .track-artist {
        font-size: 11px;
    }

    .loading {
        padding: 30px 20px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .loading p {
        font-size: 13px;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    body {
        padding: 3px;
        padding-top: 8px;
    }

    .radio {
        padding: 18px 12px 12px;
        border-radius: 18px;
    }

    .screen {
        padding: 12px 10px;
    }

    .brand {
        font-size: 9px;
        letter-spacing: 4px;
        margin-bottom: 8px;
    }

    .year-display {
        font-size: 38px;
        letter-spacing: 2px;
        margin: 10px 0;
    }

    .station-indicator {
        height: 30px;
        margin: 12px 0 8px;
    }

    .indicator-marker {
        height: 20px;
    }

    .frequency-labels {
        font-size: 8px;
    }

    /* Even tighter controls on small screens */
    .controls {
        gap: 10px;
        margin-top: 15px;
        padding: 0 10px;
    }

    .dial-container {
        gap: 5px;
    }

    .dial-label {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .dial {
        width: 56px;
        height: 56px;
    }

    .power-icon {
        font-size: 24px;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-icon {
        width: 26px;
        height: 26px;
    }

    .speaker-grille {
        gap: 4px;
        margin: 8px 0;
    }

    .top-grille {
        margin-bottom: 12px;
    }

    .bottom-grille {
        margin-top: 12px;
    }

    .playlist-container {
        padding: 12px 10px;
        margin-bottom: 12px;
    }

    .playlist-header h2 {
        font-size: 16px;
    }

    .close-button {
        font-size: 26px;
        width: 30px;
        height: 30px;
    }

    .track-item {
        padding: 8px;
        gap: 8px;
    }

    .track-album-art {
        width: 44px;
        height: 44px;
    }

    .track-number {
        font-size: 14px;
        min-width: 20px;
    }

    .track-name {
        font-size: 12px;
    }

    .track-artist {
        font-size: 10px;
    }

    .action-button {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 38px;
    }

    .loading {
        padding: 25px 15px;
    }

    .spinner {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }

    .loading p {
        font-size: 12px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .radio {
        max-width: 50%;
        flex-shrink: 0;
    }

    .playlist-container {
        max-width: 45%;
    }

    .year-display {
        font-size: 36px;
    }

    .controls {
        flex-direction: row;
        gap: 10px;
    }

    .dial, .small-dial {
        width: 60px;
        height: 60px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }
}



/* Responsive styling for genre presets on mobile */
@media screen and (max-width: 480px) {
    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .preset-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .preset-btn::before {
        width: 5px;
        height: 5px;
        left: 6px;
    }
}

/* Tablet and larger screens - keep 3 columns */
@media screen and (min-width: 600px) {
    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Genre display on screen */
.genre-display {
    text-align: center;
    font-size: 14px;
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

/* Car Radio Style Presets */
.genre-presets {
    margin: 20px 0 15px 0;
    padding: 0 20px;
}

.preset-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #2d2420, #1a1410);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 6px;
    color: #ff6b35;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
}

.preset-btn:hover {
    border-color: #ff6b35;
    background: linear-gradient(145deg, #3d3420, #2a1810);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.4);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: linear-gradient(145deg, #ff6b35, #e85a28);
    border-color: #ff6b35;
    color: #1a1410;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 107, 53, 0.6),
        0 3px 6px rgba(0, 0, 0, 0.4);
}

.preset-btn.active::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #39ff14;
    box-shadow: 0 0 4px rgba(57, 255, 20, 0.8);
}

/* Updated preset button styles - genre names visible */
.genre-presets {
    margin: 20px 0 15px 0;
    padding: 0 20px;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.preset-btn {
    background: rgba(45, 36, 32, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 12px;
    color: #ff6b35;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    touch-action: manipulation;
    user-select: none;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.7);
    background: rgba(45, 36, 32, 1);
    transform: translateY(-1px);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.25);
    border-color: #ff6b35;
    color: #ffd700;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 107, 53, 0.4);
}

.preset-btn.active::before {
    background: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .preset-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .preset-btn {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .preset-btn::before {
        width: 5px;
        height: 5px;
        left: 8px;
    }
}

/* Tablet and larger */
@media screen and (min-width: 600px) {
    .preset-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.preset-label {
    text-align: center;
    color: #ff6b35;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 12px;
    opacity: 0.8;
}

/* Force 3x2 grid layout for presets */
.genre-presets {
    margin: 15px 0 20px 0;
    padding: 0 30px;
}

.preset-label {
    text-align: left;
    color: #ff6b35;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.9;
    padding-left: 5px;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    max-width: 100%;
}

.preset-btn {
    background: rgba(45, 36, 32, 0.9);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 10px;
    color: #ff6b35;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    touch-action: manipulation;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.4);
    transform: translateY(-50%);
    transition: all 0.25s ease;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.8);
    background: rgba(55, 46, 42, 1);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.5);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
    color: #ffd700;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 107, 53, 0.5);
}

.preset-btn.active::before {
    background: #39ff14;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.9);
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
    .genre-presets {
        padding: 0 20px;
    }
    
    .preset-row {
        gap: 8px;
    }
    
    .preset-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .preset-btn::before {
        left: 8px;
        width: 4px;
        height: 4px;
    }
}

/* Final polish - pill-shaped buttons like the image */
.genre-presets {
    margin: 20px 0 25px 0;
    padding: 0 40px;
}

.preset-label {
    text-align: center;
    color: #ff6b35;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 0.9;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preset-btn {
    background: rgba(30, 25, 22, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 25px;
    color: #ff6b35;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    touch-action: manipulation;
    user-select: none;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.5);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #ff6b35;
    background: rgba(40, 32, 28, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.4);
    border-color: #ff8c35;
    color: #ffd700;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 107, 53, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.preset-btn.active::before {
    background: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 1);
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
    .genre-presets {
        padding: 0 20px;
        margin: 15px 0 20px 0;
    }
    
    .preset-row {
        gap: 10px;
    }
    
    .preset-btn {
        font-size: 11px;
        padding: 10px 16px;
        border-radius: 20px;
    }
    
    .preset-btn::before {
        left: 12px;
        width: 5px;
        height: 5px;
    }
}

/* Perfect pill-shaped buttons like the image */
.genre-presets {
    margin: 25px auto 25px auto;
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preset-label {
    text-align: center;
    color: #ff6b35;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 18px;
    opacity: 0.9;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

.preset-btn {
    background: rgba(20, 16, 14, 0.9);
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 30px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    touch-action: manipulation;
    user-select: none;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.6);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #ff6b35;
    background: rgba(35, 28, 24, 1);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.35);
    border-color: #ff8c35;
    color: #ffd700;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 53, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.preset-btn.active::before {
    background: #39ff14;
    box-shadow: 0 0 12px rgba(57, 255, 20, 1);
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .preset-row {
        padding: 0 20px;
        gap: 12px;
    }
    
    .preset-btn {
        font-size: 12px;
        padding: 12px 20px;
        min-height: 45px;
    }
    
    .preset-btn::before {
        left: 14px;
        width: 6px;
        height: 6px;
    }
}

@media screen and (max-width: 480px) {
    .preset-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    
    .preset-btn {
        font-size: 11px;
        padding: 10px 16px;
        min-height: 40px;
    }
}

/* OVERRIDE ALL PREVIOUS PRESET STYLES - Pill-shaped buttons */
.genre-presets {
    margin: 25px 0 25px 0 !important;
    padding: 0 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.preset-label {
    text-align: center !important;
    color: #ff6b35 !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    font-weight: bold !important;
    margin-bottom: 18px !important;
    opacity: 0.9 !important;
}

.preset-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

.preset-btn {
    background: rgba(20, 16, 14, 0.9) !important;
    border: 2px solid rgba(255, 107, 53, 0.6) !important;
    border-radius: 30px !important;
    color: #ff6b35 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 14px 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    touch-action: manipulation !important;
    user-select: none !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.preset-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 18px !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255, 107, 53, 0.6) !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

.preset-btn:hover {
    border-color: #ff6b35 !important;
    background: rgba(35, 28, 24, 1) !important;
    transform: translateY(-2px) !important;
}

.preset-btn:active {
    transform: translateY(0) !important;
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.35) !important;
    border-color: #ff8c35 !important;
    color: #ffd700 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.6) !important;
}

.preset-btn.active::before {
    background: #39ff14 !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 1) !important;
}

/* FINAL FIX - Match the original design exactly */
.genre-presets {
    margin: 20px 0 25px 0 !important;
    padding: 0 30px !important;
}

.preset-label {
    text-align: center !important;
    color: #ff6b35 !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    opacity: 0.9 !important;
}

.preset-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.preset-btn {
    background: rgba(20, 16, 14, 0.95) !important;
    border: 2px solid rgba(255, 107, 53, 0.5) !important;
    border-radius: 18px !important;
    color: #ff6b35 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 10px 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    touch-action: manipulation !important;
    user-select: none !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.preset-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 107, 53, 0.6) !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

/* Remove any ::after pseudo-elements that might be creating duplicate LEDs */
.preset-btn::after {
    display: none !important;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.8) !important;
    background: rgba(30, 24, 20, 1) !important;
    transform: translateY(-1px) !important;
}

.preset-btn:active {
    transform: translateY(0) !important;
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.3) !important;
    border-color: rgba(255, 107, 53, 0.9) !important;
    color: #ffd700 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 107, 53, 0.5) !important;
}

.preset-btn.active::before {
    background: #39ff14 !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.9) !important;
}

.preset-btn.active::after {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .preset-row {
        gap: 12px !important;
    }
    
    .preset-btn {
        font-size: 13px !important;
        padding: 9px 20px !important;
        min-height: 40px !important;
    }
}

@media screen and (max-width: 480px) {
    .preset-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .preset-btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
        min-height: 38px !important;
    }
}

/* PERFECT BUTTONS - Stretched with barely rounded corners */
.genre-presets {
    margin: 20px 0 25px 0 !important;
    padding: 0 30px !important;
}

.preset-label {
    text-align: center !important;
    color: #ff6b35 !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    opacity: 0.9 !important;
}

.preset-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.preset-btn {
    background: rgba(20, 16, 14, 0.95) !important;
    border: 2px solid rgba(255, 107, 53, 0.5) !important;
    border-radius: 12px !important;
    color: #ff6b35 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 8px 32px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    touch-action: manipulation !important;
    user-select: none !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.preset-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 107, 53, 0.6) !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

.preset-btn::after {
    display: none !important;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.8) !important;
    background: rgba(30, 24, 20, 1) !important;
    transform: translateY(-1px) !important;
}

.preset-btn:active {
    transform: translateY(0) !important;
}

.preset-btn.active {
    background: rgba(255, 107, 53, 0.3) !important;
    border-color: rgba(255, 107, 53, 0.9) !important;
    color: #ffd700 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 107, 53, 0.5) !important;
}

.preset-btn.active::before {
    background: #39ff14 !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.9) !important;
}

.preset-btn.active::after {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .preset-row {
        gap: 12px !important;
    }
    
    .preset-btn {
        font-size: 13px !important;
        padding: 8px 28px !important;
    }
}

@media screen and (max-width: 480px) {
    .preset-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .preset-btn {
        font-size: 12px !important;
        padding: 7px 24px !important;
        min-height: 38px !important;
    }
}

/* FINAL PRESET STYLE - Match dial gradient, no LEDs, green active text */
.genre-presets {
    margin: 20px 0 25px 0 !important;
    padding: 0 30px !important;
}

.preset-label {
    text-align: center !important;
    color: #ff6b35 !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    opacity: 0.9 !important;
}

.preset-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.preset-btn {
    background: radial-gradient(circle, #2d2420, #1a1410) !important;
    border: 2px solid rgba(255, 107, 53, 0.5) !important;
    border-radius: 12px !important;
    color: #ff6b35 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 8px 32px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    /* Raised button effect */
    box-shadow: 
        inset 0 -3px 8px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 107, 53, 0.2) !important;
    position: relative !important;
    touch-action: manipulation !important;
    user-select: none !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(0) scale(1) !important;
}

/* Remove LED indicators completely */
.preset-btn::before {
    display: none !important;
}

.preset-btn::after {
    display: none !important;
}

.preset-btn:hover {
    border-color: rgba(255, 107, 53, 0.7) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 
        inset 0 -3px 8px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 107, 53, 0.3) !important;
}

.preset-btn:active {
    /* Button being pressed */
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.8),
        inset 0 -1px 3px rgba(255, 255, 255, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.1s ease !important;
}

.preset-btn.active {
    /* Locked in pushed state */
    background: radial-gradient(circle, #3d3420, #2a1810) !important;
    border-color: #ff6b35 !important;
    color: #39ff14 !important;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.8) !important;
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 
        inset 0 3px 10px rgba(0, 0, 0, 0.9),
        inset 0 -1px 3px rgba(255, 255, 255, 0.05),
        0 0 15px rgba(57, 255, 20, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.preset-btn.active::before {
    display: none !important;
}

.preset-btn.active::after {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .preset-row {
        gap: 12px !important;
    }
    
    .preset-btn {
        font-size: 13px !important;
        padding: 8px 28px !important;
    }
}

@media screen and (max-width: 480px) {
    .preset-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .preset-btn {
        font-size: 12px !important;
        padding: 7px 24px !important;
        min-height: 38px !important;
    }
}

/* Fix white overscroll background on mobile */
html {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%) fixed !important;
    overscroll-behavior: none !important;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%) !important;
    overscroll-behavior: none !important;
}

/* Additional fix for iOS Safari */
html, body {
    overscroll-behavior-y: none !important;
}

/* Track Spotify Button (for hybrid deep link mode) */
.track-spotify-btn {
    background: radial-gradient(circle, #2d2420, #1a1410);
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.track-play-icon {
    width: 14px;
    height: 14px;
    color: #ff6b35;
    filter: drop-shadow(0 0 3px rgba(255, 107, 53, 0.8));
    pointer-events: none;
    margin-left: 2px;
}

.track-spotify-btn:hover {
    border-color: #ff6b35;
    transform: scale(1.05);
}

.track-spotify-btn:hover .track-play-icon {
    color: #ff8c5a;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 1));
}

.track-spotify-btn:active {
    transform: scale(0.95);
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logout Notice (shows when authenticated) */
.logout-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    animation: slideDown 0.3s ease-out;
}

.logout-notice p {
    margin: 0;
    color: #1DB954;
    font-size: 13px;
    font-weight: 500;
}

.logout-button {
    background: transparent;
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.5);
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
}
