/**
 * Premium Video Player Styles
 * Netflix/Prime/Hotstar inspired design
 */

/* ========================================
   BASE PLAYER CONTAINER
======================================== */
/* Netflix Player v2.0 - Fixed Overlays & Controls */
* { box-sizing: border-box; }

#playerWrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --netflix-red: #E50914;
    --netflix-black: #141414;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Controls Container */
#bottomControls {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#bottomControls .control-btn,
#bottomControls button,
#progressContainer {
    pointer-events: auto !important;
}

.controls-visible #bottomControls,
#playerWrapper:hover #bottomControls,
#playerWrapper.controls-visible #bottomControls,
#playerWrapper.playing:hover #bottomControls {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Playing/Paused states */
.netflix-player-wrapper.playing [id*='centerPlayContainer'] {
    opacity: 0 !important;
    pointer-events: none !important;
}

#playerWrapper.paused #centerPlayContainer,
#playerWrapper:not(.playing):hover #centerPlayContainer {
    opacity: 1 !important;
}

/* Top Bar */
.player-top-bar {
    padding: 1rem 1.5rem;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.back-btn, .control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(10px);
}

.back-btn:hover, .control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Center Play */
#centerPlayContainer {
    pointer-events: none;
}

#bigPlayBtn {
    width: 6rem;
    height: 6rem;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(20px);
}

#bigPlayBtn:hover {
    background: rgba(229,9,20,0.8);
    border-color: rgba(229,9,20,0.9);
    box-shadow: 0 0 40px rgba(229,9,20,0.5);
    transform: scale(1.15);
}

/* Progress Bar */
.progress-container {
    height: 0.5rem;
    cursor: pointer;
    border-radius: 9999px;
    background: rgba(255,255,255,0.2);
    position: relative;
    margin-bottom: 1rem;
    transition: height 0.3s ease;
}

.progress-container:hover {
    height: 0.75rem;
    background: rgba(255,255,255,0.3);
}

.progress-played {
    height: 100%;
    background: linear-gradient(90deg, var(--netflix-red), #ff6b6b);
    border-radius: inherit;
    box-shadow: 0 0 12px rgba(229,9,20,0.6);
    transition: width 0.1s linear;
}

.progress-loaded {
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    opacity: 0;
}

.progress-container:hover .progress-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.progress-preview {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,20,0.98);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-container:hover .progress-preview {
    opacity: 1;
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.time-display {
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, monospace;
    min-width: 4.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Volume */
.volume-container {
    position: relative;
}

.volume-container:hover .volume-slider {
    opacity: 1;
    transform: scale(1);
}

.volume-slider {
    position: absolute;
    bottom: 120%;
    right: -2rem;
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    appearance: none;
    outline: none;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 6px;
    cursor: pointer;
    z-index: 40;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#volumeSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Error Screen */
#errorScreen {
    backdrop-filter: blur(10px);
}

#errorScreen svg {
    filter: drop-shadow(0 4px 12px rgba(239,68,68,0.5));
}

#loader {
    background: rgba(0,0,0,0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .player-top-bar {
        padding: 0.75rem 1rem;
    }
    
    .controls-row {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .time-display {
        font-size: 0.875rem;
        min-width: 4rem;
    }
    
    .center-controls {
        display: none !important;
    }
}

/* Fullscreen */
:fullscreen #playerWrapper,
:-webkit-full-screen #playerWrapper {
    width: 100vw !important;
    height: 100vh !important;
}

/* Controls always visible in fullscreen on mobile */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    #bottomControls {
        opacity: 1 !important;
    }
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    z-index: 1;
    position: relative;
}

/* Z-Index Hierarchy */
/* Video: z-1 */
/* Controls: z-10 */
/* Center Play Button: z-20 */
/* Loader/Error: z-30 */
/* Settings Menu: z-100 */

.player-overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When playing and no mouse activity, hide controls */
.player-wrapper.playing .player-overlay-layer {
    opacity: 0;
}

.player-wrapper.playing .player-overlay-layer:hover,
.player-wrapper.playing .player-overlay-layer.visible {
    opacity: 1;
}

.player-wrapper.paused .player-overlay-layer {
    opacity: 1;
}

/* Fullscreen styles */
.player-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
}

.player-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
}

/* ========================================
   CONTROLS OVERLAY
======================================== */
.player-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-overlay.hidden {
    opacity: 0;
    cursor: none;
}

.player-overlay.visible {
    opacity: 1;
    cursor: default;
}

/* Top gradient overlay */
.player-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
}

/* Bottom gradient overlay */
.player-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    pointer-events: none;
}

/* ========================================
   TOP CONTROLS BAR
======================================== */
.player-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    pointer-events: auto;
}

.player-top-bar .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.player-top-bar .back-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.player-top-bar .back-btn svg {
    width: 24px;
    height: 24px;
}

.player-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    flex: 1;
    text-align: center;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-top-actions {
    display: flex;
    gap: 12px;
}

/* ========================================
   CENTER PLAY BUTTON
======================================== */
.player-center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

/* Hide center controls when playing, show when paused */
.player-wrapper.playing .player-center-controls {
    opacity: 0 !important;
    pointer-events: none;
}

.player-wrapper.paused .player-center-controls,
.player-wrapper:not(.playing):hover .player-center-controls {
    opacity: 1;
}

.player-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.player-center-btn:hover {
    background: rgba(229,9,20,0.9);
    border-color: #E50914;
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(229,9,20,0.5);
}

.player-center-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Rewind/Forward indicators */
.seek-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 20px;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.seek-indicator.show {
    opacity: 1;
    animation: seekPulse 0.5s ease;
}

.seek-indicator.rewind {
    left: 30%;
}

.seek-indicator.forward {
    right: 30%;
}

@keyframes seekPulse {
    0% { transform: translateY(-50%) scale(0.8); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* ========================================
   BOTTOM CONTROLS BAR
======================================== */
.player-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 24px 32px;
    z-index: 20;
    pointer-events: auto;
}

/* Progress bar container */
.progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 16px;
    pointer-events: auto;
}

.progress-bar-bg {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.progress-container:hover .progress-bar-bg {
    height: 6px;
}

.progress-bar-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-bar-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #E50914, #ff6b6b);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(229,9,20,0.5);
}

.progress-bar-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    background: #E50914;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(229,9,20,0.8);
    transition: transform 0.15s ease;
}

.progress-container:hover .progress-bar-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Progress time tooltip */
.progress-tooltip {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0,0,0,0.9);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-tooltip {
    opacity: 1;
}

/* Controls row */
.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    overflow: visible;
    flex-wrap: nowrap;
    position: relative;
}

.player-controls-left,
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Control buttons */
.player-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.player-control-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.player-control-btn:active {
    transform: scale(0.95);
}

.player-control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Play/Pause special styling */
.player-control-btn.play-pause-btn {
    width: 52px;
    height: 52px;
}

.player-control-btn.play-pause-btn svg {
    width: 32px;
    height: 32px;
}

/* Volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    bottom: 100%;
    padding-bottom: 8px;
    z-index: 25;
}

.volume-control:hover .volume-slider-container,
.volume-slider-container:hover {
    width: 80px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Time display */
.time-display {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    padding: 0 12px;
}

/* Settings & Quality */
.settings-menu {
    position: absolute;
    bottom: 80px;
    right: 24px;
    min-width: 220px;
    background: rgba(20,20,20,0.95);
    border-radius: 8px;
    padding: 8px 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-menu-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.settings-option:hover {
    background: rgba(255,255,255,0.1);
}

.settings-option.active {
    color: #E50914;
    font-weight: 600;
}

.settings-option .check-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.settings-option.active .check-icon {
    opacity: 1;
}

/* ========================================
   LOADING & ERROR STATES
======================================== */
.player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 30;
}

.player-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: #E50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.player-loader.spinner-white::before {
    border-top-color: white;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Buffering spinner */
.buffering-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 25;
}

.buffering-indicator.active {
    display: block;
}

.buffering-indicator::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Error message */
.player-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 30;
    display: none;
}

.player-error.show {
    display: block;
}

.player-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    fill: #ff6b6b;
}

.player-error-message {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.player-error-retry {
    padding: 10px 24px;
    background: #E50914;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-error-retry:hover {
    background: #ff6b6b;
}

/* ========================================
   KEYBOARD SHORTCUTS MODAL
======================================== */
.shortcuts-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shortcuts-modal.show {
    opacity: 1;
    visibility: visible;
}

.shortcuts-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.shortcuts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.shortcuts-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.shortcuts-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.shortcuts-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.shortcuts-close svg {
    width: 20px;
    height: 20px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-action {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.shortcut-keys {
    display: flex;
    gap: 6px;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #333;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .player-top-bar {
        padding: 12px 16px;
    }

    .player-bottom-bar {
        padding: 0 16px 24px;
    }

    .player-center-btn {
        width: 56px;
        height: 56px;
    }

    .player-center-btn svg {
        width: 24px;
        height: 24px;
    }

    .player-control-btn {
        min-width: 40px;
        height: 40px;
    }

    .player-control-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .player-wrapper {
        height: 100vh;
        height: 100dvh;
    }

    .player-title {
        font-size: 14px;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .player-top-bar {
        padding: 8px 12px;
    }

    .player-top-bar .back-btn {
        width: 36px;
        height: 36px;
    }

    .player-top-bar .back-btn svg {
        width: 20px;
        height: 20px;
    }

    .player-bottom-bar {
        padding: 0 8px 20px;
    }

    .progress-container {
        height: 24px;
        margin-bottom: 8px;
    }

    .player-controls-row {
        gap: 4px;
    }

    .player-control-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 6px;
    }

    .player-control-btn svg {
        width: 20px;
        height: 20px;
    }

    .player-control-btn.play-pause-btn {
        width: 40px;
        height: 40px;
    }

    .player-control-btn.play-pause-btn svg {
        width: 24px;
        height: 24px;
    }

    .time-display {
        font-size: 12px;
        padding: 0 8px;
    }

    .player-center-controls {
        gap: 24px;
    }

    .player-center-btn {
        width: 48px;
        height: 48px;
    }

    .player-center-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Larger touch targets on mobile */
    .player-control-btn {
        min-width: 44px;
    }

    /* Show settings on mobile differently */
    .settings-menu {
        right: 8px;
        left: 8px;
        min-width: auto;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .player-title {
        display: none;
    }

    .player-center-controls {
        gap: 16px;
    }

    .player-center-btn {
        width: 44px;
        height: 44px;
    }

    .seek-indicator {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* Landscape mobile */
@media (max-height: 480px) and (orientation: landscape) {
    .player-top-bar {
        padding: 8px 16px;
    }

    .player-bottom-bar {
        padding: 0 16px 12px;
    }

    .player-gradient-top {
        height: 60px;
    }

    .player-gradient-bottom {
        height: 100px;
    }

    .progress-container {
        margin-bottom: 4px;
    }
}

/* ========================================
   ANIMATIONS & EFFECTS
======================================== */

/* Fade in/out */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Scale animation for buttons */
.scale-btn:active {
    animation: scaleDown 0.1s ease;
}

@keyframes scaleDown {
    to { transform: scale(0.9); }
}

/* Pulse animation for live indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* Shine effect on hover */
.player-control-btn::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.player-control-btn:hover::after {
    left: 100%;
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Focus styles for keyboard navigation */
.player-control-btn:focus-visible,
.player-center-btn:focus-visible,
.progress-container:focus-visible {
    outline: 2px solid #E50914;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .progress-bar-bg {
        background: rgba(255,255,255,0.4);
    }

    .player-control-btn {
        border: 1px solid rgba(255,255,255,0.5);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

