:root {
    color-scheme: dark;
    --ink: #f8f3e7;
    --muted: #b9ad95;
    --gold: #d4a842;
    --gold-soft: #f4d37a;
    --panel: rgba(18, 15, 11, .78);
    --line: rgba(244, 211, 122, .18);
    --paper: #fffaf0;
    --black: #070604;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Instrument Sans", system-ui, sans-serif;
    background: radial-gradient(circle at 20% 0%, rgba(212, 168, 66, .18), transparent 32%), linear-gradient(145deg, #060504, #1a1208 54%, #3a270b);
    color: var(--ink);
}

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

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

.site-shell {
    position: relative;
    isolation: isolate;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg-image);
    background-size: cover;
    background-position: center;
    opacity: .08;
    filter: blur(8px) saturate(.8);
}

.site-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, .82));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand img,
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #161005;
}

.admin-link,
.ghost-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
}

.admin-link,
.ghost-button {
    border: 1px solid var(--line);
    color: var(--gold-soft);
    background: rgba(255, 255, 255, .04);
}

.primary-button {
    background: linear-gradient(135deg, var(--gold), #f2d37d);
    color: #171006;
    box-shadow: 0 18px 60px rgba(212, 168, 66, .24);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .76fr);
    align-items: center;
    gap: 54px;
    padding: 72px 0 42px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-soft);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    max-width: 760px;
    font-size: clamp(3.1rem, 8vw, 7.2rem);
    line-height: .9;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-artwork,
.smartlink-cover,
.song-cover {
    position: relative;
    overflow: hidden;
    background: #12100c;
}

.hero-artwork {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.hero-artwork img,
.smartlink-cover img,
.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 280px;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(212, 168, 66, .22), transparent 34%), #0b0906;
    color: var(--gold-soft);
    text-align: center;
    font-weight: 900;
}

.feature-strip,
.song-grid {
    display: grid;
    gap: 16px;
}

.feature-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 10px 0 64px;
}

.feature-card,
.content-section,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    backdrop-filter: blur(18px);
}

.feature-card {
    padding: 20px;
}

.feature-card span,
.feature-card small {
    display: block;
    color: var(--muted);
}

.feature-card strong {
    display: block;
    margin: 8px 0;
    font-size: 1.35rem;
}

.section-block {
    padding: 24px 0 62px;
}

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

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

.song-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.song-cover {
    width: 88px;
    aspect-ratio: 1;
    border-radius: 6px;
}

.song-cover span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--gold-soft);
    font-weight: 900;
}

.song-card h3 {
    margin-bottom: 4px;
}

.song-card p,
.content-section p,
.song-description {
    color: var(--muted);
    line-height: 1.65;
}

.arrow {
    color: var(--gold-soft);
    font-weight: 800;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
}

.content-section.image_text img {
    order: -1;
}

.content-section.full_width {
    grid-template-columns: 1fr;
}

.content-section img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.empty-state {
    padding: 28px;
}

.empty-state.compact {
    padding: 18px;
}

.catalog-shell {
    position: relative;
    isolation: isolate;
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 72px;
}

.catalog-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg-image);
    background-size: cover;
    background-position: center top;
    opacity: .1;
    filter: blur(10px) saturate(.78);
}

.catalog-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 0%, rgba(244, 211, 122, .18), transparent 34%),
        linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(8, 6, 4, .9) 46%, rgba(0, 0, 0, .96));
}

.catalog-topbar {
    margin-bottom: 18px;
}

.artist-cover {
    display: grid;
    gap: 18px;
}

.artist-copy {
    padding: 8px 2px 0;
}

.artist-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(2.4rem, 12vw, 5rem);
    line-height: .92;
}

.artist-copy p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.artist-cover-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0e0b07;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.artist-cover-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .42));
    pointer-events: none;
}

.artist-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-list {
    padding-top: 34px;
}

.catalog-heading {
    margin-bottom: 16px;
}

.catalog-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 7vw, 2.7rem);
}

.track-list {
    display: grid;
    gap: 12px;
}

.track-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(14, 11, 7, .8);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}

.track-main {
    display: block;
    min-width: 0;
}

.track-thumb {
    display: grid;
    width: 68px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #12100c;
    color: var(--gold-soft);
    font-weight: 900;
}

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

.track-content,
.track-meta {
    min-width: 0;
}

.track-title-link {
    display: block;
    min-width: 0;
}

.track-title-link strong,
.track-meta strong,
.track-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-title-link strong,
.track-meta strong {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.track-meta small {
    margin-top: 4px;
    color: var(--muted);
}

.track-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 8px;
    padding-left: 0;
}

.track-platform-icon {
    display: inline-flex;
    width: auto;
    min-width: 40px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #080806;
    font-size: .86rem;
    font-weight: 900;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.track-platform-icon:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.track-platform-icon img {
    width: auto;
    max-width: 92px;
    height: 24px;
    object-fit: contain;
}

.platform-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}

.platform-spotify {
    color: #fff;
}

.platform-youtube-music,
.platform-iheart-radio {
    color: #fff;
}

.platform-tiktok {
    color: #fff;
    text-shadow: none;
}

.platform-tidal {
    color: #fff;
    letter-spacing: .22em;
}

.platform-apple-music {
    color: #fff;
}

.platform-soundcloud {
    color: #fff;
}

.platform-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
}

.compact-catalog {
    width: min(620px, calc(100% - 22px));
    padding-top: 14px;
}

.compact-artist-cover {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(14, 11, 7, .74);
    backdrop-filter: blur(18px);
}

.artist-image-card {
    min-height: 148px;
    align-items: end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .72)),
        radial-gradient(circle at 50% 0%, rgba(244, 211, 122, .18), transparent 45%),
        #100d09;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .72)),
        var(--artist-card-image),
        radial-gradient(circle at 50% 0%, rgba(244, 211, 122, .18), transparent 45%);
    background-position: center;
    background-size: cover;
}

.centered-artist-cover {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 44px 14px 16px;
    text-align: center;
}

.compact-cover-image {
    overflow: hidden;
    width: 104px;
    aspect-ratio: 1;
    border-radius: 7px;
    background: #100d09;
}

.centered-artist-cover .compact-cover-image {
    width: 118px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .34);
}

.compact-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-artist-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.centered-artist-cover .compact-artist-copy {
    width: 100%;
}

.compact-artist-copy .eyebrow {
    margin-bottom: 7px;
    font-size: .68rem;
}

.centered-artist-cover .compact-artist-copy .eyebrow {
    margin-bottom: 5px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .78);
}

.compact-artist-copy h1 {
    margin: 0;
    overflow: hidden;
    font-size: clamp(1.55rem, 8vw, 2.6rem);
    line-height: .98;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .82);
    text-overflow: ellipsis;
}

.catalog-tabs {
    display: block;
}

.tab-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tab-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 13px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
}

.play-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--ink);
    font-weight: 900;
}

.play-all-button span {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
}

.tab-controls label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.tab-controls span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: var(--ink);
    font-size: .78rem;
}

#tab-single:checked ~ .tab-controls label[for="tab-single"],
#tab-album:checked ~ .tab-controls label[for="tab-album"],
#tab-playlist:checked ~ .tab-controls label[for="tab-playlist"] {
    background: linear-gradient(135deg, var(--gold), #f2d37d);
    color: #171006;
}

#tab-single:checked ~ .tab-controls label[for="tab-single"] span,
#tab-album:checked ~ .tab-controls label[for="tab-album"] span,
#tab-playlist:checked ~ .tab-controls label[for="tab-playlist"] span {
    background: rgba(23, 16, 6, .18);
    color: #171006;
}

.tab-panel {
    display: none;
}

#tab-single:checked ~ .single-panel,
#tab-album:checked ~ .album-panel,
#tab-playlist:checked ~ .playlist-panel {
    display: block;
}

.compact-catalog .track-list {
    gap: 9px;
}

.compact-catalog .track-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
}

.compact-catalog .track-main {
    display: block;
}

.compact-catalog .track-thumb {
    width: 56px;
    border-radius: 5px;
}

.compact-catalog .track-meta strong {
    font-size: 1rem;
}

.compact-catalog .track-title-link strong {
    font-size: 1rem;
}

.compact-catalog .track-meta small {
    margin-top: 2px;
    font-size: .82rem;
}

.compact-catalog .track-platforms {
    gap: 7px;
    margin-top: 7px;
    padding-left: 0;
}

.compact-catalog .track-platform-icon {
    width: auto;
    min-width: 40px;
    height: 28px;
    padding: 0 3px;
    font-size: .76rem;
}

.compact-catalog .platform-wordmark {
    font-size: .68rem;
}

.smartlink-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px 18px;
    background: radial-gradient(circle at 50% 0%, rgba(212, 168, 66, .2), transparent 30%), linear-gradient(135deg, #040403, #2b1d08 72%, #5a3c0f);
}

.back-link {
    position: fixed;
    top: 22px;
    left: 22px;
    color: var(--gold-soft);
    font-weight: 800;
}

.smartlink-card {
    width: min(430px, 100%);
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
    color: #080808;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .48);
}

.smartlink-cover {
    aspect-ratio: 1;
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(6px);
}

.play-ring span {
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #fff;
}

.smartlink-content {
    padding: 30px 24px 26px;
}

.smartlink-content .eyebrow {
    color: #8a661d;
}

.smartlink-content h1 {
    margin-bottom: 10px;
    font-size: clamp(2.05rem, 9vw, 3.1rem);
    line-height: 1;
}

.byline {
    color: #333;
}

.platform-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.platform-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 54px;
}

.platform-logo {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--platform-color);
    color: #060606;
    font-weight: 900;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.platform-row strong {
    overflow: hidden;
    color: #101010;
    font-size: 1.42rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listen-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 38px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
}

@media (max-width: 820px) {
    .site-shell {
        width: min(100% - 24px, 620px);
        padding-top: 18px;
    }

    .hero-grid,
    .content-section {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 28px;
        padding-top: 46px;
    }

    h1 {
        font-size: clamp(3rem, 18vw, 5.1rem);
    }

    .section-heading {
        display: block;
    }

    .song-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .song-cover {
        width: 74px;
    }

    .arrow {
        grid-column: 2;
    }

    .content-section.image_text img {
        order: 0;
    }

    .back-link {
        position: static;
        justify-self: start;
        margin-bottom: 14px;
    }

    .catalog-shell {
        width: min(100% - 22px, 620px);
        padding-top: 16px;
    }

    .catalog-topbar {
        margin-bottom: 14px;
    }

    .artist-cover-image {
        aspect-ratio: 1 / 1;
    }

    .track-card {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 11px;
    }

    .track-main {
        display: block;
    }

    .track-thumb {
        width: 62px;
    }

    .track-platforms {
        gap: 8px;
        padding-left: 0;
    }

    .track-platform-icon {
        width: auto;
        min-width: 38px;
        height: 28px;
        padding: 0 3px;
    }

    .compact-catalog {
        width: min(100% - 18px, 520px);
        padding-top: 10px;
    }

    .compact-artist-cover {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 11px;
        margin-bottom: 14px;
        padding: 8px;
    }

    .centered-artist-cover {
        grid-template-columns: 1fr;
        padding: 38px 12px 14px;
    }

    .compact-cover-image {
        width: 86px;
    }

    .centered-artist-cover .compact-cover-image {
        width: 104px;
    }

    .compact-catalog .track-main {
        display: block;
    }

    .compact-catalog .track-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .compact-catalog .track-thumb {
        width: 52px;
    }

    .compact-catalog .track-platforms {
        padding-left: 0;
    }

    .compact-catalog .track-platform-icon {
        width: auto;
        min-width: 38px;
        height: 28px;
        padding: 0 3px;
    }

    .compact-catalog .platform-wordmark {
        font-size: .66rem;
    }
}
