:root {
    --dark: #0a0a0a;
    --darker: #050505;
    --accent: #ff4400;
    --gold: #d4af37;
    --text: #e8e8e8;
    --text-dim: #888;
}

body {
    font-family: 'Futura-Light', sans-serif;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 60px) clamp(16px, 4vw, 40px);
}

header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-family: 'Futura-Bold', sans-serif;
    font-size: clamp(1.5rem, 8vw, 5.5rem);
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 12px;
}

.tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.player-wrapper {
    margin-bottom: clamp(40px, 6vw, 60px);
    animation: fadeIn 1s ease-out 0.3s both;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--darker);
    border: 2px solid white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: clamp(12px, 3vw, 24px) clamp(12px, 2vw, 20px) clamp(10px, 2vw, 16px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container:hover .controls,
.video-container.playing .controls {
    transform: translateY(0);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    margin-bottom: clamp(10px, 2vw, 16px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    flex-wrap: wrap;
}

button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    color: rgba(var(--highlight-blue-rgb),.3);
    transform: scale(1.1);
}

.play-btn {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.time {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--text-dim);
    margin-left: auto;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.video-title {
    font-family: 'Futura-Book', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    letter-spacing: 0.1em;
    color: white;
    margin-right: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 3vw, 24px);
    animation: fadeIn 1s ease-out 0.6s both;
}

.video-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    background: var(--darker);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--highlight-blue-rgb),.3);
    
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover::before {
    opacity: 1;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail {
    transform: scale(1.05);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(12px, 3vw, 20px);
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-card:hover .card-info {
    transform: translateY(0);
}

.card-title {
    font-family: 'Futura-Book', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 4px;
}

.card-duration {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.play-overlay::before {
    content: '▶';
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-left: 4px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%);
}

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

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

@media (max-width: 640px) {
    .control-buttons {
        gap: 6px;
    }
    
    .video-title {
        width: 100%;
        order: -1;
        margin-bottom: 8px;
    }

    .time {
        margin-left: auto;
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    display: none;
}

.volume-control:hover .volume-slider {
    display: block;
}

.volume-filled {
    height: 100%;
    background: var(--gold);
    width: 100%;
    border-radius: 2px;
}

@media (min-width: 640px) {
    .volume-slider {
        display: block;
    }
}