/* Public SEO pages. Same tokens and catalog cards as public/css/style.css. */
:root {
    --bg: #0F0F14;
    --surface: #1B1B23;
    --divider: #24242E;
    --divider-strong: #2A2A35;
    --text: #F2F2F5;
    --text-secondary: #9A9AA8;
    --text-muted: #6E6E7C;
    --accent: #B7A4F5;
    --on-accent: #1C1633;
    --star: #EF9F27;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gutter: 16px;
    --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2 { font-weight: 500; }
h1 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
h2 { margin: 22px 0 8px; font-size: 15px; line-height: 1.3; }

.top, main, .foot { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
}
.logo { color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none; }
.top nav { display: flex; gap: 14px; }
.top nav a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 12px;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: 12px;
}
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--divider-strong); }

.sheet { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.hero, .hero-empty {
    width: 112px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface);
}
.hero-empty { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 28px; }
.kicker { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}
.lead { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.add-btn, .quiet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.add-btn { background: var(--accent); color: var(--on-accent); }
.quiet-btn { background: var(--surface); color: var(--text); }
.add-btn:active, .quiet-btn:active { opacity: .85; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.stat-card { padding: 16px 12px; background: var(--surface); border-radius: 12px; text-align: center; }
.stat-value { margin-bottom: 4px; font-size: 24px; line-height: 1.2; font-weight: 500; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-secondary); }
.genre-line { margin: 0 0 8px; color: var(--text-secondary); font-size: 13px; }

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 10px;
}
.search-result-item { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}
.grid-item, .poster-empty { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-empty { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
.rating-badge {
    position: absolute;
    left: 5px;
    bottom: 5px;
    padding: 2px 6px;
    background: var(--bg);
    color: var(--text);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
}
.search-result-title {
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.card-meta { margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .search-result-item:hover .grid-item { opacity: .85; } }

.list-card { background: var(--surface); border-radius: 12px; overflow: hidden; }
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 13px 14px;
    border-top: .5px solid var(--divider-strong);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}
.list-card .list-row:first-child { border-top: 0; }
.row-note { flex: none; color: var(--text-secondary); font-size: 12px; }
.note { margin: 0 0 8px; color: var(--text-secondary); }

.foot { padding: 28px 0 40px; color: var(--text-muted); font-size: 13px; }
.foot a { color: var(--text-secondary); text-decoration: none; }

@media (min-width: 640px) {
    .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; row-gap: 16px; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sheet { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
    .hero, .hero-empty { width: 180px; }
    h1 { font-size: 22px; }
    .actions { flex-direction: row; }
    .add-btn, .quiet-btn { width: auto; min-width: 200px; }
}

@media (min-width: 900px) {
    .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .media-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
