/* ═══════════════════════════════════════════════════════════════════════════
   DS2 Public Pages CSS

   Extracted from pages-v2.css Phase C refactoring.
   Public pages: marketing, homepage, viewer pages, docs, error pages

   Scope: body.ds2 prefix on every rule ensures zero impact on old pages.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   PUBLIC NAV OVERRIDES
   pages-v2.css hides nav-logo for sidebar-app pages (body.ds2).
   pages-public.css loads after, so these explicit show-rules win
   for public pages (body.ds2.public-page).
   ═══════════════════════════════════════════════════════════════════ */

body.ds2.public-page .nav-logo {
    display: flex !important;
}

body.ds2.public-page .nav-inner {
    justify-content: space-between !important;
}

/* ── v3 Glass Nav ─────────────────────────────────────────────────── */
body.ds2.public-page .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 56px;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 46, 0.6);
}

body.ds2.public-page .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-6);
    height: 100%;
}

@media (min-width: 1024px) {
    body.ds2.public-page .nav-inner { padding: 0 48px; }
}

body.ds2.public-page .nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.15s;
}

body.ds2.public-page .nav-link:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER STICKY BOTTOM (v3: footer always at viewport bottom)
   ═══════════════════════════════════════════════════════════════════ */
body.ds2.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.ds2.public-page main {
    flex: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   MARKETING PAGES (submit-music, go-live, partner, capabilities)
   Phase 6: URL Migration + Marketing Pages
   ═══════════════════════════════════════════════════════════════════ */

/* --- Hero with radial glow (v3: left-aligned) --- */
body.ds2 .marketing-hero {
    min-height: auto;
    padding: 96px var(--ds2-space-6) 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.ds2 .marketing-hero {
        padding: 96px var(--ds2-space-12) 80px;
    }
}

body.ds2 .marketing-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.ds2 .marketing-hero-content {
    max-width: 700px;
    margin: 0;
    position: relative;
    z-index: 1;
}

body.ds2 .marketing-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--interactive-primary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--ds2-radius-full);
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .marketing-hero-title {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .marketing-hero-accent {
    color: var(--brand-accent);
}

body.ds2 .marketing-hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 0 var(--ds2-space-10);
}

body.ds2 .marketing-ctas {
    display: flex;
    gap: var(--ds2-space-3);
    justify-content: flex-start;
    flex-wrap: wrap;
}

body.ds2 .marketing-hero-note {
    font-size: 0.8125rem;
    color: var(--ds2-text-muted);
    margin-top: var(--ds2-space-4);
}

/* --- Sections --- */
body.ds2 .marketing-section {
    padding: 80px var(--ds2-space-6);
    border-bottom: 1px solid var(--border-subtle);
}

body.ds2 .marketing-section-alt {
    background: var(--bg-section-alt);
}

body.ds2 .marketing-section:nth-child(even) {
    background: var(--bg-section-alt);
}

body.ds2 .marketing-container {
    max-width: 800px;
    margin: 0 auto;
}

body.ds2 .marketing-section-header {
    text-align: center;
    margin-bottom: 48px;
}

body.ds2 .marketing-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-section-header p {
    font-size: 1rem;
    color: var(--ds2-text-secondary);
}

/* --- Feature List --- */
body.ds2 .marketing-features {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-4);
}

body.ds2 .marketing-feature-item {
    display: flex;
    gap: var(--ds2-space-4);
    padding: var(--ds2-space-4);
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .marketing-feature-item:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .marketing-feature-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-weight: 700;
    flex-shrink: 0;
}

body.ds2 .marketing-feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: 4px;
}

body.ds2 .marketing-feature-item p {
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Pricing Grid --- */
body.ds2 .marketing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .marketing-price-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-6);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .marketing-price-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .marketing-price-card.featured {
    box-shadow: 0 0 0 1px var(--interactive-primary), var(--shadow-elevation-2), 0 0 40px rgba(249,115,22,0.1);
    position: relative;
}

body.ds2 .marketing-price-card.featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(249,115,22,0.15), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

body.ds2 .marketing-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #000;
    background: var(--interactive-primary);
    border-radius: var(--ds2-radius-full);
}

body.ds2 .marketing-price-header {
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .marketing-price-header h3 {
    display: none; /* tier label already shown; h3 is redundant */
}

body.ds2 .marketing-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

body.ds2 .marketing-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--ds2-space-4);
    flex: 1;
}

body.ds2 .marketing-price-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ds2 .marketing-price-features li::before {
    content: "✓";
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

body.ds2 .marketing-price-card.featured .marketing-price-features li::before {
    color: var(--brand-accent);
}

body.ds2 .marketing-price-features li:last-child {
    border-bottom: none;
}

body.ds2 .marketing-price-features li.muted {
    color: var(--ds2-text-muted);
}

body.ds2 .marketing-price-features li.missing {
    color: var(--ds2-text-muted);
    text-decoration: line-through;
}

body.ds2 .marketing-price-note {
    font-size: 0.8125rem;
    color: var(--ds2-text-muted);
    text-align: center;
}

/* --- Benefits Grid (go-live page) --- */
body.ds2 .marketing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .marketing-benefit-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .marketing-benefit-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .marketing-benefit-card.highlight {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    box-shadow: 0 0 0 1px var(--brand-accent), var(--shadow-elevation-1);
}

body.ds2 .marketing-benefit-stat {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--brand-accent);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .marketing-benefit-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-benefit-card p {
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Transparency Grid (go-live page) --- */
body.ds2 .marketing-transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .marketing-transparency-item {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .marketing-transparency-item:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .marketing-transparency-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-transparency-item p {
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Shared Notes/Banners --- */
body.ds2 .marketing-note {
    margin-top: var(--ds2-space-6);
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    text-align: center;
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .marketing-note p {
    font-size: 0.9375rem;
    color: var(--ds2-text-secondary);
}

body.ds2 .marketing-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 16px 24px;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--ds2-text-secondary);
}

body.ds2 .marketing-ethics-banner {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-6);
    text-align: center;
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .marketing-ethics-banner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .marketing-ethics-banner p {
    font-size: 0.9375rem;
    color: var(--ds2-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--ds2-space-4);
}

/* --- Ethics List (go-live page) --- */
body.ds2 .marketing-ethics-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.ds2 .marketing-ethics-item {
    display: flex;
    gap: var(--ds2-space-4);
    padding: var(--ds2-space-4) 0;
    border-bottom: 1px solid var(--border-default);
}

body.ds2 .marketing-ethics-item:last-child {
    border-bottom: none;
}

body.ds2 .marketing-ethics-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

body.ds2 .marketing-ethics-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: 4px;
}

body.ds2 .marketing-ethics-item p {
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Steps (partner page) --- */
body.ds2 .marketing-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.ds2 .marketing-step {
    display: flex;
    gap: var(--ds2-space-4);
    padding: var(--ds2-space-4) 0;
    border-bottom: 1px solid var(--border-default);
}

body.ds2 .marketing-step:last-child {
    border-bottom: none;
}

body.ds2 .marketing-step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: #000;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
    flex-shrink: 0;
}

body.ds2 .marketing-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: 4px;
}

body.ds2 .marketing-step p {
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Revenue Split (partner page) --- */
body.ds2 .marketing-revenue-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .marketing-split-item {
    text-align: center;
    padding: var(--ds2-space-6);
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .marketing-split-item:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .marketing-split-item.highlight {
    box-shadow: 0 0 0 1px var(--interactive-primary), var(--shadow-elevation-2), 0 0 30px rgba(249,115,22,0.08);
}

body.ds2 .marketing-split-percent {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-accent);
    line-height: 1;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-split-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .marketing-split-item p {
    font-size: 0.8125rem;
    color: var(--ds2-text-secondary);
    line-height: 1.5;
}

/* --- Capabilities / Application Form --- */
body.ds2 .capabilities-page {
    max-width: 600px;
}

body.ds2 .capabilities-form {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-5);
}

body.ds2 .capabilities-field-group {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-2);
}

body.ds2 .capabilities-field-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ds2-text-primary);
}

body.ds2 .capabilities-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--ds2-text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: var(--ds2-radius-md);
    outline: none;
    transition: border-color 0.15s;
}

body.ds2 .capabilities-input:focus {
    border-color: var(--brand-accent);
}

body.ds2 .capabilities-input-prefix {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: var(--ds2-radius-md);
    overflow: hidden;
}

body.ds2 .capabilities-input-prefix span {
    padding: 10px 0 10px 14px;
    font-size: 0.9375rem;
    color: var(--ds2-text-muted);
    white-space: nowrap;
}

body.ds2 .capabilities-input-prefix .capabilities-input {
    border: none;
    border-radius: 0;
    padding-left: 4px;
}

body.ds2 .capabilities-field-group small {
    font-size: 0.75rem;
    color: var(--ds2-text-muted);
}

body.ds2 .capabilities-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--ds2-space-2);
}

body.ds2 .capabilities-genre-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-default);
    border-radius: var(--ds2-radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--ds2-text-secondary);
    transition: border-color 0.15s;
}

body.ds2 .capabilities-genre-option:hover {
    border-color: var(--brand-accent);
}

body.ds2 .capabilities-genre-option input[type="checkbox"] {
    accent-color: var(--brand-accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body.ds2 .marketing-pricing-grid,
    body.ds2 .marketing-benefits-grid,
    body.ds2 .marketing-transparency-grid,
    body.ds2 .marketing-revenue-split {
        grid-template-columns: 1fr;
    }

    body.ds2 .marketing-benefit-card.highlight {
        padding: var(--ds2-space-6);
    }

    body.ds2 .marketing-hero {
        padding: 100px var(--ds2-space-4) 60px;
        text-align: center;
    }

    body.ds2 .marketing-hero-subtitle {
        margin: 0 auto var(--ds2-space-10);
    }

    body.ds2 .marketing-ctas {
        justify-content: center;
    }

    body.ds2 .marketing-section {
        padding: 60px var(--ds2-space-4);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. ERROR PAGES (errors/400.html, 403.html, 404.html, 429.html, 500.html)
       Container: body.ds2 (base_public.html)
   ═══════════════════════════════════════════════════════════════════════════ */

body.ds2 .error-page-container {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 560px;
    margin: 0 auto;
}

body.ds2 .error-icon-lg {
    font-size: 4rem;
    margin-bottom: var(--ds2-space-4);
    opacity: 0.7;
}

body.ds2 .error-code {
    font-family: var(--ds2-font-heading, 'Inter', sans-serif);
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-primary, #6366f1);
    line-height: 1;
    margin-bottom: var(--ds2-space-2);
    letter-spacing: -0.02em;
}

body.ds2 .error-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .error-message {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds2-space-3);
    margin-top: var(--ds2-space-6);
    flex-wrap: wrap;
}

body.ds2 .error-info-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border-left: 3px solid var(--color-primary, #6366f1);
    padding: var(--ds2-space-4) var(--ds2-space-5);
    margin: var(--ds2-space-6) 0;
    text-align: left;
    border-radius: var(--ds2-radius-md);
}

body.ds2 .error-info-box-title {
    display: block;
    font-weight: 600;
    margin-bottom: var(--ds2-space-2);
    color: var(--text-primary);
    font-size: 0.875rem;
}

body.ds2 .error-info-box-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

body.ds2 .error-technical-details {
    margin-top: var(--ds2-space-6);
    padding-top: var(--ds2-space-4);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
    font-family: 'Courier New', monospace;
}

/* 429 Rate Limit — Countdown */
body.ds2 .countdown-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-primary, #6366f1);
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    margin: var(--ds2-space-6) 0;
    text-align: center;
}

body.ds2 .countdown-box-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--ds2-space-3);
    color: var(--text-secondary);
}

body.ds2 .countdown-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary, #6366f1);
    margin: var(--ds2-space-3) 0;
    font-family: var(--ds2-font-heading, 'Inter', sans-serif);
    line-height: 1;
}

body.ds2 .countdown-remaining-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.ds2 .progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--ds2-radius-full);
    overflow: hidden;
    margin-top: var(--ds2-space-4);
}

body.ds2 .progress-fill-accent {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #6366f1), var(--color-primary-hover, #818cf8));
    transition: width 1s linear;
    width: 0%;
    border-radius: var(--ds2-radius-full);
}

body.ds2 .tips-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border-left: 3px solid var(--color-primary, #6366f1);
    padding: var(--ds2-space-4) var(--ds2-space-5);
    margin: var(--ds2-space-6) 0;
    text-align: left;
    border-radius: var(--ds2-radius-md);
}

body.ds2 .tips-box-title {
    display: block;
    font-weight: 600;
    margin-bottom: var(--ds2-space-2);
    font-size: 0.875rem;
}

body.ds2 .tips-list {
    list-style: none;
    padding: 0;
}

body.ds2 .tips-list li {
    padding: var(--ds2-space-1) 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

body.ds2 .tips-list li::before {
    content: '·';
    margin-right: var(--ds2-space-2);
    color: var(--text-muted);
}


/* LIVE ROOMS: /queue — reviewer discovery directory
   ───────────────────────────────────────────────────────────────────── */

body.ds2 .live-rooms-page {
    padding: 32px var(--ds2-space-6) var(--ds2-space-16);
    max-width: 1400px;
    margin: 0 auto;
}

body.ds2 .live-rooms-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .live-rooms-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
body.ds2 .live-rooms-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-6);
}
body.ds2 .live-rooms-submit-cta {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    body.ds2 .live-rooms-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

body.ds2 .live-rooms-header h1 {
    font-family: var(--ds2-font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    color: #ededf0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

body.ds2 .live-rooms-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .live-rooms-live-count {
    display: inline-flex;
    align-items: center;
    gap: var(--ds2-space-2);
    margin-top: var(--ds2-space-2);
    font-size: 12px;
    color: #8b8b96;
}
body.ds2 .live-rooms-live-count .live-room-dot {
    width: 6px;
    height: 6px;
}
body.ds2 .live-rooms-live-count strong {
    color: #ef4444;
    font-weight: 600;
}

/* --- Filters --- */
body.ds2 .live-rooms-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds2-space-3);
    padding: 0;
    margin-bottom: var(--ds2-space-6);
    align-items: center;
}

body.ds2 .live-rooms-search {
    position: relative;
    flex: 1;
    max-width: 384px;
}

body.ds2 .live-rooms-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

body.ds2 .live-rooms-search input {
    width: 100%;
    height: 32px;
    padding: 0 var(--ds2-space-3) 0 36px;
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: var(--ds2-radius-lg);
    color: #ededf0;
    font-size: 12px;
    font-family: var(--ds2-font-body);
    outline: none;
    transition: border-color 0.15s ease;
}

body.ds2 .live-rooms-search input::placeholder {
    color: rgba(237, 237, 240, 0.5);
}

body.ds2 .live-rooms-search input:focus {
    border-color: var(--interactive-primary);
}

body.ds2 .live-rooms-select {
    height: 32px;
    padding: 0 var(--ds2-space-3);
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: var(--ds2-radius-lg);
    color: #8b8b96;
    font-size: 12px;
    font-family: var(--ds2-font-body);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

body.ds2 .live-rooms-select:focus {
    border-color: var(--interactive-primary);
}

/* --- Card grid --- */
body.ds2 .live-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0;
}

body.ds2 .live-room-card {
    background: #111113;
    border: 1px solid #1e1e22;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-3);
    transition: background 0.15s ease, border-color 0.15s ease;
}
body.ds2 .live-room-card[data-status="live"] {
    border-color: rgba(99, 102, 241, 0.15);
}

body.ds2 .live-room-card:hover {
    background: #141416;
    border-color: #2a2a2e;
}
body.ds2 .live-room-card[data-status="live"]:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

/* --- Card header: avatar + name/rating + badge --- */
body.ds2 .live-room-card-header {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-3);
}

body.ds2 .live-room-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--ds2-text-sm);
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

body.ds2 .live-room-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.ds2 .live-room-avatar-live {
    background: var(--interactive-primary);
    color: white;
    font-weight: 700;
    font-size: 12px;
}

body.ds2 .live-room-avatar-offline {
    background: #222226;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

body.ds2 .live-room-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.ds2 .live-room-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ds2 .live-room-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
body.ds2 .live-room-rating svg {
    color: #f59e0b;
    fill: #f59e0b;
}

/* --- Live/Offline badge --- */
body.ds2 .live-room-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--ds2-radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

body.ds2 .live-room-badge-live {
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-live);
    display: flex;
    align-items: center;
    gap: 6px;
}

body.ds2 .live-room-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-live);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

body.ds2 .live-room-badge-offline {
    background: rgba(120, 120, 127, 0.12);
    color: var(--text-muted);
}

/* --- Genre tags --- */
body.ds2 .live-room-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

body.ds2 .live-room-genre-tag {
    font-size: 10px;
    padding: 2px 6px;
    background: #1a1a1e;
    color: var(--text-muted);
    border-radius: 4px;
}

/* --- Stats row (live cards only) --- */
body.ds2 .live-room-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.ds2 .live-room-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #3d3d44;
}
body.ds2 .live-room-stat svg {
    color: var(--text-muted);
}

/* --- Empty state --- */
body.ds2 .live-rooms-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

body.ds2 .live-rooms-empty svg {
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .live-rooms-empty h3 {
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .live-rooms-empty p {
    color: var(--text-secondary);
    margin-bottom: var(--ds2-space-6);
}

/* --- Responsive --- */
@media (max-width: 1280px) {
    body.ds2 .live-rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    body.ds2 .live-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body.ds2 .live-rooms-page {
        padding: 20px var(--ds2-space-4) var(--ds2-space-8);
    }
    body.ds2 .live-rooms-grid {
        grid-template-columns: 1fr;
    }
    body.ds2 .live-rooms-filters {
        flex-direction: column;
    }
    body.ds2 .live-rooms-search {
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE (DS2 Redesign — Figma-based)
   All styles scoped to body.ds2, using DS2 token variables.
   Prefix: hp- (homepage)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared layout ─────────────────────────────────────────────────────── */
body.ds2 .hp-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-6);
}

body.ds2 .hp-section {
    padding: var(--ds2-space-16) 0;
}

body.ds2 .hp-section-alt {
    background: var(--bg-section-alt);
}

body.ds2 .hp-section-header {
    text-align: center;
    margin-bottom: var(--ds2-space-12);
}

body.ds2 .hp-section-title {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
}

body.ds2 .hp-section-subtitle {
    margin-top: var(--ds2-space-1);
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
}

/* ── Hero (v3: left-aligned, asymmetric) ──────────────────────────────── */
body.ds2 .hp-hero {
    padding: 96px var(--ds2-space-6) 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.ds2 .hp-hero { padding: 96px 48px 80px; }
}

body.ds2 .hp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 768px;
}

body.ds2 .hp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds2-space-2);
    padding: var(--ds2-space-1) var(--ds2-space-4);
    border-radius: var(--ds2-radius-full);
    background: var(--color-revenue-bg);
    border: 1px solid rgba(249, 115, 22, 0.2);
    font-size: var(--ds2-text-xs);
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .hp-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-destructive);
    animation: hp-pulse 1.5s ease-in-out infinite;
}

@keyframes hp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

body.ds2 .hp-hero-title {
    font-family: var(--ds2-font-heading);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

body.ds2 .hp-hero-accent {
    color: var(--interactive-primary);
}

body.ds2 .hp-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 var(--ds2-space-10);
}

body.ds2 .hp-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--ds2-space-3);
    flex-wrap: wrap;
}

body.ds2 .hp-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--ds2-space-2);
}

/* ── Live avatars row (v3) ──────────────────────────────────────────── */
body.ds2 .hp-live-avatars {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-2);
    margin-bottom: var(--ds2-space-8);
}

body.ds2 .hp-live-avatars-stack {
    display: flex;
}

body.ds2 .hp-live-avatars-stack .hp-live-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    margin-left: -6px;
}

body.ds2 .hp-live-avatars-stack .hp-live-avatar:first-child {
    margin-left: 0;
}

body.ds2 .hp-live-avatars-text {
    font-size: 12px;
    color: var(--text-secondary);
}

body.ds2 .hp-live-avatars-count {
    color: var(--color-destructive);
    font-weight: 600;
}

/* ── Social proof stats (v3) ────────────────────────────────────────── */
body.ds2 .hp-social-proof {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-6);
    margin-top: var(--ds2-space-10);
}

body.ds2 .hp-social-proof-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

body.ds2 .hp-social-proof-value {
    font-family: var(--ds2-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

body.ds2 .hp-social-proof-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Active Reviewers Gallery ──────────────────────────────────────────── */
body.ds2 .hp-reviewers {
    padding: var(--ds2-space-12) 0 var(--ds2-space-16);
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

body.ds2 .hp-reviewers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds2-space-8);
}

body.ds2 .hp-gallery-nav {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-2);
}

body.ds2 .hp-browse-all {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--interactive-link);
    text-decoration: none;
    margin-right: var(--ds2-space-2);
}

body.ds2 .hp-browse-all:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    body.ds2 .hp-browse-all { display: inline-flex; }
}

body.ds2 .hp-gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ds2-radius-md);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    transition: box-shadow 0.15s, color 0.15s;
}

body.ds2 .hp-gallery-btn:hover {
    box-shadow: 0 0 0 1px var(--border-strong);
    color: var(--text-primary);
}

body.ds2 .hp-gallery-track {
    display: flex;
    gap: var(--ds2-space-4);
    overflow-x: auto;
    padding-bottom: var(--ds2-space-2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.ds2 .hp-gallery-track::-webkit-scrollbar {
    display: none;
}

body.ds2 .hp-reviewer-card {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, box-shadow 0.15s;
}

body.ds2 .hp-reviewer-card:hover {
    background: var(--bg-surface-raised);
    box-shadow: 0 0 0 1px var(--border-strong);
}

body.ds2 .hp-reviewer-card.is-live {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

body.ds2 .hp-reviewer-top {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-3);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .hp-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--ds2-text-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ds2 .hp-reviewer-avatar.live {
    background: var(--interactive-primary);
    color: white;
}

/* Color cycling for avatar variety */
body.ds2 .hp-reviewer-card:nth-child(4n+2) .hp-reviewer-avatar {
    background: rgba(16, 185, 129, 0.15);
}
body.ds2 .hp-reviewer-card:nth-child(4n+3) .hp-reviewer-avatar {
    background: rgba(249, 115, 22, 0.15);
}
body.ds2 .hp-reviewer-card:nth-child(4n+4) .hp-reviewer-avatar {
    background: rgba(59, 130, 246, 0.15);
}

body.ds2 .hp-reviewer-meta {
    min-width: 0;
}

body.ds2 .hp-reviewer-name {
    font-size: var(--ds2-text-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ds2 .hp-reviewer-rating {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-1);
    font-size: var(--ds2-text-xs);
    color: var(--color-revenue);
}

body.ds2 .hp-reviewer-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .hp-genre-tag {
    padding: 2px var(--ds2-space-2);
    border-radius: var(--ds2-radius-full);
    background: var(--bg-surface-overlay);
    color: var(--text-primary);
    font-size: 11px;
}

body.ds2 .hp-reviewer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.ds2 .hp-status-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--ds2-text-xs);
    font-weight: 600;
    color: var(--color-destructive);
}

body.ds2 .hp-status-offline {
    font-size: var(--ds2-text-xs);
    color: var(--text-secondary);
}

body.ds2 .hp-viewer-count {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
}

body.ds2 .hp-placeholder {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Stats Grid ────────────────────────────────────────────────────────── */
body.ds2 .hp-stats {
    padding: var(--ds2-space-16) 0;
    border-bottom: 1px solid var(--border-subtle);
}

body.ds2 .hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds2-space-3);
}

body.ds2 .hp-stat-card {
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    text-align: left;
}

body.ds2 .hp-stat-icon {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--ds2-space-3);
    color: var(--interactive-primary);
}

body.ds2 .hp-stat-value {
    font-family: var(--ds2-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

body.ds2 .hp-stat-label {
    margin-top: var(--ds2-space-1);
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── How It Works — Steps ──────────────────────────────────────────────── */
body.ds2 .hp-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .hp-step-card {
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
}

body.ds2 .hp-step-top {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-3);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .hp-step-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds2-radius-md);
    background: var(--color-primary-bg);
    color: var(--interactive-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ds2 .hp-step-num {
    font-size: var(--ds2-text-xs);
    font-weight: 600;
    color: var(--text-muted);
}

body.ds2 .hp-step-title {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .hp-step-desc {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* ── Features Grid ─────────────────────────────────────────────────────── */
body.ds2 .hp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-6);
}

body.ds2 .hp-feature-card {
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    transition: box-shadow 0.15s;
}

body.ds2 .hp-feature-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong);
}

body.ds2 .hp-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds2-radius-md);
    background: var(--color-primary-bg);
    color: var(--interactive-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ds2-space-4);
}

/* Cycle feature icon colors through accent palette */
body.ds2 .hp-feature-card:nth-child(2) .hp-feature-icon {
    background: var(--color-success-bg);
    color: var(--color-success);
}
body.ds2 .hp-feature-card:nth-child(3) .hp-feature-icon {
    background: rgba(249, 115, 22, 0.12);
    color: var(--brand-accent);
}
body.ds2 .hp-feature-card:nth-child(4) .hp-feature-icon {
    background: var(--color-info-bg);
    color: var(--color-info);
}
body.ds2 .hp-feature-card:nth-child(5) .hp-feature-icon {
    background: var(--color-purple-bg);
    color: var(--color-purple);
}
body.ds2 .hp-feature-card:nth-child(6) .hp-feature-icon {
    background: var(--color-revenue-bg);
    color: var(--color-revenue);
}

body.ds2 .hp-feature-title {
    font-family: var(--ds2-font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .hp-feature-desc {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* ── Featured Artists — REMOVED (section deleted from index.html) ──── */
/* hp-artists-grid, hp-artist-card, hp-artist-avatar, hp-artist-info,   */
/* hp-artist-name, hp-artist-genre, hp-artist-stats, hp-artist-score    */
/* were removed in Sprint 9 CSS dead selector audit.                     */

/* ── CTA Card ──────────────────────────────────────────────────────────── */
body.ds2 .hp-cta-card {
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-12);
    text-align: center;
    background: linear-gradient(164deg, rgba(99, 102, 241, 0.15), rgba(249, 115, 22, 0.1));
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
}

body.ds2 .hp-cta-title {
    font-family: var(--ds2-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .hp-cta-desc {
    font-size: var(--ds2-text-base);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    max-width: 560px;
    margin: 0 auto var(--ds2-space-8);
}

/* ── Homepage Footer ──────────────────────────────────────────────────── */
body.ds2 .hp-footer {
    border-top: 1px solid var(--border-default);
    padding: var(--ds2-space-12) 0 var(--ds2-space-8);
}

body.ds2 .hp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-6);
}

body.ds2 .hp-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ds2-space-8);
    margin-bottom: var(--ds2-space-10);
}

body.ds2 .hp-footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-3);
}

body.ds2 .hp-footer-heading {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-sm);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: var(--ds2-space-1);
}

body.ds2 .hp-footer-link {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

body.ds2 .hp-footer-link:hover {
    color: var(--text-primary);
}

body.ds2 .hp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--ds2-space-6);
    border-top: 1px solid var(--border-subtle);
}

body.ds2 .hp-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-2);
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-sm);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

body.ds2 .hp-footer-logo-mark {
    width: 24px;
    height: 24px;
    border-radius: var(--ds2-radius-sm);
    background: var(--interactive-primary);
}

body.ds2 .hp-footer-copy {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
}

/* -- v3 footer: 5-column with brand col -- */
body.ds2 .hp-footer-grid-v3 {
    grid-template-columns: 2fr repeat(4, 1fr);
}

body.ds2 .hp-footer-brand-col {
    gap: var(--ds2-space-4);
}

body.ds2 .hp-footer-brand-col .hp-footer-brand {
    font-size: 14px;
}

body.ds2 .hp-footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* v3 footer bottom: centered copyright */
body.ds2 .hp-footer-grid-v3 + .hp-footer-bottom {
    justify-content: center;
}

/* ── Homepage Responsive ───────────────────────────────────────────────── */
@media (min-width: 1024px) {
    body.ds2 .hp-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    body.ds2 .hp-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--ds2-space-4);
    }

    body.ds2 .hp-features-grid {
        grid-template-columns: 1fr;
        gap: var(--ds2-space-4);
    }

    body.ds2 .hp-reviewers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ds2-space-4);
    }

    body.ds2 .hp-cta-card {
        padding: var(--ds2-space-8) var(--ds2-space-4);
    }

    body.ds2 .hp-hero {
        padding: 64px var(--ds2-space-4) 48px;
    }

    body.ds2 .hp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds2-space-6);
    }
    body.ds2 .hp-footer-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
    body.ds2 .hp-footer-grid-v3 .hp-footer-brand-col {
        grid-column: span 2;
    }
    body.ds2 .hp-footer-brand-col {
        margin-bottom: var(--ds2-space-4);
    }
}

@media (max-width: 640px) {
    body.ds2 .hp-hero {
        text-align: center;
    }

    body.ds2 .hp-hero-content {
        margin: 0 auto;
    }

    body.ds2 .hp-hero-subtitle {
        margin: 0 auto var(--ds2-space-10);
    }

    body.ds2 .hp-hero-title {
        font-size: 2rem;
    }

    body.ds2 .hp-hero-ctas {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    body.ds2 .hp-hero-ctas a {
        width: 100%;
        justify-content: center;
    }

    body.ds2 .hp-reviewer-card {
        width: 200px;
    }

    body.ds2 .hp-gallery-nav {
        display: none;
    }

    body.ds2 .hp-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--ds2-space-6);
    }

    body.ds2 .hp-footer-bottom {
        flex-direction: column;
        gap: var(--ds2-space-3);
        text-align: center;
    }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body.ds2 .hp-live-dot {
        animation: none;
    }
    /* hp-artist-card:hover removed — dead selector (Sprint 9 audit) */
}


/* ═══════════════════════════════════════════════════════════════════════════
   GO LIVE PAGE
   Figma: STANDARD-pub / Go Live (1:488)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Revenue Split card ──────────────────────────────────────────────── */
body.ds2 .go-live-revenue-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-8);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-2);
}

body.ds2 .go-live-revenue-card h2 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .revenue-bar {
    display: flex;
    height: 32px;
    border-radius: var(--ds2-radius-xl);
    overflow: hidden;
    margin-bottom: var(--ds2-space-5);
}

body.ds2 .revenue-bar > div {
    /* purely visual color blocks — no text */
}
body.ds2 .revenue-bar-you { background: #6366f1; flex: 80; height: 100%; }
body.ds2 .revenue-bar-platform { background: #3a3a3f; flex: 15; height: 100%; }
body.ds2 .revenue-bar-partner { background: #2a2a2e; flex: 5; height: 100%; }

body.ds2 .revenue-splits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
    text-align: center;
    margin-bottom: var(--ds2-space-6);
}

body.ds2 .revenue-split-pct {
    display: block;
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-2xl);
    font-weight: 700;
    line-height: 1.5;
}

body.ds2 .revenue-split-pct.you { color: var(--ds2-indigo-500); }
body.ds2 .revenue-split-pct.platform { color: var(--text-secondary); }
body.ds2 .revenue-split-pct.partner { color: var(--text-muted); }

body.ds2 .revenue-split-label {
    display: block;
    font-size: var(--ds2-text-xs);
    color: var(--text-secondary);
}

/* ── Earnings Calculator ─────────────────────────────────────────────── */
body.ds2 .earnings-calc {
    border-top: 1px solid var(--border-default);
    padding-top: var(--ds2-space-6);
}

body.ds2 .earnings-calc h4 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-base);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .earnings-calc-label {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .earnings-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: #2a2a2e;
    border-radius: 3px;
    outline: none;
    margin-bottom: var(--ds2-space-5);
}

body.ds2 .earnings-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ds2-indigo-500);
    border-radius: 50%;
    cursor: pointer;
}

body.ds2 .earnings-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--ds2-indigo-500);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

body.ds2 .earnings-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-4);
}

body.ds2 .earnings-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(245, 158, 11, 0.12);
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-3);
    text-align: center;
}

body.ds2 .earnings-result-value {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 700;
    color: #f59e0b;
}

body.ds2 .earnings-result-label {
    font-size: var(--ds2-text-xs);
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Session Formats Grid ────────────────────────────────────────────── */
body.ds2 .session-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds2-space-6);
}

body.ds2 .session-format-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-6);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .session-format-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .session-format-header {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-3);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .session-format-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds2-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ds2 .session-format-icon svg {
    width: 24px;
    height: 24px;
}

body.ds2 .session-format-card h3 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

body.ds2 .session-format-card p {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SUBMIT MUSIC PAGE
   Figma: STANDARD-pub / Submit Music (1:284)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── How it works steps ──────────────────────────────────────────────── */
body.ds2 .submit-steps-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--ds2-space-5);
}

body.ds2 .submit-step-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .submit-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--interactive-primary);
    color: #fff;
    font-size: var(--ds2-text-sm);
    font-weight: 700;
    margin-bottom: var(--ds2-space-3);
}

/* Step icon: prominent indigo container matching Figma */
body.ds2 .submit-step-card > svg {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--ds2-radius-md);
    color: var(--interactive-primary);
    margin-bottom: var(--ds2-space-3);
    box-sizing: content-box;
}

body.ds2 .submit-step-card h4 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .submit-step-card p {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Pricing tier labels ─────────────────────────────────────────────── */
body.ds2 .marketing-price-tier-label {
    font-size: var(--ds2-text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .marketing-price-card.featured .marketing-price-tier-label {
    color: var(--ds2-indigo-500);
}

/* ── Testimonials ────────────────────────────────────────────────────── */
body.ds2 .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-5);
}

body.ds2 .testimonial-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .testimonial-stars {
    color: #f59e0b;
    font-size: var(--ds2-text-base);
    letter-spacing: 2px;
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .testimonial-card blockquote {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--ds2-space-4);
    font-style: normal;
}

body.ds2 .testimonial-card cite {
    font-size: var(--ds2-text-sm);
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════════
   APPLY NOW PAGE (Capabilities)
   Figma: STANDARD-pub / Apply Now (1:617)
   ═══════════════════════════════════════════════════════════════════════════ */

body.ds2 .apply-requirements {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--ds2-space-16) var(--ds2-space-6) var(--ds2-space-8);
    text-align: center;
}

body.ds2 .apply-requirements h2 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .apply-requirements > p {
    font-size: var(--ds2-text-base);
    color: var(--text-secondary);
    margin-bottom: var(--ds2-space-8);
}

body.ds2 .apply-req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds2-space-4);
    text-align: left;
}

body.ds2 .apply-req-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .apply-req-card h4 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-1);
}

body.ds2 .apply-req-card p {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PARTNER PAGE
   Figma: STANDARD-pub / Partner (1:660)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Partner stats row ───────────────────────────────────────────────── */
body.ds2 .partner-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ds2-space-5);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-6);
}

body.ds2 .partner-stat {
    text-align: center;
    padding: var(--ds2-space-5);
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
}

body.ds2 .partner-stat-value {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-2xl);
    font-weight: 700;
    color: #f59e0b;
}

body.ds2 .partner-stat-label {
    font-size: var(--ds2-text-xs);
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Service categories ──────────────────────────────────────────────── */
body.ds2 .partner-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-5);
}

body.ds2 .partner-service-card {
    background: var(--bg-surface);
    background-image: var(--card-gradient);
    border: none;
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-5);
    box-shadow: 0 0 0 1px var(--border-default), var(--shadow-elevation-1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .partner-service-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-elevation-2);
    transform: translateY(-2px);
}

body.ds2 .partner-service-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds2-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ds2-space-3);
    background: rgba(99, 102, 241, 0.12);
    color: var(--interactive-primary);
}

body.ds2 .partner-service-icon svg {
    width: 24px;
    height: 24px;
}

body.ds2 .partner-service-card h4 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .partner-service-card p {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Partner CTA section ─────────────────────────────────────────────── */
body.ds2 .partner-cta-section {
    background: var(--bg-surface);
    background-image:
        radial-gradient(ellipse at 25% 60%, rgba(249, 115, 22, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 40%, rgba(99, 102, 241, 0.22) 0%, transparent 55%);
    border: 1px solid var(--border-strong);
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-12) var(--ds2-space-8);
    text-align: center;
    max-width: 900px;
    margin: var(--ds2-space-12) auto 0;
}

body.ds2 .partner-cta-section h2 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .partner-cta-section p {
    font-size: var(--ds2-text-base);
    color: var(--text-secondary);
    margin-bottom: var(--ds2-space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: Figma page components
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body.ds2 .session-formats-grid { grid-template-columns: 1fr; }
    body.ds2 .submit-steps-grid { grid-template-columns: 1fr; }
    body.ds2 .testimonials-grid { grid-template-columns: 1fr; }
    body.ds2 .partner-stats-grid { grid-template-columns: repeat(2, 1fr); }
    body.ds2 .partner-services-grid { grid-template-columns: 1fr; }
    body.ds2 .apply-req-grid { grid-template-columns: 1fr; }
    body.ds2 .earnings-results { grid-template-columns: 1fr; }
    body.ds2 .revenue-splits { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    body.ds2 .partner-stats-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DOCUMENTATION PAGES
   Base docs layout: sidebar navigation + content area.
   Scoped to body.ds2 for DS2 migration.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Docs Layout */
body.ds2 .docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

/* Hide base nav/footer for docs */
body.ds2.docs-page .nav {
    display: none !important;
}

body.ds2.docs-page .footer {
    display: none !important;
}

/* Sidebar */
body.ds2 .docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

body.ds2 .docs-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

body.ds2 .docs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

body.ds2 .docs-logo-mark {
    width: 24px;
    height: 24px;
    background: var(--ember);
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}

body.ds2 .docs-nav {
    flex: 1;
    padding: 24px;
}

body.ds2 .docs-nav-section {
    margin-bottom: 28px;
}

body.ds2 .docs-nav-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

body.ds2 .docs-nav-list {
    list-style: none;
}

body.ds2 .docs-nav-list li {
    margin-bottom: 4px;
}

body.ds2 .docs-nav-list a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--ds2-radius-md);
    transition: all 0.15s ease;
}

body.ds2 .docs-nav-list a:hover {
    color: var(--text-primary);
    background: var(--bg-surface-raised);
}

body.ds2 .docs-nav-list a.active {
    color: var(--interactive-link);
    background: rgba(99, 102, 241, 0.12);
    border-radius: var(--ds2-radius-lg);
    font-weight: 500;
}

body.ds2 .docs-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

body.ds2 .docs-demo-link {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ember);
    border: 1px solid var(--ember);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

body.ds2 .docs-demo-link:hover {
    background: var(--ember);
    color: #000;
}

/* Main Content */
body.ds2 .docs-main {
    flex: 1;
    margin-left: 280px;
    padding: 48px 64px;
    max-width: 900px;
}

body.ds2 .docs-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

body.ds2 .docs-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

body.ds2 .docs-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

body.ds2 .docs-content h2:first-of-type {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
}

body.ds2 .docs-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

body.ds2 .docs-content p {
    margin-bottom: 16px;
}

body.ds2 .docs-content ul,
body.ds2 .docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

body.ds2 .docs-content li {
    margin-bottom: 8px;
}

body.ds2 .docs-content a {
    color: var(--ember);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.ds2 .docs-content a:hover {
    text-decoration: underline;
}

body.ds2 .docs-content code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.875em;
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--ember);
}

body.ds2 .docs-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}

body.ds2 .docs-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

body.ds2 .docs-content blockquote {
    border-left: 3px solid var(--ember);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}

body.ds2 .docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

body.ds2 .docs-content th,
body.ds2 .docs-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

body.ds2 .docs-content th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Page description */
body.ds2 .docs-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Callout boxes */
body.ds2 .docs-callout {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

body.ds2 .docs-callout-info {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

body.ds2 .docs-callout-warning {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

body.ds2 .docs-callout-danger {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.ds2 .docs-callout-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

body.ds2 .docs-callout p {
    margin: 0;
    font-size: 0.875rem;
}

/* Page Navigation */
body.ds2 .docs-page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

body.ds2 .docs-page-nav-link {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    max-width: 45%;
}

body.ds2 .docs-page-nav-link:hover {
    border-color: var(--ember);
}

body.ds2 .docs-page-nav-prev {
    align-items: flex-start;
}

body.ds2 .docs-page-nav-next {
    align-items: flex-end;
}

body.ds2 .docs-page-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

body.ds2 .docs-page-nav-title {
    font-weight: 500;
    color: var(--text-primary);
}

/* Docs Mobile Responsive */
@media (max-width: 1024px) {
    body.ds2 .docs-sidebar {
        width: 240px;
    }

    body.ds2 .docs-main {
        margin-left: 240px;
        padding: 32px 40px;
    }
}

@media (max-width: 768px) {
    body.ds2 .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: var(--z-modal);
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block;
    }

    body.ds2 .docs-sidebar.open {
        transform: translateX(0);
    }

    body.ds2 .docs-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 83px; /* clear fixed nav (67px) + 16px gap */
        margin-bottom: var(--ds2-space-3);
        margin-left: var(--ds2-space-6);
        padding: 10px 16px;
        border-radius: var(--ds2-radius-md);
        background: var(--bg-surface-raised);
        border: 1px solid var(--border-default);
        color: var(--text-primary);
        cursor: pointer;
        font-size: var(--ds2-text-sm);
        font-weight: 500;
        width: fit-content;
    }

    body.ds2 .docs-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: var(--z-modal-backdrop);
    }

    body.ds2 .docs-main {
        margin-left: 0;
        padding: 100px 24px 48px;
    }

    body.ds2.docs-page .nav {
        display: flex !important;
    }

    /* Show logo on docs page at mobile — sidebar is hidden so logo is needed for navigation */
    body.ds2.docs-page .nav .nav-logo {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    body.ds2 .docs-sidebar-toggle {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC VIEWER: Reviewer Room — /r/<slug>
   Container: .queue-page
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Profile Header --- */
body.ds2 .reviewer-profile-header {
    background: linear-gradient(180deg, var(--ds2-zinc-950) 0%, var(--bg-page) 100%);
    padding: var(--ds2-space-12) 0 var(--ds2-space-8);
    border-bottom: 1px solid var(--border-default);
}

body.ds2 .profile-header-content {
    display: flex;
    gap: var(--ds2-space-12);
    align-items: flex-start;
}

body.ds2 .profile-main {
    display: flex;
    gap: var(--ds2-space-6);
    flex: 1;
}

body.ds2 .profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

body.ds2 .profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-default);
}

body.ds2 .profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-accent), var(--ds2-amber-200));
    color: #000;
    font-size: var(--ds2-text-3xl);
    font-weight: 700;
}

body.ds2 .profile-live-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px var(--ds2-space-2);
    background: var(--brand-accent);
    color: #000;
    border-radius: var(--ds2-radius-sm);
    animation: ds2-pulse 2s ease-in-out infinite;
}

@keyframes ds2-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

body.ds2 .profile-info {
    flex: 1;
}

body.ds2 .profile-name {
    font-family: var(--ds2-font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--ds2-space-1);
    color: var(--text-primary);
}

body.ds2 .profile-location {
    font-size: var(--ds2-text-sm);
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-1);
}

body.ds2 .profile-social {
    font-size: var(--ds2-text-sm);
    color: var(--brand-accent);
    text-decoration: none;
}

body.ds2 .profile-social:hover {
    text-decoration: underline;
}

body.ds2 .profile-bio {
    margin-top: var(--ds2-space-3);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    max-width: 500px;
}

body.ds2 .profile-genres {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds2-space-2);
    margin-top: var(--ds2-space-3);
}

body.ds2 .genre-tag {
    font-size: var(--ds2-text-xs);
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--ds2-radius-xl);
    color: var(--text-secondary);
}

/* --- Sidebar (stats + CTA) --- */
body.ds2 .queue-page .profile-sidebar {
    width: 240px;
    flex-shrink: 0;
}

body.ds2 .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds2-space-2);
    margin-bottom: var(--ds2-space-5);
}

body.ds2 .profile-stat {
    text-align: center;
    padding: var(--ds2-space-3) var(--ds2-space-2);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-md);
}

body.ds2 .profile-stat-value {
    display: block;
    font-size: var(--ds2-text-xl);
    font-weight: 700;
    color: var(--brand-accent);
}

body.ds2 .profile-stat-label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 2px;
}

body.ds2 .profile-cta {
    width: 100%;
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .profile-status-text {
    font-size: var(--ds2-text-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
}

/* --- Profile Grid --- */
body.ds2 .profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--ds2-space-8);
    margin-top: var(--ds2-space-8);
}

body.ds2 .profile-main-column {
    min-width: 0;
}

body.ds2 .profile-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-6);
}

body.ds2 .profile-section {
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-md);
    padding: var(--ds2-space-5);
}

body.ds2 .profile-section-title {
    font-size: var(--ds2-text-sm);
    font-weight: 600;
    margin-bottom: var(--ds2-space-4);
    color: var(--text-primary);
}

/* --- Session History --- */
body.ds2 .session-history {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-2);
}

body.ds2 .session-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--ds2-space-3);
    background: var(--bg-surface-raised);
    border-radius: var(--ds2-radius-md);
}

body.ds2 .session-history-date {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
}

body.ds2 .session-history-stats {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--ds2-space-2);
}

body.ds2 .live-badge-sm {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    background: var(--brand-accent);
    color: #000;
    border-radius: 3px;
}

/* --- Upcoming Sessions (DS3 Phase 2) --- */
body.ds2 .upcoming-sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-2);
}

body.ds2 .upcoming-session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--ds2-space-3);
    background: var(--bg-surface-raised);
    border-radius: var(--ds2-radius-md);
}

body.ds2 .upcoming-session-date {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
}

body.ds2 .upcoming-session-title {
    font-size: var(--ds2-text-sm);
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Room Chat Preview (DS3 Phase 2) --- */
body.ds2 .room-chat-preview {
    max-height: 200px;
    overflow-y: auto;
    padding: var(--ds2-space-2);
    background: var(--bg-nested);
    border-radius: var(--ds2-radius-md);
}

body.ds2 .room-chat-msg {
    font-size: var(--ds2-text-xs);
    color: var(--text-secondary);
    padding: 2px 0;
    line-height: 1.4;
}

body.ds2 .room-chat-msg strong {
    color: var(--interactive-primary);
}

/* --- Pricing Grid --- */
body.ds2 .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-2);
}

body.ds2 .pricing-item {
    padding: var(--ds2-space-3);
    background: var(--bg-surface-raised);
    border-radius: var(--ds2-radius-md);
}

body.ds2 .pricing-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--ds2-space-1);
}

body.ds2 .pricing-desc {
    font-size: var(--ds2-text-xs);
    margin: 0;
    color: var(--text-muted);
}

/* --- Queue Tabs --- */
body.ds2 .queue-tabs {
    display: flex;
    gap: var(--ds2-space-2);
    margin: var(--ds2-space-6) 0 var(--ds2-space-4);
}

body.ds2 .queue-tab {
    padding: 10px var(--ds2-space-5);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--ds2-radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--ds2-text-sm);
    font-weight: 500;
    transition: all 0.2s;
}

body.ds2 .queue-tab:hover {
    border-color: var(--border-strong);
}

body.ds2 .queue-tab.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #000;
}

body.ds2 .queue-item.finished {
    opacity: 0.7;
}

body.ds2 .queue-check {
    width: 36px;
    text-align: center;
    color: var(--ds2-emerald-500);
    font-size: var(--ds2-text-xl);
}

body.ds2 .queue-score {
    font-weight: 700;
    color: var(--brand-accent);
}

body.ds2 .playback-progress {
    margin-top: var(--ds2-space-2);
    font-size: var(--ds2-text-sm);
}

body.ds2 .text-ember {
    color: var(--brand-accent);
}

body.ds2 .queue-page .live-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-accent);
    border-radius: 50%;
    display: inline-block;
    animation: ds2-pulse 2s ease-in-out infinite;
}

/* --- Room Page Responsive --- */
@media (max-width: 1024px) {
    body.ds2 .profile-grid {
        grid-template-columns: 1fr;
    }
    body.ds2 .profile-sidebar-column {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.ds2 .profile-header-content {
        flex-direction: column;
        gap: var(--ds2-space-6);
    }
    body.ds2 .profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    body.ds2 .profile-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    body.ds2 .profile-genres {
        justify-content: center;
    }
    body.ds2 .queue-page .profile-sidebar {
        width: 100%;
    }
    body.ds2 .profile-sidebar-column {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC VIEWER: No Live — /live (empty state)
   Container: .queue-page
   ═══════════════════════════════════════════════════════════════════════════ */

body.ds2 .no-live-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--ds2-space-5);
    max-width: 900px;
    margin: 0 auto;
}

body.ds2 .no-live-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--ds2-space-6) var(--ds2-space-5);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-md);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.ds2 .no-live-card:hover {
    box-shadow: 0 0 0 1px var(--brand-accent);
    transform: translateY(-4px);
}

body.ds2 .no-live-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--interactive-primary));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ds2-text-xl);
    font-weight: 700;
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .no-live-info {
    text-align: center;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .no-live-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

body.ds2 .no-live-genre {
    font-size: var(--ds2-text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.ds2 .no-live-bio {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC VIEWER: Song Wars — /song-wars/<id>
   Container: .song-wars-page
   ═══════════════════════════════════════════════════════════════════════════ */

body.ds2 .song-wars-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-page) 0%, #1a0a1f 100%);
}

body.ds2 .song-wars-header {
    padding: var(--ds2-space-6) 0;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: var(--ds2-space-8);
}

body.ds2 .song-wars-title {
    font-family: var(--ds2-font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--interactive-primary) 0%, var(--ds2-amber-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .song-wars-page .live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds2-space-2);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 6px var(--ds2-space-3);
    border-radius: var(--ds2-radius-full);
    font-size: var(--ds2-text-xs);
    font-weight: 600;
    color: var(--interactive-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.ds2 .song-wars-page .live-dot {
    width: 8px;
    height: 8px;
    background: var(--interactive-primary);
    border-radius: 50%;
    animation: ds2-pulse 1.5s ease-in-out infinite;
}

body.ds2 .battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--ds2-space-6);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-5);
}

body.ds2 .battle-card {
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-xl);
    padding: var(--ds2-space-6);
    transition: all 0.3s ease;
}

body.ds2 .battle-card:hover {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

body.ds2 .battle-card.winner {
    box-shadow: 0 0 0 1px #00ff88, 0 0 30px rgba(0, 255, 136, 0.2);
}

body.ds2 .battle-card .song-artwork {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ds2-radius-xl);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .battle-card .song-artwork-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-surface-raised) 0%, var(--bg-surface) 100%);
    border-radius: var(--ds2-radius-xl);
    margin-bottom: var(--ds2-space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ds2-text-3xl);
    color: var(--text-muted);
}

body.ds2 .battle-card .song-title {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 600;
    margin-bottom: var(--ds2-space-1);
    color: var(--text-primary);
}

body.ds2 .battle-card .song-artist {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .vote-section {
    margin-top: var(--ds2-space-5);
}

body.ds2 .vote-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ds2-space-3);
}

body.ds2 .vote-number {
    font-size: var(--ds2-text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

body.ds2 .vote-percent {
    font-size: var(--ds2-text-sm);
    color: var(--text-secondary);
}

body.ds2 .vote-progress {
    height: 8px;
    background: var(--bg-surface-raised);
    border-radius: var(--ds2-radius-sm);
    overflow: hidden;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .vote-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--interactive-primary) 0%, var(--ds2-amber-200) 100%);
    transition: width 0.5s ease;
    border-radius: var(--ds2-radius-sm);
}

body.ds2 .vote-progress-fill.side-b {
    background: linear-gradient(90deg, #6b35ff 0%, #9f7cf5 100%);
}

body.ds2 .vote-btn {
    width: 100%;
    padding: var(--ds2-space-4) var(--ds2-space-6);
    border: none;
    border-radius: var(--ds2-radius-xl);
    font-size: var(--ds2-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.ds2 .vote-btn.side-a {
    background: linear-gradient(135deg, var(--interactive-primary) 0%, var(--brand-accent) 100%);
    color: #000;
}

body.ds2 .vote-btn.side-b {
    background: linear-gradient(135deg, #6b35ff 0%, #8f35ff 100%);
    color: #fff;
}

body.ds2 .vote-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

body.ds2 .vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

body.ds2 .vote-btn.voted {
    background: var(--bg-surface-raised);
    color: var(--text-muted);
}

/* Optimistic pending state (Sprint 16 12.6) — instant feedback before server confirms */
body.ds2 .vote-btn.voted-optimistic {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--interactive-primary);
    color: var(--interactive-primary);
    opacity: 1;
    transition: background 0.1s, border-color 0.1s;
}

body.ds2 .vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ds2 .vs-text {
    font-size: var(--ds2-text-3xl);
    font-weight: 900;
    background: linear-gradient(180deg, var(--interactive-primary) 0%, #6b35ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.ds2 .no-battle {
    text-align: center;
    padding: 60px var(--ds2-space-5);
}

body.ds2 .no-battle-icon {
    font-size: 4rem;
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .no-battle h3 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-2xl);
    margin-bottom: var(--ds2-space-2);
    color: var(--text-primary);
}

body.ds2 .no-battle p {
    color: var(--text-secondary);
}

body.ds2 .completed-battles {
    margin-top: var(--ds2-space-12);
    padding: var(--ds2-space-6) 0;
    border-top: 1px solid var(--border-default);
}

body.ds2 .completed-title {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-xl);
    font-weight: 600;
    margin-bottom: var(--ds2-space-4);
    color: var(--text-secondary);
}

body.ds2 .completed-list {
    display: grid;
    gap: var(--ds2-space-3);
}

body.ds2 .completed-item {
    display: flex;
    align-items: center;
    gap: var(--ds2-space-4);
    padding: var(--ds2-space-3) var(--ds2-space-4);
    background: var(--bg-surface);
    border-radius: var(--ds2-radius-md);
    color: var(--text-primary);
}

body.ds2 .completed-item .winner-badge {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    padding: 4px var(--ds2-space-2);
    border-radius: var(--ds2-radius-sm);
    font-size: var(--ds2-text-xs);
    font-weight: 600;
}

body.ds2 .winner-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: var(--z-modal);
    animation: ds2-fade-in 0.3s ease;
}

body.ds2 .winner-animation.hidden {
    display: none;
}

body.ds2 .winner-title {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-3xl);
    font-weight: 900;
    background: linear-gradient(90deg, #00ff88 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--ds2-space-6);
    animation: ds2-bounce 0.5s ease;
}

@keyframes ds2-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ds2-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --- Song Wars Responsive --- */
@media (max-width: 768px) {
    body.ds2 .battle-arena {
        grid-template-columns: 1fr;
        gap: var(--ds2-space-4);
    }
    body.ds2 .vs-divider {
        order: -1;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC VIEWER: Beat Battle — /beat-battle/<id>
   Container: .beat-battle-page
   ═══════════════════════════════════════════════════════════════════════════ */

body.ds2 .beat-battle-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-page) 0%, #0a1a1f 100%);
}

body.ds2 .beat-battle-header {
    padding: var(--ds2-space-6) 0;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: var(--ds2-space-8);
}

body.ds2 .beat-battle-title {
    font-family: var(--ds2-font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00ff88 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--ds2-space-2);
}

body.ds2 .beat-battle-page .live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds2-space-2);
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    padding: 6px var(--ds2-space-3);
    border-radius: var(--ds2-radius-full);
    font-size: var(--ds2-text-xs);
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.ds2 .beat-battle-page .live-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: ds2-pulse 1.5s ease-in-out infinite;
}

body.ds2 .leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--ds2-space-5);
}

body.ds2 .leaderboard-card {
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-xl);
    overflow: hidden;
}

body.ds2 .leaderboard-header {
    padding: var(--ds2-space-4) var(--ds2-space-6);
    background: rgba(0, 255, 136, 0.08);
    border-bottom: 1px solid var(--border-default);
}

body.ds2 .leaderboard-header h3 {
    font-family: var(--ds2-font-heading);
    font-size: var(--ds2-text-lg);
    font-weight: 600;
    color: #00ff88;
    margin: 0;
}

body.ds2 .leaderboard-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

body.ds2 .leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: var(--ds2-space-4);
    padding: var(--ds2-space-4) var(--ds2-space-6);
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    transition: background 0.2s ease;
}

body.ds2 .leaderboard-item:hover {
    background: var(--bg-surface-raised);
}

body.ds2 .leaderboard-item:last-child {
    border-bottom: none;
}

body.ds2 .leaderboard-rank {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ds2-radius-xl);
    font-size: var(--ds2-text-xl);
    font-weight: 700;
}

body.ds2 .rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000;
}

body.ds2 .rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #000;
}

body.ds2 .rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
}

body.ds2 .rank-other {
    background: var(--bg-surface-raised);
    color: var(--text-secondary);
}

body.ds2 .producer-info {
    min-width: 0;
}

body.ds2 .producer-name {
    font-size: var(--ds2-text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--ds2-space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ds2 .pack-name {
    font-size: var(--ds2-text-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ds2 .score-breakdown {
    display: flex;
    gap: var(--ds2-space-3);
    align-items: center;
}

body.ds2 .score-category {
    text-align: center;
    min-width: 50px;
}

body.ds2 .score-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--ds2-space-1);
}

body.ds2 .score-value {
    font-size: var(--ds2-text-base);
    font-weight: 600;
    color: var(--text-primary);
}

body.ds2 .total-score {
    background: rgba(0, 255, 136, 0.12);
    padding: var(--ds2-space-2) var(--ds2-space-4);
    border-radius: var(--ds2-radius-md);
    min-width: 60px;
}

body.ds2 .total-score .score-value {
    color: #00ff88;
    font-size: var(--ds2-text-xl);
}

body.ds2 .empty-leaderboard {
    text-align: center;
    padding: 60px var(--ds2-space-5);
    color: var(--text-muted);
}

body.ds2 .empty-leaderboard-icon {
    font-size: 4rem;
    margin-bottom: var(--ds2-space-4);
}

body.ds2 .empty-leaderboard h3 {
    color: var(--text-primary);
}

body.ds2 .submissions-pending {
    margin-top: var(--ds2-space-6);
    padding: var(--ds2-space-6);
    background: var(--bg-surface);
    border: none;
    box-shadow: 0 0 0 1px var(--border-default);
    border-radius: var(--ds2-radius-xl);
}

body.ds2 .pending-title {
    font-size: var(--ds2-text-base);
    font-weight: 600;
    margin-bottom: var(--ds2-space-4);
    color: var(--text-secondary);
}

body.ds2 .pending-list {
    display: grid;
    gap: var(--ds2-space-2);
}

body.ds2 .pending-item {
    padding: var(--ds2-space-3) var(--ds2-space-4);
    background: var(--bg-surface-raised);
    border-radius: var(--ds2-radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

body.ds2 .pending-badge {
    font-size: var(--ds2-text-xs);
    padding: 4px var(--ds2-space-2);
    background: rgba(234, 179, 8, 0.15);
    color: var(--ds2-yellow-500);
    border-radius: var(--ds2-radius-sm);
}

/* --- Beat Battle Responsive --- */
@media (max-width: 768px) {
    body.ds2 .leaderboard-item {
        grid-template-columns: 48px 1fr;
        gap: var(--ds2-space-3);
    }
    body.ds2 .score-breakdown {
        grid-column: span 2;
        justify-content: flex-start;
        padding-top: var(--ds2-space-3);
        border-top: 1px solid var(--border-subtle);
        margin-top: var(--ds2-space-2);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   THE PROCESS — v3 editorial two-column
   ═══════════════════════════════════════════════════════════════════ */

body.ds2 .hp-process {
    padding: 96px var(--ds2-space-6);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.ds2 .hp-process { padding: 96px 48px; }
}

body.ds2 .hp-process-inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

@media (min-width: 1024px) {
    body.ds2 .hp-process-inner {
        flex-direction: row;
        gap: 96px;
    }
}

/* -- Left column (sticky on desktop) -- */
body.ds2 .hp-process-left {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-5);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    body.ds2 .hp-process-left {
        position: sticky;
        top: 120px;
        align-self: flex-start;
        max-width: 380px;
    }
}

body.ds2 .hp-process-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

body.ds2 .hp-process-title {
    font-family: var(--ds2-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
}

body.ds2 .hp-process-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

body.ds2 .hp-process-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--interactive-link);
    text-decoration: none;
    transition: gap 0.2s ease;
}

body.ds2 .hp-process-link:hover {
    gap: 10px;
}

/* -- Steps column -- */
body.ds2 .hp-process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

body.ds2 .hp-process-step {
    display: flex;
    gap: var(--ds2-space-5);
    padding: var(--ds2-space-6) 0;
    border-left: 2px solid var(--border-default);
    padding-left: var(--ds2-space-6);
    margin-left: 16px;
    position: relative;
    transition: border-color 0.2s ease;
}

body.ds2 .hp-process-step:hover {
    border-left-color: var(--interactive-primary);
}

body.ds2 .hp-process-step:first-child { padding-top: 0; }
body.ds2 .hp-process-step:last-child { padding-bottom: 0; }

body.ds2 .hp-process-step + .hp-process-step {
    border-top: 1px solid var(--border-subtle);
}

body.ds2 .hp-process-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--interactive-primary);
    font-family: var(--ds2-font-heading);
    font-size: 13px;
    font-weight: 700;
}

body.ds2 .hp-process-step-title {
    font-family: var(--ds2-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

body.ds2 .hp-process-step-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 var(--ds2-space-3) 0;
}

body.ds2 .hp-process-step-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds2-space-2) var(--ds2-space-4);
}

body.ds2 .hp-process-step-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

body.ds2 .hp-process-step-details svg {
    color: var(--ds2-emerald-500);
}

/* ═══════════════════════════════════════════════════════════════════
   BENTO GRID — v3 feature cards
   ═══════════════════════════════════════════════════════════════════ */

body.ds2 .hp-bento-section {
    padding: 64px var(--ds2-space-6);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.ds2 .hp-bento-section { padding: 64px 48px; }
}

body.ds2 .hp-bento-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

body.ds2 .hp-bento-header {
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-3);
    max-width: 600px;
}

body.ds2 .hp-bento-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

body.ds2 .hp-bento-title {
    font-family: var(--ds2-font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
}

/* Grid: 6-column on desktop, stacked on mobile */
body.ds2 .hp-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ds2-space-4);
}

@media (min-width: 640px) {
    body.ds2 .hp-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    body.ds2 .hp-bento {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Card base */
body.ds2 .hp-bento-card {
    background: var(--bg-nested);
    border: none;
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--border-default);
    padding: var(--ds2-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--ds2-space-3);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

body.ds2 .hp-bento-card:hover {
    box-shadow: 0 0 0 1px var(--border-strong);
    transform: translateY(-2px);
}

/* Wide = span 4 of 6 on desktop, full on tablet */
body.ds2 .hp-bento-wide {
    grid-column: span 1;
}

@media (min-width: 640px) {
    body.ds2 .hp-bento-wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
    body.ds2 .hp-bento-wide { grid-column: span 4; }
}

/* Narrow = span 2 of 6 on desktop */
body.ds2 .hp-bento-narrow {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    body.ds2 .hp-bento-narrow { grid-column: span 2; }
}

body.ds2 .hp-bento-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds2-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ds2 .hp-bento-card-title {
    font-family: var(--ds2-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

body.ds2 .hp-bento-card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

body.ds2 .hp-bento-stat {
    font-family: var(--ds2-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: auto;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING CTA — v3 centered section
   ═══════════════════════════════════════════════════════════════════ */

body.ds2 .hp-pricing-cta {
    padding: 96px var(--ds2-space-6);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body.ds2 .hp-pricing-cta { padding: 96px 48px; }
}

body.ds2 .hp-pricing-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ds2-space-5);
    max-width: 640px;
    margin: 0 auto;
}

body.ds2 .hp-pricing-cta-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

body.ds2 .hp-pricing-cta-title {
    font-family: var(--ds2-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0;
}

body.ds2 .hp-pricing-cta-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 480px;
}

body.ds2 .hp-pricing-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds2-space-3);
    justify-content: center;
    margin-top: var(--ds2-space-3);
}

body.ds2 .hp-pricing-cta-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

