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

/* Disable selection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar */
html {
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none;
}

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

/* ===== Background ===== */
.background {
    position: fixed;
    inset: 0;
    z-index: -10;
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -9;
    background: #0033ff66;
}

/* ===== Video Overlay ===== */
.video-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 1;
}

.video-overlay .video-darken {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 620px;
    padding: 24px 16px;
    margin-top: -30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: scale(1.08);
    transform-origin: center top;
}

/* ===== Profile Card ===== */
.profile-card {
    width: 100%;
    max-width: 620px;
    border-radius: 16px;
    overflow: visible;
    position: relative;
}

/* ===== Banner Section ===== */
.banner-section {
    position: relative;
    height: 220px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #000;
}

.banner-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #1100ff66, transparent 60%);
    z-index: 12;
    border-radius: 16px 16px 0 0;
}

/* ===== Stats ===== */
.stats-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 150;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(23, 23, 23, 0.8);
    border: 1px solid rgba(38, 38, 38, 0.7);
    backdrop-filter: blur(4px);
}

.stat-item svg,
.stat-item .stat-icon {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.stat-item .stat-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.stat-item span {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.33);
}

/* ===== Avatar ===== */
.avatar-wrapper {
    position: absolute;
    left: 50%;
    top: 220px;
    transform: translate(-50%, -50%);
    z-index: 2000;
}

.avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #000;
    box-shadow: 0 0 30px #0033ff;
    background: #262626;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(50% at 50% 50%);
}

/* ===== Profile Content ===== */
.profile-content {
    position: relative;
    padding: 64px 16px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    border-radius: 0 0 16px 16px;
    z-index: 5;
}

/* ===== Divider Lines ===== */
.divider-line {
    width: 92%;
    max-width: 768px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(0, 22, 87, 0.4), #001657, rgba(0, 22, 87, 0.4), transparent);
    box-shadow: 0 0 10px rgba(0, 22, 87, 0.4);
    margin: 16px auto;
}

.divider-line.mid {
    width: 88%;
    max-width: 672px;
}

.divider-line.bottom {
    width: 76%;
    max-width: 620px;
}

/* ===== Name Section ===== */
.name-section {
    text-align: center;
    margin-top: 24px;
}

.display-name {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.33);
}

.username {
    margin-top: 4px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.33);
}

/* ===== Bio ===== */
.bio-section {
    margin-top: 12px;
    text-align: center;
}

.bio-text {
    white-space: pre-wrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.33);
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-bottom: 24px;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.27));
    text-decoration: none;
}

.social-link:hover,
.social-link:focus,
.social-link:active {
    text-decoration: none;
}

.social-link i {
    font-size: 28px;
    color: #fff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.27));
    transition: transform 0.2s ease;
}

.social-link:hover i,
.social-link:focus i,
.social-link:active i {
    transform: scale(1.1);
    color: #fff !important;
}

.tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    color: #fff !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.social-link:hover .tooltip {
    opacity: 1;
}

/* ===== Music Player ===== */
.music-player {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.player-inner {
    border-radius: 12px;
    background: rgba(0, 15, 50, 0.45);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.album-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.track-title {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.control-btn {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.control-btn.play {
    width: 28px;
    height: 28px;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.time {
    font-size: 12px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.time.duration {
    text-align: right;
}

.progress-bar {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 9999px;
    background: rgba(38, 38, 38, 0.8);
    cursor: pointer;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #fff, #fff);
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    left: 0%;
}

/* ===== Fixed Controls ===== */
.fixed-controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 200;
}

.fixed-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #2a2a2a;
    background: rgba(18, 18, 18, 0.9);
    cursor: pointer;
}

.volume-icon {
    width: 20px;
    height: 20px;
    background: #fff;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/></svg>') center / contain no-repeat;
}

.mixer-icon {
    position: relative;
    width: 18px;
    height: 12px;
}

.mixer-icon::before,
.mixer-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.mixer-icon::before { top: 0; }
.mixer-icon::after { bottom: 0; }

.mixer-icon i {
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

/* ===== Mixer Wrapper ===== */
.mixer-wrapper {
    position: relative;
}

/* ===== Equalizer Panel ===== */
.equalizer-panel {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 70px;
    padding: 12px 8px 16px;
    background: rgba(10, 20, 50, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.mixer-wrapper:hover .equalizer-panel,
.equalizer-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eq-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 12px;
}

.eq-icon {
    font-size: 10px;
    color: #fff;
    opacity: 0.9;
}

.eq-sliders {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 110px;
}

.eq-slider-track {
    width: 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.eq-slider-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 5px;
    transition: height 0.1s ease;
}

.eq-slider-handle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: grab;
}

.eq-slider-handle:active {
    cursor: grabbing;
}

/* ===== Responsive ===== */
@media (max-width: 620px) {
    .main-container {
        transform: scale(1);
        padding: 12px;
        margin-top: 0;
    }

    .banner-section {
        height: 160px;
    }

    .banner-img {
        object-fit: contain;
        object-position: center;
        background: #000;
    }

    .avatar-wrapper {
        top: 160px;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .profile-content {
        padding-top: 45px;
    }

    .display-name {
        font-size: 20px;
    }

    .social-link i {
        font-size: 24px;
    }

    .player-content {
        gap: 12px;
    }

    .album-cover {
        width: 40px;
        height: 40px;
    }

    .track-title {
        font-size: 13px;
    }
}
