/* ============================================
   Giaory's Digital Space — Windows 95 Retro
   ============================================ */

/* ---------- Web Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=MS+Sans+Serif:wght@400;700&display=swap');

@font-face {
    font-family: 'W95FA';
    src: local('Microsoft Sans Serif'), local('MS Sans Serif'), local('Segoe UI');
    font-weight: normal;
}

/* ---------- CSS Variables ---------- */
:root {
    /* Win95 Colors */
    --win-bg: #008080;
    --win-desktop: #008080;
    --win-gray: #c0c0c0;
    --win-gray-light: #dfdfdf;
    --win-gray-dark: #808080;
    --win-white: #ffffff;
    --win-black: #000000;
    --win-blue: #000080;
    --win-blue-title: #000080;
    --win-blue-highlight: #0000aa;
    --win-title-text: #ffffff;
    --win-link: #0000ff;
    --win-red: #ff0000;

    /* Platform Colors */
    --color-github: #333333;
    --color-xiaohongshu: #fe2c55;
    --color-wechat: #07c160;
    --color-bilibili: #00a1d6;

    /* Shadows for 3D effect */
    --shadow-raised: inset -1px -1px 0 #0a0a0a, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
    --shadow-sunken: inset 1px 1px 0 #0a0a0a, inset -1px -1px 0 #ffffff, inset 2px 2px 0 #808080, inset -2px -2px 0 #dfdfdf;
    --shadow-window: inset -1px -1px 0 #0a0a0a, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
    --shadow-button: inset -1px -1px 0 #0a0a0a, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
    --shadow-button-pressed: inset 1px 1px 0 #0a0a0a, inset -1px -1px 0 #ffffff, inset 2px 2px 0 #808080;

    --font-main: 'Segoe UI', 'Microsoft Sans Serif', 'MS Sans Serif', Tahoma, Geneva, sans-serif;
    --font-pixel: 'VT323', 'Courier New', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: var(--font-main);
    background: var(--win-desktop);
    color: var(--win-black);
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--win-link);
    text-decoration: underline;
}
a:hover {
    color: var(--win-red);
}

/* ---------- Particle Canvas (teal toned) ---------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* ========== TASKBAR (Navigation) ========== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    background: var(--win-gray);
    box-shadow: var(--shadow-raised);
    height: 36px;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    cursor: default;
    height: 28px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-logo:active {
    box-shadow: var(--shadow-button-pressed);
}

.nav-logo-icon {
    font-size: 1rem;
    font-weight: bold;
}

.nav-logo-text {
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--win-black);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 12px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    height: 26px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--win-black);
}

.nav-link:active,
.nav-link.active {
    box-shadow: var(--shadow-button-pressed);
    padding: 5px 11px 3px 13px;
}

.nav-bar.scrolled {
    background: var(--win-gray);
}

/* ========== MAIN CONTAINER ========== */
.bento-container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 52px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Row containers ---------- */
.bento-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* ========== WINDOW CARD (Win95 Style) ========== */
.bento-card {
    background: var(--win-gray);
    box-shadow: var(--shadow-window);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeIn 0.4s ease forwards;
}

.bento-card:nth-child(1) { animation-delay: 0.05s; }
.bento-card:nth-child(2) { animation-delay: 0.1s; }
.bento-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Window Title Bar */
.card-titlebar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 3px;
    background: var(--win-blue-title);
    color: var(--win-title-text);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
    user-select: none;
    min-height: 22px;
}

.card-titlebar-icon {
    font-size: 0.8rem;
    margin-right: 2px;
}

.card-titlebar-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-titlebar-btns {
    display: flex;
    gap: 2px;
}

.titlebar-btn {
    width: 16px;
    height: 14px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--win-black);
    line-height: 1;
    padding: 0;
}

.titlebar-btn:active {
    box-shadow: var(--shadow-button-pressed);
}

/* Window Body */
.card-body {
    padding: 12px;
    flex: 1;
}

/* Card Header (inside body) */
.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    flex: 1;
}

.card-icon {
    width: 16px;
    height: 16px;
}

.card-link-btn {
    font-size: 0.78rem;
    color: var(--win-link);
    white-space: nowrap;
}

.platform-icon {
    font-size: 1rem;
}

/* ========== HERO CARD ========== */
.hero-card {
    flex: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
}

.hero-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border: 2px solid var(--win-black);
    object-fit: cover;
}

.avatar-glow { display: none; }

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--win-blue);
}

.hero-bio {
    font-size: 0.82rem;
    color: var(--win-gray-dark);
    line-height: 1.5;
    margin-top: 6px;
    padding: 6px 8px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
}

.heatmap-note {
    font-size: 0.72rem;
    color: var(--win-gray-dark);
    margin-bottom: 6px;
    font-style: italic;
}

.hero-slogan {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--win-gray-dark);
    min-height: 1.4em;
    display: inline;
}

.typewriter-cursor {
    font-family: var(--font-pixel);
    color: var(--win-black);
    font-weight: 400;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-social-icons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    color: var(--win-black);
    cursor: pointer;
}

.social-icon-link:active {
    box-shadow: var(--shadow-button-pressed);
}

.social-icon-link svg {
    width: 16px;
    height: 16px;
}

.social-icon-link:hover {
    transform: none;
    box-shadow: var(--shadow-button);
}

#social-github:hover { color: var(--color-github); }
#social-xiaohongshu:hover { color: var(--color-xiaohongshu); }
#social-wechat:hover { color: var(--color-wechat); }
#social-bilibili:hover { color: var(--color-bilibili); }

.bilibili-soon { opacity: 0.5; cursor: default; }

.hero-decoration { display: none; }

/* ========== GITHUB STATS CARD ========== */
.github-stats-card {
    flex: 0 0 240px;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stat-item {
    text-align: center;
    padding: 8px 4px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-pixel);
    color: var(--win-blue);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--win-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ========== MUSIC TRIGGER CARD (small) ========== */
.music-trigger-card {
    flex: 0 0 160px;
    cursor: pointer;
}

.music-trigger-card:active .card-titlebar {
    /* no change */
}

.music-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-disc {
    width: 36px;
    height: 36px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.music-disc::before { display: none; }
.disc-inner { font-size: 1.1rem; }

.music-trigger-card.playing .disc-inner {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.music-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.music-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--win-gray-dark);
}

.music-title {
    font-size: 0.8rem;
    color: var(--win-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-equalizer {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
    margin-top: 6px;
}

.eq-bar {
    width: 3px;
    height: 3px;
    background: var(--win-blue);
}

.music-trigger-card.playing .eq-bar {
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; }
.eq-bar:nth-child(5) { animation-delay: 0.05s; }

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Source Selector in Music Card */
.music-source-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--win-gray);
}

.source-label {
    font-size: 0.65rem;
    color: var(--win-gray-dark);
    white-space: nowrap;
}

.source-select {
    flex: 1;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.7rem;
    padding: 2px 4px;
    border: 2px inset var(--win-gray);
    background: var(--win-white);
    color: var(--win-black);
    cursor: pointer;
    outline: none;
}

.source-select:focus {
    border-color: var(--win-blue);
}

/* Open Floating Player Button */
.music-open-player-btn {
    width: 100%;
    margin-top: 8px;
    padding: 4px 8px;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.72rem;
    color: var(--win-black);
    background: var(--win-gray-light);
    border: 2px outset var(--win-gray);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.1s;
}

.music-open-player-btn:hover {
    background: var(--win-blue);
    color: var(--win-white);
}

.music-open-player-btn:active {
    border-style: inset;
}

/* ========== HEATMAP CARD (full width) ========== */
.heatmap-card {
    width: 100%;
}

.heatmap-wrapper {
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    padding: 8px;
    overflow-x: auto;
}

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

/* ========== XIAOHONGSHU CARD ========== */
.xiaohongshu-card {
    flex: 1;
}

.xhs-posts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xhs-post-item {
    padding: 8px 10px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: none;
}

.xhs-post-item:hover {
    background: var(--win-blue);
    color: var(--win-white);
    transform: none;
}

.xhs-post-item:hover .xhs-post-title {
    color: var(--win-white);
}

.xhs-post-item:hover .xhs-post-meta {
    color: var(--win-gray-light);
}

.xhs-post-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.3;
    color: var(--win-black);
}

.xhs-post-meta {
    font-size: 0.7rem;
    color: var(--win-gray-dark);
}

.xhs-post-placeholder {
    text-align: center;
    padding: 12px;
    color: var(--win-gray-dark);
    font-size: 0.85rem;
}

.xhs-shimmer {
    width: 100%;
    height: 8px;
    background: var(--win-gray-light);
    margin-bottom: 6px;
}

/* ========== WECHAT CARD ========== */
.wechat-card {
    flex: 1;
}

.wechat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wechat-name-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    position: relative;
}

.wechat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--win-gray-dark);
}

.wechat-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-wechat);
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 22px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--win-black);
}

.copy-btn:active {
    box-shadow: var(--shadow-button-pressed);
}

.copy-btn svg {
    width: 12px;
    height: 12px;
}

.copy-btn.copied {
    box-shadow: var(--shadow-button-pressed);
}

.wechat-desc {
    font-size: 0.8rem;
    color: var(--win-gray-dark);
}

/* ========== BILIBILI CARD ========== */
.bilibili-card {
    flex: 1;
}

.bilibili-coming {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    text-align: center;
}

.coming-soon-badge {
    display: inline-flex;
    padding: 3px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--win-gray-light);
    box-shadow: var(--shadow-button);
    color: var(--color-bilibili);
    animation: none;
}

.coming-soon-text {
    font-size: 0.8rem;
    color: var(--win-gray-dark);
}

/* ========== TECH STACK CARD ========== */
.tech-card {
    flex: 1;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    font-size: 0.8rem;
    color: var(--win-black);
    cursor: default;
}

.tech-tag:hover {
    box-shadow: var(--shadow-button-pressed);
    background: var(--win-gray);
    color: var(--win-black);
    transform: none;
}

.tech-dot {
    width: 7px;
    height: 7px;
    border-radius: 0;
    flex-shrink: 0;
}

/* ========== PROJECTS CARD ========== */
.projects-card {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.project-item {
    padding: 10px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-item:hover {
    background: var(--win-blue);
    color: var(--win-white);
    transform: none;
    box-shadow: var(--shadow-sunken);
}

.project-item:hover .project-desc {
    color: var(--win-gray-light);
}

.project-item:hover .project-meta {
    color: var(--win-gray-light);
}

.project-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-name::before {
    content: '📁';
    font-size: 0.8rem;
}

.project-desc {
    font-size: 0.78rem;
    color: var(--win-gray-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--win-gray-dark);
}

.project-lang {
    display: flex;
    align-items: center;
    gap: 3px;
}

.project-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.project-placeholder {
    text-align: center;
    padding: 16px;
    color: var(--win-gray-dark);
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

/* ========== FOOTER ========== */
.site-footer {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px 16px;
}

.footer-content {
    background: var(--win-gray);
    box-shadow: var(--shadow-sunken);
    padding: 10px 16px;
    text-align: center;
}

.footer-content p {
    font-size: 0.8rem;
    color: var(--win-gray-dark);
}

.footer-sub {
    font-size: 0.72rem !important;
    color: var(--win-gray-dark) !important;
    margin-top: 2px;
}

/* ========== FLOATING MUSIC PLAYER (Win95 Window) ========== */
.music-player-float {
    position: fixed;
    z-index: 200;
    bottom: 50px;
    right: 20px;
    width: 300px;
    background: var(--win-gray);
    box-shadow: var(--shadow-window);
    overflow: hidden;
    user-select: none;
}

/* Player Title Bar / Drag Handle */
.player-drag-handle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 3px;
    background: var(--win-blue-title);
    color: var(--win-title-text);
    cursor: grab;
    min-height: 22px;
}

.player-drag-handle:active {
    cursor: grabbing;
}

.drag-dots {
    font-size: 0.7rem;
    color: var(--win-gray-light);
    display: none;
}

.player-title-bar {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 700;
}

.player-close-btn {
    width: 16px;
    height: 14px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--win-black);
    padding: 0;
}

.player-close-btn:active {
    box-shadow: var(--shadow-button-pressed);
}

.player-close-btn:hover {
    background: var(--win-gray);
    color: var(--win-black);
}

/* Menu Bar */
.player-menubar {
    display: flex;
    gap: 0;
    padding: 2px 4px;
    border-bottom: 1px solid var(--win-gray-dark);
    font-size: 0.8rem;
}

.player-menu-item {
    padding: 1px 8px;
    cursor: pointer;
}

.player-menu-item:hover {
    background: var(--win-blue);
    color: white;
}

/* Search Bar */
.player-search-wrapper {
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--win-gray-dark);
}

.player-search-input {
    flex: 1;
    height: 22px;
    padding: 2px 6px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    border: none;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    outline: none;
    color: var(--win-black);
}

.player-search-btn {
    height: 22px;
    padding: 0 10px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    border: none;
    font-family: var(--font-main);
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--win-black);
}

.player-search-btn:active {
    box-shadow: var(--shadow-button-pressed);
}

/* Player Body */
.player-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-cover {
    display: none;
}

.player-disc {
    display: none;
}

.player-info {
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    padding: 6px 8px;
    text-align: center;
}

.player-song-name {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.75rem;
    color: var(--win-gray-dark);
    margin-top: 1px;
}

/* Progress Bar */
.player-progress-wrapper {
    width: 100%;
}

.player-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    cursor: pointer;
    position: relative;
}

.player-progress-bar:hover {
    height: 12px;
}

.player-progress-fill {
    height: 100%;
    background: var(--win-blue);
    width: 0%;
    position: relative;
}

.player-progress-thumb {
    display: none;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--win-gray-dark);
    font-family: var(--font-pixel);
    margin-top: 2px;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.player-btn {
    width: 32px;
    height: 26px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--win-black);
    border-radius: 0;
}

.player-btn:active {
    box-shadow: var(--shadow-button-pressed);
}

.player-btn:hover {
    background: var(--win-gray);
    color: var(--win-black);
    transform: none;
    box-shadow: var(--shadow-button);
}

.player-btn-main {
    width: 40px;
    height: 28px;
    background: var(--win-gray);
    border: none;
    color: var(--win-black);
    font-size: 0.95rem;
    box-shadow: var(--shadow-button);
}

.player-btn-main:active {
    box-shadow: var(--shadow-button-pressed);
}

.player-btn-main:hover {
    transform: none;
    box-shadow: var(--shadow-button);
    background: var(--win-gray);
    color: var(--win-black);
}

/* Volume */
.player-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.volume-icon {
    font-size: 0.8rem;
}

.player-volume {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 10px;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    outline: none;
}

.player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 18px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    border-radius: 0;
}

.player-volume::-moz-range-thumb {
    width: 10px;
    height: 18px;
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    cursor: pointer;
    border: none;
    border-radius: 0;
}

/* Search Results List */
.player-search-results {
    max-height: 120px;
    overflow-y: auto;
    background: var(--win-white);
    box-shadow: var(--shadow-sunken);
    display: none;
}

.player-search-results.visible {
    display: block;
}

.search-result-item {
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid var(--win-gray-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--win-blue);
    color: var(--win-white);
}

.search-result-item .result-title {
    font-weight: 500;
}

.search-result-item .result-artist {
    font-size: 0.7rem;
    color: var(--win-gray-dark);
}

.search-result-item:hover .result-artist {
    color: var(--win-gray-light);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    padding: 6px 16px;
    background: var(--win-gray);
    box-shadow: var(--shadow-window);
    color: var(--win-black);
    font-size: 0.85rem;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .bento-row {
        flex-direction: column;
    }

    .github-stats-card,
    .music-trigger-card {
        flex: 1;
    }

    .nav-links { gap: 1px; }
    .nav-link { font-size: 0.78rem; padding: 4px 8px; }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-social-icons { justify-content: center; }

    .music-player-float {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .nav-logo-text { display: none; }
    .nav-link { font-size: 0.72rem; padding: 4px 6px; }
    .hero-name { font-size: 1.3rem; }
}

/* ========== SCROLLBAR (Win95 style) ========== */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--win-gray-light);
    box-shadow: inset 1px 1px 0 var(--win-gray-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
}

::-webkit-scrollbar-button {
    background: var(--win-gray);
    box-shadow: var(--shadow-button);
    width: 16px;
    height: 16px;
}
