/* ==========================================================================
   MINIMALIST BIO LINK PAGE — sorry
   StyleSheet: style.css (Dark Aesthetic, Audio Player & Strict Flexbox)
   ========================================================================== */

:root {
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --card-bg: rgba(13, 13, 17, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.22);
    --icon-bg: rgba(255, 255, 255, 0.04);
    --icon-border: rgba(255, 255, 255, 0.1);
    --icon-hover-bg: rgba(255, 255, 255, 0.1);
    --icon-hover-border: rgba(255, 255, 255, 0.45);
    --font-heading: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset (Системный курсор скрыт)
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    cursor: none !important;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-mono);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    transition: background 0.5s ease-in-out;
}

/* Фон: background.gif или чистый тёмный (#080808) */
body.bg-gif {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.78)), 
                url('background.gif') center/cover no-repeat fixed;
}

body.bg-dark {
    background-color: #080808 !important;
    background-image: none !important;
}

/* ==========================================================================
   Заставка входа: we see you
   ========================================================================== */
.enter-screen {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 6, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-align: center;
}

.enter-glitch {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: textBlink 2s infinite ease-in-out;
}

@keyframes textBlink {
    0%, 100% { opacity: 0.75; transform: scale(0.99); }
    50% { opacity: 1; transform: scale(1.01); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
}

/* ==========================================================================
   Кастомный курсор
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.cursor-outline.cursor-hover {
    width: 52px;
    height: 52px;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

@media (pointer: coarse) {
    *, *::before, *::after { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
}

/* ==========================================================================
   Верхняя панель: Смена фона и Mute
   ========================================================================== */
.top-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(18, 18, 22, 0.65);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.icon-button:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Карточка профиля: СТРОГО CSS FLEXBOX
   ========================================================================== */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    transition: border-color var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--card-hover-border);
}

/* 1. Верхний баннер (banner.gif) */
.banner-wrapper {
    display: flex;
    width: 100%;
    height: 125px;
    overflow: hidden;
    background: #080808;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент карточки */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 24px 28px 24px;
    margin-top: -46px; /* Наплыв аватарки на баннер */
}

/* 2. Аватарка (avatar.png) */
.avatar-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: rgba(14, 14, 18, 0.95);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.avatar-box:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.7);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    user-select: none;
    display: block;
}

/* 3. Основной заголовок: sorry */
.nickname {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
    margin: 2px 0 6px 0;
}

/* ==========================================================================
   4. Компактный аудиоплеер ("всех убило солью")
   ========================================================================== */
.audio-player-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.audio-player-compact:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

/* Анимированный эквалайзер */
.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    flex-shrink: 0;
}

.equalizer-bars .bar {
    width: 2.5px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: height 0.2s ease;
    opacity: 0.85;
}

.equalizer-bars.playing .bar {
    animation: eqAnim 1s infinite alternate ease-in-out;
}

.equalizer-bars.playing .bar:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.equalizer-bars.playing .bar:nth-child(2) { animation-delay: 0.3s; height: 8px; }
.equalizer-bars.playing .bar:nth-child(3) { animation-delay: 0.2s; height: 14px; }
.equalizer-bars.playing .bar:nth-child(4) { animation-delay: 0.4s; height: 6px; }

@keyframes eqAnim {
    0% { height: 3px; }
    50% { height: 14px; }
    100% { height: 6px; }
}

.track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.track-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.card-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #000000;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.card-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* 5. Круглые иконки соцсетей в ряд (Flexbox Row) */
.social-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 4px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--icon-hover-bg);
    border-color: var(--icon-hover-border);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    body { padding: 16px; }
    .banner-wrapper { height: 110px; }
    .card-content { margin-top: -42px; padding: 0 18px 24px 18px; }
    .avatar-box { width: 84px; height: 84px; }
    .nickname { font-size: 1.55rem; }
    .enter-glitch { font-size: 1.05rem; letter-spacing: 3px; }
}
