body {
    background-color: #050505;
    color: #e4e4e7;
}

.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.35' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'%3E%3C/rect%3E%3C/svg%3E");
}

.profile-clip {
    clip-path: polygon(10% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}

.video-container {
    position: relative;
    overflow: hidden;
    background: #121214;
    width: 100%;
    height: auto;
    cursor: pointer;
    background: radial-gradient(circle at center, #1f1f22 0%, #09090b 100%);
}

.yt-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-container .center-play-btn {
    z-index: 20;
}

.video-container .controls-bar {
    z-index: 30;
}

.video-container iframe {
    z-index: 10;
}

.video-container:fullscreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: #000;
}

.video-container:fullscreen video {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

video::-webkit-media-controls {
    display: none !important;
}

.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(4, 120, 87, 0.9);
    color: white;
    border-radius: 50%;
    padding: 1.5rem;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.video-container.playing .center-play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.video-container:hover .center-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #047857;
    animation: spin 1s ease-in-out infinite;
    z-index: 25;
    display: none;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.video-container.loading .loading-spinner {
    display: block;
}

.video-container.loading .center-play-btn {
    opacity: 0;
}


.controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 20px 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30;
    cursor: default;
}

.video-container:hover .controls-bar,
.video-container.paused .controls-bar {
    opacity: 1;
}

.ctrl-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ctrl-btn:hover {
    color: #047857;
}

.progress-track {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #047857;
    width: 0%;
    border-radius: 2px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: background 0.2s;
}

input[type=range]:hover::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.6);
}

input[type=range]::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #047857;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: none;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #047857;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: none;
}