/* Fórum EBRP — odnož webu HorTes: tmavý rudý noir, mosaz z loga serveru, tlusté ohraničení karet. */
:root {
    --bg: #0d0610;
    --paper: #160a19;
    --paper-2: #1d0e21;
    --line: #6b2a45;
    --line-soft: #3a1b2c;
    --brass: #c8a558;
    --red: #c8102e;
    --red-2: #e0283f;
    --text: #f6dcdc;
    --muted: #a58aa0;
    --ok: #8fcf8a;
    --display: "Unbounded", "Arial Black", Impact, sans-serif;
    --body: "Manrope", "Segoe UI", system-ui, sans-serif;
}
body.fx { background: radial-gradient(120% 70% at 50% -10%, #3a0a16 0%, var(--bg) 55%) fixed; min-height: 100vh; display: flex; flex-direction: column; }
body.fx footer { margin-top: 56px; }
#app { flex: 1; padding-top: 22px; padding-bottom: 8px; min-width: 0; }
.fx-muted { color: var(--muted); }
a { color: inherit; }

/* ---------- horní lišta ---------- */
.fx-top { position: sticky; top: 0; z-index: 30; background: rgba(13, 6, 16, .88); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.fx-bar { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.fx-brand { font: 900 17px var(--display); letter-spacing: -.02em; }
.fx-brand span { color: var(--brass); }
.fx-nav { display: flex; gap: 4px; font-weight: 700; font-size: 14px; }
.fx-nav a { padding: 7px 13px; border-radius: 99px; color: var(--muted); }
.fx-nav a:hover { color: var(--text); background: rgba(246, 220, 220, .08); }
.fx-search { margin-left: auto; }
.fx-search input { width: 210px; max-width: 100%; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--line-soft); background: var(--paper); color: var(--text); font: 500 14px var(--body); }
.fx-search input:focus { outline: none; border-color: var(--brass); }
.fx-user { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.fx-user .fx-bell { position: relative; padding: 6px 10px; border: 2px solid var(--line-soft); border-radius: 99px; }
.fx-user .fx-bell.has { border-color: var(--red-2); color: #fff; background: var(--red); }
.fx-me { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .fx-search { margin-left: 0; order: 5; width: 100%; } .fx-search input { width: 100%; } .fx-user { margin-left: auto; } }

/* ---------- tlačítka, pole ---------- */
.fx-btn { display: inline-block; padding: 9px 18px; border-radius: 99px; border: 2px solid var(--line); background: transparent; color: var(--text); font: 800 14px var(--body); cursor: pointer; transition: transform .12s, background .12s; }
.fx-btn:hover { transform: translateY(-1px); background: rgba(246, 220, 220, .07); }
.fx-btn.main { background: var(--text); color: var(--bg); border-color: var(--text); }
.fx-btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.fx-btn.small { padding: 4px 12px; font-size: 12.5px; }
.fx-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.fx-btn.on { border-color: var(--brass); color: var(--brass); }
.fx-input, .fx-text, .fx-select {
    width: 100%; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line-soft); background: var(--paper);
    color: var(--text); font: 500 15px/1.5 var(--body);
}
.fx-input:focus, .fx-text:focus, .fx-select:focus { outline: none; border-color: var(--brass); }
.fx-text { resize: vertical; min-height: 130px; }
.fx-label { display: block; margin: 14px 0 6px; font: 800 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.fx-err { color: #ff8d9a; font-weight: 700; min-height: 1.4em; margin: 8px 0 0; }
.fx-ok { color: var(--ok); font-weight: 700; }

/* ---------- karty a nadpisy ---------- */
.fx-card { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; }
.fx-pad { padding: 20px 22px; }
.fx-h1 { margin: 0 0 4px; font: 900 clamp(24px, 4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; }
.fx-h2 { margin: 0 0 12px; font: 800 12px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.fx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.fx-crumbs a:hover { color: var(--text); }
.fx-crumbs i { font-style: normal; opacity: .5; }
.fx-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fx-spread { justify-content: space-between; }

/* ---------- úvod ---------- */
.fx-hero { border: 2px solid var(--line); border-radius: 22px; padding: 28px 30px; margin-bottom: 22px; background: linear-gradient(165deg, #12050a 0%, #4a0a14 38%, #9b0f1f 78%, #3a0610 100%); position: relative; overflow: hidden; }
.fx-hero .fx-h1 { font-size: clamp(30px, 6vw, 58px); }
.fx-hero p { margin: 6px 0 0; max-width: 560px; opacity: .85; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fx-chip { padding: 5px 13px; border: 2px solid rgba(246, 220, 220, .35); border-radius: 99px; font-weight: 800; font-size: 13px; background: rgba(13, 6, 16, .35); }
.fx-chip b { color: var(--brass); }

.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .fx-grid { grid-template-columns: minmax(0, 1fr); } }
.fx-cat { margin-bottom: 22px; }
.fx-cat-name { margin: 0 0 10px; font: 800 13px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.fx-board { display: grid; grid-template-columns: 46px minmax(0, 1fr) 90px 240px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 2px solid var(--line-soft); }
.fx-board:first-child { border-top: 0; }
.fx-board:hover { background: var(--paper-2); }
.fx-board .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 900 18px var(--display); color: #fff; background: linear-gradient(135deg, #5a1a9e, #a50f1c); border: 2px solid var(--line); }
.fx-board .nm { font-weight: 800; font-size: 16.5px; }
.fx-board .ds { color: var(--muted); font-size: 13.5px; }
.fx-board .ct { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.3; }
.fx-board .ct b { display: block; color: var(--text); font-size: 16px; }
.fx-board .lt { font-size: 13px; color: var(--muted); min-width: 0; }
.fx-board .lt > a { display: block; color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-board .lt a.in { font-weight: 700; color: var(--text); }
@media (max-width: 760px) { .fx-board { grid-template-columns: 40px minmax(0, 1fr); } .fx-board .ct, .fx-board .lt { display: none; } .fx-board .ic { width: 40px; height: 40px; } }
.fx-lock { color: var(--brass); font-size: 12px; margin-left: 6px; font-weight: 800; letter-spacing: .08em; }

.fx-side .fx-card { margin-bottom: 18px; }
.fx-mini { display: block; padding: 10px 0; border-top: 2px solid var(--line-soft); }
.fx-mini:first-of-type { border-top: 0; padding-top: 0; }
.fx-mini b { display: block; font-size: 14.5px; line-height: 1.3; }
.fx-mini small { color: var(--muted); font-size: 12.5px; }
.fx-mini:hover b { color: var(--brass); }

/* ---------- seznam témat ---------- */
.fx-thr { display: grid; grid-template-columns: 38px minmax(0, 1fr) 84px 84px 190px; gap: 12px; align-items: center; padding: 12px 18px; border-top: 2px solid var(--line-soft); }
.fx-thr.head { border-top: 0; font: 800 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fx-thr.head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-thr:not(.head):hover { background: var(--paper-2); }
.fx-thr .tt { font-weight: 800; font-size: 16px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.fx-thr .tt small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fx-thr .n { text-align: center; color: var(--muted); font-size: 13px; }
.fx-thr .lt { font-size: 13px; color: var(--muted); }
.fx-thr .lt b { color: var(--text); }
.fx-thr .ico { text-align: center; font-size: 17px; }
.fx-pin { color: var(--brass); }
@media (max-width: 760px) { .fx-thr { grid-template-columns: 30px minmax(0, 1fr); } .fx-thr .n, .fx-thr .lt { display: none; } .fx-thr.head { display: none; } }

.fx-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0; font-weight: 800; font-size: 14px; }
.fx-pager a, .fx-pager span { padding: 5px 12px; border: 2px solid var(--line-soft); border-radius: 99px; min-width: 38px; text-align: center; }
.fx-pager a:hover { border-color: var(--brass); }
.fx-pager .cur { background: var(--text); color: var(--bg); border-color: var(--text); }
.fx-pager .gap { border: 0; color: var(--muted); }

/* ---------- příspěvky ---------- */
.fx-post { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin-bottom: 16px; overflow: hidden; scroll-margin-top: 90px; }
.fx-post.hit { border-color: var(--brass); }
.fx-au { padding: 18px 14px; text-align: center; background: var(--paper-2); border-right: 2px solid var(--line-soft); }
.fx-au .nick { display: block; margin-top: 10px; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.fx-au .nick:hover { color: var(--brass); }
.fx-au .rk { margin: 8px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fx-au .rkn { font-size: 12.5px; font-weight: 800; color: var(--brass); }
.fx-au .st { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.fx-av { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); flex: none; color: #fff; font-family: var(--display); font-weight: 900; vertical-align: middle; }
.fx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-role { display: inline-block; padding: 1px 9px; border-radius: 99px; font: 800 10.5px var(--display); letter-spacing: .1em; text-transform: uppercase; border: 2px solid; }
.fx-role.admin { color: #ff8d9a; border-color: #e0283f; background: rgba(224, 40, 63, .14); }
.fx-role.moderator { color: var(--brass); border-color: var(--brass); background: rgba(200, 165, 88, .12); }
.fx-role.helper { color: #8fc2e8; border-color: #4f86ad; background: rgba(79, 134, 173, .13); }
.fx-pb { padding: 16px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.fx-ph { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--line-soft); margin-bottom: 12px; }
.fx-ph a:hover { color: var(--text); }
.fx-body { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.6; }
.fx-body .fx-quote { white-space: pre-wrap; margin: 8px 0; padding: 10px 14px; border-left: 4px solid var(--brass); background: rgba(200, 165, 88, .08); border-radius: 0 10px 10px 0; font-size: 14.5px; }
.fx-body .fx-quote > b { display: block; font: 800 12px var(--body); color: var(--brass); margin-bottom: 4px; }
.fx-body .fx-code { white-space: pre; overflow-x: auto; margin: 8px 0; padding: 10px 14px; background: #08030a; border: 2px solid var(--line-soft); border-radius: 10px; font: 13.5px/1.5 Consolas, "Courier New", monospace; }
.fx-body details { margin: 8px 0; border: 2px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.fx-body summary { cursor: pointer; font-weight: 800; color: var(--brass); }
.fx-body a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.fx-body ul, .fx-body ol { margin: 6px 0; padding-left: 24px; white-space: normal; }
.fx-body .fx-img { max-width: 100%; max-height: 520px; border-radius: 10px; border: 2px solid var(--line-soft); display: inline-block; vertical-align: middle; }
.fx-body .fx-center { text-align: center; }
.fx-body .fx-hh { font: 800 20px var(--body); margin: 8px 0 4px; }
.fx-body .u { text-decoration: underline; }
.fx-sig { margin-top: 14px; padding-top: 8px; border-top: 2px dashed var(--line-soft); color: var(--muted); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-edit { color: var(--muted); font-size: 12px; margin-top: 8px; }
.fx-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fx-deleted { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
    .fx-post { grid-template-columns: minmax(0, 1fr); }
    .fx-au { display: flex; align-items: center; gap: 12px; text-align: left; border-right: 0; border-bottom: 2px solid var(--line-soft); padding: 10px 14px; flex-wrap: wrap; }
    .fx-au .nick { margin-top: 0; } .fx-au .rk { flex-direction: row; margin: 0; } .fx-au .st { margin: 0; }
}

/* ---------- editor ---------- */
.fx-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.fx-tools button { min-width: 34px; padding: 5px 9px; border: 2px solid var(--line-soft); border-radius: 8px; background: var(--paper); color: var(--text); font: 800 13px var(--body); cursor: pointer; }
.fx-tools button:hover { border-color: var(--brass); }
.fx-prev { padding: 12px 16px; border: 2px dashed var(--line-soft); border-radius: 12px; margin-top: 8px; }

/* ---------- profil, hodnosti ---------- */
.fx-prof { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .fx-prof { grid-template-columns: minmax(0, 1fr); } }
.fx-prof > :first-child { align-self: start; }
.fx-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.fx-stats div { padding: 10px 12px; border: 2px solid var(--line-soft); border-radius: 12px; }
.fx-stats b { display: block; font: 900 20px var(--display); }
.fx-stats span { color: var(--muted); font-size: 12px; font-weight: 700; }
.fx-bar2 { height: 12px; border-radius: 99px; background: #08030a; border: 2px solid var(--line-soft); overflow: hidden; margin: 8px 0 4px; }
.fx-bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #7a3df0, #e0283f); }
.fx-rank { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 2px solid var(--line-soft); }
.fx-rank:first-child { border-top: 0; }
.fx-rank.mine { background: rgba(200, 165, 88, .09); }
.fx-rank b { font-size: 17px; }
.fx-rank .mn { color: var(--muted); font-weight: 700; text-align: right; }

/* ---------- ostatní ---------- */
.fx-empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.fx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.fx-item { padding: 14px 18px; border-top: 2px solid var(--line-soft); }
.fx-item:first-child { border-top: 0; }
.fx-item.new { background: rgba(200, 16, 46, .1); }
.fx-item .t { font-weight: 800; }
.fx-item .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }
.fx-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 7, .72); }
.fx-modal > div { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; }
.fx-form { max-width: 440px; margin: 26px auto; }
.fx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 10px 20px; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 800; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.fx-on { color: var(--ok); }
