/* === RESET & BAZA === */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #09090b;
    color: #e4e4e7;
}

/* === CUSTOM SCROLLBAR === */
* { scrollbar-width: thin; scrollbar-color: #27272a transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; border: 0; }
.custom-scroll::-webkit-scrollbar-thumb { background: #52525b; }

/* === TŁO I EFEKTY === */
.bg-noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
    position: fixed; width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    top: -300px; left: -100px; z-index: -2; pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

/* Premium Glass Effect */
.glass {
    background: rgba(18, 18, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 10px 0 30px -10px rgba(0,0,0,0.5);
}

/* === ANIMACJE GRIDU === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
#galleryGrid > div { animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
#galleryGrid > div:nth-child(1) { animation-delay: 0.05s; }
#galleryGrid > div:nth-child(n+2) { animation-delay: 0.1s; }
#galleryGrid > div:nth-child(n+5) { animation-delay: 0.15s; }

/* === CHANGELOG & RULES === */
.changelog-item { position: relative; padding-left: 1.5rem; padding-bottom: 2rem; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.changelog-item:last-child { border-left: 1px solid transparent; }
.changelog-item::before {
    content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px;
    background: #18181b; border: 2px solid #8b5cf6; border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
.changelog-date { font-size: 0.7rem; color: #71717a; margin-bottom: 0.4rem; font-family: monospace; letter-spacing: 0.05em; }
.changelog-ver { display: inline-block; background: rgba(139, 92, 246, 0.1); color: #c4b5fd; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; margin-right: 8px; border: 1px solid rgba(139, 92, 246, 0.2); }

/* === PLAYER CONTROLS (Improved Visibility) === */
.player-wrapper { position: relative; width: 100%; height: 100%; background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.05); }
.player-video { width: 100%; height: 100%; pointer-events: none; }

.player-controls {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    padding: 24px 32px; opacity: 0; transition: opacity 0.3s ease;
    display: flex; flex-direction: column; gap: 12px; z-index: 10;
}

.player-wrapper:hover .player-controls,
.player-wrapper.paused .player-controls { opacity: 1; }

/* Big Center Button Animation */
@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.center-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    width: 80px; height: 80px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 28px; opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255,255,255,0.2);
}
.player-wrapper.paused .center-play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; cursor: pointer; animation: pulsePlay 2s infinite; }
.player-wrapper.paused .center-play-btn:hover { background: rgba(139, 92, 246, 0.8); border-color: #8b5cf6; animation: none; }

/* Custom Sliders */
input[type=range].custom-range { -webkit-appearance: none; background: transparent; cursor: pointer; width: 100%; height: 6px; border-radius: 3px; outline: none; }
input[type=range].custom-range::-webkit-slider-runnable-track { background: rgba(255, 255, 255, 0.15); height: 6px; border-radius: 3px; transition: background 0.2s; }
input[type=range].custom-range:hover::-webkit-slider-runnable-track { background: rgba(255, 255, 255, 0.25); }
input[type=range].custom-range::-webkit-slider-thumb {
    -webkit-appearance: none; height: 16px; width: 16px; background: #fff;
    border-radius: 50%; margin-top: -5px; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.1s, background 0.2s;
}
input[type=range].custom-range::-webkit-slider-thumb:hover { transform: scale(1.2); background: #8b5cf6; }

/* Firefox support */
input[type=range].custom-range::-moz-range-track { background: rgba(255, 255, 255, 0.15); height: 6px; border-radius: 3px; }
input[type=range].custom-range::-moz-range-thumb { border: none; height: 16px; width: 16px; background: #fff; border-radius: 50%; }

.click-curtain { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
:fullscreen { background-color: black; }