/* ==========================================================
   BRaPCHECK – Public Stylesheet
   Dark / industrial motorcycle theme
   ========================================================== */

:root {
    --brc-bg:        #111315;
    --brc-surface:   #1c1f22;
    --brc-surface2:  #252a2f;
    --brc-border:    #2e3338;
    --brc-accent:    #ffffff;   /* White */
    --brc-accent-h:  #e0e0e0;
    --brc-text:      #e8eaed;
    --brc-text-muted:#9aa0a6;
    --brc-legal:     #34a853;
    --brc-illegal:   #ea4335;
    --brc-unknown:   #9aa0a6;
    --brc-radius:    0px;
    --brc-shadow:    0 2px 12px rgba(0,0,0,.45);
    --brc-font:      'Segoe UI', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
.brc-main { background: var(--brc-bg); color: var(--brc-text); font-family: var(--brc-font); min-height: 60vh; }
.brc-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Breadcrumbs ────────────────────────────────────────── */
.brc-breadcrumbs { font-size: .85rem; color: var(--brc-text-muted); margin-bottom: 1.5rem; }
.brc-breadcrumbs a { color: var(--brc-accent); text-decoration: none; }
.brc-breadcrumbs a:hover { text-decoration: underline; }
.brc-sep { margin: 0 .35rem; }

/* ── Page header ────────────────────────────────────────── */
.brc-page-title { font-size: 2rem; font-weight: 700; margin: 0 0 .5rem; color: #fff; }
.brc-page-subtitle { color: var(--brc-text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.brc-section-title { font-size: 1.4rem; margin: 2rem 0 1rem; border-left: 3px solid var(--brc-accent); padding-left: .75rem; }

/* ── Hero widgets (dropdown + search) ──────────────────── */
.brc-hero-widget {
    display: block !important;
    max-width: 540px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
    background: #1c1f22 !important;
    border: 1px solid #2e3338 !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem !important;
}
.brc-widget-label {
    display: block !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    color: #9aa0a6 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    margin-bottom: .6rem !important;
}
.brc-widget-row {
    display: flex !important;
    gap: .6rem !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Brand dropdown */
.brc-brand-select {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: .65rem 2.5rem .65rem 1rem !important;
    background-color: #252a2f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0a6' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    color: #e8eaed !important;
    border: 1px solid #2e3338 !important;
    border-radius: 0 !important;
    font-size: .95rem !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
}
.brc-brand-select:focus { outline: 2px solid #fff !important; outline-offset: -1px !important; }
.brc-brand-select option { background: #252a2f !important; color: #e8eaed !important; }
#brc-brand-go:disabled { opacity: .35 !important; cursor: not-allowed !important; }

/* Search input */
.brc-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: .65rem 1rem !important;
    background-color: #252a2f !important;
    color: #e8eaed !important;
    border: 1px solid #2e3338 !important;
    border-radius: 0 !important;
    font-size: .95rem !important;
    box-sizing: border-box !important;
}
.brc-search-input:focus { outline: 2px solid #fff !important; outline-offset: -1px !important; }
.brc-search-input::placeholder { color: #9aa0a6 !important; }

/* Shared button in widgets */
.brc-hero-widget .brc-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: .65rem 1.25rem !important;
    font-size: .9rem !important;
}

@media (max-width: 500px) {
    .brc-hero-widget { padding: 1rem !important; }
    .brc-widget-row { flex-direction: column !important; align-items: stretch !important; }
    .brc-hero-widget .brc-btn { text-align: center !important; }
}

.brc-search-results { position: relative; z-index: 10; }
.brc-search-result-item {
    display: flex; align-items: center; gap: .75rem;
    background: var(--brc-surface2); border: 1px solid var(--brc-border);
    padding: .6rem 1rem; border-radius: var(--brc-radius); margin-top: .4rem;
    text-decoration: none; color: var(--brc-text); transition: border-color .2s;
}
.brc-search-result-item:hover { border-color: var(--brc-accent); }
.brc-search-result-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 0; }
.brc-search-result-type { font-size: .75rem; color: var(--brc-text-muted); background: var(--brc-border); padding: 2px 6px; border-radius: 0; }

/* ── Alpha navigation ───────────────────────────────────── */
.brc-alpha-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.brc-alpha-nav a {
    display: inline-block; width: 2rem; height: 2rem; line-height: 2rem;
    text-align: center; background: var(--brc-surface2); border: 1px solid var(--brc-border);
    border-radius: 0; color: var(--brc-text); text-decoration: none; font-weight: 600;
    transition: background .2s, color .2s;
}
.brc-alpha-nav a:hover { background: var(--brc-accent); color: #000; border-color: var(--brc-accent); }

.brc-letter-section { margin-bottom: 2.5rem; }
.brc-letter-heading { font-size: 1.6rem; font-weight: 800; color: var(--brc-accent); margin: 0 0 1rem; }

/* ── Brand grid ─────────────────────────────────────────── */
.brc-brand-grid, .brc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.brc-brand-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--brc-surface); border: 1px solid var(--brc-border);
    border-radius: var(--brc-radius); padding: 1.25rem 1rem; text-decoration: none;
    color: var(--brc-text); transition: border-color .2s, transform .15s;
}
.brc-brand-card:hover { border-color: var(--brc-accent); transform: translateY(-2px); }
.brc-brand-logo { width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.brc-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brc-brand-logo-placeholder {
    background: var(--brc-surface2); border-radius: 0;
    font-size: 1.4rem; font-weight: 700; color: var(--brc-accent);
}
.brc-brand-name { font-weight: 700; font-size: 1rem; }
.brc-brand-meta { font-size: .8rem; color: var(--brc-text-muted); margin-top: .25rem; }

/* ── Model grid ─────────────────────────────────────────── */
.brc-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.brc-model-card {
    display: flex; flex-direction: column; background: var(--brc-surface);
    border: 1px solid var(--brc-border); border-radius: var(--brc-radius);
    text-decoration: none; color: var(--brc-text); overflow: hidden;
    transition: border-color .2s, transform .15s;
}
.brc-model-card:hover { border-color: var(--brc-accent); transform: translateY(-2px); }
.brc-model-image img { width: 100%; height: 150px; object-fit: cover; }
.brc-model-info { padding: .85rem 1rem; }
.brc-model-info h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; }
.brc-years, .brc-exhaust-count { font-size: .8rem; color: var(--brc-text-muted); display: block; }

/* ── Exhaust list ───────────────────────────────────────── */
.brc-filter-bar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.brc-filter-bar label { font-size: .9rem; color: var(--brc-text-muted); }
.brc-filter-bar select {
    background: var(--brc-surface2); color: var(--brc-text); border: 1px solid var(--brc-border);
    border-radius: 0; padding: .4rem .7rem; font-size: .9rem; cursor: pointer;
}
.brc-result-count { color: var(--brc-text-muted); font-size: .9rem; margin-bottom: 1rem; }

.brc-exhaust-list { display: flex; flex-direction: column; gap: 1rem; }
.brc-exhaust-card {
    display: grid; grid-template-columns: 120px 1fr auto;
    background: var(--brc-surface); border: 1px solid var(--brc-border);
    border-radius: var(--brc-radius); overflow: hidden; gap: 0;
    transition: border-color .2s;
}
.brc-exhaust-card:hover { border-color: var(--brc-accent); }
.brc-exhaust-card.brc-legal-legal     { border-left: 3px solid var(--brc-legal); }
.brc-exhaust-card.brc-legal-illegal   { border-left: 3px solid var(--brc-illegal); }

/* Karte ohne Bild: Body beginnt direkt in Spalte 1 */
.brc-exhaust-card:not(:has(.brc-exhaust-thumb)) { grid-template-columns: 1fr auto; }

.brc-exhaust-thumb img { width: 120px; height: 100%; object-fit: cover; display: block; }
.brc-exhaust-body { padding: .85rem 1.5rem; }
.brc-exhaust-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.brc-exhaust-header h3 { margin: 0; font-size: 1.05rem; text-transform: none !important; }
.brc-exhaust-header h3 a { color: var(--brc-text); text-decoration: none; text-transform: none !important; }
.brc-exhaust-header h3 a:hover { color: var(--brc-accent); }
.brc-exhaust-meta { font-size: .82rem; color: var(--brc-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: .4rem; }
.brc-exhaust-meta span { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .6rem; border-right: 1px solid var(--brc-border); line-height: 1; }
.brc-exhaust-meta span:first-child { padding-left: 0; }
.brc-exhaust-meta span:last-child { border-right: none; }
.brc-meta-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: .75; }
.brc-exhaust-rating { font-size: .9rem; }
.brc-exhaust-actions { padding: .85rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; justify-content: center; }

/* ── Badges ─────────────────────────────────────────────── */
.brc-badge { display: inline-block; padding: .2rem .55rem; border-radius: 0; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.brc-badge-legal       { background: rgba(52,168,83,.2); color: var(--brc-legal); border: 1px solid var(--brc-legal); }
.brc-badge-illegal     { background: rgba(234,67,53,.2); color: var(--brc-illegal); border: 1px solid var(--brc-illegal); }
.brc-badge-unknown     { background: rgba(154,160,166,.15); color: var(--brc-unknown); border: 1px solid var(--brc-unknown); }
.brc-badge-mfr         { background: var(--brc-surface2); color: var(--brc-text-muted); border: 1px solid var(--brc-border); }

/* ── Stars ──────────────────────────────────────────────── */
.brc-stars { font-size: 1.1rem; }
.brc-star-full  { color: #ffd700; }
.brc-star-half  { color: #ffd700; opacity: .6; }
.brc-star-empty { color: var(--brc-border); }
.brc-rating-text { font-size: .85rem; color: var(--brc-text-muted); vertical-align: middle; }

/* ── Interactive rating widget ──────────────────────────── */
.brc-rating-widget { background: var(--brc-surface); border: 1px solid var(--brc-border); border-radius: var(--brc-radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.brc-rating-summary { margin-bottom: 1rem; font-size: 1.1rem; }
.brc-rate-label { margin: 0 0 .5rem; font-size: .9rem; color: var(--brc-text-muted); }

.brc-interactive-stars { display: flex; flex-direction: row-reverse; gap: .2rem; margin-bottom: .75rem; }
.brc-star-input { display: none; }
.brc-interactive-stars label {
    font-size: 2rem; cursor: pointer; color: var(--brc-border);
    transition: color .1s; user-select: none;
}
.brc-interactive-stars label:hover,
.brc-interactive-stars label:hover ~ label,
.brc-star-input:checked ~ label { color: #ffd700; }

.brc-submit-rating { margin-top: .25rem; }
.brc-rating-message { font-size: .9rem; margin-top: .5rem; min-height: 1.2rem; }
.brc-your-rating { color: #ffd700; font-weight: 600; }

/* ── Exhaust detail ─────────────────────────────────────── */
.brc-exhaust-detail-header { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; margin-bottom: 2rem; }
.brc-exhaust-detail-header--no-image { grid-template-columns: 1fr; }
.brc-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }

.brc-specs-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.brc-specs-table th, .brc-specs-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--brc-border); }
.brc-specs-table th { color: var(--brc-text-muted); width: 40%; text-align: left; font-weight: 500; }
.brc-specs-table td a { color: var(--brc-accent); text-decoration: none; }

/* ── Shop compare / Preisvergleich ─────────────────────── */
.brc-shop-compare { margin-top: 1.25rem; }
.brc-shop-compare--multi { background: var(--brc-surface); border: 1px solid var(--brc-border); padding: 1rem; }
.brc-shop-compare-title {
    display: flex; align-items: center; gap: .4rem;
    font-size: .85rem; font-weight: 700; color: var(--brc-text);
    margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .03em;
}
.brc-shop-compare-title svg { opacity: .6; }
.brc-shop-links { display: flex; flex-direction: column; gap: .5rem; }
.brc-shop-link-btn {
    display: flex; align-items: center; gap: .75rem;
    background: var(--brc-surface2); border: 1px solid var(--brc-border);
    padding: .7rem 1rem; text-decoration: none; color: var(--brc-text);
    transition: border-color .2s, background .2s; font-size: .9rem;
}
.brc-shop-link-btn:hover { border-color: var(--shop-color, var(--brc-accent)); background: rgba(255,255,255,.03); }
.brc-shop-link-name {
    font-weight: 700; color: var(--shop-color, var(--brc-accent));
    min-width: 100px;
}
.brc-shop-link-price { flex: 1; text-align: right; font-weight: 600; color: #fff; }
.brc-shop-link-arrow { opacity: .4; flex-shrink: 0; }
.brc-shop-link-btn:hover .brc-shop-link-arrow { opacity: 1; }
.brc-affiliate-notice { font-size: .78rem; color: var(--brc-text-muted); margin-top: .5rem; font-style: italic; line-height: 1.4; }
.brc-affiliate-bar { font-size: .78rem; color: var(--brc-text-muted); margin-bottom: 1rem; font-style: italic; }

@media (max-width: 600px) {
    .brc-shop-link-name { min-width: 80px; font-size: .85rem; }
    .brc-shop-link-price { font-size: .85rem; }
}

/* ── Buttons ────────────────────────────────────────────── */
.brc-btn { display: inline-block; padding: .55rem 1.1rem; border-radius: 0; text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: background .15s, color .15s; }
.brc-btn-primary { background: var(--brc-accent); color: #000; }
.brc-btn-primary:hover { background: var(--brc-accent-h); }
.brc-btn-secondary { background: var(--brc-surface2); color: var(--brc-text); border: 1px solid var(--brc-border); }
.brc-btn-secondary:hover { border-color: var(--brc-accent); color: var(--brc-accent); }
.brc-btn-large { padding: .75rem 1.75rem; font-size: 1.05rem; }

/* ── Section headings ───────────────────────────────────── */
.brc-exhaust-description, .brc-rating-section, .brc-comments-section, .brc-related-exhausts {
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--brc-border);
}
.brc-exhaust-description h2,
.brc-rating-section h2,
.brc-comments-section h2,
.brc-related-exhausts h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* ── Related grid ───────────────────────────────────────── */
.brc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.brc-related-card {
    display: flex; flex-direction: column; background: var(--brc-surface);
    border: 1px solid var(--brc-border); border-radius: var(--brc-radius);
    text-decoration: none; color: var(--brc-text); overflow: hidden; transition: border-color .2s;
}
.brc-related-card:hover { border-color: var(--brc-accent); }
.brc-related-card img { width: 100%; height: 120px; object-fit: cover; }
.brc-related-info { padding: .75rem; font-size: .85rem; display: flex; flex-direction: column; gap: .3rem; }

/* ── Comments ───────────────────────────────────────────── */
.brc-comments-title { font-size: 1.1rem; margin-bottom: 1rem; }
.brc-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.brc-comment { background: var(--brc-surface); border: 1px solid var(--brc-border); border-radius: var(--brc-radius); padding: 1rem; display: flex; gap: .75rem; }
.brc-comment-avatar img { border-radius: 0; }
.brc-comment-body { flex: 1; }
.brc-comment-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; font-size: .85rem; }
.brc-comment-author { color: var(--brc-text); }
.brc-comment-date { color: var(--brc-text-muted); }
.brc-comment-pending { color: var(--brc-cond); font-size: .85rem; }
.brc-comment-text p { margin: 0; }

.brc-comment-form-wrap { margin-top: 1.5rem; }
.brc-comment-form-wrap h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.brc-comment-note { color: var(--brc-text-muted); font-size: .85rem; margin-bottom: 1rem; }
.brc-comment-field { margin-bottom: .85rem; }
.brc-comment-field label { display: block; margin-bottom: .3rem; font-size: .9rem; }
.brc-comment-field input,
.brc-comment-field textarea {
    width: 100%; box-sizing: border-box; padding: .55rem .75rem;
    background: var(--brc-surface2); border: 1px solid var(--brc-border);
    border-radius: 0; color: var(--brc-text); font-size: .95rem;
}
.brc-comment-field input:focus,
.brc-comment-field textarea:focus { outline: 2px solid var(--brc-accent); }
.brc-hp-field { display: none !important; }
.brc-no-comments { color: var(--brc-text-muted); }
.brc-comments-closed { color: var(--brc-text-muted); font-style: italic; }

/* ── Ad slots ───────────────────────────────────────────── */
.brc-ad-slot {
    width: 100%; margin: 1.25rem 0; text-align: center;
    min-height: 50px; overflow: hidden;
}
.brc-ad-slot:empty { display: none; }

/* ── Override theme comment form – dunkles Theme ────────── */
.brc-main .comment-respond,
.brc-main .comments-area,
.brc-main #respond,
.brc-main #comments {
    background: var(--brc-surface) !important;
    color: var(--brc-text) !important;
}
.brc-main .comment-respond label,
.brc-main .comment-respond .logged-in-as,
.brc-main .comment-respond .logged-in-as a,
.brc-main .comment-respond .comment-notes,
.brc-main .comment-respond .required-field-message,
.brc-main #respond label,
.brc-main #respond .logged-in-as,
.brc-main #respond .logged-in-as a,
.brc-main #respond .comment-notes,
.brc-main #respond p,
.brc-main .comments-area p,
.brc-main .comments-area label {
    color: var(--brc-text) !important;
}
.brc-main .comment-respond a,
.brc-main #respond a {
    color: var(--brc-accent) !important;
}
.brc-main .comment-respond textarea,
.brc-main .comment-respond input[type="text"],
.brc-main .comment-respond input[type="email"],
.brc-main .comment-respond input[type="url"],
.brc-main #respond textarea,
.brc-main #respond input[type="text"],
.brc-main #respond input[type="email"],
.brc-main #respond input[type="url"] {
    background: var(--brc-surface2) !important;
    color: var(--brc-text) !important;
    border: 1px solid var(--brc-border) !important;
}

/* ── Ad-Platzhalter (nur für eingeloggte Admins sichtbar) ── */
.brc-ad-placeholder {
    width: 100%; margin: 1.25rem 0; padding: 1rem;
    border: 2px dashed #fbbc04; border-radius: var(--brc-radius);
    text-align: center; color: #fbbc04; font-size: .85rem;
    background: rgba(251,188,4,.06);
    box-sizing: border-box;
}

/* (removed – dropdown now uses dark-theme colors natively) */

/* ── Empty / error states ───────────────────────────────── */
.brc-empty { color: var(--brc-text-muted); padding: 2rem; text-align: center; background: var(--brc-surface); border-radius: var(--brc-radius); }

/* ── Category navigation pills ─────────────────────────────── */
.brc-category-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.brc-category-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem; background: var(--brc-surface2);
    border: 1px solid var(--brc-border); border-radius: 0;
    color: var(--brc-text); text-decoration: none; font-size: .85rem;
    font-weight: 500; transition: border-color .2s, background .2s;
}
.brc-category-pill:hover { border-color: var(--brc-accent); background: var(--brc-surface); }
.brc-pill-count { background: var(--brc-border); padding: .1rem .45rem; border-radius: 0; font-size: .75rem; }

/* ── Category sections ─────────────────────────────────────── */
.brc-category-section { margin-bottom: 2rem; }
.brc-category-heading {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.25rem; font-weight: 700; color: #fff;
    padding: .75rem 1rem; background: var(--brc-surface);
    border: 1px solid var(--brc-border); border-radius: var(--brc-radius);
    cursor: pointer; user-select: none; transition: background .2s;
}
.brc-category-heading:hover { background: var(--brc-surface2); }
.brc-category-arrow { font-size: .8rem; transition: transform .2s; }
.brc-category-heading.collapsed .brc-category-arrow { transform: rotate(-90deg); }
.brc-category-count { font-size: .85rem; color: var(--brc-text-muted); font-weight: 400; }
.brc-category-content { padding-top: 1rem; }
.brc-category-heading.collapsed + .brc-category-content { display: none; }

/* ── Model suggestion per category ─────────────────────── */
.brc-model-suggest-wrap {
    margin-top: 1rem; padding: .75rem 1rem;
    background: var(--brc-surface); border: 1px dashed var(--brc-border);
    border-radius: var(--brc-radius);
}
.brc-suggest-intro { color: var(--brc-text-muted); font-size: .85rem; margin: 0 0 .5rem; }
.brc-suggest-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.brc-suggest-row input {
    flex: 1; min-width: 150px; padding: .45rem .7rem;
    background: var(--brc-surface2); border: 1px solid var(--brc-border);
    border-radius: 0; color: var(--brc-text); font-size: .9rem;
}
.brc-suggest-row input:focus { outline: 2px solid var(--brc-accent); }
.brc-model-suggest-message { font-size: .85rem; margin-top: .35rem; min-height: 1rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .brc-exhaust-detail-header { grid-template-columns: 1fr; }
    /* Specificity fix: override :not(:has()) selector on mobile */
    .brc-exhaust-card,
    .brc-exhaust-card:not(:has(.brc-exhaust-thumb)) { grid-template-columns: 1fr; }
    .brc-exhaust-thumb img { width: 100%; height: 180px; }
    .brc-exhaust-actions { flex-direction: row; justify-content: flex-start; padding: 0 .85rem .85rem; gap: .5rem; }
}
@media (max-width: 600px) {
    .brc-brand-grid, .brc-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .brc-model-grid { grid-template-columns: 1fr 1fr; }
    .brc-page-title { font-size: 1.5rem; }

    /* Filter bar: label+select pairs stay together in a 2-col grid */
    .brc-filter-bar {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: .4rem .6rem;
        align-items: center;
    }
    .brc-filter-bar label { white-space: nowrap; }
    .brc-filter-bar select { width: 100%; }

    /* Card body padding tighter on small screens */
    .brc-exhaust-body { padding: .75rem 1rem; }
    .brc-exhaust-actions { padding: 0 1rem .75rem; }

    /* Prevent theme from uppercasing card titles */
    .brc-exhaust-header h3,
    .brc-exhaust-header h3 a { text-transform: none !important; }

    /* Star rating: don't break mid-word */
    .brc-rating-text { white-space: nowrap; }
    .brc-exhaust-rating { font-size: .82rem; }
}

/* ── Sound embed ───────────────────────────────────────── */
.brc-sound-section { margin: 2rem 0; }
.brc-sound-section h2 { margin-bottom: 1rem; }
.brc-yt-embed { position: relative; width: 100%; max-width: 640px; padding-bottom: 56.25%; height: 0; overflow: hidden; background: var(--brc-surface2); }
.brc-yt-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── Sound suggest link (card list) ────────────────────── */
.brc-sound-suggest-link {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .8rem; color: var(--brc-text-muted); text-decoration: none;
    transition: color .2s;
}
.brc-sound-suggest-link:hover { color: var(--brc-accent); }
.brc-sound-suggest-link .brc-meta-icon { width: 14px; height: 14px; }

/* ── Sound empty state ────────────────────────────────── */
.brc-sound-empty {
    display: flex; align-items: center; gap: .75rem;
    padding: 1.5rem; background: var(--brc-surface2); border: 1px dashed var(--brc-border);
    color: var(--brc-text-muted); font-size: .9rem; margin-bottom: .75rem;
}

/* ── Sound suggest toggle + drawer (detail page) ──────── */
.brc-sound-suggest-toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    background: none; border: 1px solid var(--brc-border); color: var(--brc-text-muted);
    padding: .45rem .85rem; font-size: .82rem; cursor: pointer; margin-top: .75rem;
    transition: border-color .2s, color .2s;
}
.brc-sound-suggest-toggle:hover { border-color: var(--brc-accent); color: var(--brc-text); }
.brc-sound-suggest-toggle.open .brc-toggle-arrow { transform: rotate(180deg); }
.brc-toggle-arrow { font-size: .65rem; transition: transform .2s; }

.brc-sound-suggest-drawer {
    margin-top: .75rem; padding: 1rem; background: var(--brc-surface);
    border: 1px solid var(--brc-border);
}
.brc-sound-suggest-hint { font-size: .85rem; color: var(--brc-text-muted); margin: 0 0 .75rem; line-height: 1.4; }
.brc-sound-suggest-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.brc-sound-input {
    flex: 1; min-width: 200px; padding: .5rem .75rem;
    background: var(--brc-surface2); color: var(--brc-text); border: 1px solid var(--brc-border);
    font-size: .9rem; border-radius: 0;
}
.brc-sound-input:focus { outline: 2px solid var(--brc-accent); outline-offset: -1px; }
.brc-sound-input-name { flex: 0 1 160px; min-width: 120px; }
.brc-sound-suggest-row .brc-btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 600px) {
    .brc-sound-suggest-row { flex-direction: column; }
    .brc-sound-input, .brc-sound-input-name { min-width: 100%; flex: 1 1 100%; }
    .brc-sound-suggest-row .brc-btn { width: 100%; text-align: center; }
}

/* ── Compare ───────────────────────────────────────────── */
.brc-compare-toggle { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--brc-text-muted); cursor: pointer; white-space: nowrap; }
.brc-compare-toggle input { accent-color: var(--brc-accent); }
.brc-compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--brc-surface); border-top: 2px solid var(--brc-accent); padding: .75rem 1.5rem; z-index: 9999; }
.brc-compare-grid { display: grid; gap: 1px; background: var(--brc-border); }
.brc-compare-cell { background: var(--brc-surface); padding: .75rem 1rem; font-size: .9rem; }
.brc-compare-header { font-weight: 700; background: var(--brc-surface2); }
.brc-compare-header a { color: var(--brc-accent); text-decoration: none; }
.brc-compare-label { display: none; font-size: .75rem; color: var(--brc-text-muted); margin-bottom: .25rem; }
@media (max-width: 600px) {
    .brc-compare-grid { grid-template-columns: 1fr !important; }
    .brc-compare-label { display: block; }
}
