/* DoLater web — colors from the app theme (dolater-spike ui/theme/Theme.kt). */
:root {
    --brand: #E8590C; --bg: #FFFBF8; --surface: #FFFFFF; --soft: #F6F0EC; --text: #1F1A17;
    --muted: #6B625C; --line: #EAE1DB; --danger: #C62828; --radius: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root { --brand: #FF8A4C; --bg: #151210; --surface: #1F1A17; --soft: #2A2420; --text: #EFE7E2; --muted: #B3A9A2; --line: #3A322D; --danger: #FF6B6B; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px;
       position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.bar nav { display: flex; gap: 6px; }
.bar nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.bar nav a.active, .bar nav a:hover { background: var(--soft); color: var(--text); }

.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
.hero { max-width: 560px; margin: 12vh auto 0; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 28px; }
.g_id_signin { display: inline-block; }

.notice { background: var(--soft); border-radius: 12px; padding: 12px 16px; }
.notice.error { color: var(--danger); }
.muted, .empty { color: var(--muted); }
.empty { text-align: center; padding: 60px 0; }

.search input { width: 100%; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
                background: var(--surface); color: var(--text); outline-color: var(--brand); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 18px; scrollbar-width: none; }
.tab { --accent: var(--brand); flex: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 7px 14px; border-radius: 999px;
       background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.tab b { color: var(--muted); font-weight: 600; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.active b { color: rgba(255,255,255,.85); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        display: flex; flex-direction: column; content-visibility: auto; contain-intrinsic-size: 320px; }
.thumb { --accent: var(--brand); position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10;
         background: color-mix(in srgb, var(--accent) 16%, var(--soft)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:not(:has(img)) { aspect-ratio: 16 / 7; }
.placeholder { font-size: 2.6rem; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .78rem;
            padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.title { font-weight: 650; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title:hover { color: var(--brand); }
.meta, .note { margin: 0; font-size: .86rem; color: var(--muted); }
.note { font-style: italic; }
.source::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: 6px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .8rem; }
.chip { --accent: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.chip.fav { color: var(--brand); }
.tags time { margin-left: auto; color: var(--muted); }

.more { text-align: center; margin-top: 28px; }
.button { display: inline-block; font: inherit; font-weight: 650; border: 0; cursor: pointer; text-decoration: none;
          padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; }
.button.ghost { background: var(--soft); color: var(--text); }
.button.danger { background: var(--danger); }
.panel { max-width: 640px; margin: 0 auto 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel h2 { margin: 0 0 6px; font-size: 1.15rem; }
.panel.danger h2 { color: var(--danger); }
.check { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
