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

body {
    font-family: 'Inter', sans-serif;
    background:#000;
    overflow-x:hidden;
}

/* BACKGROUND VIDEO */
#preview-bg {
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-1;
    transform:scale(1);
    transition:transform 3s ease;
}

#preview-bg.zoomed { transform:scale(1.08); }

/* PREVIEW */
#preview-screen {
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(20px);
    z-index:1000;
    transition:opacity .6s ease;
    cursor:pointer;
}

#preview-screen.hidden {
    opacity:0;
    pointer-events:none;
}

.preview-text {
    color:white;
    font-size:3rem;
    animation:pulse 2s infinite;
}

@keyframes pulse {
    0%,100%{opacity:.7}
    50%{opacity:1}
}

/* MAIN */
#main-content {
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity .8s ease;
}

#main-content.visible { opacity:1; }

/* CARD */
.card {
    width:100%;
    max-width:480px;
    padding: 0 15px;
}

.card-inner {
    background:rgba(20,20,20,0.55);
    backdrop-filter:blur(25px);
    border-radius:24px;
    overflow:hidden;
    text-align:center;
    padding-bottom:40px;
    border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 20px 60px rgba(0,0,0,0.6);
    transform-style:preserve-3d;

    transform:translateY(30px) scale(0.95);
    opacity:0;
    filter:blur(25px);

    transition:transform 1.2s cubic-bezier(.16,1,.3,1),
               opacity 1s ease,
               filter 1.2s ease;
}

#main-content.visible .card-inner {
    transform:translateY(0) scale(1);
    opacity:1;
    filter:blur(0);
}

.header-banner { height:160px; overflow:hidden; }
.header-banner img { width:100%; height:100%; object-fit:cover; }

.avatar-container { margin-top:-60px; margin-bottom:20px; }
.avatar {
    width:120px; height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid rgba(255,255,255,0.3);
}

.username {
    background:linear-gradient(
        90deg,#fff 0%,#fff 40%,rgba(255,255,255,.3) 50%,#fff 60%,#fff 100%
    );
    background-size:200% 100%;
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    animation:textShine 3s linear infinite;
    font-size:2rem;
    margin-bottom:8px;
}

@keyframes textShine {
    0%{background-position:-200% 0}
    100%{background-position:200% 0}
}

.info { color:rgba(255,255,255,.9); margin-bottom:20px; }

.social-icons {
    display:flex;
    justify-content:center;
    gap:25px;
}

.social-icon { width:50px; height:50px; transition:.3s; }
.social-icon img { width:100%; height:100%; }

.social-icon:hover {
    transform:scale(1.2);
    filter:drop-shadow(0 0 15px rgba(255,255,255,.9));
}

/* PLAYER */
.player-container {
    width:100%;
    max-width:480px;
    margin-top:25px;
    background:rgba(20,20,20,0.55);
    backdrop-filter:blur(25px);
    border-radius:20px;
    padding:25px;
    border:1px solid rgba(255,255,255,0.15);
}

.player-controls {
    display:flex;
    align-items:center;
    gap:15px;
}

.time { color:white; min-width:45px; }

.progress-bar {
    flex:1;
    height:6px;
    background:rgba(255,255,255,.2);
    border-radius:3px;
    cursor:pointer;
}

.progress {
    height:100%;
    width:0%;
    background:white;
}

.play-button {
    width:40px; height:40px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.play-button svg { fill:white; width:20px; height:20px; }

/* MINI EQ */
.mini-eq {
    display:flex;
    gap:3px;
    align-items:flex-end;
    height:18px;
}

.mini-eq span {
    width:3px;
    height:6px;
    background:white;
    border-radius:2px;
    opacity:.4;
}

.mini-eq.active span {
    animation:eqBounce .8s infinite ease-in-out;
    opacity:1;
}

.mini-eq.active span:nth-child(2){animation-delay:.1s}
.mini-eq.active span:nth-child(3){animation-delay:.2s}
.mini-eq.active span:nth-child(4){animation-delay:.15s}

@keyframes eqBounce {
    0%{height:4px}
    50%{height:18px}
    100%{height:6px}
}

/* VOLUME */
.volume-slider {
    width:90px;
    appearance:none;
    height:4px;
    border-radius:4px;
    cursor:pointer;
    --volume-percent:100%;
    background:linear-gradient(
        to right,
        #fff 0%,
        #fff var(--volume-percent),
        rgba(255,255,255,.25) var(--volume-percent),
        rgba(255,255,255,.25) 100%
    );
}

.volume-slider::-webkit-slider-thumb {
    appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:white;
    cursor:pointer;
}

/* SECRET */
#secret-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    backdrop-filter:blur(20px);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:.4s ease;
    z-index:9999;
}

#secret-overlay.active {
    opacity:1;
    pointer-events:all;
}

.secret-content {
    position:relative;
    width:80%;
    max-width:900px;
}

#secret-video { width:100%; border-radius:16px; }

#secret-close {
    position:absolute;
    top:-40px;
    right:0;
    background:none;
    border:none;
    color:white;
    font-size:28px;
    cursor:pointer;
}

/* TETRIS OVERLAY */
#tetris-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

#tetris-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.tetris-content {
    position: relative;
}

#tetris-canvas {
    background: #000;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

#tetris-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* ================= HIDDEN IMAGE ================= */

#hidden-image-trigger {
    width: 480px;
    height: 15px;
    margin: 10px auto 0 auto;
    opacity: 0;
    cursor: pointer;
}

#fullscreen-image {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#fullscreen-image.active {
    opacity: 1;
    pointer-events: all;
}

#fullscreen-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.track-info {
    text-align: center;
    margin-bottom: 12px;
}

#track-title {
    font-size: 16px;
    font-weight: 600;

    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 40%,
        rgba(255,255,255,.3) 50%,
        #fff 60%,
        #fff 100%
    );

    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    animation: trackShine 3s linear infinite;

    text-shadow:
        0 0 8px rgba(255,255,255,0.4),
        0 0 18px rgba(255,255,255,0.25);
}

@keyframes trackShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

#track-artist {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-top: 4px;
    text-shadow: 0 0 6px rgba(255,255,255,0.25);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    #main-content {
        padding: 20px 0;
    }

    .card-inner {
        border-radius: 20px;
    }

    .username {
        font-size: 1.6rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .player-container {
        padding: 18px;
        border-radius: 16px;
    }

    .player-controls {
        gap: 10px;
    }

    .time {
        font-size: 12px;
        min-width: 40px;
    }

    #track-title {
        font-size: 14px;
    }

    #track-artist {
        font-size: 11px;
    }

    .volume-slider {
        width: 70px;
    }

}

@media (hover: none) {
    .social-icon:hover {
        transform: none;
        filter: none;
    }
}