* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0b0b0d;
    --bg-side: #0e0e11;
    --surface: #141418;
    --surface-hover: #1c1c22;
    --text: #f2f2f4;
    --muted: #6b6b76;
    --muted-soft: #9a9aa5;
    --line: #1e1e24;
    --accent: #5ce0b0;
    --sidebar-w: 280px;
    --player-h: 84px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-side);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 40px 0;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px; font-weight: 700; letter-spacing: -0.5px;
    color: var(--text); text-decoration: none;
    padding: 0 32px; margin-bottom: 40px;
}
.logo .inc { color: var(--accent); font-weight: 500; }

.side-nav { list-style: none; display: flex; flex-direction: column; }
.side-nav a {
    display: flex; gap: 14px; padding: 12px 32px;
    color: var(--muted-soft); text-decoration: none;
    font-size: 14.5px; cursor: pointer; transition: color 0.2s;
}
.side-nav a:hover { color: var(--text); }
.side-nav a.active { color: var(--text); border-left: 2px solid var(--accent); padding-left: 30px; }
.side-nav a .idx { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); }

.sidebar-footer { margin-top: auto; padding: 0 32px; }
.status { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.copy { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); line-height: 1.7; }

.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; }

.view { display: none; }
.view.active { display: block; }

.hero { padding: 56px 48px 40px; border-bottom: 1px solid var(--line); }
.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: 40px;
    font-weight: 600; line-height: 1.15; letter-spacing: -1px;
    margin-bottom: 20px; max-width: 640px;
}
.hero p { font-size: 15.5px; line-height: 1.75; color: var(--muted-soft); max-width: 600px; }
.hero p + p { margin-top: 12px; }

.block { padding: 40px 48px 120px; }
.block h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 500; margin-bottom: 24px; }

.playlist-view-head { padding: 56px 48px 32px; border-bottom: 1px solid var(--line); }
.playlist-view-head .hero-eyebrow { margin-bottom: 12px; }
.playlist-view-head h1 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 600; letter-spacing: -0.8px; margin-bottom: 10px; }
.playlist-view-head p { font-size: 14.5px; color: var(--muted-soft); max-width: 560px; }

.playlist-block { padding: 32px 48px 120px; }
.track-list { display: flex; flex-direction: column; gap: 4px; }

.track {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}
.track:hover { background: var(--surface); }
.track.active { background: var(--surface); border-color: var(--line); }
.track.active .track-title { color: var(--accent); }
.track.active .track-num { color: var(--accent); }

.track-cover {
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--bg-side); border: 1px solid var(--line);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover svg { width: 16px; height: 16px; fill: var(--muted); }

.track-title { font-size: 14.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-author { font-size: 12px; color: var(--muted); margin-top: 2px; }

.track-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-align: right; min-width: 24px; }
.track-duration { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-align: right; min-width: 40px; }

.empty-state { padding: 40px; text-align: center; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.project-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--muted); }
.project-card-logo { width: 100%; aspect-ratio: 1; background: var(--bg-side); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 16px; }
.project-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.project-page { padding: 48px; max-width: 820px; }
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: 20px;
    color: var(--muted-soft); cursor: pointer; padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    margin-bottom: 32px; transition: color 0.2s, border-color 0.2s;
}
.back-btn:hover { color: var(--text); border-color: var(--muted); }
.back-btn svg { width: 16px; height: 16px; fill: currentColor; }

.play-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    padding: 48px 32px 32px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background: var(--surface);
}
.play-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.5);
    transform: scale(1.05);
    z-index: -2;
}
.play-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,11,13,0.3) 0%, rgba(11,11,13,0.85) 100%);
    z-index: -1;
}
.play-banner-content { display: flex; align-items: flex-end; gap: 24px; width: 100%; flex-wrap: wrap; }
.play-icon {
    width: 128px;
    height: 128px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.play-icon img { width: 100%; height: 100%; object-fit: cover; }
.play-header-info { min-width: 0; flex: 1; }
.play-header-info h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.6px;
    margin-bottom: 4px;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.play-developer {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.play-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.play-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 3px 10px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.download-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.download-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(92, 224, 176, 0.2);
}
.download-btn:hover { background: #7df5c7; transform: translateY(-1px); }
.download-btn:active { transform: translateY(1px); }
.download-btn svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.3s; }
.download-btn.active svg { transform: rotate(180deg); }
.download-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.download-meta .meta-dot { color: var(--muted-soft); font-size: 12px; }

.download-sources {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    width: 100%;
    max-width: 560px;
}
.download-sources.open { grid-template-rows: 1fr; margin-top: 16px; }
.download-sources-inner { overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.download-sources .play-link {
    width: 100%;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.download-sources .play-link:hover { background: var(--surface-hover); border-color: var(--accent); }
.download-sources .play-link svg { width: 20px; height: 20px; fill: var(--accent); }

.play-section { margin-bottom: 32px; }
.play-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}
.play-description {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--muted-soft);
    white-space: pre-line;
}

.screenshots-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.screenshots-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.screenshots-grid::-webkit-scrollbar { display: none; }

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    max-width: 280px;
    max-height: 400px;
}
.screenshot-item:hover { transform: scale(1.02); border-color: var(--accent); }
.screenshot-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, color 0.2s;
    backdrop-filter: blur(8px);
}
.carousel-arrow:hover { background: var(--surface-hover); color: var(--accent); }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }


.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
}
.lightbox img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    background: #000;
    transition: opacity 0.2s;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px);
    z-index: 1;
    user-select: none;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.lightbox-arrow:active { transform: translateY(-50%) scale(0.95); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--muted-soft);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 14px;
    backdrop-filter: blur(8px);
    z-index: 1;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.mini-player {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--player-h);
    background: rgba(14,14,17,0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}
.mini-player.visible { transform: translateY(0); }
.mini-player.hidden {
    transform: translateY(calc(100% - 6px));
    opacity: 0.95;
    pointer-events: none;
}
.mini-player.hidden .mini-progress { pointer-events: auto; }

.mini-progress {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--surface);
    cursor: pointer;
    z-index: 10;
}
.mini-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 0;
    width: 0%;
    pointer-events: none;
}
.mini-progress::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -5px; bottom: -7px;
}

.mini-left { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
.mini-cover { width: 52px; height: 52px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover svg { width: 20px; height: 20px; fill: var(--muted); }
.mini-info { min-width: 0; }
.mini-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-author { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-center { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 520px; }
.mini-controls { display: flex; align-items: center; gap: 16px; }
.mini-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; display: flex; transition: color 0.2s; }
.mini-btn:hover { color: var(--text); }
.mini-btn svg { width: 18px; height: 18px; fill: currentColor; }
.mini-play { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.mini-play:hover { transform: scale(1.06); }
.mini-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 1px; }

.mini-progress-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 320px; padding: 0 10px; }
.mini-time { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }

.mini-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.mini-volume { display: flex; align-items: center; gap: 8px; width: 110px; }
.mini-volume svg { width: 16px; height: 16px; fill: var(--muted); flex-shrink: 0; cursor: pointer; transition: fill 0.2s; }
.mini-volume svg:hover { fill: var(--text); }
.mini-volume-bar { flex: 1; height: 3px; background: var(--surface); border-radius: 2px; cursor: pointer; position: relative; }
.mini-volume-bar::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.mini-volume-fill { height: 100%; background: var(--muted-soft); border-radius: 2px; width: 100%; pointer-events: none; }

.mini-expand, .mini-hide {
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    transition: color 0.2s, border-color 0.2s;
}
.mini-expand:hover, .mini-hide:hover { color: var(--text); border-color: var(--muted); }
.mini-expand svg, .mini-hide svg { width: 16px; height: 16px; fill: currentColor; }

.mini-restore {
    position: fixed;
    right: 24px;
    bottom: 16px;
    z-index: 501;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    color: var(--muted-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
    pointer-events: none;
}
.mini-restore.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mini-restore:hover { color: var(--text); border-color: var(--accent); }
.mini-restore svg { width: 14px; height: 14px; fill: var(--accent); flex-shrink: 0; }

.full-player {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.full-player.open { transform: translateY(0); }

.full-top {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 32px;
}
.full-collapse {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: 20px;
    color: var(--muted-soft); cursor: pointer; padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    transition: color 0.2s, border-color 0.2s;
}
.full-collapse:hover { color: var(--text); border-color: var(--muted); }
.full-collapse svg { width: 16px; height: 16px; fill: currentColor; }
.full-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.full-body { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }
.full-cover { width: 100%; aspect-ratio: 1; max-width: 360px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.full-cover img { width: 100%; height: 100%; object-fit: cover; }
.full-cover svg { width: 64px; height: 64px; fill: var(--muted); opacity: 0.5; }

.full-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 6px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-author { font-size: 15px; color: var(--muted); margin-bottom: 32px; }

.full-progress-wrap { width: 100%; margin-bottom: 24px; }
.full-progress { width: 100%; height: 5px; background: var(--surface); border-radius: 3px; cursor: pointer; margin-bottom: 12px; position: relative; }
.full-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; width: 0%; pointer-events: none; }
.full-progress::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.full-times { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }

.full-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 32px; }
.full-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 10px; display: flex; transition: color 0.2s; position: relative; }
.full-btn:hover { color: var(--text); }
.full-btn.active { color: var(--accent); }
.full-btn svg { width: 22px; height: 22px; fill: currentColor; }
.full-btn.repeat-one::after {
    content: '1'; position: absolute; top: 4px; right: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
    color: var(--accent);
}
.full-play { width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.full-play:hover { transform: scale(1.05); }
.full-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 2px; }

.full-volume { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 300px; }
.full-volume svg { width: 18px; height: 18px; fill: var(--muted); flex-shrink: 0; cursor: pointer; transition: fill 0.2s; }
.full-volume svg:hover { fill: var(--text); }
.full-volume-bar { flex: 1; height: 4px; background: var(--surface); border-radius: 2px; cursor: pointer; position: relative; }
.full-volume-bar::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.full-volume-fill { height: 100%; background: var(--muted-soft); border-radius: 2px; width: 100%; pointer-events: none; }

.error-message { color: #ff5c8a; font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 16px; text-align: center; min-height: 16px; }

#yt-player { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.lang-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(11, 11, 13, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lang-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.lang-modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 48px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.3s;
}
.lang-modal.active .lang-modal-content {
    transform: translateY(0);
}
.lang-modal-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.lang-modal h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
    color: var(--text);
}
.lang-modal h2 span {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted-soft);
}
.lang-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lang-modal-btn {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.lang-modal-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}
.lang-modal-btn:active {
    transform: scale(0.98);
}

.lang-globe-wrapper {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 200;
}
.lang-globe-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    backdrop-filter: blur(12px);
}
.lang-globe-btn:hover,
.lang-globe-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-hover);
}
.lang-globe-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.lang-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--muted-soft);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lang-dropdown-item:hover,
.lang-dropdown-item.active {
    background: var(--bg-side);
    color: var(--text);
}

.lang-modal.active ~ .lang-globe-wrapper {
    display: none;
}

@media (max-width: 900px) {
    body { flex-direction: column; height: auto; overflow: auto; }
    .sidebar { display: none; }
    .main { height: auto; }
    .hero, .playlist-view-head { padding: 40px 24px 32px; }
    .hero h1, .playlist-view-head h1 { font-size: 30px; }
    .block, .playlist-block { padding: 32px 24px 120px; }
    .project-page { padding: 32px 24px; }
    .mini-player { grid-template-columns: 1fr auto; gap: 12px; padding: 0 16px; }
    .mini-volume { display: none; }
    .mini-center { display: none; }
    .full-cover { max-width: 280px; }
    .full-title { font-size: 20px; }
    .full-controls { gap: 16px; }
}

@media (max-width: 700px) {
    .play-banner { padding: 32px 20px 20px; min-height: 180px; }
    .play-banner-content { gap: 16px; }
    .play-icon { width: 80px; height: 80px; border-radius: 16px; }
    .play-header-info h1 { font-size: 22px; }
    .screenshot-item { max-width: 240px; }
    .download-btn { width: 100%; justify-content: center; }
    .download-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .download-meta { margin-left: 4px; }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
    .lightbox-arrow { width: 44px; height: 44px; font-size: 26px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-counter { bottom: 16px; }
    
    .lang-globe-wrapper { top: 20px; right: 20px; }
    .lang-globe-btn { width: 40px; height: 40px; }
    .lang-globe-btn svg { width: 20px; height: 20px; }
    .lang-modal-content { padding: 32px 24px; }
    .lang-modal h2 { font-size: 20px; }
}   

.donate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 40px);
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}

.donate-btn {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50px;
    padding: 20px 48px;
    margin-top: 10vh; 
    margin-bottom: auto;
    box-shadow: 0 8px 30px rgba(92, 224, 176, 0.4);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.donate-btn:hover {
    background: #7df5c7;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(92, 224, 176, 0.6);
}

.donate-btn:active {
    transform: translateY(0);
}

.donate-btn svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

.donate-art {
    width: 100%;
    max-width: 800px;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.donate-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 700px) {
    .donate-btn {
        font-size: 16px;
        padding: 16px 24px;
        margin-top: 5vh;
    }
    .donate-art {
        max-width: 100%;
    }
    .donate-art img {
        max-height: 50vh;
    }
}