/* Premium Player CSS - $100k Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #FFFFFF;
    --bg-dark: #0a0a0f;
    --bg-overlay: rgba(10, 10, 15, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #0a0a0f 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 12px;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(99, 102, 241, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Premium Player Wrapper */
.panda-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    background: var(--bg-dark);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-premium),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.panda-player-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 35px 70px -15px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
}

#player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ocultar título e informações do YouTube */
.panda-player-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Unmute Overlay - Premium */
.unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(30, 27, 75, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.unmute-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.unmute-content {
    text-align: center;
    color: white;
    animation: floatPulse 3s ease-in-out infinite;
    padding: 40px;
    border-radius: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.unmute-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

.unmute-content p {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Dummy Progress Bar - Premium */
.dummy-progress {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.98) 0%, rgba(139, 92, 246, 0.98) 100%);
    padding: 24px 32px;
    border-radius: 16px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 320px;
}

.dummy-progress.show {
    opacity: 1;
    pointer-events: all;
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dummy-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dummy-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.dummy-progress-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    letter-spacing: 0.01em;
}

.dummy-time {
    color: var(--primary-light);
    font-weight: 700;
}

/* CTA Buttons - Premium */
.cta-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    animation: ctaAppear 0.5s ease-out forwards;
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes ctaAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Spinner - Premium */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    display: none;
}

.loading-spinner.show {
    display: flex;
    opacity: 1;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Controls Overlay - Premium */
.controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.95) 40%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 24px 24px;
    opacity: 0;
    transition: var(--transition);
    z-index: 20;
}

.controls-overlay.show {
    opacity: 1;
}

.panda-player-wrapper:hover .controls-overlay {
    opacity: 1;
}

/* Play Button Center - Premium */
.play-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90px;
    height: 90px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    border: 2px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.play-button-center.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.play-button-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

.icon-play {
    width: 36px;
    height: 36px;
    color: white;
    margin-left: 4px;
}

/* Progress Bar - Premium */
.progress-container {
    width: 100%;
    padding: 12px 0;
    cursor: pointer;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: visible;
    transition: var(--transition-fast);
}

.progress-container:hover .progress-bar {
    height: 8px;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    position: relative;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.progress-handle {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.progress-container:hover .progress-handle {
    transform: translateY(-50%) scale(1);
}

/* Controls Row - Premium */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Control Buttons - Premium */
.control-btn {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-fast);
    position: relative;
}

.control-btn:hover {
    background: var(--bg-glass);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn .icon {
    width: 22px;
    height: 22px;
}

.control-btn-small {
    width: 36px;
    height: 36px;
    position: relative;
}

.skip-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    bottom: 8px;
    right: 8px;
}

/* Volume Slider - Premium */
.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    transition: var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.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 - Premium */
.time-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Speed Text - Premium */
.speed-text {
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

/* Settings Menu - Premium */
.settings-group {
    position: relative;
}

.settings-menu {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
    min-width: 120px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-fast);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.settings-menu.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.settings-item {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.settings-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Config Panel - Premium */
.config-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

.config-panel h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.config-panel h3 {
    color: rgba(255, 255, 255, 0.9);
    margin: 30px 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.config-item input[type="text"],
.config-item input[type="number"],
.config-item input[type="color"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.config-item input[type="text"]:focus,
.config-item input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.config-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* CTA List - Premium */
.cta-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-item input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.cta-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons - Premium */
.btn-primary,
.btn-secondary,
.btn-add,
.btn-remove {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-add {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-add:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.btn-remove {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-item {
        grid-template-columns: 1fr;
    }
    
    .controls-left,
    .controls-right {
        gap: 8px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

