* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

header {
    text-align: center;
    padding: 4rem 1rem 3rem;
    color: white;
    position: relative;
    z-index: 1;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInDown 0.8s ease-out;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: white;
    opacity: 0.4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-card:hover::before {
    opacity: 1;
}

.video-card video {
    width: 100%;
    display: block;
    background: #000;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.video-info p {
    color: #666;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.loading,
.no-videos,
.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: white;
    font-size: 1.2rem;
}

.error {
    color: #ffcccc;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    header {
        padding: 3rem 1rem 2rem;
    }
    
    .header-icon {
        font-size: 3rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-icon {
        font-size: 2.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 0.95rem;
    }
    
    .header-decoration {
        margin-top: 1.5rem;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .video-grid {
        gap: 1rem;
    }
}
