/* ============================================
   VANESSA PORTFOLIO — macOS Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Pacifico&family=Sacramento&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000;
    color: #fff;
    user-select: none;
}

/* === CSS Variables === */
:root {
    --traffic-red: #fd5d5c;
    --traffic-yellow: #fac900;
    --traffic-green: #34c75a;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --dock-bg: rgba(255, 255, 255, 0.12);
    --dock-border: rgba(255, 255, 255, 0.2);
    --modal-bg: #1e1e1e;
    --text-primary: #fff;
    --text-secondary: #86868b;
    --notes-bg: #f7f7f7;
    --notes-text: #000;
}

/* ============================================
   INTRO SCREEN — Hello Animation
   ============================================ */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 1.2s ease;
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#hello-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.hello-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawHello 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

@keyframes drawHello {
    0% {
        stroke-dashoffset: 1;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   DESKTOP
   ============================================ */
#desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #030305;
}

#menu-bar {
    height: 28px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
}

#menu-bar .menu-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#menu-bar .menu-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 400;
    font-size: 12px;
}

#menu-bar .apple-logo {
    font-size: 16px;
    opacity: 0.9;
}

/* === Desktop Icons Area === */
#desktop-icons {
    flex: 1;
    position: relative;
    padding: 30px;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Hover background box around icon */
.desktop-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 0;
}

.desktop-icon:hover {
    transform: scale(1.08);
}

.desktop-icon:hover::before {
    opacity: 1;
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon .icon-image {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.desktop-icon .icon-label {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.1s ease, color 0.1s ease;
    position: relative;
    z-index: 1;
}

.desktop-icon:hover .icon-label {
    background: #0058d0;
    text-shadow: none;
}

/* === Center Logo === */
#center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    animation: centerLogoReveal 2s cubic-bezier(0.22, 0.61, 0.36, 1) 3.5s forwards;
}

@keyframes centerLogoReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#center-logo svg {
    width: 220px;
    height: 220px;
}

/* ============================================
   DOCK
   ============================================ */
#dock-wrapper {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
}

/* Tooltips are now handled via ::after pseudo-element on .dock-icon */

#dock {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 14px;
    height: 76px;
    background: var(--dock-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--dock-border);
    border-radius: 24px;
    overflow: visible;
}

.dock-icon {
    --scale: 1;
    width: calc(60px * var(--scale));
    height: calc(60px * var(--scale));
    border-radius: calc(14px * var(--scale));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-origin: center bottom;
    overflow: visible;
    position: relative;
    will-change: width, height;
}

.dock-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.dock-icon:hover::after {
    opacity: 1;
}

.dock-icon svg {
    width: 60%;
    height: 60%;
}

.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.dock-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    align-self: center;
}

/* ============================================
   MODALS — macOS Windows
   ============================================ */
.modal-overlay {
    display: none;
}

.modal {
    position: fixed;
    display: none;
    min-width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    background: var(--modal-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 0.5px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1000;
    flex-direction: column;
    animation: modalOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    display: flex;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-titlebar {
    height: 40px;
    min-height: 40px;
    background: rgba(40, 40, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: grab;
    gap: 14px;
    position: relative;
}

.modal-titlebar:active {
    cursor: grabbing;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.15s ease;
    border: none;
    outline: none;
}

.traffic-light:hover {
    filter: brightness(1.3);
}

.traffic-light.red {
    background: var(--traffic-red);
}

.traffic-light.yellow {
    background: var(--traffic-yellow);
}

.traffic-light.green {
    background: var(--traffic-green);
}

.modal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 44px; /* balance traffic lights */
}

.modal-content {
    overflow-y: auto;
    flex: 1;
    padding: 24px;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ============================================
   ABOUT ME MODAL
   ============================================ */
#about-modal {
    width: 640px;
}

#about-modal .modal-content {
    background: #f7f7f7;
    color: #000;
    padding: 0;
}

.about-header {
    display: flex;
    gap: 24px;
    padding: 28px 28px 20px;
}

.about-avatar {
    width: 140px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    flex: 1;
}

.about-info .info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.about-info .info-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    color: #666;
    min-width: 70px;
    padding-top: 2px;
}

.about-info .info-value {
    color: #000;
    font-size: 14px;
    text-align: right;
}

.about-info .info-value a {
    color: #06d;
    text-decoration: none;
}

.about-info .info-value a:hover {
    text-decoration: underline;
}

.about-bio {
    padding: 20px 28px 28px;
    border-top: 1px solid #e5e5ea;
    background: #fff;
}

.about-bio p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-bio strong {
    font-weight: 600;
}

/* ============================================
   NOTES MODAL
   ============================================ */
#notes-modal {
    width: 680px;
}

#notes-modal .modal-content {
    background: var(--notes-bg);
    color: var(--notes-text);
    padding: 0;
    display: flex;
}

.notes-sidebar {
    width: 200px;
    min-width: 200px;
    border-right: 1px solid #e5e5ea;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notes-sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
}

.note-tab {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 12px;
}

.note-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.note-tab.active {
    background: #ffe390;
}

.note-tab .tab-date {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 2px;
}

.note-tab .tab-title {
    font-weight: 600;
    font-size: 13px;
    color: #000;
}

.note-tab .tab-preview {
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-main {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.notes-main-date {
    font-size: 12px;
    color: #86868b;
    text-align: right;
    margin-bottom: 16px;
}

.notes-section {
    display: none;
}

.notes-section.active {
    display: block;
}

/* Worked with logos */
.worked-with-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.worked-with-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.company-logo {
    height: 52px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    cursor: default;
    padding: 8px;
    text-align: center;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.company-logo img,
.company-logo svg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.company-logo span {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-logo:hover img,
.company-logo:hover svg,
.company-logo:hover span {
    filter: grayscale(0%);
    opacity: 1;
}

/* Experience section */
.experience-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 8px;
}

.experience-entry {
    margin-bottom: 18px;
}

.experience-entry .exp-role {
    font-size: 14px;
    font-weight: 700;
}

.experience-entry .exp-company {
    font-size: 13px;
    font-style: italic;
    color: #555;
    margin-bottom: 6px;
}

.experience-entry .exp-desc {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
}

/* Skills section */
.skills-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.skill-tag {
    position: relative;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: #d1d1d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.skill-emoji {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.project-modal {
    width: 70vw;
    max-width: 1200px;
}

.project-modal .modal-content {
    background: #f7f7f7;
    color: #000;
}

.project-modal .project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.project-modal .project-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #86868b;
}

.project-meta-value {
    font-size: 13px;
    color: #000;
}

.project-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-image-placeholder {
    aspect-ratio: 16/10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ICON COLOR THEMES
   ============================================ */
.icon-betboom { background: linear-gradient(135deg, #1a237e, #ff6f00); }
.icon-dodo { background: #ff6600; }
.icon-parimatch { background: #ffd700; color: #000 !important; }
.icon-logofolio { background: #4fc3f7; }
.icon-dqforum { background: #e53935; }
.icon-dfc { background: #263238; }
.icon-megacampus { background: linear-gradient(135deg, #1b5e20, #4caf50); }
.icon-geely { background: #1a1a2e; }
.icon-luzora { background: linear-gradient(135deg, #5d4037, #d7a86e); }
.icon-dalacamp { background: #212121; }
.icon-visamie { background: #e74c3c; }

/* Project image color themes */
.img-betboom { background: linear-gradient(135deg, #1a237e, #3949ab); }
.img-dodo { background: linear-gradient(135deg, #ff6600, #ff9800); }
.img-parimatch { background: linear-gradient(135deg, #ffd700, #ffeb3b); }
.img-logofolio { background: linear-gradient(135deg, #4fc3f7, #29b6f6); }
.img-dqforum { background: linear-gradient(135deg, #e53935, #ef5350); }
.img-dfc { background: linear-gradient(135deg, #263238, #37474f); }
.img-megacampus { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.img-geely { background: linear-gradient(135deg, #1a1a2e, #3a3a5e); }
.img-luzora { background: linear-gradient(135deg, #5d4037, #8d6e63); }
.img-dalacamp { background: linear-gradient(135deg, #212121, #424242); }
.img-visamie { background: linear-gradient(135deg, #e74c3c, #ef5350); }

/* ============================================
   DOCK ICON SPECIFIC STYLES
   ============================================ */
.dock-about,
.dock-notes,
.dock-instagram,
.dock-telegram,
.dock-whatsapp {
    background: transparent;
    border-radius: 12px;
}

/* ============================================
   UTILITY & ANIMATION
   ============================================ */
.hidden {
    display: none !important;
}

/* Fade in desktop elements */
.desktop-fade-in,
#music-player.desktop-fade-in,
#dock-wrapper.desktop-fade-in,
#menu-bar.desktop-fade-in {
    animation: fadeInUp 0.6s ease;
    opacity: 1;
    pointer-events: auto !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop icon double-click selection */
.desktop-icon.selected .icon-image {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .desktop-icon .icon-image {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .desktop-icon .icon-label {
        font-size: 10px;
    }

    .modal {
        min-width: 320px;
    }

    #notes-modal {
        width: 90vw;
    }

    .project-modal {
        width: 90vw;
    }

    .project-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #notes-modal .modal-content {
        flex-direction: column;
    }

    .notes-sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid #e5e5ea;
        flex-direction: row;
        overflow-x: auto;
    }

    /* Mobile Desktop Icons Grid */
    #desktop-icons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: max-content;
        gap: 24px 10px !important;
        padding: 40px 10px !important;
        width: 100% !important;
        height: calc(100vh - 120px) !important;
        box-sizing: border-box;
        align-content: start;
        justify-items: center;
        overflow-y: auto;
        pointer-events: auto !important;
    }
    
    .desktop-icon {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .desktop-icon::before {
        display: none !important;
    }

    /* Mobile Dock Logic */
    .dock-instagram, .dock-telegram, .dock-behance {
        display: none !important;
    }
    .dock-menu {
        display: flex !important;
    }
}

/* Base styles for the new mobile menu modal */
.dock-menu {
    display: none;
}

.mobile-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 10px;
    justify-items: center;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.app-icon img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.app-icon span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   MOBILE ALERT MODAL (iOS Style)
   ============================================ */
.ios-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ios-alert-overlay.active {
    display: flex;
}

.ios-alert {
    width: 270px;
    background: rgba(242, 242, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: alertPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ios-alert-content {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(60, 60, 67, 0.2);
}

.ios-alert-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.ios-alert-message {
    font-size: 13px;
    color: #000;
    line-height: 1.3;
}

.ios-alert-buttons {
    display: flex;
}

.ios-alert-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px;
    font-size: 17px;
    color: #007aff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0 0 14px 14px;
    outline: none;
}

.ios-alert-button:active {
    background: rgba(0,0,0,0.05);
}

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-player-glass {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 320px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 18px 24px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.player-info {
    position: relative;
    margin-bottom: 16px;
}

.player-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.player-options {
    position: absolute;
    top: 4px;
    right: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.player-options:hover {
    opacity: 1;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 11px;
    opacity: 0.8;
}

.progress-bar-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.1s;
    padding: 0;
}

.control-btn:hover {
    opacity: 1;
}

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    width: 44px;
    height: 44px;
    opacity: 1;
}

.play-btn svg {
    width: 32px;
    height: 32px;
}

/* Lazy Loading Image Spinner */
.lazy-image {
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="%23ffffff" stroke-width="4" stroke-dasharray="31.4 31.4" transform="rotate(0 25 25)"><animateTransform attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    min-height: 200px;
}
.lazy-image.loaded {
    background-image: none;
    min-height: auto;
}
