/* =========================================================
   Park Index — Academic R&D Reports
   A scholarly, restrained design system: ink navy, parchment,
   muted gold accents. Serif display for gravitas, Vazirmatn
   for Persian body copy.
   ========================================================= */

:root {
    /* Palette — academic / journal-press */
    --ink-900: #0f1b2d;        /* deep ink navy */
    --ink-700: #1c2c44;
    --ink-600: #2a3a55;
    --ink-500: #3e4f6b;
    --ink-400: #5b6a85;

    --parchment: #f6f2e9;      /* warm paper */
    --parchment-2: #efe8d8;
    --page-bg: #faf8f3;
    --surface: #ffffff;
    --surface-2: #fbf9f4;

    --rule: #e3dcc9;           /* warm hairline */
    --rule-strong: #cfc4a8;
    --border: #e6e2d6;

    --text: #1a2233;
    --text-soft: #3a455a;
    --muted: #6b7384;

    --accent: #1f4b7a;         /* scholarly navy */
    --accent-strong: #163a60;
    --accent-soft: #e8eef6;

    --gold: #a07c2c;           /* restrained gold */
    --gold-soft: #f3ead2;

    --danger: #8a2a2a;
    --danger-bg: #fbeeee;

    /* Type */
    --font-display: "Gentium Book Plus", "Vazirmatn", Georgia, "Times New Roman", serif;
    --font-body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

    /* Shape */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 1px rgba(15, 27, 45, 0.03);
    --shadow-md: 0 6px 18px rgba(15, 27, 45, 0.06), 0 2px 6px rgba(15, 27, 45, 0.04);
    --shadow-lg: 0 20px 50px rgba(15, 27, 45, 0.08);
}

* { box-sizing: border-box; }

@font-face {
    font-family: "Vazirmatn";
    src: url("/static/reports/fonts/Vazirmatn-Regular.ttf") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/static/reports/fonts/Vazirmatn-Medium.ttf") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/static/reports/fonts/Vazirmatn-Bold.ttf") format("woff2");
    font-weight: 700;
    font-style: normal;
}


html {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 100% -200px, rgba(31,75,122,0.05), transparent 60%),
        radial-gradient(900px 500px at -10% 120%, rgba(160,124,44,0.05), transparent 60%),
        var(--page-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: "Vazirmatn", sans-serif;


    margin: 0;
    min-height: 100vh;
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
}

a { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

/* ---------- Shell ---------- */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    width: min(1200px, 94%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--ink-900);
}


.brand__logo {
    height: 100px;
    background: #1f2937;   /* رنگ تیره */
    padding: 6px;
    border-radius: 6px;
}

.brand__mark {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-900);
    color: var(--parchment);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 8px;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 4px 12px rgba(15,27,45,0.18);
}
.brand__mark span {
    color: var(--gold);
    margin-right: 1px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ink-900);
    letter-spacing: -0.005em;
    margin: 5
}
.brand__sub {
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    padding: 5px;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.site-nav a {
    color: var(--ink-600);
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}
.site-nav__cta {
    background: var(--ink-900);
    color: var(--parchment) !important;
    margin-inline-start: 0.5rem;
}
.site-nav__cta:hover {
    background: var(--ink-700) !important;
    color: #fff !important;
}

/* ---------- Content ---------- */
.content-area {
    flex: 1;
    width: min(1200px, 94%);
    margin: 2.5rem auto;
}

.content-card {
    padding: 2.5rem clamp(1.25rem, 3vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}
.content-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--ink-900), var(--accent) 50%, var(--gold));
    opacity: 0.85;
}

/* ---------- Headings & Eyebrow ---------- */
.eyebrow {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.page-heading { margin-bottom: 2rem; }
.page-heading h1 {
    font-family: var(--font-display);
    margin: 0 0 0.6rem;
    font-size: clamp(1.7rem, 2.2vw + 1rem, 2.4rem);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1.25;
    padding: 5px;
}
.page-heading p {
    margin: 0;
    max-width: 72ch;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink-900);
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}

/* ---------- Report grid ---------- */
.report-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .report-grid { grid-template-columns: 1fr; }
}

.report-card {
    display: grid;
    /* fixed-height rows so equivalent sections align across cards:
       image · header · summary · audio · meta · actions */
    grid-template-rows: auto auto 1fr auto auto auto;
    background: var(--surface);
    border: 4px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.report-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rule-strong);
}

.report-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--parchment-2);
    border-bottom: 1px solid var(--rule);
}
.report-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.report-card:hover .report-card__image img { transform: scale(1.03); }
.report-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    background:
        repeating-linear-gradient(
            45deg,
            var(--parchment-2),
            var(--parchment-2) 10px,
            rgba(0,0,0,0.02) 10px,
            rgba(0,0,0,0.02) 20px
        );
}

.report-card__body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 2 / -1;
    gap: 1rem;
    padding: 1.5rem;
}
/* Fallback for browsers without subgrid support */
@supports not (grid-template-rows: subgrid) {
    .report-card__body {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

.report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-height: 3.4rem;
}
.report-card__header h2 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--ink-900);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-card__summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 
.report-card__audio {
    min-height: 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}
.report-card__audio-label.is-muted {
    color: var(--muted);
    font-style: italic;
    opacity: 0.75; */
/* } */

.report-meta {
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--rule);
}
.report-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.report-meta strong { color: var(--ink-600); font-weight: 600; }

.report-actions { display: flex; }
.report-actions .button { width: 100%; }

/* ---------- Price ---------- */
.price {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(160, 124, 44, 0.25);
    white-space: nowrap;
}
.price--lg {
    font-size: 1.05rem;
    padding: 0.5rem 0.95rem;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0 1.4rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--ink-900);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.005em;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.button:hover, .button:focus-visible {
    background: var(--ink-700);
    box-shadow: 0 8px 18px rgba(15,27,45,0.18);
    transform: translateY(-1px);
}
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.button--primary {
    background: var(--accent);
}
.button--primary:hover { background: var(--accent-strong); }

.button--secondary {
    background: transparent;
    color: var(--ink-900);
    border-color: var(--rule-strong);
    box-shadow: none;
}
.button--secondary:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-color: var(--accent);
}

.button--ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--rule);
    box-shadow: none;
}
.button--ghost:hover {
    background: var(--surface-2);
    color: var(--ink-900);
}

/* ---------- Auth ---------- */
.auth-layout {
    display: grid;
    place-items: center;
    padding: 1rem 0;
}
.auth-card {
    width: min(520px, 100%);
    display: grid;
    gap: 1.4rem;
    padding: 2.25rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: 0; right: 24px; left: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-card__header h1 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.7rem;
    color: var(--ink-900);
    font-weight: 700;
}
.auth-card__header p {
    margin: 0.5rem 0 0;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.auth-form { display: grid; gap: 1.1rem; }

.form-group { display: grid; gap: 0.5rem; }
label {
    font-size: 0.9rem;
    color: var(--ink-600);
    font-weight: 600;
}

input, .auth-form input, .form-group input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:hover { border-color: var(--rule-strong); }
input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 75, 122, 0.14);
}

/* ---------- Messages ---------- */
.form-messages { display: grid; gap: 0.6rem; }
.message {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--rule);
    color: var(--text);
    font-size: 0.95rem;
}
.message--error {
    border-color: #e6c4c4;
    background: var(--danger-bg);
    color: var(--danger);
}
.message--success {
    margin-bottom: 15px;
    border-color: #b9d6c1;
    background: #eef7f1;
    color: #205c3a;
}

.helper-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--rule);
}
.helper-line a { color: var(--accent); text-decoration: none; font-weight: 600; }
.helper-line a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
    padding: 1.75rem 1rem;
    background: var(--ink-900);
    color: rgba(246, 242, 233, 0.78);
    border-top: 3px solid var(--gold);
}
.site-footer__inner {
    width: min(1200px, 94%);
    margin: 0 auto;
    text-align: center;
}
.site-footer__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--parchment);
    letter-spacing: 0.02em;
}
.site-footer__meta {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(246, 242, 233, 0.6);
}

/* ---------- Empty state ---------- */
.empty-state {
    padding: 2.5rem 1.75rem;
    border: 1px dashed var(--rule-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--text-soft);
    text-align: center;
    display: grid;
    gap: 0.6rem;
    justify-items: center;
}
.empty-state h3 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--ink-900);
    font-size: 1.2rem;
}
.empty-state p { margin: 0; max-width: 60ch; }

/* ---------- Purchases table ---------- */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
}
.purchases-table {
    width: 100%;
    border-collapse: collapse;
}
.purchases-table th,
.purchases-table td {
    text-align: right;
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--rule);
}
.purchases-table tbody tr:last-child td { border-bottom: none; }
.purchases-table tbody tr:hover { background: var(--surface-2); }
.purchases-table th {
    color: var(--muted);
    font-weight: 700;
    background: var(--parchment);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rule-strong);
}
.cell-title { color: var(--ink-900); font-weight: 600; }
.tx-id {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--surface-2);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    border: 1px solid var(--rule);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: ltr;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid rgba(31,75,122,0.15);
}
.link-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: ltr;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.link-action:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- Purchase card ---------- */
.purchase-card {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.purchase-card__title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.purchase-card__title h2 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--ink-900);
    font-size: 1.45rem;
}
.purchase-meta {
    display: grid;
    gap: 0.85rem;
}
.purchase-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--rule);
    color: var(--text-soft);
    font-size: 0.95rem;
}
.purchase-meta div:last-child { border-bottom: none; padding-bottom: 0; }
.purchase-meta strong { color: var(--ink-700); font-weight: 600; }
.purchase-meta span { color: var(--ink-900); font-weight: 500; }

.purchase-card__action {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.report-summary {
    margin: 0;
    color: var(--text);
    line-height: 1.85;
    font-size: 1rem;
}

/* ---------- Report detail ---------- */
.report-detail-page {
    display: grid;
    gap: 1.75rem;
}
.report-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
}
.report-detail-header h1 {
    font-family: var(--font-display);
    margin: 0.3rem 0 0.6rem;
    font-size: clamp(1.85rem, 2vw + 1rem, 2.4rem);
    color: var(--ink-900);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.report-detail-header__meta {
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.report-detail-header__meta .dot { opacity: 0.5; }

.report-preview-image {
    margin: 0;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--parchment-2);
}
.report-preview-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.report-detail-body { display: grid; gap: 0.85rem; }
.report-detail-summary {
    font-size: 1.02rem;
    line-height: 1.95;
    color: var(--text);
    margin: 0;
    text-align: justify;
}

.report-actions--detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.report-actions__note {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- Audio ---------- */
.audio-player-section,
.report-card__audio {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.15rem;
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.audio-player-section h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1rem;
    color: var(--ink-900);
}
.report-card__audio-label {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
audio {
    width: 100%;
    height: 2.5rem;
}
audio.mini-player { height: 2.25rem; }
audio:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .site-header__inner {
        /* display: flex;
        align-items: center;
        justify-content: space-between; */
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 0;
    }
    .site-nav { width: 100%; justify-content: flex-start; }
    .brand__sub { display: none; }
    .content-card { padding: 1.5rem 1.1rem; }
    .report-grid { grid-template-columns: 1fr; }
    .report-detail-header { flex-direction: column; align-items: flex-start; }
    .purchase-card__title { flex-direction: column; align-items: flex-start; }
}

/* ---------- Image Modal (kept compatible with existing JS) ---------- */
.img-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
.img-modal.open { display: flex; }
.img-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 27, 45, 0.78); backdrop-filter: blur(4px); }
.img-modal__content { position: relative; max-width: 95vw; max-height: 95vh; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.img-modal__img { max-width: 100%; max-height: 80vh; transition: transform 0.08s linear; cursor: grab; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.img-modal__hint { margin-top: 0.6rem; font-size: 0.85rem; color: var(--parchment); }
.img-modal__close { position: absolute; top: -14px; left: -14px; background: var(--parchment); color: var(--ink-900); border-radius: 999px; width: 36px; height: 36px; border: none; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-md); }

/* ---------- Audio Controls (kept compatible) ---------- */
.audio-controls-wrapper { margin-top: 0.6rem; display: flex; justify-content: flex-start; }
.audio-controls { 
    gap: 0.5rem;
    align-items: center; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; }
.control-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-700);
    transition: background 0.15s ease, border-color 0.15s ease;
    min-width: 6rem;
    padding: 0.55rem 1rem;
    text-align: center;
    flex-shrink: 0;
}
.control-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.control-rate { padding: 0.4rem 0.55rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 0.88rem; }
.audio-player audio.is-playing { box-shadow: 0 6px 18px rgba(31, 75, 122, 0.1); }
