/* เรือนเสียงทอง — look carried over from the original senior-novel mockup:
   cream paper, dark wood brown, gold; big type and big buttons for elderly listeners. */
:root {
    --bg-main: #fcf8f2;
    --bg-card: #ffffff;
    --primary-dark: #3a2510;
    --primary-gold: #b8860b;
    --gold-bright: #f7d070;
    --gold-light: #fef9e7;
    --accent-red: #c0392b;
    --accent-green: #1e8449;
    --line-green: #06c755;
    --text-dark: #1a1005;
    --text-muted: #5a4a3a;
    --border-color: #e0d0b8;
    --font-scale: 1.125rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: var(--font-scale);
    overflow-x: hidden;
}

button, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid var(--primary-gold); outline-offset: 2px; }
a { color: inherit; }

/* ---------------------------------------------------------------- top bar */
.senior-topbar {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 4px solid var(--primary-gold);
}
.senior-topbar-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--gold-bright);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.font-resizer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85em;
}
.font-btn {
    background: #fff;
    color: var(--primary-dark);
    border: none;
    padding: 4px 11px;
    border-radius: 6px;
    font-weight: 700;
    min-height: 36px;
}
.font-btn.active { background: var(--gold-bright); }

.btn-line {
    background: var(--line-green);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}
.btn-account {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid var(--gold-bright);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}
.btn-account img { width: 28px; height: 28px; border-radius: 50%; }

.container { max-width: 1150px; margin: 0 auto; padding: 1.5rem 1rem 6rem; }

/* ---------------------------------------------------------------- header */
header.brand {
    text-align: center;
    margin-bottom: 1.6rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 3px solid var(--border-color);
}
.brand-name { font-size: 2.2em; font-weight: 800; color: var(--primary-dark); }
.brand-slogan { font-size: 1.05em; color: var(--primary-gold); font-weight: 600; }

/* ---------------------------------------------------------------- player */
.radio-player-card {
    background: linear-gradient(145deg, #3a2510 0%, #221406 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.6rem 1.4rem;
    margin-bottom: 2.2rem;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 12px 35px rgba(58, 37, 16, 0.35);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.6rem;
    align-items: center;
}
.radio-player-card[hidden] { display: none; }   /* shown once the first episode is chosen */
.player-poster-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    max-width: 200px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    background: #221406;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    width: 100%;
}
.player-poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-info-wrap { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.player-header { color: var(--gold-bright); font-size: 1.1em; font-weight: 700; }
.now-playing-title { font-size: 1.6em; font-weight: 800; line-height: 1.35; }
.now-playing-subtitle { font-size: 1.1em; color: #e0d0b8; }

.giant-play-btn {
    background: linear-gradient(135deg, #f7d070 0%, #b8860b 100%);
    color: #1a1005;
    font-size: 1.5em;
    font-weight: 800;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(247, 208, 112, 0.35);
    width: 100%;
    max-width: 420px;
    min-height: 64px;
}
.giant-play-btn:disabled { opacity: 0.55; cursor: default; }

.seek-row { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.seek-row input[type=range] { flex: 1; accent-color: var(--gold-bright); height: 32px; min-width: 0; }

.player-controls-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 16px;
}
.skip-btn {
    background: #fff;
    color: var(--primary-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    font-weight: 800;
    min-height: 48px;
}
.control-select {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 12px;
    border: 2px solid var(--primary-gold);
    min-height: 48px;
}

/* ---------------------------------------------------------------- catalog */
.section-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.3rem;
}
.section-title { font-size: 1.5em; font-weight: 800; color: var(--primary-dark); }
.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--primary-dark);
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92em;
    min-height: 44px;
}
.tab-btn.active { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }

.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
    margin-bottom: 3rem;
}
.novel-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 22px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}
.novel-card:hover { border-color: var(--primary-gold); }
.novel-card-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--border-color);
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
    background: var(--gold-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-gold);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82em;
    font-weight: 700;
}
.status-badge { padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.82em; font-weight: 800; color: #fff; }
.status-badge.airing { background: var(--accent-red); }
.status-badge.completed { background: var(--accent-green); }
.status-badge.coming_soon { background: #a04000; }
.novel-card h3 { font-size: 1.3em; font-weight: 800; color: var(--primary-dark); line-height: 1.35; }
.novel-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88em;
    color: var(--text-muted);
    background: #fdfaf5;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #f0e6d8;
}
.novel-desc { font-size: 0.95em; color: #4a3a2a; }
.btn-dark {
    background: var(--primary-dark);
    color: #fff;
    font-size: 1.05em;
    font-weight: 800;
    border: 2px solid var(--primary-gold);
    padding: 0.75rem 1.3rem;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.empty { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--text-muted); font-weight: 700; }

/* ---------------------------------------------------------------- novel page */
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 700; color: var(--primary-dark); min-height: 44px; }
.novel-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.6rem;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 22px;
    padding: 1.4rem;
    margin-bottom: 1.6rem;
}
.novel-hero h1 { font-size: 1.8em; line-height: 1.3; color: var(--primary-dark); }
.novel-hero .hook { font-size: 1.1em; color: var(--primary-gold); font-weight: 700; }
.novel-hero .synopsis { white-space: pre-line; }
.price-note {
    background: var(--gold-light);
    border: 2px dashed var(--primary-gold);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.episode-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.episode-row {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
    align-items: center;
}
.episode-row.playing { border-color: var(--primary-gold); background: var(--gold-light); }
.ep-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 1.4em;
    display: flex; align-items: center; justify-content: center;
}
.ep-title { font-weight: 800; font-size: 1.1em; color: var(--primary-dark); }
.ep-teaser { font-size: 0.92em; color: var(--text-muted); }
.ep-btn {
    border-radius: 999px;
    border: none;
    padding: 0.7rem 1.2rem;
    font-weight: 800;
    min-height: 52px;
    min-width: 120px;
    white-space: nowrap;
}
.ep-btn.play { background: linear-gradient(135deg, #f7d070 0%, #b8860b 100%); color: #1a1005; }
.ep-btn.locked { background: #fff; color: var(--accent-red); border: 3px solid var(--accent-red); }
.ep-btn.soon { background: #eee; color: #666; cursor: default; }
.access-tag { font-size: 0.8em; font-weight: 700; color: var(--accent-green); }

/* ---------------------------------------------------------------- account */
.card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 1.4rem;
    margin-bottom: 1.4rem;
}
.card h2 { font-size: 1.3em; color: var(--primary-dark); margin-bottom: 0.6rem; }
.card ul { padding-left: 1.4rem; }
.pass-active { color: var(--accent-green); font-weight: 800; }
.btn-plain {
    background: #fff;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    min-height: 48px;
}

/* ---------------------------------------------------------------- modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.8rem;
    border: 4px solid var(--primary-gold);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.modal-card h3 { font-size: 1.4em; color: var(--primary-dark); }
.offer {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.offer strong { font-size: 1.15em; color: var(--accent-red); white-space: nowrap; }
.notice { background: #fff8eb; border: 2px dashed var(--primary-gold); border-radius: 14px; padding: 0.8rem; }

/* ---------------------------------------------------------------- payment */
.offer-btn {
    width: 100%;
    background: #fff;
    min-height: 72px;
    color: var(--text-dark);
    font-weight: 700;
}
.offer-btn:hover { border-color: var(--primary-gold); background: var(--gold-light); }
.busy { font-size: 1.15em; font-weight: 700; padding: 2rem 0; }
.pay-item { font-weight: 800; color: var(--primary-dark); font-size: 1.1em; }
.pay-step {
    background: var(--primary-dark);
    color: var(--gold-bright);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    font-weight: 800;
}
.qr-img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    image-rendering: pixelated;
}
.pay-amount { font-size: 2em; font-weight: 800; color: var(--accent-red); line-height: 1.2; }
.pay-hint { font-size: 0.9em; color: var(--text-muted); }
.pay-ref { font-size: 0.85em; color: var(--text-muted); letter-spacing: 0.04em; }
.btn-gold, .btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.1em;
    text-decoration: none;
    cursor: pointer;
}
.btn-gold { background: linear-gradient(135deg, #f7d070 0%, #b8860b 100%); color: #1a1005; border: none; }
.btn-upload { background: var(--accent-green); color: #fff; }
.btn-upload:focus-within { outline: 4px solid var(--primary-gold); outline-offset: 2px; }
.btn-text {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    min-height: 44px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.result { border-radius: 16px; padding: 1.2rem; font-size: 1.25em; font-weight: 800; }
.result span { font-size: 0.8em; font-weight: 600; }
.result.ok { background: #e8f6ee; color: var(--accent-green); border: 3px solid var(--accent-green); }
.result.wait { background: #fff8eb; color: var(--primary-dark); border: 3px dashed var(--primary-gold); }
.order-list { list-style: none; padding-left: 0 !important; display: flex; flex-direction: column; gap: 0.8rem; }
.order-list li { border-bottom: 1px solid var(--border-color); padding-bottom: 0.6rem; }
.order-status { font-weight: 700; }
.order-status.paid { color: var(--accent-green); }
.order-status.rejected { color: var(--accent-red); }

/* ---------------------------------------------------------------- launch campaign */
.campaign-banner {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #3a2510 0%, #5a3a1a 100%);
    color: #fff;
    border: 4px solid var(--gold-bright);
    border-radius: 20px;
    padding: 1.1rem 1rem;
    margin-bottom: 1rem;
    font-size: 1.1em;
}
.campaign-banner:hover { border-color: #fff; }
.campaign-banner strong { color: var(--gold-bright); font-size: 1.3em; }
.campaign-banner s { color: #e0d0b8; }
.campaign-title { font-size: 1.25em; font-weight: 800; color: var(--gold-bright); }
.campaign-left { font-weight: 800; color: var(--accent-red); font-size: 1.15em; }
.campaign-banner .campaign-left {
    color: var(--primary-dark);
    background: var(--gold-bright);
    border-radius: 999px;
    align-self: center;
    padding: 0.15rem 1rem;
}
.campaign-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 1.6rem; }
.campaign-links .btn-plain, .campaign-links .btn-line { text-decoration: none; display: inline-flex; align-items: center; }
.card .campaign-links { margin: 0.8rem 0 0.4rem; justify-content: flex-start; }
.join-card { display: flex; flex-direction: column; gap: 0.8rem; }
.join-price { font-size: 1.3em; }
.join-price strong { font-size: 1.6em; color: var(--accent-red); }
.join-price s, .offer s { color: var(--text-muted); font-weight: 600; }
.join-price s, .campaign-banner s, .offer s { white-space: nowrap; }
.seats { width: 100%; height: 22px; accent-color: var(--primary-gold); }
.join-list, .steps { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.steps { margin-bottom: 0.6rem; }
.founder-badge, .founder-note, .credit-note {
    background: var(--gold-light);
    border: 2px solid var(--primary-gold);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0.4rem 0;
}
.offer-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.8rem; }
.offer-free { border-color: var(--accent-green); background: #e8f6ee; }
.offer-free strong { color: var(--accent-green); }
.btn-big { min-height: 60px; font-size: 1.1em; justify-content: center; }
.card a.btn-plain { text-decoration: none; display: inline-flex; align-items: center; margin-top: 0.6rem; }
.gift-code {
    font-size: min(1.8em, 7.5vw);
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: var(--gold-light);
    border: 3px dashed var(--primary-gold);
    border-radius: 16px;
    padding: 0.6rem;
    color: var(--primary-dark);
    user-select: all;
}
.gift-code-small { letter-spacing: 0.08em; user-select: all; }
.redeem-card { display: flex; flex-direction: column; gap: 0.8rem; }
.redeem-form { display: flex; flex-direction: column; gap: 0.7rem; }
.redeem-form label { font-weight: 800; font-size: 1.1em; }
.code-input, .share-link {
    width: 100%;
    font-family: inherit;
    border: 3px solid var(--border-color);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    color: var(--text-dark);
    background: #fff;
}
.code-input {
    font-size: min(1.8em, 7.5vw);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}
.code-input:focus, .share-link:focus { border-color: var(--primary-gold); outline: none; }
.share-link { font-size: 0.95em; margin-top: 0.6rem; }
.btn-gold:disabled { opacity: 0.5; cursor: default; }
.redeem-card form[hidden] { display: none; }

/* ---------------------------------------------------------------- owner's funnel page (/admin) */
.admin-login { display: flex; flex-direction: column; gap: 0.7rem; max-width: 480px; }
.admin-login[hidden] { display: none; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; margin-bottom: 1.4rem; }
.stat-tile {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
}
.stat-tile span { font-weight: 700; color: var(--text-muted); }
.stat-tile strong { font-size: 1.6em; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.stat-tile small { color: var(--text-muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.85em; font-variant-numeric: tabular-nums; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border-color); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.admin-table th { background: var(--gold-light); white-space: nowrap; }

/* ---------------------------------------------------------------- LINE consent (big tick box, unticked by default) */
.consent-box {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    background: var(--gold-light);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
    margin: 0.8rem 0;
    font-weight: 600;
    cursor: pointer;
}
.consent-box input { width: 1.7em; height: 1.7em; flex: none; accent-color: var(--primary-dark); margin-top: 0.1em; }
.consent-box span { min-width: 0; overflow-wrap: anywhere; }
.card .btn-line, #modalBody .btn-line { text-decoration: none; display: inline-flex; margin-top: 0.6rem; }
#modalBody .btn-gold { width: 100%; }

/* ---------------------------------------------------------------- owner: customers (/admin → ลูกค้า) */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.admin-filters label { display: flex; flex-direction: column; font-weight: 600; font-size: 0.9em; min-width: 0; }
.admin-filters .control-select, .admin-filters input { width: 100%; min-width: 0; }
.admin-filters input { font: inherit; padding: 0.4rem 0.6rem; border: 2px solid var(--border-color); border-radius: 10px; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.8rem; }
.chip {
    display: inline-block;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    background: var(--bg-card);
    font-size: 0.85em;
    white-space: nowrap;
}
button.chip { cursor: pointer; font-family: inherit; }
button.chip.active { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.chip.stage-pass_member, .chip.stage-customer, .chip.stage-returned { background: #eaf7ee; border-color: #9fd3b0; }
.chip.stage-pass_expiring, .chip.stage-paywall { background: #fff4d6; border-color: var(--gold-bright); }
.chip.stage-lapsed { background: #fbe9e7; border-color: #e4a79f; }
.customer-link { background: none; border: none; color: var(--primary-dark); font: inherit; font-weight: 700;
    text-decoration: underline; cursor: pointer; padding: 0; text-align: left; }
.profile-head { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.profile-head img { width: 56px; height: 56px; border-radius: 50%; }
.profile-head h2 { margin: 0; overflow-wrap: anywhere; }
.notes-form { display: flex; flex-direction: column; gap: 0.6rem; }
.notes-form textarea, .notes-form input { font: inherit; padding: 0.5rem 0.7rem; border: 2px solid var(--border-color);
    border-radius: 10px; width: 100%; }
.msg-text { white-space: pre-line; min-width: 14rem; max-width: 28rem; }
.muted { color: var(--text-muted); }

/* ---------------------------------------------------------------- help + footer */
.senior-help-box {
    background: #fff8eb;
    border: 3px dashed var(--primary-gold);
    border-radius: 20px;
    padding: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
}
.senior-help-box h3 { font-size: 1.4em; color: var(--primary-dark); margin-bottom: 0.4rem; }
.phone-link {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 1.25em;
    font-weight: 800;
    padding: 0.75rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 0.6rem;
}
footer { text-align: center; padding: 2rem 1rem; color: var(--text-muted); border-top: 2px solid var(--border-color); }
footer a { font-weight: 700; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 768px) {
    .senior-topbar { justify-content: center; text-align: center; }
    .topbar-right { justify-content: center; width: 100%; }
    .container { padding: 1rem 16px 6rem; }
    .brand-name { font-size: 1.7em; }
    .radio-player-card { grid-template-columns: 1fr; padding: 1.1rem; text-align: center; }
    .player-poster-wrap { max-width: 150px; }
    .now-playing-title { font-size: 1.3em; }
    .giant-play-btn { font-size: 1.25em; max-width: 100%; margin: 0 auto; }
    .player-controls-row { justify-content: center; }
    .novel-hero { grid-template-columns: 1fr; }
    .novel-hero .player-poster-wrap { max-width: 200px; }
    .novels-grid { grid-template-columns: 1fr; }
    .episode-row { grid-template-columns: 48px 1fr; }
    .ep-num { width: 48px; height: 48px; font-size: 1.1em; }
    .episode-row .ep-btn { grid-column: 1 / -1; width: 100%; }
    .offer { flex-direction: column; text-align: center; }
}
