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

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #050509;
    --bg-soft: #0d0d17;
    --accent: #ff2470;
    --accent-2: #5b5bff;
    --text: #f8f8ff;
    --muted: #9b9bb3;
    --border: rgba(255,255,255,0.08);
    --radius-xl: 26px;
    --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.7);
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #11102a 0, #050509 40%, #000 100%);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg-glow {
    position: fixed;
    inset: -40%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 36, 112, 0.25), transparent 60%),
        radial-gradient(circle at 90% 20%, rgba(91, 91, 255, 0.2), transparent 60%),
        radial-gradient(circle at 40% 100%, rgba(255, 255, 255, 0.05), transparent 60%);
    filter: blur(4px);
}

/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(18px, 4vw, 40px);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5,5,9,0.96), rgba(5,5,9,0.85), transparent);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__online {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4af59b;
    box-shadow: 0 0 14px rgba(74, 245, 155, 0.8);
}

/* LOGO 3D */

.logo-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #ff2470 0, #111 55%);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
}

.logo-3d__ring {
    position: absolute;
    inset: -40%;
    background:
        conic-gradient(from 0deg, #ff2470, #fffb7d, #5b5bff, #ff2470);
    opacity: 0.45;
    filter: blur(12px);
    animation: spin 10s linear infinite;
}

.logo-3d__text {
    position: relative;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 14px;
}

/* NAV */

.nav {
    display: flex;
    gap: 14px;
    font-size: 14px;
    background: rgba(12,12,22,0.85);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
}

.nav a {
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.18s ease;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(30px, 6vw, 60px);
    padding: clamp(18px, 3vw, 32px) clamp(18px, 4vw, 40px);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15,15,25,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
}

.hero__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ff2470;
    box-shadow: 0 0 12px rgba(255,36,112,0.9);
}

.hero__title {
    font-size: clamp(40px, 6vw, 64px);
    margin: 16px 0 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__subtitle {
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.hero__buttons {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff2470, #ff7bff);
    color: #fff;
    box-shadow: 0 14px 35px rgba(255,36,112,0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255,36,112,0.6);
}

.btn-ghost {
    background: rgba(15,15,26,0.9);
    color: var(--muted);
    border-color: rgba(255,255,255,0.1);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

/* HERO VISUAL 3D CARD */

.hero__visual {
    display: flex;
    justify-content: center;
}

.card-3d {
    width: clamp(260px, 32vw, 340px);
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 0, #ff2470 0, #1b1630 45%, #050509 100%);
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
}

.card-3d__layer {
    position: absolute;
    inset: 0;
}

.card-3d__layer--bg {
    background:
        radial-gradient(circle at 10% 0, rgba(255,255,255,0.1), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(91,91,255,0.5), transparent 50%);
    mix-blend-mode: screen;
}

.card-3d__layer--mid {
    background-image: linear-gradient(145deg, rgba(0,0,0,0.8) 0, rgba(0,0,0,0) 50%);
    backdrop-filter: blur(4px);
}

.card-3d__layer--top {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
}

.wave {
    position: absolute;
    inset: 20% 10%;
    border-radius: 40% 60% 55% 45%;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    animation: float 13s ease-in-out infinite alternate;
}

.wave--2 {
    inset: 10% 15%;
    border-color: rgba(255,255,255,0.08);
    animation-duration: 11s;
}

.wave--3 {
    inset: 30% 20%;
    border-color: rgba(255,255,255,0.06);
    animation-duration: 15s;
}

.card-3d__label {
    position: relative;
    z-index: 2;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(5,5,9,0.9);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* SECTIONS */

Rpx clamp(18px, 4vw, 40px) 40px;
}

.section--dark {
    background: radial-gradient(circle at top, rgba(21,21,40,0.9) 0, #050509 40%);
}

.section__head h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.section__head p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* GRID */

.grid {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.grid--tracks {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--videos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* TRACK CARD */

.track-card {
    background: rgba(12,12,22,0.96);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    display: flex;
    gap: 14px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    transform-origin: center;
}

.track-card__cover {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 0 0, #ff2470, #111);
    flex-shrink: 0;
}

.track-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 32px;
    color: rgba(255,255,255,0.8);
}

.track-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-card__body h3 {
    margin: 0;
    font-size: 15px;
}

.track-card__desc {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-height: 3.4em;
    overflow: hidden;
}

.track-card__audio {
    width: 100%;
    margin-top: 4px;
}

.track-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.track-card__links a {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,15,26,0.9);
}

/* VIDEO CARD */

.video-card {
    background: rgba(7,7,14,0.96);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.video-card__frame {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
}

.video-card__frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.video-card h3 {
    margin: 0;
    font-size: 15px;
}

/* FOOTER */

.footer {
    padding: 16px clamp(18px, 4vw, 40px) 26px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

/* ADMIN */

.admin-body {
    background: radial-gradient(circle at top, #151528 0, #050509 40%, #000 100%);
}

.admin-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px 40px;
}

.admin-title {
    text-align: center;
    margin-bottom: 16px;
}

.admin-login {
    max-width: 360px;
    margin: 0 auto;
    background: rgba(12,12,22,0.95);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-login input {
    width: 100%;
}

.admin-topbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 20px;
}

.admin-card {
    background: rgba(12,12,22,0.96);
    border-radius: 24px;
    padding: 16px 16px 18px;
    border: 1px solid var(--border);
}

.admin-card h2 {
    margin-top: 0;
    font-size: 16px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(7,7,14,0.9);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

.inline {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}

.help {
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 4px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.admin-list__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(7,7,14,0.9);
}

.muted {
    color: var(--muted);
    font-size: 11px;
}

.error {
    color: #ff6b88;
    font-size: 12px;
}

/* UTILS */

.empty {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        order: -1;
        margin-bottom: 10px;
    }

    .nav {
        display: none;
    }

    .header {
        justify-content: space-between;
    }
}

/* ANIMATIONS */

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(0, -10px, 10px) rotate(3deg);
    }
}


/* ===========================
   Top tracks of the week
   =========================== */

.section--top-tracks {
    padding-top: 32px;
    padding-bottom: 24px;
}

.section__head--compact {
    max-width: 640px;
    margin-bottom: 28px;
}

.top-tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .top-tracks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .top-tracks-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.top-track-card {
    position: relative;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, rgba(255, 36, 112, 0.15), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(91, 91, 255, 0.14), transparent 55%),
                rgba(12, 12, 22, 0.95);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    padding: 18px 18px 20px;
    transform: translateY(0) scale(1);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background 320ms ease;
}

.top-track-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 0 0, rgba(255, 36, 112, 0.22), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(91, 91, 255, 0.22), transparent 55%),
                rgba(10, 10, 20, 0.98);
}

.top-track-card__inner {
    position: relative;
    z-index: 1;
}

.top-track-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 260ms ease;
}

.top-track-card:hover::before {
    opacity: 1;
}

.top-track-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.top-track-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 248, 255, 0.78);
}

.top-track-card__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, #ff2470);
    box-shadow: 0 0 12px rgba(255, 36, 112, 0.8);
}

.top-track-card__pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 248, 255, 0.75);
    background: linear-gradient(120deg, rgba(255, 36, 112, 0.18), rgba(91, 91, 255, 0.15));
    backdrop-filter: blur(10px);
}

.top-track-card__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

@media (max-width: 640px) {
    .top-track-card__main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.top-track-card__cover {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.top-track-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 260ms ease;
}

.top-track-card:hover .top-track-card__cover img {
    transform: scale(1.06);
}

.top-track-card__cover-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0 0, rgba(255, 36, 112, 0.42), rgba(5, 5, 9, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 32px;
    color: rgba(248, 248, 255, 0.96);
}

.top-track-card__info {
    min-width: 0;
}

.top-track-card__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 4px;
    color: #ffffff;
}

.top-track-card__desc {
    font-size: 13px;
    color: rgba(155, 155, 179, 0.95);
    margin: 0 0 10px;
}

.top-track-card__player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.top-track-card__play {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #fff, #ff2470);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 220ms ease;
}

.top-track-card__play:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.22);
}

.top-track-card__play-icon {
    position: relative;
    width: 12px;
    height: 12px;
    display: block;
}

.top-track-card__play-icon::before,
.top-track-card__play-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: #050509;
    clip-path: polygon(20% 10%, 85% 50%, 20% 90%);
    transition: opacity 160ms ease, clip-path 160ms ease, transform 160ms ease;
}

.top-track-card__play-icon::after {
    opacity: 0;
    clip-path: polygon(25% 10%, 45% 10%, 45% 90%, 25% 90%, 55% 10%, 75% 10%, 75% 90%, 55% 90%);
}

.top-track-card__play.is-playing .top-track-card__play-icon::before {
    opacity: 0;
    transform: scale(0.8);
}

.top-track-card__play.is-playing .top-track-card__play-icon::after {
    opacity: 1;
}

.top-track-card__progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.top-track-card__progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff2470, #fffb7d, #5b5bff);
    background-size: 180% 100%;
    animation: top-track-progress-gradient 2600ms linear infinite;
}

.top-track-card__player.is-idle .top-track-card__progress-fill {
    opacity: 0.4;
}

.top-track-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(155, 155, 179, 0.96);
}

.top-track-card__meta-sep {
    opacity: 0.7;
}

/* Визуализатор */

.top-track-card__visualizer {
    position: relative;
    margin-top: 4px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    opacity: 0.9;
}

.top-track-card__bar {
    flex: 1;
    min-width: 2px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(255, 36, 112, 0.1), rgba(255, 36, 112, 0.9));
    transform-origin: bottom center;
    transform: scaleY(0.2);
    transition: transform 160ms ease-out;
}

.top-track-card__visualizer.is-playing .top-track-card__bar {
    animation: top-track-bar-pulse 800ms ease-in-out infinite;
    animation-delay: calc(var(--bar-i) * 20ms);
}

/* Анимации */

@keyframes top-track-progress-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: -180% 50%; }
}

@keyframes top-track-bar-pulse {
    0%, 100% { transform: scaleY(0.2); }
    50% { transform: scaleY(1); }
}




/* ADMIN ICONS FIX – compact modern buttons instead of huge icons */
.admin-list__item-buttons,
.admin-list__item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* Все кнопки-иконки внутри списка треков/клипов */
.admin-list__item button,
.admin-list__item a.admin-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    padding: 0;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    transition:
        transform 0.16s ease-out,
        box-shadow 0.18s ease-out,
        background-color 0.16s ease-out,
        opacity 0.16s ease-out;
}

.admin-list__item button:hover,
.admin-list__item a.admin-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
}

/* Если иконки добавлены картинками – ужимаем их размер */
.admin-list__item button img,
.admin-list__item a.admin-icon-btn img,
.admin-list__item > img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
