/* ============================================================
   Dojac Records - Main Stylesheet
   Dark theme, mobile-first
   ============================================================ */

:root {
    --bg:           #0a0a0a;
    --bg-card:      #161616;
    --bg-hover:     #1f1f1f;
    --border:       #2a2a2a;
    --accent:       #e63946;
    --accent-hover: #c72d39;
    --text:         #e8e8e8;
    --text-muted:   #888;
    --text-faint:   #555;
    --white:        #fff;
    --radius:       6px;
    --radius-lg:    12px;
    --transition:   0.2s ease;
    --player-h:     72px;
    --header-h:     64px;
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--player-h) + 16px);
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select {
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    width: 100%;
    transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-nav {
    display: flex;
    gap: 32px;
}
.site-nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
}
.site-nav a.active {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

/* ---- Main ---- */
.site-main { min-height: calc(100vh - var(--header-h) - 80px); }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 64px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy { color: var(--text-faint); font-size: 13px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--text-muted); font-size: 13px; }
.footer-nav a:hover { color: var(--white); }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 64px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- Section headings ---- */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.section-link { font-size: 13px; color: var(--text-muted); }
.section-link:hover { color: var(--accent); }

section.content-section { padding: 56px 0; }

/* ---- Release cards ---- */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.release-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.release-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.release-card__cover {
    position: relative;
    aspect-ratio: 1;
    background: #111;
    overflow: hidden;
}
.release-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}
.release-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-faint);
}
.release-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity var(--transition);
}
.release-card:hover .release-card__play { opacity: 1; }
.play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.play-btn:hover { background: var(--accent-hover); transform: scale(1.08); }
.release-card__body { padding: 16px; }
.release-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.release-card__artist { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.release-card__remixes {
    font-size: 11px;
    color: var(--text-faint);
    font-style: italic;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.release-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.tag--accent { background: rgba(230,57,70,0.15); color: var(--accent); border-color: rgba(230,57,70,0.3); }
.tag--artist { background: rgba(255,255,255,0.05); color: var(--text); border-color: var(--border); text-decoration: none; }
.tag--artist:hover { border-color: var(--accent); color: var(--accent); }
.release-detail__dojac-artists { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge-download {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
    font-weight: 600;
}

/* ---- Release detail ---- */
.release-detail { padding: 48px 0; }
.release-detail__inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}
.release-detail__cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: #111;
}
.release-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.release-detail__info h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}
.release-detail__artist {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.release-detail__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.release-detail__desc {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 560px;
}
.release-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.release-auth-prompt { font-size: 14px; color: var(--text-muted); }
.release-auth-prompt a { color: var(--accent); font-weight: 600; }
.release-auth-prompt p { margin: 0; }

/* Inline player on detail page */
.inline-player {
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.inline-player__title { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.inline-player__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inline-player__meta { flex: 1; min-width: 0; }

/* Queue added toast */
.queue-toast {
    position: fixed;
    bottom: calc(var(--player-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
}
.queue-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Preview badge in player bar ---- */
.player-preview-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 3px;
    padding: 1px 5px;
    margin-top: 2px;
    line-height: 1.4;
}

/* ---- Preview label on tracklist ---- */
.track-preview-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f59e0b;
    opacity: 0.75;
}

/* ---- Preview ended toast ---- */
.preview-ended-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a1a1a;
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 9998;
    white-space: nowrap;
}
.preview-ended-toast a {
    color: inherit;
    text-decoration: underline;
    pointer-events: all;
}
.preview-ended-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ---- Artists grid ---- */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}
.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
    text-decoration: none;
}
.artist-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.artist-card__photo {
    aspect-ratio: 1;
    background: #111;
    overflow: hidden;
}
.artist-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-faint);
}
.artist-card__body { padding: 20px; }
.artist-card__name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.artist-card__bio { color: var(--text-muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Artist detail ---- */
.artist-detail { padding: 48px 0; }
.artist-detail__inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.artist-detail__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: #111; }
.artist-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-detail__info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.artist-detail__bio { color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.artist-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--white); background: rgba(230,57,70,0.08); }
.social-link svg { flex-shrink: 0; }

/* ---- Buttons with icons ---- */
.btn-icon { display: inline-flex; align-items: center; gap: 7px; }

/* ---- About / static pages ---- */
.page-content { padding: 56px 0; max-width: 720px; margin: 0 auto; }
.page-hero { padding: 0 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 8px; }
.page-hero__sub { font-size: 1.1rem; color: var(--accent); font-weight: 600; }
.about-lead { font-size: 1.1rem; color: var(--text); line-height: 1.8; margin-bottom: 24px; font-weight: 400; }
.about-body p { color: var(--text-muted); line-height: 1.85; margin-bottom: 20px; }
.about-body h2 { font-size: 1.2rem; font-weight: 700; margin: 40px 0 14px; color: var(--white); }
.page-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 32px; }
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 16px; }
.page-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

/* ---- Contact form ---- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.honeypot { display: none !important; }
textarea { resize: vertical; min-height: 140px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: none; }
.form-msg.success { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.form-msg.error { background: rgba(230,57,70,0.1); color: var(--accent); border: 1px solid rgba(230,57,70,0.3); }

/* ---- Persistent player bar ---- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-h);
    background: #111;
    border-top: 1px solid var(--border);
    z-index: 200;
    display: none;
    align-items: center;
}
.player-bar.active { display: flex; }
.player-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.player-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 0 220px; }
.player-cover {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--bg-hover);
    flex-shrink: 0;
    overflow: hidden;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 0; }
.player-track { display: block; font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.player-track[href]:not([href="#"]):hover { text-decoration: underline; }
.player-release { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; gap: 8px; flex-shrink: 0; }
.player-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 6px;
    transition: color var(--transition);
    line-height: 1;
}
.player-btn:hover { color: var(--white); }
.player-btn--play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.player-btn--play:hover { background: var(--accent-hover); color: var(--white); }
.player-btn--close { font-size: 20px; }
.player-btn--queue {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.player-btn--queue.active { color: var(--accent); }
.queue-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.queue-count.visible { display: flex; }

/* ---- Queue panel ---- */
.player-queue {
    position: fixed;
    bottom: var(--player-h);
    left: 0;
    right: 0;
    max-height: 360px;
    background: #141414;
    border-top: 1px solid var(--border);
    z-index: 199;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.player-queue.open { transform: translateY(0); }
.player-queue__header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.player-queue__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); flex: 1; }
.player-queue__clear { background: none; border: none; color: var(--text-faint); font-size: 12px; cursor: pointer; margin-right: 12px; transition: color var(--transition); }
.player-queue__clear:hover { color: var(--accent); }
.player-queue__close { background: none; border: none; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; transition: color var(--transition); }
.player-queue__close:hover { color: var(--white); }
.player-queue__list { overflow-y: auto; flex: 1; }
.player-queue__empty { padding: 20px; font-size: 13px; color: var(--text-faint); text-align: center; }
.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}
.queue-item:last-child { border-bottom: none; }
.queue-item:hover { background: var(--bg-hover); }
.queue-item.current { background: rgba(230,57,70,0.07); }
.queue-item.current .queue-item__title { color: var(--accent); }
.queue-item__cover {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    background: var(--bg-hover);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-faint);
}
.queue-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.queue-item__meta { flex: 1; min-width: 0; }
.queue-item__title { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item__artist { font-size: 11px; color: var(--text-muted); }
.queue-item__num { font-size: 11px; color: var(--text-faint); min-width: 20px; text-align: center; flex-shrink: 0; }
.queue-item__remove { background: none; border: none; color: var(--text-faint); font-size: 16px; line-height: 1; padding: 2px 4px; cursor: pointer; flex-shrink: 0; transition: color var(--transition); }
.queue-item__remove:hover { color: var(--accent); }
.player-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.player-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.player-progress {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.player-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}
.player-volume-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.player-volume {
    width: 80px;
    accent-color: var(--accent);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ---- Page header ---- */
.page-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p { color: var(--text-muted); margin-top: 8px; font-size: 1rem; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color var(--transition), color var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state p { font-size: 1.1rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .release-detail__inner { grid-template-columns: 1fr; }
    .release-detail__cover { max-width: 320px; }
    .artist-detail__inner { grid-template-columns: 1fr; }
    .artist-detail__photo { max-width: 280px; }
}

/* Mobile auth links inside nav dropdown — hidden on desktop */
.nav-mobile-auth { display: none; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #111;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        z-index: 99;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
    }
    .site-nav a.active { border-bottom: 1px solid var(--border); border-left: 3px solid var(--accent); }
    .site-header { position: relative; }

    /* Hide desktop auth row entirely on mobile */
    .nav-auth,
    .nav-user-email { display: none !important; }

    /* Show auth links in the mobile dropdown */
    .nav-mobile-auth {
        display: contents;
    }
    .nav-mobile-auth a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    .nav-mobile-auth a:hover { color: var(--white); }

    /* Divider above auth links */
    .nav-mobile-auth::before {
        content: '';
        display: block;
        border-top: 2px solid var(--border);
        margin: 4px 0;
    }

    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }

    .player-info { flex: 0 0 auto; }
    .player-progress-wrap { display: none; }
    .player-volume-wrap { display: none; }
    .player-inner { gap: 12px; }
}

@media (max-width: 480px) {
    .releases-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .artists-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Nav auth ---- */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-auth__login {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    transition: color var(--transition);
}
.nav-auth__login:hover,
.nav-auth__login.active { color: var(--white); }
.nav-auth__signup {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 14px;
    border-radius: var(--radius);
    letter-spacing: 0.03em;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-auth__signup:hover { background: var(--accent); color: var(--white); }
.nav-auth__logout {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-auth__logout:hover { color: var(--accent); }
.nav-auth__account {
    font-size: 13px;
    color: var(--text-faint);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}
.nav-auth__account:hover { color: var(--text); }

/* ---- Auth pages ---- */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 64px 20px 80px;
}
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-alert.error   { background: rgba(230,57,70,0.1);  color: var(--accent); border: 1px solid rgba(230,57,70,0.3); }
.auth-alert.success { background: rgba(34,197,94,0.1);  color: #4ade80;       border: 1px solid rgba(34,197,94,0.3); }
.auth-alert.info    { background: rgba(59,130,246,0.1); color: #60a5fa;       border: 1px solid rgba(59,130,246,0.3); }
.auth-links {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.btn-block { width: 100%; }

/* ---- Search toggle ---- */
.search-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    flex-shrink: 0;
}
.search-toggle:hover { color: var(--white); }

/* ---- Search overlay ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.search-overlay .container { padding-top: 80px; }
.search-overlay__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
}
.search-overlay__icon { color: var(--text-faint); flex-shrink: 0; }
.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    outline: none;
    width: 100%;
    padding: 0;
}
.search-overlay__input::placeholder { color: var(--text-faint); }
.search-overlay__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    transition: color var(--transition);
}
.search-overlay__close:hover { color: var(--white); }

/* Search results */
.search-results {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
}
.search-results.has-results { display: block; }
.search-group__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 12px 18px 6px;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background var(--transition);
    border-top: 1px solid var(--border);
}
.search-result:first-child { border-top: none; }
.search-result:hover { background: var(--bg-hover); }
.search-result__thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--bg-hover);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-faint);
}
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result__title { font-size: 14px; font-weight: 600; color: var(--white); }
.search-result__sub { font-size: 12px; color: var(--text-muted); }
.search-no-results { padding: 24px 18px; color: var(--text-muted); font-size: 14px; }

/* ---- Custom genre select ---- */
.custom-select {
    position: relative;
    display: inline-block;
    min-width: 180px;
}
.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition);
    user-select: none;
    white-space: nowrap;
}
.custom-select__trigger:hover,
.custom-select.open .custom-select__trigger {
    border-color: var(--accent);
}
.custom-select__arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    display: inline-block;
}
.custom-select.open .custom-select__arrow { transform: rotate(180deg); }
.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.custom-select.open .custom-select__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.custom-select__option {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.custom-select__option:hover { background: var(--bg-hover); color: var(--white); }
.custom-select__option.selected { color: var(--accent); font-weight: 600; }

/* Loading spinner for AJAX */
.releases-loading {
    text-align: center;
    padding: 48px 0;
    color: var(--text-faint);
    font-size: 14px;
}

/* ---- Share buttons ---- */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.share-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    text-decoration: none;
}
.share-btn:hover { border-color: var(--accent); color: var(--white); background: var(--bg-hover); }
.share-btn--copied { color: #4ade80 !important; border-color: rgba(34,197,94,0.5) !important; }

/* ---- Price badge ---- */
.badge-price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ---- Basket icon in header ---- */
.basket-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    transition: color var(--transition);
    text-decoration: none;
}
.basket-toggle:hover { color: var(--white); }
.basket-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ---- Basket page ---- */
.basket-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin-top: 32px;
}
@media (max-width: 700px) {
    .basket-layout { grid-template-columns: 1fr; }
}
.basket-empty {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
}
.basket-empty p { margin-bottom: 24px; font-size: 18px; }

.basket-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.basket-item:first-child { border-top: 1px solid var(--border); }
.basket-item__cover {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-faint);
}
.basket-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.basket-item__info { flex: 1; min-width: 0; }
.basket-item__artist { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-item__title { font-size: 13px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-item__release { font-size: 11px; color: var(--text-faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-item__price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.basket-item__remove {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    transition: color var(--transition);
}
.basket-item__remove:hover { color: var(--accent); }

.basket-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.basket-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.basket-summary__note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
.btn-block { width: 100%; justify-content: center; }

/* ---- Checkout result pages ---- */
.checkout-result {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}
.checkout-result__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1;
}
.checkout-result--success .checkout-result__icon { color: #4ade80; }
.checkout-result--error   .checkout-result__icon { color: var(--accent); }
.checkout-result--cancel  .checkout-result__icon { color: var(--text-muted); }
.checkout-result h1 { font-size: 2rem; margin-bottom: 12px; }
.checkout-result p  { color: var(--text-muted); margin-bottom: 32px; }
.checkout-result__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Account page ---- */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}
@media (max-width: 720px) {
    .account-grid { grid-template-columns: 1fr; }
}
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 28px 32px;
}
.account-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 24px;
    color: var(--text);
}
.form-hint {
    font-size: 12px;
    color: var(--text-faint);
    margin: 4px 0 0;
}

/* ---- Orders page ---- */
.orders-list { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.order-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.order-card__date  { color: var(--text-muted); }
.order-card__tracks { color: var(--text-faint); }
.order-card__total { font-weight: 700; }
.order-card__items { padding: 8px 0; }

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background var(--transition);
}
.order-item:hover { background: var(--bg-hover); }
.order-item__cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}
.order-item__cover--placeholder {
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-faint);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.order-item__info { flex: 1; min-width: 0; }
.order-item__title  { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item__artist { display: block; font-size: 12px; color: var(--text-muted); }
.order-item__price  { font-size: 13px; color: var(--text-faint); white-space: nowrap; }

/* ---- Add to basket button state ---- */
.btn-add-basket:disabled,
.btn-added {
    background: #22c55e !important;
    border-color: #22c55e !important;
    cursor: default;
}

/* ---- Nav orders link ---- */
.nav-auth__orders {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
    margin-right: 4px;
}
.nav-auth__orders:hover,
.nav-auth__orders.active { color: var(--white); }

/* ---- SPA page transition ---- */
#siteMain {
    transition: opacity 0.15s ease;
}
#siteMain.spa-loading {
    opacity: 0.4;
    pointer-events: none;
}
