/* =========================================
   BASE VARIABLES & TYPOGRAPHY
   ========================================= */
:root {
    --bg-dark: #000000;
    --accent-pink: #ff2a75;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    letter-spacing: -2px;
    line-height: 1;
}

.pink { color: var(--accent-pink); }

.badge {
    border: 1px solid rgba(255, 42, 117, 0.3);
    border-radius: 50px;
    padding: 8px 24px;
    margin-bottom: 25px;
    background: rgba(255, 42, 117, 0.05);
}

.badge-text {
    color: var(--accent-pink);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   LAYOUT CONTAINER
   ========================================= */
.container {
    max-width: 1600px; 
    margin: 0 auto 100px;
    padding: 0 40px;
}

.section-title {
    color: var(--accent-pink);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* =========================================
   FILTER PILLS
   ========================================= */
.filter-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar { display: none; }

.filter-pill {
    background: #111;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.filter-pill:hover {
    border-color: rgba(255, 42, 117, 0.5);
    color: var(--text-main);
}

.filter-pill.active {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
    box-shadow: 0 4px 15px rgba(255, 42, 117, 0.3);
}

/* =========================================
   VIDEO CARDS & GRID
   ========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px 25px;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none; 
}

/* Cinematic Thumbnail Wrapper */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0a0a0a;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gives playable iframes a taller box so the controls don't block the video */
.thumbnail-wrapper.interactive {
    aspect-ratio: 4 / 3; 
    min-height: 260px; 
}

/* If the card is just a link, add hover animations */
.link-card:hover .thumbnail-wrapper {
    border-color: rgba(255, 42, 117, 0.5);
    box-shadow: 0 10px 30px rgba(255, 42, 117, 0.15);
}

.link-card:hover .thumbnail-wrapper img {
    transform: scale(1.05);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Info Section Formatting */
.video-info h2 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.link-card:hover .video-info h2 {
    color: var(--accent-pink);
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Source button for playable iframes */
.source-btn {
    color: var(--accent-pink);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    background: rgba(255, 42, 117, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.source-btn:hover {
    background: rgba(255, 42, 117, 0.25);
}

/* =========================================
   DEVICE RESPONSIVENESS (THE UI SHIFT)
   ========================================= */

/* 1. TABLET MODE */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px 20px;
    }
    
    .logo { font-size: 4rem; }
}

/* 2. MOBILE MODE */
@media screen and (max-width: 768px) {
    .hero {
        padding: 50px 15px 30px;
    }

    .logo {
        font-size: 3.2rem; 
        letter-spacing: -1px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 35px; 
    }

    .video-card:hover { transform: none; }
    
    .filter-pill {
        font-size: 0.85rem;
        padding: 6px 18px;
    }
}

/* 3. SMALL MOBILE MODE */
@media screen and (max-width: 480px) {
    .logo { font-size: 2.8rem; }
    .badge-text { font-size: 0.75rem; }
    .video-info h2 { font-size: 1rem; }
}