:root {
    --bg: #090b0f;
    --bg-elev: #11141b;
    --card: rgba(20, 24, 32, 0.86);
    --card-solid: #141820;
    --card-2: #1a1f29;
    --card-3: #222835;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f1f4f9;
    --muted: #8b95a7;
    --accent: #d91b22;
    --accent-hover: #f02830;
    --accent-2: #d91b22;
    --ok: #34c77b;
    --warn: #f0b35a;
    --err: #f05252;
    --radius: 16px;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14.5px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(820px 460px at 14% -6%, rgba(217, 27, 34, 0.11) 0%, transparent 60%),
        radial-gradient(760px 460px at 88% -8%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}

button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; color: #b7c1d1; }

/* ---------- Custom scrollbars ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Header ---------- */
.top-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 11, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.top {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    max-width: 1280px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand img { border-radius: 10px; box-shadow: 0 4px 14px rgba(217, 27, 34, 0.28); }
.brand h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.35px; line-height: 1.2; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

.top-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top-link, .top-link:visited {
    color: #c5cedd; text-decoration: none; font-size: 13.5px; font-weight: 600;
    padding: 6px 12px; border-radius: 9px; transition: background .15s, color .15s;
}
.top-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.top-link.subtle { color: var(--muted); border: 1px solid var(--line); }
.top-link.subtle:hover { color: var(--text); border-color: var(--line-strong); }

.usage {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-2); border: 1px solid var(--line-strong);
    border-radius: 999px; padding: 6px 14px 6px 8px;
}
.tier { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #2a313e; letter-spacing: 0.2px; }
.tier.free { background: #252b36; color: #c7d0de; }
.tier.tier1 { background: rgba(255, 255, 255, 0.1); color: #e2e8f2; border: 1px solid rgba(255, 255, 255, 0.18); }
.tier.tier2 { background: rgba(217, 27, 34, 0.2); color: #ff9a9d; border: 1px solid rgba(217, 27, 34, 0.35); }
.usage-meter { width: 120px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.usage-meter div { height: 100%; width: 0; background: linear-gradient(90deg, #b8141a, #f02830); transition: width .35s ease; }
#usageText { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 26px;
    max-width: 1280px; margin: 0 auto; padding: 24px 24px 64px;
}
.panel-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.preview-sticky {
    position: sticky; top: 88px;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 20px;
}

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .preview-col { order: -1; }
    .preview-sticky { position: static; }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-sub { font-size: 12.5px; color: var(--muted); }
.card h2, .preview-head h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: -0.2px; }
.preview-head h2 { margin-bottom: 14px; }
.step {
    display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #a61116);
    box-shadow: 0 3px 10px rgba(217, 27, 34, 0.35);
    font-size: 12.5px; font-weight: 800; color: #fff;
}
.hint { color: var(--muted); font-size: 13px; margin: 8px 0; }
.card.disabled { opacity: .5; pointer-events: none; }

.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }
input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="datetime-local"] {
    background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="text"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="datetime-local"]:focus {
    border-color: var(--accent-2);
    background: #1e2531;
    box-shadow: 0 0 0 3px rgba(217, 27, 34, 0.16);
}

.btn, .btn:visited {
    background: var(--card-2); border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 10px 16px; font-weight: 600; font-size: 13.5px; color: var(--text);
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--card-3); border-color: rgba(255,255,255,0.22); }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--accent), #b8141a);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 4px 16px rgba(217, 27, 34, 0.28);
}
.btn.primary:hover { background: linear-gradient(135deg, var(--accent-hover), #c9181e); box-shadow: 0 6px 20px rgba(217, 27, 34, 0.38); }
.btn.primary-soft { background: rgba(217, 27, 34, 0.14); border-color: rgba(217, 27, 34, 0.38); color: #ffb3b6; }
.btn.primary-soft:hover { background: rgba(217, 27, 34, 0.24); border-color: rgba(217, 27, 34, 0.55); }
.btn.ghost { background: rgba(255,255,255,0.03); }
.btn.wide { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.link { background: none; border: 0; padding: 0; color: #ff8e92; font-weight: 600; }
.link:hover { text-decoration: underline; }

.msg { font-size: 13px; margin: 10px 0 0; padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,0.04); }
.msg.ok { color: var(--ok); background: rgba(52, 199, 123, 0.1); border: 1px solid rgba(52, 199, 123, 0.25); }
.msg.err { color: #ff8080; background: rgba(240, 82, 82, 0.1); border: 1px solid rgba(240, 82, 82, 0.28); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.plan {
    display: flex; flex-direction: column;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 16px; font-size: 13px;
    transition: border-color .15s, transform .15s;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.plan.featured { border-color: rgba(217, 27, 34, 0.45); background: linear-gradient(180deg, rgba(217, 27, 34, 0.08), var(--card-2)); }
.plan.current { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.plan-head b { font-size: 15px; }
.plan-head em { font-style: normal; font-size: 11px; font-weight: 700; color: #ffb3b6; background: rgba(217, 27, 34, 0.2); border-radius: 999px; padding: 2px 8px; }
.plan-limit { margin: 10px 0 8px; font-weight: 700; color: #fff; }
.plan ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); flex: 1; }
.plan li { margin: 3px 0; }
.plan-cta { color: var(--text); text-align: center; text-decoration: none; padding: 8px; font-size: 13px; }
.plan-cta.current { color: #ff9a9d; font-weight: 700; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
    background: var(--card-2); border: 1px solid var(--line); border-radius: 999px;
    padding: 4px 11px; font-size: 12px; color: #c7d0de; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--accent-2); background: var(--card-3); color: #fff; }

/* ---------- Doplnky ---------- */
.install-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 2px; }

.install-list li { background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.install-list b { display: block; font-size: 13px; margin-bottom: 8px; }
.install-list .row input { font-size: 12px; font-family: ui-monospace, Consolas, monospace; padding: 8px 10px; }
.install-list .btn { padding: 7px 14px; }

/* ---------- Ovládanie vzhľadu ---------- */
.group { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.group h3 { margin: 0 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }

.sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
@media (max-width: 560px) { .sliders { grid-template-columns: 1fr; } }
.slider { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.slider .lbl { display: flex; justify-content: space-between; }
.slider output { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-2) var(--p, 50%), #2c3340 var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0,0,0,.6); transition: transform .1s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #2c3340; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent-2); }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; }

.pos-picker {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 6px;
    width: 118px; aspect-ratio: 2 / 3; padding: 8px; margin-bottom: 14px;
    background: linear-gradient(160deg, #273041, #141820); border: 1px solid var(--line-strong); border-radius: 11px;
}
.pos-picker button { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.18); border-radius: 6px; transition: background .15s, border-color .15s; }
.pos-picker button[data-pos^="top"] { align-self: start; height: 26px; }
.pos-picker button[data-pos^="bottom"] { align-self: end; height: 26px; }
.pos-picker button:hover { background: rgba(255,255,255,.16); }
.pos-picker button.active { background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 2px 8px rgba(217, 27, 34, 0.45); }

.toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 11px 0; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle span { width: 38px; height: 22px; border-radius: 11px; background: #2b323f; position: relative; transition: background .15s; flex: none; border: 1px solid rgba(255,255,255,0.06); }
.toggle span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.toggle input:checked + span { background: var(--accent-2); }
.toggle input:checked + span::after { transform: translateX(16px); }

.colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.color { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; cursor: pointer; transition: border-color .15s; }
.color:hover { border-color: var(--line-strong); }
.color span { flex: 1; }
.color input { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.25); border-radius: 7px; }
.color input::-moz-color-swatch { border: 1px solid rgba(255,255,255,.25); border-radius: 7px; }

.segmented { display: flex; align-items: center; gap: 5px; font-size: 13px; flex-wrap: wrap; }
.segmented button { background: var(--card-2); border: 1px solid var(--line); padding: 6px 13px; border-radius: 8px; transition: background .15s, border-color .15s; }
.segmented button:hover { border-color: var(--line-strong); background: var(--card-3); }
.segmented button.active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; font-weight: 600; }

/* ---------- Náhľad ---------- */
.preview-head { display: flex; align-items: center; justify-content: space-between; }
.dirty { font-size: 11.5px; font-weight: 600; color: var(--warn); background: rgba(240, 179, 90, 0.14); border: 1px solid rgba(240, 179, 90, 0.3); padding: 2px 8px; border-radius: 999px; }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.posters figure { margin: 0; }
.poster {
    position: relative; aspect-ratio: 2 / 3; border-radius: 11px; overflow: hidden;
    background: linear-gradient(160deg, #3a4452, #1a1e25);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.poster .svg, .poster svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
figcaption span { width: 42px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

.quick-ratings { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Navigácia & Landing ---------- */
.nav-tabs {
    display: inline-flex; padding: 3px; border-radius: 10px;
    background: var(--card-2); border: 1px solid var(--line);
}
.nav-tab {
    background: none; border: 0; padding: 5px 13px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active { background: var(--accent-2); color: #fff; }

.landing {
    max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px;
    display: flex; flex-direction: column; gap: 28px;
}
.hero {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 28px; align-items: center;
}
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
.hero-pill {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
    color: #ffb3b6; background: rgba(217, 27, 34, 0.16); border: 1px solid rgba(217, 27, 34, 0.35);
    padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.hero h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.6px; }
.hero-lead { color: #b7c1d1; font-size: 15.5px; margin: 0 0 20px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn.lg { padding: 12px 20px; font-size: 14.5px; text-decoration: none; display: inline-flex; align-items: center; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13.5px; }

.showcase-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow);
}
.showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.showcase-title { font-size: 13px; font-weight: 700; color: #c7d0de; }
.compare-wrap {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); background: #090b0f; user-select: none;
}
.compare-img { display: block; width: 100%; height: auto; pointer-events: none; }
.compare-img.over {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: inset(0 calc(100% - var(--pos, 100%)) 0 0);
}
.compare-divider {
    position: absolute; top: 0; bottom: 0; left: var(--pos, 100%); width: 2px;
    background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none; transform: translateX(-1px);
}
.compare-divider span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: #141820; border: 2px solid #fff; color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.65);
}
.compare-wrap input[type="range"] {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.showcase-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow);
}
.how-card h3 { margin: 10px 0 6px; font-size: 15.5px; }
.how-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Taby v editore ---------- */
.editor-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 11px;
    padding: 4px; margin: 4px 0 14px;
}
.editor-tab {
    background: none; border: 0; padding: 8px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s;
}
.editor-tab:hover { color: var(--text); }
.editor-tab.active { background: var(--accent-2); color: #fff; }
.group.no-top { border-top: 0; padding-top: 0; margin-top: 0; }

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100;
    background: #1f2531; border: 1px solid var(--line-strong); color: #fff;
    padding: 10px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 500;
    box-shadow: 0 12px 32px rgba(0,0,0,.6);
}

/* ---------- Predvoľby ---------- */
[hidden] { display: none !important; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(114px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.preset {
    background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 8px;
    display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s, background .15s;
}
.preset:hover { border-color: var(--line-strong); background: var(--card-3); transform: translateY(-1px); }
.preset.active { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; background: rgba(217, 27, 34, 0.1); }
.preset .mini { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #3a4452, #1a1e25); }
.preset .mini > .svg, .preset .mini > .svg > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preset .name { font-size: 12px; font-weight: 600; text-align: center; }
.link.small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.field { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.field-lbl { width: 92px; flex: none; font-size: 13px; color: var(--muted); }

.pos-row { display: flex; gap: 22px; align-items: center; }
.pos-row .pos-picker { margin-bottom: 0; }
.pos-row .sliders { flex: 1; }
.sliders.one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .pos-row { flex-direction: column; align-items: stretch; } .field-lbl { width: 100%; } }

.colors.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.colors.three:has(> [hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .colors, .colors.three { grid-template-columns: 1fr !important; } }

/* ---------- TMDB kľúč ---------- */
.tmdb-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; }
.tmdb-box a { color: #ff8e92; }
.tmdb-box .row { margin-top: 6px; }

/* ---------- Pätička ---------- */
.legal { max-width: 1280px; margin: 0 auto; padding: 14px 24px 44px; color: var(--muted); font-size: 12px; line-height: 1.65; border-top: 1px solid var(--line); }
.legal p { margin: 10px 0; max-width: 920px; }
.legal b { color: #c1c8d4; }

/* ---------- Moje predplatné (krok 1) ---------- */
.my-plan { margin-top: 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 13px; }
.my-plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); gap: 8px; }
.plan-badges { display: flex; align-items: center; gap: 6px; }
.status-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(240, 82, 82, 0.16); color: #ff8e8e; border: 1px solid rgba(240, 82, 82, 0.35); }
.status-pill.warn { background: rgba(240, 179, 90, 0.16); color: var(--warn); border-color: rgba(240, 179, 90, 0.38); }
.plan-notice { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; background: rgba(240, 179, 90, 0.12); color: #f6ca82; border: 1px solid rgba(240, 179, 90, 0.3); }
.plan-notice.err { background: rgba(240, 82, 82, 0.12); color: #ff9a9a; border-color: rgba(240, 82, 82, 0.3); }
.usage-meter.wide { width: 100%; }
.my-plan-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); }
.my-plan-foot a { color: #ff8e92; text-decoration: none; }
.plan-actions, .head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.preview-head h2 { margin-bottom: 0 !important; }
.preview-head-right { display: flex; align-items: center; gap: 8px; }
.segmented.compact button { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.poster-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.poster-grid .grid-item { display: flex; flex-direction: column; gap: 4px; }
.poster-grid .grid-item .poster { border-radius: 8px; }
.poster-grid .grid-cap { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pricing { scroll-margin-top: 88px; }
