/* ============================================================
   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 img {
    height: 40px;
    width: auto;
}
.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: 10px; }
.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); }
.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; }

/* 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; }

/* ---- 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: 12px; flex-wrap: wrap; }
.social-link {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    transition: border-color var(--transition), color var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---- About / static pages ---- */
.page-content { padding: 56px 0; max-width: 720px; margin: 0 auto; }
.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; }
.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 { margin-left: auto; font-size: 20px; }
.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; }
}

@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;
    }
    .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; }

    .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; }
}
