/* ===========================================
   FLIPY GAME - Complete Stylesheet
   =========================================== */

/* CSS Variables */
:root {
    --primary: #6F5BFF;
    --primary-light: #9D8CFF;
    --primary-dark: #5043CC;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --surface: #1E293B;
    --surface-alt: #0F172A;
    --background: #0F172A;
    
    --card-back: #E4E7FF;
    --card-back-dark: #1C2540;
    --card-front: #FFFFFF;
    --card-matched: rgba(34, 197, 94, 0.3);
    --card-active: #6F5BFF;
    
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.3);
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

.flipy-game-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#flipy-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Screen Management */
.screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.screen.active {
    display: flex;
}

/* ===========================================
   SELECTION SCREEN
   =========================================== */
#selection-screen {
    background: linear-gradient(135deg, var(--surface-alt) 0%, #1a1f35 100%);
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Selection Screen Header */
.selection-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    flex-shrink: 0;
}

.selection-top-left,
.selection-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.selection-top-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.selection-top-center .game-logo {
    font-size: 1.5rem;
    margin: 0;
}

.selection-top-right {
    justify-content: flex-end;
}

/* Back to Website Button */
.back-to-web-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    background: var(--surface-alt);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-to-web-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.back-to-web-btn .back-icon {
    font-size: 0.9rem;
}

@media (max-width: 360px) {
    .back-to-web-btn .back-text {
        display: none;
    }
}

/* Selection screen header buttons */
.selection-header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.selection-header-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.selection-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.game-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Groups */
.selection-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mode Grid */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.75rem 0.5rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mode-btn:hover {
    background: var(--surface-alt);
    border-color: var(--primary);
}

.mode-btn.active {
    background: rgba(111, 91, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(111, 91, 255, 0.3);
}

.mode-icon { font-size: 1.5rem; }
.mode-name { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.mode-desc { font-size: 0.65rem; color: var(--text-muted); }

/* Difficulty Row */
.difficulty-row, .player-row {
    display: flex;
    gap: 0.5rem;
}

.difficulty-btn, .player-btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.difficulty-btn:hover, .player-btn:hover {
    background: var(--surface-alt);
    border-color: var(--primary);
}

.difficulty-btn.active, .player-btn.active {
    background: rgba(111, 91, 255, 0.15);
    border-color: var(--primary);
}

.diff-icon { margin-right: 0.25rem; }

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(111, 91, 255, 0.4);
}

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

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Start Button */
.start-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px rgba(111, 91, 255, 0.4);
    margin-top: 0.75rem;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(111, 91, 255, 0.5);
}

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

/* ===========================================
   GAME SCREEN
   =========================================== */
#game-screen {
    background: var(--background);
}

/* Game Header */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    gap: 0.5rem;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.header-right {
    flex: 0 0 auto;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.game-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-stats {
    display: flex;
    gap: 0.75rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sequence Bar */
.sequence-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    overflow-x: auto;
}

.sequence-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sequence-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.sequence-chip {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sequence-chip.current {
    border-color: white;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.sequence-chip.completed {
    opacity: 0.5;
}

.sequence-chip .check-icon {
    font-size: 1rem;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}

/* Player Status Bar */
.player-status {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.player-item.active {
    border-color: var(--primary);
    background: rgba(111, 91, 255, 0.15);
}

.player-item.finished {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.15);
    opacity: 0.8;
}

.player-item.finished.active {
    border-color: var(--success);
}

.player-icon {
    font-size: 1.25rem;
}

.player-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.player-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-light);
}

.player-rank {
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Game Main Area */
.game-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
}

/* Game Grid */
.game-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
}

/* ===========================================
   FLIP CARD COMPONENT
   =========================================== */
.flip-card {
    aspect-ratio: 0.72;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(148, 163, 184, 0.2);
    transition: all var(--transition-fast);
}

/* Card Back */
.card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.card-back-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Card Front */
.card-front {
    transform: rotateY(180deg);
    background: var(--surface);
    flex-direction: column;
    gap: 0.25rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-label {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Color Card */
.card-front.color-card {
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front.color-card .card-label {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

/* Card States */
.flip-card.matched .card-face {
    opacity: 0.5;
}

.flip-card.matched {
    pointer-events: none;
}

.flip-card.active .card-front {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(111, 91, 255, 0.5);
}

/* Color card active state - more prominent border */
.flip-card.active .card-front.color-card {
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 40px rgba(111, 91, 255, 0.6);
}

/* Color card matched state */
.flip-card.matched .card-front.color-card {
    border: 3px solid rgba(34, 197, 94, 0.6);
}

.flip-card.hint .card-back {
    background: linear-gradient(135deg, #475569 0%, #64748B 100%);
}

.flip-card:not(.flipped):not(.matched):hover .card-back {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Lock state - prevent interactions */
.game-grid.locked .flip-card {
    pointer-events: none;
}

/* ===========================================
   OVERLAYS & DIALOGS
   =========================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    animation: fadeIn var(--transition-normal);
}

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

.overlay.hidden {
    display: none;
}

/* Pause Dialog */
.pause-dialog {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    width: 100%;
    animation: slideUp 0.3s ease-out;
}

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

.pause-dialog h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pause-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Win Dialog */
.win-dialog {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.trophy-badge {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.win-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.win-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Player Results */
.player-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
}

.result-item.winner {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.result-rank {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.result-info {
    flex: 1;
    text-align: left;
}

.result-name {
    font-weight: 600;
    color: var(--text-primary);
}

.result-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.win-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Dialog Buttons */
.dialog-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dialog-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.dialog-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 91, 255, 0.4);
}

.dialog-btn.outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

.dialog-btn.outline:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.dialog-btn:not(.primary):not(.outline) {
    background: var(--surface-alt);
    color: var(--text-primary);
}

.dialog-btn:not(.primary):not(.outline):hover {
    background: var(--primary);
}

/* Celebration Particles */
.celebration-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: particle-fall 3s ease-out forwards;
}

@keyframes particle-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500%) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.hidden {
    display: none !important;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 480px) {
    .selection-container {
        padding: 1rem;
    }

    .selection-top-center .game-logo {
        font-size: 1.25rem;
    }

    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mode-btn {
        padding: 0.75rem 0.5rem;
    }

    .mode-icon {
        font-size: 1.5rem;
    }

    .header-stats {
        gap: 0.5rem;
    }

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

    .game-grid {
        gap: 6px;
    }

    .card-value {
        font-size: 1.5rem;
    }

    /* Color card label for mobile */
    .card-front.color-card .card-label {
        font-size: 0.6rem;
        padding: 0.25rem 0.4rem;
    }
}

@media (min-width: 768px) {
    .game-grid {
        max-width: 700px;
        gap: 10px;
    }

    .card-value {
        font-size: 2.5rem;
    }

    .selection-container {
        padding: 2rem;
    }
}

/* Dark mode adjustments - already dark by default */
@media (prefers-color-scheme: light) {
    :root {
        --background: #F4F6FF;
        --surface: #FFFFFF;
        --surface-alt: #F0F3FF;
        --text-primary: #101C2D;
        --text-secondary: #62708A;
        --text-muted: #94A3B8;
        --card-back: #E4E7FF;
    }

    .flipy-game-body {
        background: var(--background);
        color: var(--text-primary);
    }

    #selection-screen {
        background: linear-gradient(135deg, #F0F3FF 0%, #E4E7FF 100%);
    }

    .card-front {
        background: white;
        border-color: rgba(0, 0, 0, 0.1);
    }

    .overlay {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Volume Panel */
.volume-panel {
    position: fixed;
    top: 70px;
    right: 1rem;
    z-index: 100;
    animation: slideDown 0.2s ease-out;
}

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

.volume-panel.hidden {
    display: none;
}

.volume-panel-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.volume-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.volume-control {
    margin-bottom: 1rem;
}

.volume-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface-alt);
    border-radius: 3px;
    outline: none;
    touch-action: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-panel .dialog-btn {
    width: 100%;
    margin-top: 0.5rem;
}

