:root {
    --bg: #050506;
    --panel: #121216;
    --panel2: #18181d;
    --text: #ffffff;
    --muted: #a8a8b3;
    --red: #e50914;
    --line: #2b2b33;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    background: radial-gradient(circle at top, #1a0508 0, var(--bg) 42%);
    color: var(--text);
    font-family: Segoe UI, Arial, sans-serif;
}
a { color: #ff6b73; }
.shield-shell, .public-page {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 48px;
}
.shield-shell.narrow { width: min(720px, calc(100% - 28px)); }
.brand {
    color: var(--red);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.hero {
    padding: 28px 0 18px;
}
.hero h1, .public-header h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
    margin: 12px 0;
    max-width: 900px;
}
.lede {
    color: #dedee5;
    font-size: 1.12rem;
    max-width: 760px;
}
.join-callout, .shield-panel, .song-card, .public-cta, .manage-song, .comment-admin, .stats-row > div {
    background: rgba(18,18,22,.92);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.join-callout {
    padding: 14px 16px;
    color: #ddddE6;
    max-width: 820px;
}
.fiya-gradient-btn {
    animation: fiyaGradientMove 8s ease-in-out infinite;
    background: linear-gradient(90deg, #e50914, #ff6a00, #ff2d00, #e50914);
    background-size: 260% 100%;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 10px;
    padding: 7px 11px;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
    white-space: nowrap;
}
.fiya-gradient-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
@keyframes fiyaGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 18px;
    align-items: start;
}
.shield-panel { padding: 18px; }
.shield-panel.secondary { background: rgba(24,24,29,.9); }
h1, h2, h3 { margin-top: 0; }
label {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    color: #f2f2f6;
    font-weight: 700;
}
label span, .note, .muted { color: var(--muted); font-weight: 400; }
input, textarea, select {
    width: 100%;
    border: 1px solid #34343d;
    border-radius: 6px;
    background: #08080a;
    color: #fff;
    padding: 11px 12px;
    font: inherit;
}
textarea { min-height: 92px; resize: vertical; }
button, .button-link {
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 900;
    padding: 12px 15px;
    text-decoration: none;
}
button:hover, .button-link:hover { filter: brightness(1.12); }
.danger { background: #5b151a; }
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.check-row input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { color: #9cffb6; }
.warning { color: #ffd4d6; font-weight: 800; }
.listing-link {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.genre-picker {
    border: 1px solid #34343d;
    border-radius: 8px;
    background: #08080a;
    margin: 12px 0;
    overflow: hidden;
}
.genre-picker summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    padding: 13px 14px;
    font-size: .92rem;
    font-weight: 900;
}
.genre-picker summary::-webkit-details-marker { display: none; }
.genre-picker summary em {
    color: #f5c542;
    display: block;
    font-size: .78rem;
    font-style: normal;
    font-weight: 600;
    margin-top: 4px;
}
.genre-picker summary b {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.genre-picker[open] summary b { transform: rotate(-135deg); }
.genre-options {
    border-top: 1px solid #24242b;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px;
}
.genre-pill {
    margin: 0;
    display: inline-flex;
}
.genre-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.genre-pill span {
    background: #f5c542;
    border: 1px solid #f5c542;
    border-radius: 999px;
    color: #111;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    padding: 6px 9px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.genre-pill input:checked + span {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.genre-pill input:disabled + span {
    background: #423913;
    border-color: #423913;
    color: #8f8050;
    cursor: not-allowed;
}
.genre-help {
    color: var(--muted);
    font-size: .76rem;
    margin: 0;
    padding: 0 12px 12px;
}
.banner-picker {
    border: 1px solid #34343d;
    border-radius: 8px;
    margin: 14px 0;
    padding: 12px;
}
.banner-picker legend {
    color: #f2f2f6;
    font-size: .9rem;
    font-weight: 900;
    padding: 0 6px;
}
.banner-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 8px;
}
.banner-option {
    display: block;
    margin: 0;
}
.banner-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.banner-option span {
    align-items: flex-end;
    aspect-ratio: 16 / 9;
    background-position: center;
    background-size: cover;
    border: 2px solid #34343d;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    overflow: hidden;
    padding: 8px;
    position: relative;
}
.banner-option span::before {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
    content: "";
    inset: 0;
    position: absolute;
}
.banner-option b {
    color: #fff;
    font-size: .72rem;
    line-height: 1;
    position: relative;
    text-transform: capitalize;
    z-index: 1;
}
.banner-option input:checked + span {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(229,9,20,.28);
}
.public-header {
    padding: 22px 0;
    text-align: center;
}
.public-header p { color: var(--muted); }
.shield-music-page {
    width: min(1680px, calc(100% - 20px));
}
.shield-song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    align-items: start;
}
.shield-song-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.shield-song-card:hover {
    border-color: var(--red);
    box-shadow: 0 14px 30px rgba(229, 9, 20, .15);
    transform: translateY(-4px);
}
.shield-song-thumb {
    aspect-ratio: 1;
    background: #08080a;
    overflow: hidden;
}
.shield-song-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.shield-song-info {
    padding: 13px 14px 10px;
}
.shield-song-info h2 {
    color: #fff;
    font-size: .93rem;
    line-height: 1.25;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shield-song-info p {
    color: #8d8d95;
    font-size: .82rem;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shield-song-stats {
    color: var(--red);
    display: flex;
    gap: 10px;
    font-size: .75rem;
    font-weight: 800;
}
.shield-song-card .track-code {
    color: #7fa4ff;
    font-size: .74rem;
    letter-spacing: 0;
    margin-top: 7px;
    overflow: hidden;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shield-song-actions {
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    gap: 7px;
    justify-content: space-around;
    padding: 10px 12px;
}
.shield-song-actions .btn-icon,
.shield-player-controls .btn-icon {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #96969d;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 8px;
}
.shield-song-actions .btn-icon:hover,
.shield-player-controls .btn-icon:hover {
    background: rgba(229, 9, 20, .16);
    color: #fff;
}
.shield-song-card .report-form {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px;
}
.shield-player-modal,
.shield-comment-modal {
    align-items: center;
    background: rgba(0,0,0,.86);
    backdrop-filter: blur(5px);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 11000;
}
.shield-player-modal.show,
.shield-comment-modal.show {
    display: flex;
}
.shield-player-content,
.shield-comment-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.8);
    max-width: 420px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.shield-comment-content {
    max-width: 560px;
    padding: 20px;
}
.shield-player-close,
.shield-comment-close {
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 36px;
    z-index: 2;
}
.shield-player-card {
    align-items: center;
    background: linear-gradient(to bottom, #1a1a1a, #111);
    display: flex;
    flex-direction: column;
    padding: 30px 20px 20px;
    text-align: center;
}
#shieldPlayerArtwork {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    height: 220px;
    margin-bottom: 18px;
    object-fit: cover;
    width: 220px;
}
#shieldPlayerTitle {
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.2;
    margin: 0 0 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shield-player-meta {
    color: var(--red);
    margin: 0 0 18px;
}
.shield-player-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}
.shield-player-controls .shield-player-play {
    background: #fff;
    color: #111;
    min-width: 54px;
}
#shieldProgress {
    accent-color: var(--red);
    width: 100%;
}
.shield-time-row {
    color: rgba(255,255,255,.72);
    display: flex;
    font-size: .78rem;
    font-weight: 800;
    justify-content: space-between;
    margin-top: 7px;
    width: 100%;
}
.shield-player-ad {
    align-items: center;
    background: #000;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 15px;
}

/* Music/Playlist visual parity for Shield public pages. */
.music-style-page {
    width: min(1680px, calc(100% - 12px));
    padding-top: 0;
}
.music-style-page .public-header {
    padding: 22px 0 18px;
}
.music-style-page .public-header h1 {
    font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}
.content {
    padding: 0 0 2rem;
}
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}
.song-grid-card {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
    cursor: pointer;
    perspective: 1000px;
}
.song-grid-card:hover {
    transform: translateY(-6px);
    border-color: #ff0000;
    box-shadow: 0 12px 28px rgba(255,0,0,0.15);
}
.song-card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}
.song-card-front {
    width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}
.song-grid-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #222, #111);
    overflow: hidden;
}
.song-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@supports (aspect-ratio: 1) {
    .song-grid-thumbnail {
        height: auto;
        aspect-ratio: 1;
    }
}
.song-grid-info {
    padding: 1rem;
}
.song-grid-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin: 0 0 0.4rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-grid-genre {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 0.6rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-grid-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #ff0000;
}
.song-grid-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.song-grid-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    justify-content: space-around;
}
.btn-icon {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 0;
}
.btn-icon:hover {
    background: rgba(255,0,0,0.15);
    color: #ff0000;
}
.btn-icon.play-btn:hover {
    background: #ff0000;
    color: #fff;
}
.song-grid-card .track-code {
    color: #7fa4ff;
    font-size: 0.72rem;
    letter-spacing: 0;
    margin-top: 0.45rem;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-grid-card .report-form {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0.85rem;
}
#playerModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#playerModal.show {
    display: flex;
}
#playerModalContent {
    background: #111;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.3s ease-out;
}
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.player-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.player-close:hover {
    background: #ff0000;
    transform: rotate(90deg);
}
.player-card {
    padding: 30px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a, #111);
}
#playerArtwork {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.player-info-wrap {
    width: 100%;
}
#playerTitle {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.04rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-meta-line {
    margin: 0 0 20px 0;
    color: #ff0000;
    font-size: 1rem;
    font-weight: 500;
}
.player-meta-line span {
    color: inherit;
}
.player-meta-separator {
    display: inline-block;
    margin: 0 6px;
    color: rgba(255,255,255,0.55);
}
.player-action-icons {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 18px 0;
    width: 100%;
}
.player-action-icons .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #cfcfcf;
}
.player-action-icons .btn-icon:hover {
    background: rgba(255,0,0,0.15);
    color: #ff0000;
}
.player-action-icons .btn-icon.play-btn {
    background: rgba(255,255,255,0.9);
    color: #111;
}
.player-action-icons .btn-icon.play-btn:hover {
    background: #ff0000;
    color: #fff;
}
#progressBar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    accent-color: #ff0000;
    margin-top: 10px;
}
.player-time-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 7px;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
#adModal {
    background: #000;
    padding: 15px;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
#adModal .adsbygoogle {
    display: block;
    height: 100px;
    max-width: 100%;
    width: 300px;
}
.ad-label {
    font-size: 10px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Final Music/Playlist shell lock: this is intentionally last. */
body.shield-public-body,
body:has(.music-style-page) {
    background: #000;
}
.music-style-page.public-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 6px 32px;
}
.music-style-page .public-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 0 16px;
}
.shield-artist-banner {
    align-items: center;
    background-position: center;
    background-size: cover;
    border-radius: 18px;
    display: flex;
    isolation: isolate;
    justify-content: center;
    margin: 0 auto;
    min-height: 260px;
    overflow: hidden;
    position: relative;
    width: min(1180px, calc(100vw - 28px));
}
.shield-artist-banner::before {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.34) 30%, rgba(0,0,0,0.34) 70%, rgba(0,0,0,0.70) 100%),
        rgba(0,0,0,0.24);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}
.shield-artist-banner::after {
    background: radial-gradient(circle at center, rgba(0,0,0,0.12) 32%, rgba(0,0,0,0.46) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}
.shield-artist-name {
    color: rgba(255,255,255,0.84);
    font-family: Impact, "Arial Black", "Arial Narrow Bold", sans-serif;
    font-size: clamp(3rem, 11vw, 8rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.88;
    margin: 0;
    padding: 0 1rem;
    position: relative;
    text-align: center;
    text-shadow:
        0 3px 18px rgba(0,0,0,0.70),
        0 1px 2px rgba(0,0,0,0.85);
    text-transform: uppercase;
    z-index: 2;
}
.music-style-page .public-header .brand,
.music-style-page .public-header h1,
.music-style-page .public-header p {
    display: none;
}
.music-style-page .content {
    margin: 0 auto;
    padding: 0;
    width: min(1180px, calc(100vw - 28px));
}
.music-style-page .song-grid {
    grid-template-columns: repeat(auto-fit, minmax(188px, 188px));
    gap: 25px 18px;
    justify-content: center;
}
.music-style-page .song-grid-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    box-shadow: none;
    cursor: default;
    overflow: hidden;
    transform: none;
}
.music-style-page .song-grid-card:hover {
    border-color: #ff0000;
    box-shadow: none;
    transform: none;
}
.music-style-page .song-grid-thumbnail {
    height: auto;
    aspect-ratio: 1;
}
.music-style-page .song-grid-info {
    min-height: 96px;
    padding: 13px 15px 11px;
}
.music-style-page .song-grid-title {
    font-size: 0.93rem;
    line-height: 1.22;
    margin: 0 0 6px;
}
.music-style-page .song-grid-genre {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.2;
    margin-bottom: 9px;
}
.music-style-page .song-grid-stats {
    color: #ff0000;
    gap: 13px;
}
.music-style-page .song-grid-actions {
    height: 54px;
    padding: 10px 14px;
}
.music-style-page .song-grid-actions .btn-icon {
    color: #8f8f8f;
    height: 34px;
    width: 34px;
}
.music-style-page .song-grid-actions .btn-icon:hover {
    color: #ff0000;
}
.music-style-page .song-grid-actions .play-btn {
    border-radius: 50%;
}
.music-style-page .song-grid-actions .play-btn:hover {
    background: #ff0000;
    color: #fff;
}
.music-style-page .song-grid-actions .play-btn:hover i {
    color: #fff;
}
.music-style-page .song-grid-actions .like-btn {
    gap: 3px;
    min-width: 42px;
}
.music-style-page .song-grid-actions .like-btn i,
.music-style-page .song-grid-actions .like-btn span {
    color: #ff3b3b;
}
.music-style-page .song-grid-actions .like-btn span {
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}
.music-style-page .song-grid-actions .like-btn:hover i,
.music-style-page .song-grid-actions .like-btn:hover span {
    color: #fff;
}
.music-style-page .report-form {
    cursor: default;
}
#playerModal {
    background: rgba(0,0,0,0.86);
}
#playerModalContent {
    max-width: 420px;
    border-radius: 20px;
}
.player-card {
    padding: 30px 20px 20px;
}
#playerArtwork {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
}
#playerTitle {
    font-size: 1.04rem;
    margin-bottom: 5px;
}
.player-meta-line {
    margin-bottom: 20px;
}
.player-action-icons {
    gap: 0.4rem;
    margin-bottom: 18px;
}
.player-action-icons .btn-icon {
    border-radius: 50%;
    height: 38px;
    width: 38px;
}
.player-action-icons .btn-icon.play-btn {
    background: rgba(255,255,255,0.9);
    color: #111;
}
.player-action-icons .btn-icon.play-btn:hover {
    background: #ff0000;
    color: #fff;
}
#progressBar {
    height: 6px;
    margin-top: 10px;
}
#adModal {
    min-height: 120px;
}
.public-cta {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    .music-style-page .content {
        width: min(520px, calc(100vw - 20px));
    }
    .music-style-page .song-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 16px 12px;
    }
}
.song-list {
    display: grid;
    gap: 18px;
}
.song-card {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    overflow: hidden;
}
.song-art {
    min-height: 290px;
    background: #101014 center / cover no-repeat;
}
.song-body { padding: 18px; }
.song-kicker, .track-code {
    color: #ff6b73;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.track-code { color: #80a8ff; text-transform: none; }
.song-body h2 { margin: 8px 0 2px; }
.song-artist { color: var(--muted); margin-top: 0; }
audio { width: 100%; margin: 12px 0; }
.song-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.song-actions button { background: #25252c; }
.comments {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
}
.comment {
    border-top: 1px solid #24242b;
    padding: 10px 0;
}
.comment p { margin: 6px 0 0; color: #dedee5; }
.hidden { display: none !important; }
.public-cta {
    margin-top: 24px;
    padding: 22px;
    text-align: center;
}
.manage-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.stats-row > div {
    padding: 12px;
    color: var(--muted);
}
.stats-row strong { display: block; color: #fff; font-size: 1.4rem; }
.manage-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}
.manage-song {
    display: grid;
    grid-template-columns: 86px minmax(180px, 1fr) minmax(260px, 1.5fr) 120px auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
}
.manage-song img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 6px;
    background: #08080a;
}
.manage-genre-cell .genre-picker {
    margin: 0;
}
.manage-genre-cell .genre-picker summary {
    padding: 11px 12px;
}
.comment-admin { padding: 12px; }
.comment-admin span { color: var(--muted); display: block; margin-top: 4px; }

@media (min-width: 821px) {
    .index-page {
        font-size: .92rem;
    }
    .index-page .hero {
        padding: 24px 0 18px;
    }
    .index-page .hero h1 {
        font-size: clamp(2.25rem, 4.2vw, 4rem);
        line-height: 1.02;
        margin: 12px 0 10px;
        max-width: 860px;
    }
    .index-page .lede {
        font-size: 1rem;
        line-height: 1.35;
        max-width: 760px;
    }
    .index-page .join-callout {
        font-size: .92rem;
        line-height: 1.35;
    }
    .index-page h2 {
        font-size: 1.35rem;
        line-height: 1.12;
    }
    .index-page label {
        font-size: .86rem;
        font-weight: 650;
    }
    .index-page input,
    .index-page textarea,
    .index-page select {
        font-size: .86rem;
        font-weight: 500;
        padding: 9px 11px;
    }
    .index-page button,
    .index-page .button-link {
        font-size: .84rem;
        padding: 10px 13px;
    }
    .index-page .shield-panel {
        padding: 16px 18px;
    }
    .manage-page {
        width: min(1120px, calc(100% - 48px));
        font-size: .92rem;
    }
    .manage-page .manage-head {
        margin-bottom: 14px;
    }
    .manage-page .brand {
        font-size: .82rem;
        letter-spacing: .1em;
    }
    .manage-page h1 {
        font-size: clamp(1.55rem, 2.5vw, 2rem);
        line-height: 1.05;
        margin: 7px 0 12px;
    }
    .manage-page h2 {
        font-size: 1.12rem;
        line-height: 1.1;
    }
    .manage-page .shield-panel {
        padding: 16px 18px;
    }
    .manage-page label,
    .manage-page .check-row {
        font-size: .82rem;
        font-weight: 600;
    }
    .manage-page input,
    .manage-page textarea,
    .manage-page select {
        font-size: .84rem;
        font-weight: 500;
        padding: 8px 10px;
    }
    .manage-page button,
    .manage-page .button-link {
        font-size: .78rem;
        padding: 8px 11px;
    }
    .manage-page .manage-public-link {
        margin-top: 2px;
    }
    .manage-page .join-callout {
        max-width: 820px;
        margin: 0 0 14px;
        padding: 12px 14px;
    }
    .manage-page .stats-row {
        gap: 8px;
        margin-bottom: 14px;
    }
    .manage-page .stats-row > div {
        padding: 10px 11px;
    }
    .manage-page .stats-row strong {
        font-size: 1.2rem;
    }
    .manage-page .banner-picker {
        padding: 10px;
    }
    .manage-page .banner-options {
        grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    }
    .manage-page .banner-option b {
        font-size: .66rem;
    }
    .manage-page .genre-picker summary {
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.18;
        padding: 9px 11px;
    }
    .manage-page .genre-picker summary em {
        font-size: .68rem;
    }
    .manage-page .genre-pill span {
        font-size: .68rem;
        padding: 5px 8px;
    }
    .manage-page .manage-list {
        gap: 10px;
        margin-top: 18px;
    }
    .manage-page .manage-song {
        grid-template-columns: 72px minmax(170px, 1fr) minmax(240px, 1.3fr) 110px auto auto;
        gap: 10px;
        padding: 10px 12px;
    }
    .manage-page .manage-song img {
        height: 72px;
        width: 72px;
    }
}
.shield-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    opacity: 0;
    background: #19191f;
    border: 1px solid #383842;
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    transition: .2s ease;
    pointer-events: none;
    z-index: 13050;
}
.shield-toast.show { opacity: 1; transform: translate(-50%, 0); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #33333c; border-radius: 8px; }

@media (max-width: 820px) {
    .panel-grid, .song-card, .manage-song, .stats-row {
        grid-template-columns: 1fr;
    }
    .index-page .index-lookup-form {
        order: 1;
    }
    .index-page .index-create-form {
        order: 2;
    }
    .song-art { min-height: 220px; }
    .manage-head { display: grid; }
}
