/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #16362E;
    --bg-card: #0F2924;
    --bg-input: #0f3460;
    --text: #e8e8e8;
    --text-muted: #8892a4;
    --accent: #e94560;
    --accent-hover: #c73e54;
    --border: #2a2a4a;
    --success: #2ecc71;
    --radius: 12px;
    --radius-sm: 8px;
}

html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Header ── */
.site-header {
    background: rgba(22, 54, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-icon { color: var(--text-muted); display: flex; }
.header-icon:hover { color: var(--text); }
.header-about-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}
.header-about-link:hover { color: var(--text); }

/* ── Primary Nav (Session 1.6) ── */
.gofilm-nav {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 8px 6px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gofilm-nav::-webkit-scrollbar { display: none; }
.gofilm-nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.gofilm-nav a:hover { color: var(--text); }
.gofilm-nav a.nav-active {
    color: var(--text);
    background: var(--bg-input);
    border-color: var(--border);
}

/* ── Filter Pills (Showtimes filters, Session 1.6) ── */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.filter-row-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 4px;
}
.filter-pill {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.filter-pill:hover { color: var(--text); border-color: var(--accent); }
.filter-pill.active {
    color: var(--text);
    background: var(--bg-input);
    border-color: var(--accent);
}

/* ── Cinema picker (Session 1.6) ── */
.nearby-row, .browse-row { transition: opacity 0.15s; }
.nearby-row.added, .browse-row.added { opacity: 0.55; }
.nearby-add-btn[disabled], .browse-add-btn[disabled] {
    cursor: default;
    opacity: 0.7;
}
.cinema-picker-done {
    position: sticky;
    bottom: 0;
    margin: 24px -20px -20px;
    padding: 12px 20px;
    background: linear-gradient(to top, var(--bg) 70%, transparent);
    text-align: right;
    z-index: 10;
}
.cinema-picker-done-btn { padding: 10px 28px; font-size: 0.95rem; }

/* ── Tab strip (Films page, Session 1.6) ── */
.gofilm-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.gofilm-tabs a {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.gofilm-tabs a:hover { color: var(--text); }
.gofilm-tabs a.tab-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ── Welcome / Onboarding (Session 1.7) ── */
.welcome { padding: 16px 8px 32px; text-align: center; }
.welcome-hero { margin-bottom: 28px; }
.welcome-icon {
    color: var(--accent);
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
}
.welcome-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 auto;
    max-width: 380px;
    text-align: left;
}
.welcome-primary-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.welcome-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.welcome-divider::before,
.welcome-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.welcome-divider::before { left: 0; }
.welcome-divider::after  { right: 0; }
.welcome-divider span {
    background: var(--bg-card);
    padding: 0 8px;
    position: relative;
}
.welcome-postcode-row {
    display: flex;
    gap: 8px;
}
.welcome-postcode-row .input-flex { flex: 1; min-width: 0; }
.welcome-radius-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.welcome-radius-row label { flex-shrink: 0; }
.welcome-radius-row select { flex: 1; max-width: 140px; }
.welcome-status {
    margin-top: 12px;
    font-size: 0.8rem;
    min-height: 1.2em;
}
.welcome-tertiary {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
}

/* ── Hub footer (Session 1.7) ── */
.hub-footer {
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ── Films page list (Session 1.6) ── */
.films-list { display: flex; flex-direction: column; gap: 10px; }
.films-list-row {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.films-list-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-input);
}
.films-list-poster-empty { background: var(--bg-input); }
.films-list-meta { flex: 1; min-width: 0; }
.films-list-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    word-break: break-word;
}
.films-list-title:hover { color: var(--accent); }
.films-list-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.films-list-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}
.films-list-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
}
.films-list-remove-btn:hover { color: var(--accent); }
.films-rate-form { display: inline; }
.films-star-row { display: flex; gap: 2px; }
.films-star-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.films-star-btn.filled { color: #f5a623; }
.films-star-btn:hover { color: #f5a623; }

/* ── Avatars ── */
.avatar-small {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff;
}
.avatar-tiny {
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 700; color: #fff;
    vertical-align: middle;
}

/* ── Main Content ── */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Hub ── */
.hub-greeting { margin-bottom: 24px; }
.hub-greeting h1 { font-size: 1.5rem; font-weight: 600; }
.viewing-as {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.inline-form { display: inline; }
.btn-link {
    background: none; border: none; color: var(--accent);
    cursor: pointer; font-size: 0.85rem; padding: 0;
}
.btn-link:hover { color: var(--accent-hover); }

.hub-cards { display: flex; flex-direction: column; gap: 16px; }
.hub-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.15s, border-color 0.15s;
    color: var(--text);
}
.hub-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
}
.hub-card:active { transform: translateY(0); }
.hub-card-icon { flex-shrink: 0; color: var(--accent); }
.hub-card-text h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.hub-card-text p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Access Required ── */
.access-required {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh;
}
.access-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    max-width: 400px;
}
.access-icon { color: var(--text-muted); margin-bottom: 16px; }
.access-card h1 { font-size: 1.5rem; margin-bottom: 12px; }
.access-card p { color: var(--text-muted); margin-bottom: 8px; }
.error-text { color: var(--accent); }

/* ── Onboarding ── */
.onboarding {
    max-width: 400px;
    margin: 40px auto;
}
.onboarding h1 { font-size: 1.5rem; margin-bottom: 24px; }
.onboarding-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group small { font-size: 0.75rem; color: var(--text-muted); }
.form-group input[type="text"] {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px;
    font-size: 1rem;
}
.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Colour Swatches ── */
.colour-swatches, .colour-swatches-inline {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.swatch { cursor: pointer; }
.swatch input { display: none; }
.swatch-circle {
    display: block; width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid transparent; transition: border-color 0.15s;
}
.swatch-circle-sm {
    display: block; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid transparent; transition: border-color 0.15s;
}
.swatch input:checked + .swatch-circle,
.swatch input:checked + .swatch-circle-sm {
    border-color: #fff;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.btn-copy { padding: 4px 10px; font-size: 0.75rem; }

/* ── Alert ── */
.alert { padding: 12px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-error { background: rgba(233, 69, 96, 0.15); border: 1px solid var(--accent); color: var(--accent); }

/* ── Admin ── */
.admin h1 { font-size: 1.5rem; margin-bottom: 24px; }
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.admin-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
.admin-form { margin-bottom: 12px; }
.form-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-bottom: 8px;
}
.input-flex {
    flex: 1; min-width: 120px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); padding: 8px 12px; font-size: 0.85rem;
}
.input-small {
    width: 60px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); padding: 8px; font-size: 0.85rem;
    text-align: center;
}
.input-flex:focus, .input-small:focus { outline: none; border-color: var(--accent); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th {
    text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border);
    color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
}
.admin-table td { padding: 8px 6px; border-bottom: 1px solid rgba(42, 42, 74, 0.5); }
.mono { font-family: monospace; font-size: 0.8rem; }
.muted { color: var(--text-muted); }

.shared-link-card {
    background: rgba(15, 52, 96, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}
.shared-link-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; margin-bottom: 6px; cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); }

.admin-back { margin-top: 20px; text-align: center; }

/* ── Cinema ── */
.cinema-page h1 { font-size: 1.5rem; margin-bottom: 4px; }

.cinema-stale-banner {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.cinema-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cinema-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 60px;
    flex-shrink: 0;
}
.cinema-pills {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cinema-pills::-webkit-scrollbar { display: none; }
.cinema-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cinema-pill:hover { border-color: var(--accent); color: var(--text); }
.cinema-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.cinema-pill-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.cinema-summary-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: -4px 0 10px 70px;
}
.cinema-single-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.cinema-single-heading {
    font-size: 0.9rem;
    color: var(--text);
}
.cinema-row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.cinema-row-actions .btn {
    padding: 3px 10px;
    font-size: 0.75rem;
}
/* Session 1.10 — three-column row layout: name | town | actions.
   Used everywhere a cinema list is rendered. Town column has fixed
   width so independent rows align regardless of name length; on
   narrow viewports the layout collapses to name+town stacked. */
.cinema-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cinema-row:last-child { border-bottom: none; }
.cinema-row .cinema-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.cinema-row .cinema-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.cinema-row .cinema-actions .btn {
    padding: 3px 10px;
    font-size: 0.75rem;
}
.nearby-controls {
    margin: -4px 0 12px 70px;
}
.nearby-controls-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
/* Film groups */
.cinema-film-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.cinema-film-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.cinema-date-heading {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 8px 0 6px;
}

/* Film card expand/collapse layout */
.film-cards-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.film-card-expand {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.film-card-expand[open] { border-color: var(--accent); }

.film-card-summary {
    cursor: pointer;
    padding: 12px 14px;
    list-style: none;
}
.film-card-summary::-webkit-details-marker { display: none; }
.film-card-summary::marker { display: none; }

.film-card-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.film-card-poster {
    width: 48px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-input);
}
.film-card-poster-empty {
    width: 48px;
    height: 72px;
    border-radius: 4px;
    background: var(--bg-input);
    flex-shrink: 0;
}
.film-card-meta { flex: 1; min-width: 0; }
.film-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.film-card-title-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
}
.film-card-title-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.film-card-title-link:hover { color: var(--accent); text-decoration: underline; }
.film-card-title { font-size: 0.95rem; }
.film-card-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.film-card-dot-mine { background: var(--success); }
.film-card-dot-elsewhere { background: transparent; border: 1px solid var(--text-muted); }
.film-card-wl-badge {
    color: #f59e0b;
    font-size: 0.85rem;
}
.film-card-details {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.film-card-score { color: #f5c518; font-weight: 600; }
.film-card-actions-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.film-card-action-btn {
    font-size: 0.72rem;
    padding: 3px 10px;
}
.film-card-showtimes-btn {
    cursor: pointer;
}
.film-card-cinema-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.film-card-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--border);
}

.cinema-showtime-block {
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.2);
}
.cinema-showtime-block:last-child { border-bottom: none; }
.cinema-showtime-cinema-name {
    margin-bottom: 4px;
}
.cinema-showtime-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 2px;
}
.cinema-date-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

/* Showtime rows */
.cinema-showtime-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}
.cinema-showtime-row:last-child { border-bottom: none; }
.cinema-showtime-info { min-width: 100px; flex-shrink: 0; }
.cinema-list-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}
/* Cinema-name link to chain.website (level-4 fallback). Visually identical
   to .cinema-list-name in resting state — same colour (chain-coloured via
   the .cinema-chain-X .cinema-list-name descendant rules below, which also
   match this element since it carries .cinema-list-name) and no underline.
   Only the cursor + hover underline announce the affordance. */
a.cinema-list-name-link {
    color: inherit;
    text-decoration: none;
}
a.cinema-list-name-link:hover { text-decoration: underline; }
a.cinema-list-name-link:focus-visible { text-decoration: underline; }
.cinema-times { display: flex; flex-wrap: wrap; gap: 6px; }

/* Time pills */
.cinema-time-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
    white-space: nowrap;
}
a.cinema-time-pill:hover { border-color: var(--accent); color: var(--text); }
.cinema-time-busy { border-color: #e67e22; color: #e67e22; }
.cinema-time-full { border-color: var(--accent); color: var(--accent); opacity: 0.6; text-decoration: line-through; }
.cinema-time-sold-out { opacity: 0.4; text-decoration: line-through; }
.cinema-time-imax { border-color: #3498db; }

.cinema-format-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Chain colours — applied to cinema name text. The chain class can land
   on any of: the row container (descendant rule colours .cinema-list-name
   inside), a cinema-chain-label span, or a cinema-add-name span used in
   browse-by-chain lists. */
.cinema-chain-the-light .cinema-list-name,
.cinema-chain-label.cinema-chain-the-light,
.cinema-add-name.cinema-chain-the-light { color: #f5a623; }
.cinema-chain-vue .cinema-list-name,
.cinema-chain-label.cinema-chain-vue,
.cinema-add-name.cinema-chain-vue { color: #ee7623; }
.cinema-chain-everyman .cinema-list-name,
.cinema-chain-label.cinema-chain-everyman,
.cinema-add-name.cinema-chain-everyman { color: #e91e8c; }
.cinema-chain-cineworld .cinema-list-name,
.cinema-chain-label.cinema-chain-cineworld,
.cinema-add-name.cinema-chain-cineworld { color: #e6162e; }
.cinema-chain-picturehouse .cinema-list-name,
.cinema-chain-label.cinema-chain-picturehouse,
.cinema-add-name.cinema-chain-picturehouse { color: #00a693; }
/* Brand-derived (Session 1.6 — quick eyeball, not pixel-perfect): */
.cinema-chain-odeon .cinema-list-name,
.cinema-chain-label.cinema-chain-odeon,
.cinema-add-name.cinema-chain-odeon { color: #f04d4d; }
.cinema-chain-curzon .cinema-list-name,
.cinema-chain-label.cinema-chain-curzon,
.cinema-add-name.cinema-chain-curzon { color: #c5b358; }
.cinema-chain-showcase .cinema-list-name,
.cinema-chain-label.cinema-chain-showcase,
.cinema-add-name.cinema-chain-showcase { color: #ed1c24; }
.cinema-chain-omniplex .cinema-list-name,
.cinema-chain-label.cinema-chain-omniplex,
.cinema-add-name.cinema-chain-omniplex { color: #ff6600; }
.cinema-chain-reel .cinema-list-name,
.cinema-chain-label.cinema-chain-reel,
.cinema-add-name.cinema-chain-reel { color: #e31837; }
.cinema-chain-movie-house .cinema-list-name,
.cinema-chain-label.cinema-chain-movie-house,
.cinema-add-name.cinema-chain-movie-house { color: #d94a3a; }
/* TODO: pick brand colours — currently neutral text colour:
   merlin, scott, wtw, arc, forum-xn-leisure, ica-custom. */
.cinema-chain-merlin .cinema-list-name,
.cinema-chain-label.cinema-chain-merlin,
.cinema-chain-scott .cinema-list-name,
.cinema-chain-label.cinema-chain-scott,
.cinema-chain-wtw .cinema-list-name,
.cinema-chain-label.cinema-chain-wtw,
.cinema-chain-arc .cinema-list-name,
.cinema-chain-label.cinema-chain-arc,
.cinema-chain-forum-xn-leisure .cinema-list-name,
.cinema-chain-label.cinema-chain-forum-xn-leisure,
.cinema-chain-ica-custom .cinema-list-name,
.cinema-chain-label.cinema-chain-ica-custom { color: var(--text); }

/* Independents grouping (Session 1.6, expanded 1.8) — distinct colours
   per ticketing platform. The user-facing chain label always says
   "Independents"; the per-platform CSS class provides our internal
   visual differentiation. Five legacy independent-* slugs plus five
   misclassified-as-chain platforms folded in 1.8. */
.cinema-chain-independent-spektrix .cinema-list-name,
.cinema-chain-label.cinema-chain-independent-spektrix,
.cinema-add-name.cinema-chain-independent-spektrix { color: #9b5de5; } /* purple */
.cinema-chain-independent-savoy-systems .cinema-list-name,
.cinema-chain-label.cinema-chain-independent-savoy-systems,
.cinema-add-name.cinema-chain-independent-savoy-systems { color: #00bbf9; } /* blue */
.cinema-chain-independent-ticketsolve .cinema-list-name,
.cinema-chain-label.cinema-chain-independent-ticketsolve,
.cinema-add-name.cinema-chain-independent-ticketsolve { color: #fee440; } /* yellow */
.cinema-chain-independent-veezi .cinema-list-name,
.cinema-chain-label.cinema-chain-independent-veezi,
.cinema-add-name.cinema-chain-independent-veezi { color: #00f5d4; } /* cyan */
.cinema-chain-independent-custom .cinema-list-name,
.cinema-chain-label.cinema-chain-independent-custom,
.cinema-add-name.cinema-chain-independent-custom { color: #f15bb5; } /* pink */
/* 1.8 fold-in platforms — distinct from the five above and from each other. */
.cinema-chain-boxoffice-boost .cinema-list-name,
.cinema-chain-label.cinema-chain-boxoffice-boost,
.cinema-add-name.cinema-chain-boxoffice-boost { color: #84cc16; } /* lime */
.cinema-chain-savoy .cinema-list-name,
.cinema-chain-label.cinema-chain-savoy,
.cinema-add-name.cinema-chain-savoy { color: #ff6b6b; } /* coral */
.cinema-chain-picturedrome .cinema-list-name,
.cinema-chain-label.cinema-chain-picturedrome,
.cinema-add-name.cinema-chain-picturedrome { color: #4ecdc4; } /* teal */
.cinema-chain-absolute-cinemas .cinema-list-name,
.cinema-chain-label.cinema-chain-absolute-cinemas,
.cinema-add-name.cinema-chain-absolute-cinemas { color: #ffa500; } /* orange */
.cinema-chain-admit-one .cinema-list-name,
.cinema-chain-label.cinema-chain-admit-one,
.cinema-add-name.cinema-chain-admit-one { color: #c084fc; } /* lavender */

/* Session 1.11 — re-apply chain colours to the .cinema-name class used
   by the Session 1.10 .cinema-row grid layout. Each rule above targets
   three other class names (cinema-list-name, cinema-chain-label,
   cinema-add-name); none of those are on the new .cinema-name element,
   so chain colours never reach it. This block plugs that gap without
   editing the rules above. */
.cinema-name.cinema-chain-the-light { color: #f5a623; }
.cinema-name.cinema-chain-vue { color: #ee7623; }
.cinema-name.cinema-chain-everyman { color: #e91e8c; }
.cinema-name.cinema-chain-cineworld { color: #e6162e; }
.cinema-name.cinema-chain-picturehouse { color: #00a693; }
.cinema-name.cinema-chain-odeon { color: #f04d4d; }
.cinema-name.cinema-chain-curzon { color: #c5b358; }
.cinema-name.cinema-chain-showcase { color: #ed1c24; }
.cinema-name.cinema-chain-omniplex { color: #ff6600; }
.cinema-name.cinema-chain-reel { color: #e31837; }
.cinema-name.cinema-chain-movie-house { color: #d94a3a; }
.cinema-name.cinema-chain-merlin,
.cinema-name.cinema-chain-scott,
.cinema-name.cinema-chain-wtw,
.cinema-name.cinema-chain-arc,
.cinema-name.cinema-chain-forum-xn-leisure,
.cinema-name.cinema-chain-ica-custom { color: var(--text); }
.cinema-name.cinema-chain-independent-spektrix { color: #9b5de5; }
.cinema-name.cinema-chain-independent-savoy-systems { color: #00bbf9; }
.cinema-name.cinema-chain-independent-ticketsolve { color: #fee440; }
.cinema-name.cinema-chain-independent-veezi { color: #00f5d4; }
.cinema-name.cinema-chain-independent-custom { color: #f15bb5; }
.cinema-name.cinema-chain-boxoffice-boost { color: #84cc16; }
.cinema-name.cinema-chain-savoy { color: #ff6b6b; }
.cinema-name.cinema-chain-picturedrome { color: #4ecdc4; }
.cinema-name.cinema-chain-absolute-cinemas { color: #ffa500; }
.cinema-name.cinema-chain-admit-one { color: #c084fc; }

/* Cinema add section */
.cinema-add-chain { margin-bottom: 8px; }
.cinema-add-chain-header {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 0;
    list-style: none;
}
.cinema-add-chain-header::-webkit-details-marker { display: none; }
.cinema-add-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 6px 8px;
}
.cinema-add-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}
.cinema-add-name { font-size: 0.85rem; }
.cinema-add-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.catalogue-live-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.catalogue-added-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.catalogue-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* Cinema empty state */
.cinema-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 16px;
}

/* Cinema watchlist items */
.cinema-wl-list { display: flex; flex-direction: column; gap: 8px; }
.cinema-wl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(15, 52, 96, 0.3);
    border-radius: var(--radius-sm);
}
.cinema-wl-title { font-size: 0.9rem; font-weight: 500; }

/* Cinema watchlist synopsis */
.cinema-wl-synopsis {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 4px 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cinema settings tier select */
.cinema-tier-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 6px 10px;
    font-size: 0.85rem;
}
.cinema-tier-select:focus { outline: none; border-color: var(--accent); }
.cinema-chain-label { font-weight: 500; }

/* Cinema select card (cinema page header) */
.cinema-select-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
    color: var(--text);
}
.cinema-select-card:hover { border-color: var(--accent); color: var(--text); }
.cinema-select-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cinema-select-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cinema-select-icon { color: var(--accent); flex-shrink: 0; display: flex; }
.cinema-select-title { font-size: 0.95rem; font-weight: 600; }
.cinema-select-summary { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.cinema-select-arrow { color: var(--text-muted); flex-shrink: 0; display: flex; }

/* Cinema mode toggle (settings page) */
.cinema-mode-section { margin-bottom: 0; }
.cinema-mode-options {
    display: flex;
    gap: 8px;
}
.cinema-mode-option {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s;
}
.cinema-mode-option:hover { border-color: var(--accent); }
.cinema-mode-option.active { border-color: var(--accent); background: rgba(233, 69, 96, 0.08); }
.cinema-mode-option input[type="radio"] { margin-top: 3px; accent-color: var(--accent); }
.cinema-mode-option strong { font-size: 0.85rem; display: block; }
.cinema-mode-option .muted { display: block; margin-top: 2px; }

/* Cinema my-list (flat list with remove) */
.cinema-my-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cinema-my-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(15, 52, 96, 0.2);
    border-radius: var(--radius-sm);
}
.cinema-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.cinema-remove-btn:hover { color: var(--accent); background: rgba(233, 69, 96, 0.15); }

/* Cinema welcome (empty state) */
.cinema-welcome {
    padding: 48px 20px;
}
.cinema-welcome-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.cinema-welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── About Page ── */
.about-page h2 { font-size: 1.1rem; margin-bottom: 8px; }
.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}
.about-section p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.about-steps, .about-tips {
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.about-steps li, .about-tips li { margin-bottom: 4px; }
.about-steps strong, .about-tips strong { color: var(--text); }

/* ── Mine/Shared Toggle ── */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3px;
    width: fit-content;
}
.toggle-pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.toggle-pill:hover { color: var(--text); }
.toggle-pill.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* ── Film Section ── */
.film-page h1 { font-size: 1.5rem; margin-bottom: 4px; }

.film-search-section { margin-bottom: 20px; }
.film-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.film-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.film-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.film-search-info { flex: 1; min-width: 0; }
.film-search-title {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.film-tier-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 4px 6px;
    font-size: 0.75rem;
}

/* Posters */
.film-poster-tiny {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.film-poster-small {
    width: 48px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.film-poster-placeholder {
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1.2;
    word-break: break-word;
    overflow: hidden;
}

/* Poster placeholder for recommendation cards */
.rec-card-no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 12px;
    width: 100%;
    aspect-ratio: 2/3;
    line-height: 1.3;
    word-break: break-word;
}

/* Tier sections */
.film-tier-section {
    margin-bottom: 20px;
}
.film-tier-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.film-tier-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-input);
    border-radius: 10px;
    padding: 1px 8px;
}
.film-tier-empty {
    font-size: 0.85rem;
    padding: 16px;
    text-align: center;
}

/* Film cards */
.film-list { display: flex; flex-direction: column; gap: 6px; }
.film-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.film-card-info { flex: 1; min-width: 0; }
.film-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.film-card-title-link {
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: var(--text);
    text-decoration: none;
}
.film-card-title-link:hover {
    color: var(--accent);
    text-decoration: underline;
}
.film-card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* Film/TV card info expand */
.film-info-expand { margin-top: 4px; }
.film-info-btn {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    list-style: none;
}
.film-info-btn::-webkit-details-marker { display: none; }
.film-info-btn:hover { color: var(--text); }
.film-info-panel {
    margin-top: 6px;
    padding: 8px 0;
    font-size: 0.8rem;
    line-height: 1.4;
}
.film-info-overview {
    color: var(--text-muted);
    margin: 0 0 6px 0;
}
.film-info-scores {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}
.film-info-providers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Star picker */
.star-picker {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}
.star-btn {
    background: none;
    border: none;
    color: #f39c12;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    text-align: left;
    border-radius: 4px;
    white-space: nowrap;
}
.star-btn:hover { background: rgba(243, 156, 18, 0.15); }

/* Dropdown panels */
.film-rate-dropdown,
.film-move-dropdown,
.watched-rate-dropdown {
    position: relative;
}
.film-rate-dropdown summary,
.film-move-dropdown summary {
    list-style: none;
}
.film-rate-dropdown summary::-webkit-details-marker,
.film-move-dropdown summary::-webkit-details-marker {
    display: none;
}
.film-rate-panel,
.film-move-panel,
.watched-rate-panel {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.film-move-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.85rem;
    text-align: left;
    border-radius: 4px;
}
.film-move-option:hover { background: var(--bg-input); }

/* Danger button */
.btn-danger {
    color: var(--accent);
    border-color: transparent;
    background: transparent;
    font-weight: 700;
    padding: 4px 8px;
}
.btn-danger:hover { background: rgba(233, 69, 96, 0.15); border-color: var(--accent); }

/* ── Watched Page ── */
.watched-page h1 { font-size: 1.5rem; margin-bottom: 4px; }
.watched-list { display: flex; flex-direction: column; gap: 6px; }
.watched-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.watched-item-info { flex: 1; min-width: 0; }
.watched-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.watched-type-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-input);
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 4px;
}
.watched-shared-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    padding: 1px 6px;
    border-radius: 4px;
}
.watched-item-rating { flex-shrink: 0; }
.watched-stars {
    color: #f39c12;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    letter-spacing: 1px;
}
.watched-stars::-webkit-details-marker { display: none; }

/* Inline star rating (AJAX) */
.star-rating-inline {
    display: inline-flex;
    gap: 2px;
}
.star-inline {
    font-size: 1.2rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}
.star-inline.filled {
    color: #f1c40f;
}
.star-inline:hover {
    color: #f1c40f;
}

/* Cinema detail close button */
.cinema-detail-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    line-height: 1;
}
.cinema-detail-close:hover {
    color: var(--text);
}

/* Watched delete button */
.watched-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 4px;
    margin-left: 6px;
    line-height: 1;
}
.watched-delete-btn:hover {
    color: var(--accent);
}

/* ── Film Move/Action Panels ── */
.film-move-option-danger { color: var(--accent); }
.film-move-option-danger:hover { background: rgba(233, 69, 96, 0.15); }
.film-move-panel { min-width: 150px; }
.film-move-option { white-space: nowrap; }

/* ── Recommendation Page ── */
.recommend-page h1 { font-size: 1.5rem; margin-bottom: 4px; }

.filter-row { margin-bottom: 8px; }
.genre-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.genre-pill:hover { border-color: var(--accent); color: var(--text); }
.genre-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Genre exclusion pills (red when active = excluded) */
.genre-exclusion-pills .genre-exclude-chip.active {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: line-through;
}

.rec-notice {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid #f39c12;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #f39c12;
    margin-bottom: 16px;
}

.rec-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 16px;
}

.rec-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.rec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rec-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    max-height: 280px;
    overflow: hidden;
}
.rec-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rec-card-no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.rec-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rec-info-btn:hover { background: rgba(0, 0, 0, 0.8); }

/* Info detail panel */
.rec-detail-panel {
    padding: 12px 14px;
    background: rgba(15, 52, 96, 0.3);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.rec-detail-overview {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
}
.rec-detail-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.rec-detail-providers { margin-bottom: 6px; }
.rec-detail-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.rec-card-body { padding: 12px 14px; }

.rec-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.rec-card-title {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Certification badges */
.cert-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
    text-transform: uppercase;
    align-self: flex-start;
    width: auto;
}
.cert-u { border-color: #2ecc71; color: #2ecc71; }
.cert-pg { border-color: #f39c12; color: #f39c12; }
.cert-12 { border-color: #e67e22; color: #e67e22; }
.cert-15 { border-color: #e74c3c; color: #e74c3c; }
.cert-18 { border-color: #c0392b; color: #c0392b; }
.cert-nr { border-color: var(--text-muted); color: var(--text-muted); }

.bbfc-info {
    margin: 6px 0 0;
}
.content-advice {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.35;
}
.bbfc-link {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
    margin-top: 2px;
    text-decoration: none;
}
.bbfc-link:hover { opacity: 1; text-decoration: underline; }

.rec-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 6px;
}

.media-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-input);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 4px;
}
.media-badge-movie { background: rgba(108, 92, 231, 0.2); color: #a29bfe; }
.media-badge-tv { background: rgba(0, 206, 209, 0.2); color: #00cec9; }

/* Score badges */
.rec-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.score-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.score-label {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.7;
}
.score-badge-all { background: rgba(233, 69, 96, 0.2); color: var(--accent); }
.score-badge-tmdb { background: rgba(1, 180, 228, 0.15); color: #01b4e4; }
.score-badge-imdb { background: rgba(245, 197, 24, 0.15); color: #f5c518; }
.score-badge-rt { background: rgba(250, 80, 50, 0.15); color: #fa5032; }
.score-badge-mc { background: rgba(102, 204, 51, 0.15); color: #66cc33; }

/* Kermode badge */
.kermode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 4px 0;
}
.kermode-k {
    font-weight: 700;
    font-size: 0.85rem;
}
.kermode-sentiment { font-weight: 500; text-transform: capitalize; }
.kermode-positive { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.kermode-mixed { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.kermode-negative { background: rgba(233, 69, 96, 0.15); color: var(--accent); }
.kermode-verdict-wrap { display: inline; }
.kermode-verdict-wrap summary {
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    list-style: none;
    display: inline;
}
.kermode-verdict-wrap summary::-webkit-details-marker { display: none; }
.kermode-verdict-text {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.4;
    margin-top: 4px;
}

/* Providers */
.rec-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}
.rec-provider-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(15, 52, 96, 0.5);
    color: var(--text-muted);
}

/* Genre tags */
.rec-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}
.genre-tag {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(42, 42, 74, 0.5);
    color: var(--text-muted);
}

.rec-overview {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 6px 0;
}

/* Action buttons */
.rec-actions {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    width: 100%;
}
.rec-action-btn {
    flex: 1;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.rec-action-btn:hover { border-color: var(--accent); }

/* Button colour variants */
.watchlist-btn { border-color: #2ecc71; color: #2ecc71; }
.watchlist-btn:hover { background: rgba(46, 204, 113, 0.15); }
/* Rate pill — sits in scores row for TV cards */
.rate-pill {
    cursor: pointer;
    border: 1px solid #1abc9c;
    color: #1abc9c;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}
.rate-pill:hover { background: rgba(26, 188, 156, 0.15); }
.watched-btn { border-color: #3498db; color: #3498db; }
.watched-btn:hover { background: rgba(52, 152, 219, 0.15); }
.notnow-btn { border-color: #f39c12; color: #f39c12; }
.notnow-btn:hover { background: rgba(243, 156, 18, 0.15); }
.never-btn { border-color: var(--accent); color: var(--accent); }
.never-btn:hover { background: rgba(233, 69, 96, 0.15); }

.rec-action-btn.added {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Inline star rating */
.inline-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.rate-prompt {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.inline-stars { display: flex; gap: 2px; }
.inline-star {
    background: none;
    border: none;
    color: #f39c12;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0 2px;
    line-height: 1;
}
.inline-star.active { color: #f39c12; }
.cancel-rate-btn {
    font-size: 0.9rem;
    padding: 4px 8px;
}

.rec-footer {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 20px;
}

/* ── Settings Page ── */
.settings-page h1 { font-size: 1.5rem; margin-bottom: 4px; }

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.settings-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.settings-section .muted { font-size: 0.8rem; margin-bottom: 12px; }

.settings-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.settings-footer {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 20px;
}

/* Provider grid */
.provider-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.provider-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.15s;
}
.provider-toggle input { display: none; }
.provider-toggle.selected,
.provider-toggle:has(input:checked) {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}
.provider-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.provider-name {
    font-size: 0.8rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.provider-more {
    margin-top: 8px;
}
.provider-more summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 8px;
}

/* Weight sliders */
.weight-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}
.weight-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.weight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.weight-label {
    font-size: 0.9rem;
    font-weight: 500;
}
.weight-value {
    font-size: 0.85rem;
    font-family: monospace;
}
.weight-hint {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
}
.weight-slider {
    width: 100%;
    accent-color: var(--accent);
    height: 6px;
}

/* Cert toggle pills */
.cert-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cert-toggle {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.15s;
}
.cert-toggle input { display: none; }
.cert-toggle.selected,
.cert-toggle:has(input:checked) {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.15);
}
.cert-toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

/* Filter chip (provider filter) */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s;
    text-decoration: none;
}
.filter-chip:hover { border-color: var(--accent); color: var(--text); }
.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.filter-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* ── Cinema Film Detail ── */
.cinema-film-detail {
    padding: 12px;
    background: rgba(15, 52, 96, 0.15);
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.cinema-film-detail-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.cinema-film-poster {
    width: 100px;
    border-radius: 6px;
    flex-shrink: 0;
}
.cinema-film-detail-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cinema-film-detail-scores {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.cinema-film-synopsis {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}
.cinema-film-providers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.cinema-film-trailer-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border: 1px solid #fff;
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
}
.cinema-film-trailer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Film Tabs ── */
.film-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.film-tab {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.film-tab:hover { color: var(--text); }
.film-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Film Browse Grid ── */
.film-genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.film-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.film-browse-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.15s;
}
.film-browse-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.film-browse-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.film-browse-poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 12px;
}
.film-browse-info {
    padding: 8px 10px 10px;
}
.film-browse-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.film-browse-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 4px 0;
}
.film-browse-scores .score-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
}
.film-browse-scores .score-label {
    font-size: 0.5rem;
}
.film-browse-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 4px 0;
}
.film-genre-tag {
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    white-space: nowrap;
}
.film-browse-cinemas {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Clickable Score Badges ── */
a.score-badge-link {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
a.score-badge-link:hover {
    opacity: 0.8;
}
a.kermode-badge {
    text-decoration: none;
}
a.kermode-badge:hover {
    opacity: 0.8;
}

/* ── Cinema Film Heading Row ── */
.cinema-film-heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cinema-film-title-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.cinema-film-title-link:hover {
    text-decoration: underline;
    color: var(--accent);
}
.cinema-film-more-link {
    display: inline-block;
    margin-top: 8px;
    margin-left: 16px;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}
.cinema-film-more-link:hover {
    text-decoration: underline;
}

/* ── Film Detail Full Page ── */
.film-detail-page {
    max-width: 700px;
    margin: 0 auto;
}
.back-link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    padding: 4px 0;
}
.back-link:hover { color: var(--text); }
.film-detail-hero {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.film-detail-poster {
    width: 140px;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}
.film-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.film-detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.film-detail-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.film-detail-kermode {
    margin-top: 4px;
}
.film-detail-synopsis {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}
.film-detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.film-detail-showtimes {
    margin-top: 16px;
}
.film-detail-showtimes h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ── About Page ── */
.about-page h1 { font-size: 1.5rem; margin-bottom: 4px; }
.about-intro { color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}
.about-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.about-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.about-steps, .about-tips {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.about-steps li, .about-tips li {
    margin-bottom: 4px;
}
.about-steps strong, .about-tips strong {
    color: var(--text);
}

/* ── Mobile adjustments for browse grid ── */
@media (max-width: 400px) {
    .film-browse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .film-detail-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .film-detail-poster {
        width: 180px;
    }
    .film-detail-meta {
        align-items: center;
    }
    .film-detail-scores {
        justify-content: center;
    }
}

/* ── Account page (Session 2b) ── */
.account-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.account-section h2 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.account-stats { list-style: none; padding: 0; margin: 0; }
.account-stats li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    font-size: 0.9rem;
}
.account-stats li:last-child { border-bottom: none; }
.account-section.danger-zone { border-color: rgba(233, 69, 96, 0.4); }
.account-section.danger-zone summary::marker { color: var(--accent); }

/* ── Site footer (Session 2b, restyled 2e) ── */
.site-footer {
    max-width: 600px;
    margin: 32px auto 0;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.site-footer a {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.site-footer a:hover { color: var(--text); }

/* ── Magic-link 6-digit code input (Session 2c) ── */
.code-input {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.6rem;
    letter-spacing: 8px;
    text-align: center;
    width: 100%;
    max-width: 240px;
    padding: 14px 16px;
}

/* ── Session 3.1: Account icon + alerts badge + footer separator ── */
.account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.account-icon:hover,
.account-icon-active { color: var(--text); background: rgba(255, 255, 255, 0.16); }

.alert-badge {
    color: var(--accent, #d63d4a);
    font-weight: 700;
}

.site-footer .footer-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

/* New-match highlight on the alerts page. */
.film-card.alert-new {
    background: rgba(214, 61, 74, 0.08);
    border-left: 3px solid var(--accent, #d63d4a);
    padding-left: 12px;
}

/* Hub-page alert summary card (Session 3.1, Piece 5). */
.hub-card.hub-card-alert {
    background: rgba(214, 61, 74, 0.08);
    border: 1px solid rgba(214, 61, 74, 0.3);
}
.hub-card.hub-card-alert h2,
.hub-card.hub-card-alert .hub-card-title {
    color: var(--accent, #d63d4a);
}

/* ── Session 3.4: two-line cinema row when an indie has display_town ──
   The .cinema-row parent stays grid (1fr auto). The new wrapper stacks
   name + town vertically; min-width:0 lets the name truncate with
   ellipsis on narrow viewports rather than overflowing the actions. */
.cinema-name-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cinema-name-block .cinema-name {
    /* Inherits font-weight/colour from existing .cinema-row .cinema-name
       (with chain-colour rules); just keep the truncation behaviour. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cinema-row .cinema-town {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The "Where to see it" panel uses .cinema-list-name not .cinema-row,
   so the town there is positioned via a sibling .cinema-town div. Style
   it to match. */
.cinema-showtime-info > .cinema-town {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ── Session 3.2: spam-folder hint banner ── */
.spam-hint {
    background: rgba(214, 61, 74, 0.08);
    border: 1px solid rgba(214, 61, 74, 0.25);
    color: var(--text-muted);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
}
.spam-hint strong { color: var(--text); }

/* ── Vertical rhythm for static legal/guide pages (Phase 2p) ──
 * Overrides the per-class h1/h2 margin-bottom rules earlier in the
 * file. Scoped to the three article classes so the rest of the app's
 * dense UI typography is untouched.
 */
.about-page h1, .about-page h2, .about-page h3,
.privacy-page h1, .privacy-page h2, .privacy-page h3,
.terms-page h1, .terms-page h2, .terms-page h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.about-page > h1:first-child, .about-page > h2:first-child, .about-page > h3:first-child,
.privacy-page > h1:first-child, .privacy-page > h2:first-child, .privacy-page > h3:first-child,
.terms-page > h1:first-child, .terms-page > h2:first-child, .terms-page > h3:first-child {
    margin-top: 0;
}
.about-page p, .about-page ul, .about-page ol,
.privacy-page p, .privacy-page ul, .privacy-page ol,
.terms-page p, .terms-page ul, .terms-page ol {
    margin-bottom: 1em;
}
.about-page ul, .about-page ol,
.privacy-page ul, .privacy-page ol,
.terms-page ul, .terms-page ol {
    padding-left: 1.5em;
}
.about-page li, .privacy-page li, .terms-page li {
    margin-bottom: 0.25em;
}
