/* StreamRadar – build lépés nélküli, kézzel írt stíluslap */
:root {
    --bg: #0d0f14;
    --bg-2: #141821;
    --bg-3: #1c2130;
    --line: #262c3d;
    --text: #e8eaf0;
    --muted: #8a92a6;
    --accent: #f5c518;
    --radius: 14px;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 15px/1.55 var(--body);
    background-image: radial-gradient(1200px 500px at 80% -200px, #2a1d4d55, transparent),
                      radial-gradient(900px 400px at -10% -100px, #4d1d2655, transparent);
    background-repeat: no-repeat;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code { background: var(--bg-3); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.main { padding: 20px 16px 64px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; }
.inline { display: inline; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
    background: #0d0f14cc; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font: 800 21px/1 var(--display); text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.brand__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 4px #f5c51833, 0 0 18px #f5c518aa; }
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a, .linkbtn { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px;
    font: 500 14px var(--body); background: none; border: 0; cursor: pointer; }
.topnav a:hover, .linkbtn:hover { color: var(--text); background: var(--bg-3); }
.topnav a.is-active { color: var(--text); background: var(--bg-3); }

/* Hero */
.hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; }
.hero h1 { font: 800 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; white-space: nowrap; }
.hero__sub { color: var(--muted); margin: 0; font-size: 14px; flex: 1 1 320px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 22%, var(--bg-2)), var(--bg-2) 70%);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text);
    transition: border-color .15s, transform .15s; }
.stat:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--pc) 60%, var(--line)); }
.stat.is-on { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc) inset; }
.stat__num { font: 800 32px/1 var(--display); }
.stat__label { font-weight: 600; display: flex; flex-direction: column; }
.stat__label small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Filters */
.filters { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; margin-bottom: 24px; display: grid; gap: 12px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --pc: #888; border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
    padding: 7px 14px; border-radius: 999px; cursor: pointer; font: 600 13px var(--body); }
.chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--pc); margin-right: 8px; vertical-align: 1px; }
.chip.is-on { background: var(--pc); border-color: var(--pc); color: #fff; }
.chip.is-on::before { background: #fff; }
.input { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
    padding: 9px 12px; font: 14px var(--body); min-width: 0; }
.input:focus { outline: 2px solid #f5c51866; border-color: transparent; }
.input--grow { flex: 1 1 220px; }
.input--sm { padding: 6px 8px; width: 110px; }
select.input { cursor: pointer; }
.btn { background: var(--accent); color: #111; border: 0; border-radius: 10px; padding: 9px 16px;
    font: 600 14px var(--body); cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.btn--sm { padding: 6px 10px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

/* Results */
.results { transition: opacity .15s; }
.results.is-loading { opacity: .45; }
.count { color: var(--muted); margin: 0 0 6px; font-size: 13px; }
.day { font: 700 20px var(--display); margin: 26px 0 14px; display: flex; align-items: center; gap: 10px;
    text-transform: capitalize; }
.day span { font: 600 12px var(--body); color: var(--muted); background: var(--bg-3);
    border-radius: 999px; padding: 2px 9px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.card { text-decoration: none; display: flex; flex-direction: column; background: var(--bg-2);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: #3a4259; box-shadow: 0 14px 30px #0008; }
.card__poster { position: relative; aspect-ratio: 2/3; background: var(--bg-3); }
.card__poster img { width: 100%; height: 100%; object-fit: cover; }
.card__noposter { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center;
    font: 700 18px var(--display); color: var(--muted); aspect-ratio: 2/3; background: var(--bg-3); }
.card__type { position: absolute; top: 8px; left: 8px; background: #000b; padding: 3px 8px;
    border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.card__rating { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #111;
    padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.card__rating small { font-size: 10px; font-weight: 800; }
.card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font: 700 16px/1.25 var(--display); margin: 0; }
.card__meta { color: var(--muted); font-size: 12px; }
.card__date { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.card__providers { display: flex; flex-wrap: wrap; gap: 4px; }
.card__overview { color: #b8bfcf; font-size: 13px; line-height: 1.45; margin: 2px 0 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pbadge { --pc: #888; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    padding: 2px 8px 2px 2px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 30%, var(--bg-3));
    border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent); white-space: nowrap; }
.pbadge img { width: 18px; height: 18px; border-radius: 50%; }
.pbadge:not(:has(img)) { padding-left: 8px; }
.pbadge.is-muted { filter: grayscale(1); opacity: .6; }

.empty { text-align: center; padding: 60px 16px; background: var(--bg-2); border: 1px dashed var(--line);
    border-radius: var(--radius); }
.empty h3 { font: 700 22px var(--display); margin: 0 0 8px; }
.empty p { color: var(--muted); max-width: 480px; margin: 0 auto 14px; }
.empty .btn { display: inline-block; text-decoration: none; color: #111; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 32px 0 0; }
.pager__btn { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
    padding: 9px 16px; cursor: pointer; font: 600 14px var(--body); }
.pager__btn:disabled { opacity: .35; cursor: default; }
.pager__info { color: var(--muted); font-size: 14px; }

/* Detail */
.detail { position: relative; }
.detail__backdrop { position: absolute; inset: -28px -16px auto; height: 460px; z-index: -1;
    background-size: cover; background-position: center 20%; opacity: .28;
    mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; font-weight: 500; }
.back:hover { color: var(--text); }
.detail__head { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.detail__poster img, .detail__poster .card__noposter { border-radius: var(--radius); box-shadow: 0 20px 50px #000a; }
.detail__kicker { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.detail h1 { font: 800 clamp(30px, 4.5vw, 50px)/1.05 var(--display); letter-spacing: -.03em; margin: 8px 0 4px; }
.detail__orig { color: var(--muted); font-size: 16px; }
.detail__tagline { font-style: italic; color: #c9cfdc; margin: 10px 0 0; }
.detail__overview { font-size: 16px; line-height: 1.65; max-width: 760px; }
.tag { border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.ratings { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.rating { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px;
    text-decoration: none; font-weight: 700; display: inline-flex; align-items: baseline; gap: 6px; }
.rating b { font-size: 12px; color: var(--muted); }
.rating small { font-weight: 400; color: var(--muted); font-size: 12px; }
.rating--imdb { background: var(--accent); color: #111; border-color: var(--accent); }
.rating--imdb b, .rating--imdb small { color: #333; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; margin: 0 0 18px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; }
.h2 { font: 700 22px var(--display); margin: 34px 0 14px; }
.where { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.where li { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 12px; }
.where .pbadge { font-size: 13px; }
.where li.is-removed { opacity: .6; }
.block { margin-top: 10px; }
.trailer { position: relative; aspect-ratio: 16/9; max-width: 860px; border-radius: var(--radius); overflow: hidden; background: #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__cover { position: absolute; inset: 0; border: 0; cursor: pointer; background-size: cover; background-position: center; }
.trailer__play { display: grid; place-items: center; width: 76px; height: 76px; margin: auto; border-radius: 50%;
    background: #000a; color: #fff; font-size: 30px; border: 2px solid #fff8; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.cast__item { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cast__item img, .cast__noimg { aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; background: var(--bg-3);
    margin-bottom: 6px; width: 100%; }
.cast__noimg { display: grid; place-items: center; font: 800 32px var(--display); color: var(--muted); }
.cast__item small { color: var(--muted); }
.sources { margin-top: 36px; }

/* Forms, admin */
.login { max-width: 380px; margin: 40px auto; }
.login h1 { font: 800 32px var(--display); }
.form { display: grid; gap: 14px; }
.form label:not(.check) { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.error { color: #ff6b6b; font-size: 13px; }
.alert { background: #1d3b2a; border: 1px solid #2f6b47; padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.alert--warn { background: #3b2a1d; border-color: #6b4a2f; }
.admin h1 { font: 800 34px var(--display); margin: 0 0 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; }
.kpi span { font: 800 26px var(--display); }
.kpi small { color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-hidden td { opacity: .5; }
.table td .small + .small::before { content: ' · '; }
.status { font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg-3); }
.status--success { color: #5ee28f; }
.status--failed { color: #ff6b6b; }
.status--running { color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
.footer__inner { display: grid; gap: 8px; }
.attrib { font-size: 12px; }

@media (max-width: 760px) {
    .detail__head { grid-template-columns: 1fr; gap: 20px; }
    .detail__poster { max-width: 220px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .card__overview { display: none; }
    .filters__row .input { flex: 1 1 45%; }
}
