:root {
    color-scheme: dark;
    --bg: #141414;
    --panel: #171713;
    --panel-2: #22221d;
    --ink: #f6f2ea;
    --muted: #b7b0a4;
    --soft: #777062;
    --line: #34342d;
    --accent: #b7f36d;
    --accent-2: #ff6f61;
    --danger: #ff4d4d;
    --success: #85d996;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg) url("/assets/bg-texture.jpg") 0 0 / 50px 50px repeat;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body {
    margin: 20px 0 0;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 260px),
        url("/assets/bg-texture.jpg") 0 0 / 50px 50px repeat,
        var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    font-feature-settings: "kern" 1, "liga" 1;
    font-kerning: normal;
    font-optical-sizing: auto;
    line-height: 1.6;
    letter-spacing: 0;
}

.home-shell {
    animation: home-fade-in 360ms ease-out both;
    background: #141414 url("/assets/bg-texture.jpg") 0 0 / 50px 50px repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes home-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) min(calc(100vh - 100px), calc(100vw - 100px)) minmax(0, 0.88fr);
    gap: 50px;
    width: 100%;
    height: 100vh;
    padding-block: 50px;
    position: relative;
}

.home-logo {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    left: calc(50% + 3vw);
    line-height: 1;
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
}

.home-logo::before,
.home-logo::after {
    background: #333232;
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: 100vw;
}

.home-logo::before {
    right: calc(100% + 18px);
}

.home-logo::after {
    left: calc(100% + 18px);
}

.home-column {
    display: block;
    overflow: hidden;
    background: #333232;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.82);
    height: 100%;
}

.home-panel-link {
    cursor: pointer;
}

.home-panel-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 6px;
}

.home-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-column-two {
    animation: current-card-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    aspect-ratio: 1;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: stretch;
    padding: 50px;
    width: 100%;
    height: auto;
    align-self: center;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

@keyframes current-card-in {
    from {
        transform: scale(0.99);
    }

    to {
        transform: scale(1);
    }
}

.current-post-copy {
    align-items: center;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: center;
    margin: 0;
    max-width: 56ch;
    text-align: center;
    text-shadow: 0 1px 2px #333232;
    width: 100%;
    z-index: 1;
}

.current-post-body {
    display: -webkit-box;
    min-height: 13.76em;
    max-height: 13.76em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 400;
    hyphens: auto;
    line-height: 1.72;
    margin: 24px 0 0;
    padding-right: 10px;
    text-align: left;
    text-wrap: pretty;
    word-spacing: -0.03em;
}

.song-rating {
    display: grid;
    gap: 15px;
    justify-items: center;
    margin-top: 25px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars button {
    appearance: none;
    background: transparent;
    border: 0;
    color: #141414;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0 1px;
    transition: color 1680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rating-stars button.active,
.rating-stars button.user-active {
    color: #f4c542;
}

.rating-stars:hover button {
    color: #f4c542;
}

.rating-stars button:hover ~ button {
    color: #141414;
}

.rating-summary {
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    line-height: 1;
    margin: 0 0 10px;
}

.spotify-player {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.18);
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.spotify-player[hidden],
.taria-player[hidden] {
    display: none;
}

.taria-player {
    --player-progress: 0%;
    align-items: center;
    background: #141414;
    border-radius: 12px;
    box-shadow: 0 14px 42px rgba(20, 20, 20, 0.44);
    color: #ffffff;
    display: grid;
    gap: 16px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 82px;
    padding: 18px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.taria-player-button {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition:
        opacity 260ms cubic-bezier(0.37, 0, 0.63, 1),
        transform 260ms cubic-bezier(0.37, 0, 0.63, 1);
    width: 38px;
}

.taria-player-button:disabled {
    cursor: wait;
    opacity: 0.48;
}

.taria-player-button:not(:disabled):hover {
    transform: scale(0.985);
}

.taria-player-play-icon {
    border-bottom: 6px solid transparent;
    border-left: 9px solid #141414;
    border-top: 6px solid transparent;
    display: block;
    height: 0;
    margin-left: 3px;
    width: 0;
}

.taria-player.is-playing .taria-player-play-icon {
    border: 0;
    height: 12px;
    margin-left: 0;
    position: relative;
    width: 10px;
}

.taria-player.is-playing .taria-player-play-icon::before,
.taria-player.is-playing .taria-player-play-icon::after {
    background: #141414;
    content: "";
    height: 12px;
    position: absolute;
    top: 0;
    width: 3px;
}

.taria-player.is-playing .taria-player-play-icon::before {
    left: 0;
}

.taria-player.is-playing .taria-player-play-icon::after {
    right: 0;
}

.taria-player-main {
    min-width: 0;
}

.taria-player-meta {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.taria-player-title,
.taria-player-status {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    overflow: hidden;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taria-player-title {
    color: #ffffff;
}

.taria-player-status {
    color: rgba(255, 255, 255, 0.42);
    flex: 0 0 auto;
}

.taria-player-waveform {
    background: rgba(255, 255, 255, 0.12);
    height: 1px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.taria-player-waveform span {
    background: rgba(255, 255, 255, 0.82);
    display: block;
    height: 100%;
    transition: width 900ms cubic-bezier(0.37, 0, 0.63, 1);
    width: var(--player-progress, 0%);
}

.home-column-two iframe {
    border: 0;
    display: block;
    width: 100%;
}

.current-post-title {
    color: #ffffff;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.04;
    margin: 0 0 20px;
    text-align: center;
    word-spacing: -0.08em;
}

.current-post-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.home-column-one {
    border-radius: 0 50px 50px 0;
    grid-column: 1;
    height: calc(100% - 100px);
    align-self: center;
    transform-origin: left center;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-column-one:hover {
    transform: scale(0.995);
}

.home-column-one img {
    width: calc(100% + 80px);
    max-width: none;
    object-position: right center;
    transform: translateX(-80px);
    transform-origin: right center;
}

.home-column-two {
    background: #333232;
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
}

.home-column-two::before {
    background: url("/assets/texture.gif") 0 0 / 20px 20px repeat;
    content: "";
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.home-column-three {
    border-radius: 50px 0 0 50px;
    grid-column: 3;
    height: calc(100% - 100px);
    align-self: center;
    transform-origin: right center;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-column-three:hover {
    transform: scale(0.995);
}

.home-column-three img {
    width: calc(100% + 80px);
    max-width: none;
    object-position: left center;
    transform: translateX(0);
    transform-origin: left center;
}

.album-grid-section {
    padding: 0 50px 0;
}

.album-search {
    margin: 0 auto 50px;
    position: relative;
    width: min(1440px, 100%);
    z-index: 2;
}

.album-search::before {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    content: "";
    height: 13px;
    pointer-events: none;
    position: absolute;
    right: 23px;
    top: 20px;
    width: 13px;
    z-index: 1;
}

.album-search::after {
    background: rgba(255, 255, 255, 0.42);
    content: "";
    height: 1px;
    pointer-events: none;
    position: absolute;
    right: 19px;
    top: 35px;
    transform: rotate(45deg);
    transform-origin: center;
    width: 8px;
    z-index: 1;
}

.album-search-input {
    -webkit-appearance: none;
    appearance: none;
    background:
        linear-gradient(rgba(51, 50, 50, 0.5), rgba(51, 50, 50, 0.5)),
        #333232 url("/assets/texture.gif") 0 0 / 20px 20px repeat;
    background-blend-mode: normal, multiply;
    border: 0;
    border-radius: 25px;
    color: #ffffff;
    caret-color: #ffffff;
    display: block;
    font: inherit;
    font-size: clamp(13px, 1vw, 15px);
    height: 58px;
    letter-spacing: 0.02em;
    outline: none;
    padding: 0 52px 0 22px;
    width: 100%;
}

.album-search-input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.album-search-input:focus {
    box-shadow: none;
    outline: none;
}

.album-search-input:focus-visible {
    outline: none;
}

.album-search-submit {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.album-search-empty {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    letter-spacing: 0.08em;
    margin: 28px auto 0;
    text-align: center;
    text-transform: uppercase;
    width: min(1440px, 100%);
}

.album-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    width: min(1440px, 100%);
}

.album-cover-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.album-cover-art {
    aspect-ratio: 1;
    background: #333232;
    border-radius: 25px;
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.72);
    display: block;
    overflow: hidden;
}

.album-reveal-ready .album-cover-link {
    opacity: 0;
    transition: opacity 2600ms cubic-bezier(0.37, 0, 0.63, 1);
    transition-delay: var(--album-reveal-delay, 0ms);
    will-change: opacity;
}

.album-reveal-ready .album-cover-link.is-visible {
    opacity: 1;
}

.album-cover-art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.album-cover-artist {
    color: rgba(255, 255, 255, 0.62);
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    margin-top: 15px;
    text-align: center;
    text-transform: uppercase;
}

.album-scroll-sentinel {
    height: 45px;
}

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

@media (max-width: 520px) {
    .album-grid-section {
        padding-inline: 24px;
    }

    .album-grid {
        grid-template-columns: 1fr;
    }
}

img {
    display: block;
    max-width: 100%;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

code {
    color: var(--accent);
}

.site-shell {
    padding: 28px;
}

.site-header,
.site-footer {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 42px;
}

.brand {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1;
}

.site-nav,
.footer-links,
.stream-links,
.row-actions,
.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a,
.footer-links a,
.stream-links a,
.row-actions a,
.filter-row a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    padding: 7px 12px;
}

.site-nav a:hover,
.footer-links a:hover,
.stream-links a:hover,
.row-actions a:hover,
.filter-row a:hover,
.filter-row a.active {
    border-color: var(--accent);
    color: var(--accent);
}

.intro,
.feed,
.post-page {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 700px);
    gap: 12px;
    padding: 28px 0 34px;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.intro h1,
.post-heading h1,
.empty-state h1,
.admin-title-row h1,
.login-panel h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 54px;
    line-height: 1.02;
    font-weight: 500;
}

.intro p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.feed {
    display: grid;
    gap: 16px;
    padding-bottom: 80px;
}

.feed-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(23, 23, 19, 0.78);
    overflow: hidden;
}

.cover-link,
.post-artwork,
.current-cover {
    background: var(--panel-2);
}

.cover-link {
    min-height: 180px;
}

.cover-link img,
.post-artwork img,
.current-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(183, 243, 109, 0.18), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
        #202019;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 72px;
    text-transform: uppercase;
}

.cover-fallback.large {
    min-height: 340px;
}

.feed-copy {
    display: grid;
    align-content: center;
    gap: 9px;
    min-width: 0;
    padding: 24px 24px 24px 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--soft);
    font-size: 12px;
    text-transform: uppercase;
}

.feed-copy h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 31px;
    line-height: 1.1;
    font-weight: 500;
}

.feed-copy p {
    margin: 0;
    color: var(--muted);
}

.trackline {
    color: var(--accent-2) !important;
    font-size: 14px;
}

.post-page {
    padding-bottom: 90px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.post-hero {
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 42px;
}

.post-artwork {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-heading {
    display: grid;
    gap: 14px;
}

.dek {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 700px);
    gap: 48px;
    align-items: start;
}

.song-card {
    position: sticky;
    top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 22px;
}

.song-card h2 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-weight: 500;
}

.song-card dl {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
}

.song-card dt {
    color: var(--soft);
    font-size: 12px;
    text-transform: uppercase;
}

.song-card dd {
    margin: 0;
    color: var(--ink);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    padding: 5px 9px;
}

.post-body {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.62;
}

.post-body p {
    margin: 0 0 28px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 28px 0 8px;
    color: var(--soft);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 38px;
}

.empty-state h1,
.empty-state h2 {
    margin: 8px 0;
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.1;
}

.empty-state p {
    color: var(--muted);
}

.button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #10110d;
    cursor: pointer;
    font-weight: 800;
    padding: 9px 16px;
}

.button:hover {
    color: #10110d;
    filter: brightness(1.06);
}

.button.ghost {
    background: transparent;
    color: var(--accent);
}

.button.wide,
.danger-button {
    width: 100%;
}

.danger-button {
    border-color: rgba(255, 77, 77, 0.45);
    background: rgba(255, 77, 77, 0.11);
    color: #ffb4b4;
}

.flash {
    width: min(1120px, 100%);
    margin: 0 auto 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    padding: 12px 14px;
}

.flash-success {
    border-color: rgba(133, 217, 150, 0.5);
    color: var(--success);
}

.flash-error {
    border-color: rgba(255, 77, 77, 0.48);
    color: #ffb4b4;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-main {
    width: min(460px, 100%);
}

.login-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 32px;
}

.login-panel h1 {
    margin-bottom: 24px;
    font-size: 44px;
}

.stack-form,
.settings-form {
    display: grid;
    gap: 18px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid var(--line);
    background: #11110e;
    padding: 26px;
}

.admin-brand {
    margin-bottom: 34px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a,
.link-button {
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    padding: 10px 12px;
    text-align: left;
}

.admin-nav a:hover,
.admin-nav a.active {
    border-color: var(--line);
    background: var(--panel);
    color: var(--ink);
}

.logout-form {
    margin-top: auto;
}

.link-button {
    width: 100%;
    background: transparent;
    cursor: pointer;
}

.link-button:hover {
    color: var(--accent);
}

.admin-main {
    width: min(1180px, 100%);
    padding: 34px;
}

.admin-main .flash {
    width: 100%;
}

.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-title-row h1 {
    font-size: 44px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 24px;
}

.stat-card span {
    display: block;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1;
}

.stat-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.admin-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
}

.section-heading a {
    color: var(--accent);
}

.admin-list,
.post-table {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.admin-list-item,
.post-row {
    display: grid;
    gap: 12px;
    background: #151511;
    padding: 16px;
}

.admin-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.admin-list-item strong,
.post-row strong {
    display: block;
    color: var(--ink);
}

.admin-list-item small,
.post-row small {
    display: block;
    color: var(--muted);
}

.admin-list-item em,
.post-row em {
    color: var(--accent-2);
    font-style: normal;
    font-size: 13px;
}

.post-row {
    grid-template-columns: minmax(0, 1fr) 150px 100px auto;
    align-items: center;
}

.post-row span {
    color: var(--muted);
    font-size: 14px;
}

.filter-row {
    margin-bottom: 18px;
}

.field,
.field-grid {
    min-width: 0;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.field small {
    color: #ffb4b4;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #11110e;
    color: var(--ink);
    outline: none;
    padding: 12px;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
}

.body-field textarea {
    min-height: 460px;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.55;
}

.editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.editor-primary,
.editor-sidebar,
.settings-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 22px;
}

.editor-primary,
.editor-sidebar {
    display: grid;
    gap: 18px;
}

.editor-sidebar {
    position: sticky;
    top: 24px;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.current-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.delete-form {
    width: min(360px, 100%);
    margin: 18px 0 0 auto;
}

.muted {
    color: var(--muted);
}

@media (max-width: 900px) {
    .site-shell {
        padding: 18px;
    }

    .intro h1,
    .post-heading h1 {
        font-size: 42px;
    }

    .feed-item,
    .post-hero,
    .post-grid,
    .editor-form,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .feed-copy {
        padding: 0 18px 20px;
    }

    .cover-link {
        aspect-ratio: 16 / 10;
        min-height: 220px;
    }

    .post-grid {
        gap: 24px;
    }

    .song-card,
    .editor-sidebar,
    .admin-sidebar {
        position: static;
    }

    .admin-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-main {
        padding: 22px;
    }

    .post-row {
        grid-template-columns: 1fr;
    }

    .field-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer,
    .admin-title-row,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro h1,
    .post-heading h1,
    .admin-title-row h1 {
        font-size: 36px;
    }

    .post-body {
        font-size: 20px;
    }

    .stat-grid,
    .field-grid.two {
        grid-template-columns: 1fr;
    }
}
