:root {
    --bg-main: #000000;
    --bg-panel: rgba(10, 0, 0, 0.9);
    --bg-panel-2: rgba(20, 0, 0, 0.95);

    --accent: #ff003c;         
    --accent-soft: #ff2a6d;    
    --accent-glow: #ff0055;

    --text-main: #ffffff;
    --text-dim: #aaaaaa;

    --border: rgba(255, 0, 60, 0.25);

    --shadow: 0 0 40px rgba(255, 0, 60, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 0, 60, 0.2), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.15), transparent 50%),
        linear-gradient(180deg, #000000 0%, #070000 50%, #120000 100%);
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-ornament {
    position: absolute;
    user-select: none;
    pointer-events: none;
}

.bg-ornament--emo {
    top: 34px;
    right: 50px;
    width: 240px;
    opacity: 0.16;
    filter: drop-shadow(0 0 24px rgba(255, 20, 90, 0.2));
}

.bg-ornament--blood {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: none;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.bg-ornament--sigil {
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    opacity: 0.1;
    filter: blur(0.5px) drop-shadow(0 0 28px rgba(170, 0, 0, 0.22));
}

.bg-ornament--skull {
    right: 24px;
    bottom: 12px;
    width: 220px;
    opacity: 0.13;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.05));
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    z-index: 1;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(255,255,255,.08) 25%, transparent 26%, transparent 74%, rgba(255,255,255,.08) 75%, transparent 76%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255,255,255,.06) 25%, transparent 26%, transparent 74%, rgba(255,255,255,.06) 75%, transparent 76%, transparent);
    background-size: 4px 4px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
    padding: 70px 0 42px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at center, rgba(160, 0, 40, 0.15), transparent 48%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

.hero__inner {
    text-align: center;
}

.hero__symbol-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.hero__symbol {
    width: 150px;
    max-width: 34vw;
    opacity: 0.95;
    filter:
        drop-shadow(0 0 18px rgba(255, 50, 120, 0.25))
        drop-shadow(0 0 36px rgba(160, 0, 0, 0.18));
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 12px;
    margin-bottom: 18px;
}

.hero h1 {
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255, 0, 60, 0.6),
        0 0 30px rgba(255, 0, 60, 0.4),
        0 0 60px rgba(255, 0, 60, 0.2);
}

.hero__text {
    margin: 0 auto;
    max-width: 760px;
    color: var(--text-dim);
    line-height: 1.75;
    font-size: 18px;
}

.hero__stats {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-box {
    min-width: 180px;
    background: rgba(18, 8, 10, 0.7);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 6px;
}

.stat-value {
    color: var(--accent);
}

.catalog {
    display: grid;
    gap: 26px;
    padding: 34px 0 40px;
}

.artist-card {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.artist-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 30, 90, 0.08), transparent 32%);
    pointer-events: none;
}

.artist-card__sigil-bg {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    background-image: url("/static/images/666.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
}

.artist-card__media {
    position: relative;
    z-index: 1;
}

.artist-card__media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #120c0d;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sigil {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    background:
        radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 60%);
}

.artist-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.artist-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.nickname {
    color: var(--accent-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.artist-card__top h2 {
    margin: 0;
    font-size: 32px;
    color: #fff6da;
}

.coolness-badge {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    background: rgba(120, 0, 20, 0.22);
    color: var(--accent);
    font-size: 14px;
    box-shadow: inset 0 0 16px rgba(117, 58, 73, 0.05);
}

.artist-meta {
    margin-top: 14px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 14px;
}

.artist-description {
    margin: 18px 0 22px;
    color: var(--text-main);
    line-height: 1.72;
}

.tracks {
    display: grid;
    gap: 12px;
}

.track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.track-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 60, 100, 0.22);
    background: rgba(255, 0, 70, 0.03);
}

.track-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #fff0db;
}

.track-info p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

.play-btn,
#togglePlay,
.danger-btn {
    border-radius: 10px; 
    padding: 10px 14px;

    border: 1px solid rgba(255, 0, 60, 0.4);

    background: linear-gradient(180deg, #ff003c, #5a0015);
    color: #fff;

    box-shadow: 0 0 10px rgba(255, 0, 60, 0.35);

    transition: all 0.15s ease;
}

.play-btn:hover,
#togglePlay:hover,
.danger-btn:hover {
    transform: translateY(-1px); 
    box-shadow: 0 0 16px rgba(255, 0, 60, 0.6);
}

.global-player {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background:
        linear-gradient(180deg, rgba(10, 7, 7, 0.96), rgba(18, 8, 10, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.global-player::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/images/blood.png");
    background-repeat: no-repeat;
    background-size: 420px;
    background-position: right top;
    opacity: 0.07;
    pointer-events: none;
}

.global-player__skull {
    position: absolute;
    right: 18px;
    bottom: -16px;
    width: 120px;
    height: 120px;
    background-image: url("/static/images/skull.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.12;
    pointer-events: none;
}

.global-player__meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.player-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(212, 175, 55, 0.4), rgba(139, 0, 0, 0.14));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.08);
}

#playerArtist {
    margin: 0 0 4px;
    color: var(--text-dim);
    font-size: 13px;
}

#playerTitle {
    margin: 0;
    font-size: 18px;
    color: #fff6da;
}

.global-player__controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

#seekBar {
    flex: 1;
    accent-color: #8b0000;
}

#timeLabel {
    min-width: 110px;
    text-align: right;
    color: var(--text-dim);
    font-size: 14px;
}

@media (max-width: 860px) {
    .bg-ornament--emo {
        width: 150px;
        right: 12px;
        top: 20px;
        opacity: 0.1;
    }

    .bg-ornament--blood {
        width: 100vw;
        height: 100vh;
        opacity: 0.5;
    }

    .bg-ornament--sigil {
        width: 260px;
        top: 140px;
        opacity: 0.08;
    }

    .bg-ornament--skull {
        width: 130px;
        opacity: 0.09;
    }

    .artist-card {
        grid-template-columns: 1fr;
    }

    .artist-card__media img {
        min-height: 260px;
    }

    .artist-card__sigil-bg {
        width: 140px;
        height: 140px;
        right: 8px;
        top: 18px;
        transform: none;
    }

    .global-player {
        flex-direction: column;
        align-items: stretch;
    }

    .global-player__meta,
    .global-player__controls {
        width: 100%;
    }

    #timeLabel {
        text-align: left;
    }
    
}

.topbar {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 0;
}

.topbar__brand a,
.topbar__link {
    color: #fff0db;
    text-decoration: none;
}

.topbar__brand a {
    font-weight: bold;
    font-size: 20px;
}

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

.topbar__user {
    color: var(--text-dim);
    font-size: 14px;
}

.flash-wrap {
    position: relative;
    z-index: 3;
    padding-top: 12px;
}

.flash {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(18, 8, 10, 0.82);
}

.flash--error {
    border-color: rgba(255, 0, 25, 0.74);
    color: var(--text-dim);
}

.flash--success {
    border-color: rgba(90, 180, 120, 0.28);
    color: var(--text-dim);
}

.auth-page {
    position: relative;
    z-index: 3;
    padding: 48px 0 24px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(520px, 100%);
    background: linear-gradient(180deg, rgba(16, 8, 10, 0.92), rgba(28, 10, 12, 0.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.auth-card h1 {
    margin-top: 0;
    color: #fff5d7;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form span {
    color: var(--text-dim);
    font-size: 14px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.auth-note {
    margin-bottom: 0;
    margin-top: 18px;
    color: var(--text-dim);
}

.auth-note a {
    color: #fff0db;
}

.track-upload-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

.track-upload-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-btn {
    border: 1px solid rgba(255, 90, 90, 0.35);
    background: linear-gradient(180deg, #661010, #2b0909);
    color: #ffe1e1;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .track-upload-form {
        grid-template-columns: 1fr;
    }

    .track-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.auth-choice {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-choice__button {
    display: block;
    text-align: center;
    text-decoration: none;
}

.artist-email {
    margin: 18px 0;
    font-size: 20px;
    font-weight: 600;
}

.artist-email a {
    color: #fff0db;
}

.auth-list {
    color: var(--text-dim);
    line-height: 1.7;
}