/* === БАЗА === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white: #ffffff;
    --black: #333333;
    --purple: #110718;
    --gray: #888888;
    --bg: rgba(0, 0, 0, 0.25);
    --dark-gray: #ffffff10;
    --accent: rgba(133, 4, 255, 0.45);
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;
    --display: 'Unbounded', sans-serif;
}

html {
    height: 100%;
}


body {
    font-family: var(--mono);
    background: var(--purple);
    color: var(--white);
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 32px);
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

/* === ФОН === */
.stripes {
    position: fixed;
    inset: -100px;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 40px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 40px
        );
    z-index: 0;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.bg-lights {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.light-sphere {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.s1 {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
    animation: orbit1 20s infinite linear;
}

.s2 {
    background: radial-gradient(circle, rgba(160, 64, 255, 0.25) 0%, transparent 70%);
    animation: orbit2 25s infinite linear;
}

.s3 {
    background: radial-gradient(circle, rgba(235, 6, 196, 0.2) 0%, transparent 70%);
    animation: orbit3 18s infinite linear;
}

@keyframes orbit1 {
    0% { transform: translate(-70%, -30%) scale(1); }
    50% { transform: translate(-30%, -70%) scale(1.2); }
    100% { transform: translate(-70%, -30%) scale(1); }
}

@keyframes orbit2 {
    0% { transform: translate(-20%, -20%) scale(1.1); }
    50% { transform: translate(-80%, -80%) scale(0.9); }
    100% { transform: translate(-20%, -20%) scale(1.1); }
}

@keyframes orbit3 {
    0% { transform: translate(-50%, -80%) scale(0.8); }
    50% { transform: translate(-50%, -20%) scale(1.3); }
    100% { transform: translate(-50%, -80%) scale(0.8); }
}

/* === КОНТЕЙНЕР === */
.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: min(800px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 22px);
}

/* === ОБЩАЯ РАМКА === */
.frame {
    position: relative;
    background: var(--bg);
    border-radius: 6px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid var(--dark-gray);
    background-clip: padding-box;
    animation: appear 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* === ПРОФИЛЬ === */
.card {
    padding: clamp(24px, 4vw, 32px);
    text-align: center;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 20px);
    padding: clamp(14px, 3vw, 18px) clamp(16px, 3.5vw, 22px);
}

.profile-main {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 20px);
    min-width: 0;             /* чтобы длинное имя не выламывало flex */
    flex: 1;
}

.avatar-wrap {
    position: relative;
    width: clamp(48px, 11vw, 64px);      /* ← уменьшили с 96–120px */
    height: clamp(48px, 11vw, 64px);
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    display: block;
}

.avatar-wrap::before {
    content: '';
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.name {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(20px, 3.4vw, 22.5px);
    letter-spacing: -0.4px;
    margin: 0;
    background: var(--white);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shift 6s linear infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bio {
    font-size: clamp(11px, 2.6vw, 12px);
    line-height: 1.4;
    color: rgba(255,255,255,0.55);
    overflow: hidden;
}


@keyframes shift {
    to { background-position: 300% 0; }
}



.socials {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    flex-shrink: 0;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(34px, 8vw, 40px);
    height: clamp(34px, 8vw, 40px);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.social img,
.social svg {
    width: 55%;
    height: 55%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.social:hover,
.social:focus-visible {
    background: var(--dark-gray);
    box-shadow: 0 0 5px var(--gray);
    outline: none;
}

/* === СЕКЦИИ === */
.section {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 14px);
    
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(13px, 3.2vw, 15px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;    
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
}


.grid {
    --gap: clamp(10px, 2vw, 14px);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

/* === КАРТОЧКА === */
.cell {
    flex: 1 1 calc(50% - var(--gap) / 2);
    min-width: 240px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon desc";
    column-gap: clamp(10px, 2vw, 14px);
    row-gap: 4px;
    align-items: center;

    padding: clamp(16px, 3.5vw, 22px);
    text-decoration: none;
    color: #fff;
    background: var(--bg);
    border: 1.5px solid var(--dark-gray);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: appear 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.cell:hover,
.cell:focus-visible {
    box-shadow: 0 0 5px var(--gray);
    transition: box-shadow 0.25s ease;
}

.cell-icon {
    grid-area: icon;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
    margin: 0;                    /* убрали margin-bottom */
    flex-shrink: 0;
}

.cell-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cell-title {
    grid-area: title;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(13px, 3.2vw, 15px);
    color: #fff;
    letter-spacing: 0.3px;
}

.cell-desc {
    grid-area: desc;
    font-family: var(--mono);
    font-size: clamp(11px, 2.8vw, 12.5px);
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
}

/* === ОБРАТНЫЙ ОТСЧЁТ === */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 14px);
}

.countdown-card {
    padding: clamp(16px, 3.5vw, 22px) clamp(12px, 2.5vw, 16px);
    text-align: center;
}

.mini-label {
    font-size: clamp(10px, 2.4vw, 11.5px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.days {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.days .num {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.days .unit {
    font-size: clamp(10px, 2.5vw, 11px);
    color: var(--gray);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.time {
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
}

/* === ФУТЕР === */
.footer {
    text-align: center;
    font-size: clamp(10px, 2.5vw, 11px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 6px 0;
}


/* === NOW PLAYING === */
.nowplaying {
    padding: clamp(14px, 3vw, 18px) clamp(16px, 3.5vw, 20px);
}

.np-label {
    font-family: var(--mono);
    font-size: clamp(10px, 2.4vw, 11.5px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
}

.np-content {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 16px);
    min-width: 0;
    animation: np-in 0.15s ease-out;
}

.np-art {
    width: clamp(48px, 11vw, 56px);
    height: clamp(48px, 11vw, 56px);
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 1.5px solid rgba(255,255,255,0.08);
}
.np-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.np-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.np-track {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(13px, 3.2vw, 15px);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    font-family: var(--mono);
    font-size: clamp(11px, 2.6vw, 12.5px);
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.np-progress {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.np-bar {
    height: 100%;
    width: 0%;
    background: #9a00c9;
    border-radius: 2px;
    transition: width 1s linear;
}

.np-time {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.np-skeleton { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 16px); }
.np-skeleton.hidden { display: none; }
.np-content.hidden { display: none; }

.sk {
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    background-size: 200% 100%;
    animation: sk-shimmer 1.6s linear infinite;
    border-radius: 6px;
}
.sk-line { height: 12px; margin: 4px 0; }
.sk-line--lg { width: 60%; }
.sk-line--md { width: 40%; height: 10px; }
.np-skeleton .np-art { border: none; }
.np-skeleton .np-info { flex: 1; }

@keyframes sk-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.np-idle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    color: rgba(255,255,255,0.35);
    font-family: var(--mono);
    font-size: clamp(12px, 2.8vw, 13px);
    letter-spacing: 0.3px;
    animation: np-in 0.15s ease-out;
}

.np-idle svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.6;
    color: rgba(255,255,255,0.4);
}
@keyframes np-in {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .cell {
        flex-basis: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stripes,
    .frame,
    .name { animation: none; }
    .stripes { transition: none; }
}

/* === МОБИЛЬНЫЙ: увеличиваем всё, что ужалось === */
@media (max-width: 520px) {

    /* Больше воздуха по краям */
    body {
        padding: 20px 16px;
    }

    /* Контейнер занимает всю ширину, без потерь */
    .container {
        max-width: 100%;
        gap: 16px;
    }

    .light-sphere {
        width: 90vw;
        height: 90vw;
        filter: blur(60px);
        opacity: 0.7;
    }

    /* === ПРОФИЛЬ === */
    .profile {
        padding: 16px;
    }

    .avatar-wrap {
        width: 56px;
        height: 56px;
    }

    .avatar-wrap::before {
        inset: -4px;
        border-width: 2px;
    }

    .name {
        font-size: 22px;         /* было ~20px */
    }

    .bio {
        font-size: 13px;         /* было 11px */
    }

    /* Соцсети — крупнее */
    .social {
        width: 42px;
        height: 42px;
        border-radius: 6px;
    }

    .social img,
    .social svg {
        width: 60%;
        height: 60%;
    }

    /* === NOW PLAYING === */
    .nowplaying {
        padding: 16px;
    }

    .np-label {
        font-size: 11px;
        margin-bottom: 14px;
    }
    
    .np-time {
        font-size: 12px;
    }

    .np-art {
        width: 56px;
        height: 56px;
    }

    .np-track {
        font-size: 15px;         /* было 13px */
    }

    .np-artist {
        font-size: 13px;         /* было 11px */
    }

    .np-progress {
        height: 4px;
    }

    .np-idle {
        font-size: 13.5px;
    }

    .np-idle svg {
        width: 26px;
        height: 26px;
    }

    /* === СЕКЦИЯ С КАРТОЧКАМИ === */
    .section-title {
        font-size: 14px;
        margin-left: 4px;
    }

    .grid {
        gap: 12px;
    }

    .cell {
        padding: 18px;
        column-gap: 14px;
        row-gap: 6px;
    }

    .cell-icon {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    .cell-title {
        font-size: 14px;         /* было 13px */
    }

    .cell-desc {
        font-size: 12.5px;       /* было 11px */
    }

    /* === COUNTDOWN === */
    .countdown-card {
        padding: 18px 12px;
    }

    .mini-label {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .days .num {
        font-size: 38px;         /* было 26px */
    }

    .days .unit {
        font-size: 12px;
    }

    .time {
        font-size: 13px;
    }

    /* === ФУТЕР === */
    .footer {
        font-size: 11px;
    }
}