/* Snake Game Styles - Modern Card-Based UI */
:root {
    --snake-primary: #4caf50;
    --snake-secondary: #2e7d32;
    --food-color: #e91e63;
    --game-bg: #0a0a0f;
    --grid-color: #2a2a2a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --border-radius: 16px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(76, 175, 80, 0.3);
    --glow-gold: 0 0 20px rgba(255, 193, 7, 0.3);
    --glow-accent: 0 0 20px rgba(33, 150, 243, 0.3);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-green: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    --gradient-blue: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* ===================================
   HEADER STYLES - Optimized Design
   =================================== */

.game-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-back:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--snake-primary);
    transform: translateX(-2px);
    box-shadow: 0 0 16px rgba(76, 175, 80, 0.2);
}

.btn-back i {
    font-size: 1rem;
}

.game-title-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

.game-emoji {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.4));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Control Group */
.header-control-group {
    display: flex;
    align-items: center;
}

/* iOS-Style Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    backdrop-filter: blur(10px);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
    position: absolute;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Unchecked state - icon on right, gray */
.toggle-switch input:not(:checked) + .toggle-slider .toggle-icon {
    right: 10px;
    left: auto;
    color: rgba(255, 255, 255, 0.4);
}

/* Checked state - icon on left, colored */
.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-green);
    border-color: var(--snake-primary);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider .toggle-icon {
    left: 10px;
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Hover effect */
.toggle-switch:hover .toggle-slider {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.toggle-switch input:checked:hover + .toggle-slider {
    background: linear-gradient(135deg, #5cb860 0%, #3d8f40 100%);
}

/* Header Icon Buttons */
.btn-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-header-icon:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--snake-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

/* Focus states for accessibility */
.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid var(--snake-primary);
    outline-offset: 2px;
}

.btn-header-icon:focus-visible,
.btn-back:focus-visible {
    outline: 2px solid var(--snake-primary);
    outline-offset: 2px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .game-header {
        padding: 12px 16px;
    }

    .header-left {
        gap: 12px;
    }

    .btn-back span {
        display: none;
    }

    .btn-back {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .game-title-header {
        font-size: 1.2rem;
        gap: 8px;
    }

    .game-emoji {
        font-size: 1.5rem;
    }

    .header-right {
        gap: 8px;
    }

    .toggle-switch {
        width: 52px;
        height: 28px;
    }

    .toggle-slider::before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 3px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(24px);
    }

    .toggle-icon {
        font-size: 0.7rem;
    }

    .btn-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-title-header span:not(.game-emoji) {
        display: none;
    }

    .header-right {
        gap: 6px;
    }

    .btn-header-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Game Area */
.game-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    gap: 24px;
}

/* Game Layout - Desktop: Side by Side, Mobile: Stacked */
.game-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    width: 100%;
    align-items: start;
}

/* Info Panel - Left Side */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* Custom Scrollbar for Info Panel */
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.5);
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.7);
}

/* Info Group */
.info-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.info-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: var(--card-shadow), var(--glow-primary);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--snake-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-title i {
    font-size: 1.2rem;
}

/* Stat Cards */
.stat-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(76, 175, 80, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

.stat-primary .stat-icon {
    background: var(--gradient-green);
    color: white;
    box-shadow: var(--glow-primary);
}

.stat-accent .stat-icon {
    background: var(--gradient-blue);
    color: white;
    box-shadow: var(--glow-accent);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
}

.stat-gold .stat-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a1a;
    box-shadow: var(--glow-gold);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Power-up Cards */
.powerup-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.powerup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.powerup-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.powerup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.powerup-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.combo-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.powerup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.powerup-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powerup-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.powerup-meter {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.powerup-fill {
    height: 100%;
    background: var(--gradient-purple);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.combo-meter .powerup-fill {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Control Button */
.btn-control {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-green);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background: var(--game-bg);
    display: block;
}

/* Theme Pill */
.theme-pill {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--snake-primary);
    box-shadow: 0 0 10px var(--snake-primary);
}

.pill-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Game Overlays */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
    z-index: 100;
}

.game-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.overlay-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

.overlay-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.overlay-score-display {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay-score-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.overlay-stat {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlay-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: var(--snake-primary);
}

.overlay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Virtual Controls */
.virtual-controls {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 200px;
    height: 200px;
}

.virtual-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.virtual-btn:active {
    background: rgba(76, 175, 80, 0.3);
    border-color: var(--snake-primary);
    transform: scale(0.95);
}

.virtual-btn-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.2);
    pointer-events: none;
}

.virtual-btn-up {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.virtual-btn-down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.virtual-btn-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.virtual-btn-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-value.updated {
    animation: pulse 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }

    .info-panel {
        gap: 16px;
    }

    .info-group {
        padding: 16px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 968px) {
    .game-main {
        padding: 15px;
    }

    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-panel {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
        padding-right: 0;
    }

    .canvas-container {
        order: -1;
    }

    .virtual-controls {
        display: block;
    }
}

@media (max-width: 640px) {
    .game-main {
        padding: 12px;
    }

    .info-panel {
        grid-template-columns: 1fr;
    }

    .info-group {
        padding: 14px;
    }

    .group-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .overlay-title {
        font-size: 2rem;
    }

    .overlay-score-value {
        font-size: 2.5rem;
    }

    .virtual-controls {
        width: 180px;
        height: 180px;
        bottom: 20px;
        right: 20px;
    }

    .virtual-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .game-main {
        padding: 10px;
    }

    .stat-cards {
        gap: 10px;
    }

    .stat-card {
        padding: 10px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .powerup-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .virtual-controls {
        width: 160px;
        height: 160px;
        bottom: 15px;
        right: 15px;
    }

    .virtual-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --snake-primary: #00ff00;
        --food-color: #ff0000;
        --text-light: #ffffff;
        --game-bg: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accessibility: Focus Styles */
button:focus-visible,
.virtual-btn:focus-visible {
    outline: 3px solid var(--snake-primary);
    outline-offset: 2px;
}

/* Music Controls */
.music-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-indicator {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 200px;
}

.music-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--snake-primary);
    transform: translateY(-2px);
}

.music-icon {
    font-size: 1.2rem;
    color: var(--snake-primary);
}

#musicTrackName {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-volume-control {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-indicator:hover + .music-volume-control,
.music-volume-control:hover {
    display: flex;
}

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--snake-primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--snake-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

#volumeValue {
    font-size: 0.85rem;
    color: var(--text-light);
    min-width: 35px;
}

/* Recommended Zone */
.recommended-zone {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
}

.recommended-zone h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.recommended-zone p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

.recommended-zone p a {
    color: var(--snake-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.recommended-zone p a:hover {
    color: #66bb6a;
    text-decoration: underline;
}

.recommended-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.recommended-links a {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.recommended-links a:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--snake-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .music-controls {
        bottom: 90px;
        left: 10px;
    }

    .music-indicator {
        padding: 8px 12px;
    }

    .recommended-zone {
        padding: 30px 15px;
    }

    .recommended-zone h2 {
        font-size: 1.5rem;
    }

    .recommended-links {
        gap: 10px;
    }

    .recommended-links a {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}
