.learning-page {
    padding-bottom: 0;
    scroll-behavior: smooth;
    animation: fadeIn 0.4s ease-out;
}

.learning-page * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.learning-page ::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.learning-layout {
    width: 92%;
    max-width: 820px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px; 
}

.neu-glass {
    background: linear-gradient(145deg, rgba(38, 41, 48, 0.45) 0%, rgba(20, 22, 26, 0.65) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        8px 12px 30px rgba(0, 0, 0, 0.6), 
        inset 1px 1px 2px rgba(255, 255, 255, 0.1),
        inset -1px -1px 3px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
}

.video-island { padding: 8px; z-index: 10; }

.video-wrapper {
    position: relative; border-radius: 22px; padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.video-inner { 
    position: relative; border-radius: 21px; overflow: hidden; 
    background: #050505; 
    aspect-ratio: 16 / 9; 
    display: flex; align-items: center; justify-content: center; cursor: pointer; 
}

.video-inner video { position: relative; z-index: 5; width: 100%; height: 100%; object-fit: cover; outline: none; display: none; background: #000; }

.play-overlay { 
    position: absolute; z-index: 3; width: 64px; height: 64px; 
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: #fff; 
    pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.video-inner:hover .play-overlay { transform: scale(1.08); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.playlist-island {
    padding: 16px; display: flex; flex-direction: column; gap: 12px;
    max-height: 52vh; overflow-y: auto; z-index: 5; margin-bottom: 20px;
    transition: all 0.4s ease;
}

.playlist-island.is-active-glow {
    background: linear-gradient(145deg, rgba(50, 55, 65, 0.5) 0%, rgba(25, 28, 35, 0.7) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 35px rgba(255,255,255,0.03), 10px 15px 35px rgba(0,0,0,0.8), inset 1px 1px 3px rgba(255,255,255,0.2);
}

.playlist-item { 
    position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; padding: 16px 20px; 
    background: rgba(255,255,255,0.02); 
    border: 1px solid rgba(255,255,255,0.02); 
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3), inset 1px 1px 1px rgba(255, 255, 255, 0.05);
}

.playlist-item:hover { transform: scale(0.98); background: rgba(255,255,255,0.04); border-top-color: rgba(255,255,255,0.15); }

/* The 3D Pop-out effect (No more shifting to the side) */
.playlist-item.playing { 
    background: rgba(255,255,255,0.08); 
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), inset 1px 1px 3px rgba(255,255,255,0.15), inset 3px 0 0 #fff; 
    transform: scale(1.02);
    z-index: 5;
}

.item-number { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #666; width: 26px; transition: color 0.3s; }
.playlist-item.playing .item-number { color: #fff; }
.item-details { flex: 1; }
.item-title { font-size: 14px; color: #bbb; font-weight: 500; transition: color 0.3s; }
.playlist-item.playing .item-title { color: #fff; }

.dl-btn { background: transparent; border: none; color: #555; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.dl-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.1); }

.dock-container {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    width: max-content; z-index: 2000;
}

.liquid-dock { 
    position: relative;
    background: rgba(20, 22, 28, 0.85);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); 
    border: 1px solid rgba(0,0,0,0.6); border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px; 
    display: flex; gap: 8px; padding: 8px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.8), inset 1px 1px 2px rgba(255,255,255,0.08); 
}

.dock-btn { 
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center; 
    background: transparent; border: none; color: #888; 
    height: 48px; width: 48px; border-radius: 24px; cursor: pointer; 
    transition: all 0.3s ease; outline: none;
}
.dock-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: all 0.3s ease; }
.dock-btn:hover { color: #ccc; }
.dock-btn.active { color: transparent; } 

.dock-capsule {
    position: absolute; top: 8px; left: 8px;
    height: 48px; width: 48px;
    background: rgba(35, 38, 46, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 1px 1px 3px rgba(255,255,255,0.15);
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    pointer-events: none;
}

.dock-capsule-inner {
    display: flex; align-items: center; justify-content: center; gap: 0;
    width: max-content; color: #fff; transition: gap 0.4s ease;
}

.dock-capsule svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }

.dock-capsule-text { 
    font-size: 15px; font-weight: 500; 
    max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1); 
}

.dock-capsule.expanded {
    left: 8px !important;
    width: calc(100% - 16px) !important;
}

.dock-capsule.expanded .dock-capsule-inner { gap: 12px; }
.dock-capsule.expanded .dock-capsule-text { max-width: 150px; opacity: 1; }

.global-footer { margin-top: 60px; margin-bottom: 100px; }
.legal-box { max-height: 80vh; overflow-y: auto; }

@media (max-width: 600px) { .playlist-island { max-height: 52vh; } }
