/* ======================
   YouTube
   ====================== */
.yt-page {
    padding: 60px 0;
}

/* ======================
   Main Video Player
   ====================== */
.yt-player-container {
    max-width: 960px;
    margin: 0 auto 80px auto;
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* ======================
   YouTube Playlist Layout
   ====================== */
.yt-playlists {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.yt-section-title {
    text-align: center;
    font-size: 2.75rem;
    margin: 80px 0 40px 0;
    color: var(--accent);
}

/* Playlist Grid */
.yt-playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-bottom: 60px;
}

/* Playlist Card */
.yt-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.yt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px var(--accent);
}

.yt-card img {
    width: 100%;
    height: auto;
    display: block;
}

.yt-card h3 {
    padding: 18px 14px 22px 14px;
    font-size: 1.1rem;
    color: var(--lighter);
    line-height: 1.4;
}

.yt-player-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 1150px;
    margin: 40px auto;
}

.yt-player-container {
    width: 900px;
    max-width: 100%;
    flex-shrink: 0;
}

.yt-playlist-videos {
    width: 320px;
    flex-shrink: 0;
    max-height: 500px;
    overflow-y: auto;
}

.yt-playlist-videos::-webkit-scrollbar {
    width: 6px;
}

.yt-playlist-videos::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.playlist-item {
    padding: 8px 10px;
    font-size: 0.9rem;
    line-height: 1.3;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.playlist-item:hover {
    background: rgba(255,255,255,0.05);
}

.playlist-item.active {
    background: var(--accent);
    color: #000;
    font-weight: bold;
}

.yt-player-container iframe {
    border-radius: 10px;
}

.playlist-placeholder {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 768px) {
    .yt-hero h1 {
        font-size: 2.2rem;
    }

    .yt-hero .tagline {
        font-size: 1.1rem;
    }

    .yt-player-container {
        margin: 0 20px 60px 20px;
    }

    .yt-playlists {
        padding: 0 20px;
    }
}
