:root {
    --bg: #0f0f12;
    --surface: #18181f;
    --border: #2a2a35;
    --text: #eaeaf0;
    --muted: #9b9ba8;
    --accent: #c9a227;
    --accent-dim: #8a7020;
    --danger: #c44c4c;
    --banned: #ff2d2d;
    --link: #7eb8ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Georgia", "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 55vw);
    object-fit: contain;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
}

.nav a {
    color: var(--link);
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: system-ui, sans-serif;
}

h1 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--muted);
    font-weight: 600;
    font-family: system-ui, sans-serif;
}

.muted {
    color: var(--muted);
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}

.flash--error {
    background: rgba(196, 76, 76, 0.15);
    border: 1px solid var(--danger);
    color: #ffb4b4;
}

.flash--ok {
    background: rgba(40, 120, 80, 0.2);
    border: 1px solid #3d8f65;
    color: #b8f0d4;
}

.form {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: system-ui, sans-serif;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.form input[type="text"],
.form input[type="password"],
.form input[type="number"],
.form textarea,
.form select {
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--accent-dim);
    background: var(--accent);
    color: #1a1508;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: system-ui, sans-serif;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn--secondary {
    background: transparent;
    color: var(--link);
    border-color: var(--border);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: system-ui, sans-serif;
}

.list li {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.list--releases .list-row--release {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 0.75rem;
}

.list-row__body {
    flex: 1 1 160px;
    min-width: 0;
}

.list-row__actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.list--releases .list-row__actions {
    display: block;
}

.release-thumb-link {
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    align-self: center;
}

.release-thumb {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    vertical-align: middle;
    background: #0a0a0c;
}

.release-thumb--empty {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface) 0%, #12121a 100%);
    box-sizing: border-box;
}

.list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.list a:hover {
    color: var(--accent);
}

.release-head {
    margin-bottom: 1rem;
}

.score-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--accent);
}

.sentiment-fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0;
}

.sentiment-legend {
    padding: 0 0.35rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-family: system-ui, sans-serif;
}

.sentiment-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}

.sentiment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text);
}

.sentiment-option input {
    width: auto;
}

.rating-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    font-family: system-ui, sans-serif;
}

.rating-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rating-card__notes {
    white-space: pre-wrap;
    font-size: 0.95rem;
    color: var(--text);
}

.profile-banned-wrap {
    position: relative;
    min-height: 200px;
}

.profile-banned {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.profile-banned span {
    font-size: clamp(3rem, 14vw, 8rem);
    font-weight: 900;
    color: var(--banned);
    text-shadow:
        0 0 20px rgba(255, 45, 45, 0.6),
        2px 2px 0 #000,
        -1px -1px 0 #000;
    letter-spacing: 0.08em;
    transform: rotate(-8deg);
    opacity: 0.92;
    font-family: system-ui, sans-serif;
}

.profile-dim {
    opacity: 0.35;
    filter: grayscale(0.4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.releases-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-family: system-ui, sans-serif;
}

.releases-toolbar__search input[type="search"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.releases-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.releases-toolbar__filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.releases-toolbar__filters select {
    min-width: 10rem;
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.releases-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    font-family: system-ui, sans-serif;
}

.tracklist {
    font-family: system-ui, sans-serif;
    padding-left: 1.25rem;
    margin: 0 0 1.5rem;
}

.tracklist li {
    margin: 0.25rem 0;
}

.form--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.form--row label {
    flex: 1 1 12rem;
}

.profile-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.profile-top__text {
    flex: 1 1 200px;
}

.profile-avatar {
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: var(--surface);
}

.profile-avatar--large {
    width: 120px;
    height: 120px;
}

.profile-bio {
    margin-top: 0.75rem;
    max-width: 52ch;
    white-space: pre-wrap;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}

.account-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.account-forms {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.inline-form {
    display: inline;
    margin: 0;
}

.inline-form .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.75rem 2rem;
    align-items: start;
}

.page-layout--profile {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.page-layout--edit {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.page-main {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    padding: 1rem 1.1rem;
    font-family: system-ui, sans-serif;
}

.sidebar-card__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.sidebar-card__subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.sidebar-card__subtitle:first-child {
    margin-top: 0;
}

.form--compact {
    max-width: none;
    gap: 0.6rem;
}

.form--compact textarea {
    min-height: 100px;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

.small {
    font-size: 0.85rem;
}

.checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.release-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.release-hero__art {
    flex: 0 0 auto;
}

.release-hero__meta {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.release-cover {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 1;
    background: #0a0a0c;
}

.release-cover--sidebar {
    max-width: 100%;
}

.release-cover--placeholder {
    width: min(280px, 100%);
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: repeating-linear-gradient(
        -45deg,
        var(--surface),
        var(--surface) 10px,
        #14141a 10px,
        #14141a 20px
    );
}

.edit-log {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edit-log__item {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    font-size: 0.88rem;
}

.edit-log__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.edit-log__changes {
    list-style: none;
    padding: 0 0 0 0.5rem;
    margin: 0.25rem 0 0;
}

.edit-log__change summary {
    cursor: pointer;
    color: var(--link);
}

.edit-log__diff {
    margin-top: 0.5rem;
}

.edit-log__pre {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.78rem;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 820px) {
    .page-layout,
    .page-layout--profile,
    .page-layout--edit {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }
}
