/* design system — a sebr.hu buildből (tokenek, fontok, nav, hero-szirmok, footer) */
@font-face{font-family:"Bricolage Grotesque Variable";font-style:normal;font-display:swap;font-weight:200 800;src:url(assets/fonts/bricolage-latin-ext.woff2) format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque Variable";font-style:normal;font-display:swap;font-weight:200 800;src:url(assets/fonts/bricolage-latin.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(assets/fonts/inter-latin-ext.woff2) format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(assets/fonts/inter-latin.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --ink: #0e0c0c;
  --white: #fff;
  --coral: #f93457;
  --coral-light: #fa637e;
  --coral-deep: #cf2d4a;
  --paper: #f6f3f2;
  --line: rgba(255, 255, 255, 0.12);
  --line-d: rgba(14, 12, 12, 0.12);
  --success: #3ddc84;
  --danger: #ff6b6b;
  --r: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-h: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  --font-b: "Inter Variable", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* a hidden attribútum mindig nyerjen (különben pl. a .console display:grid felülírja) */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--coral-light); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-h);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* háttér: a sebr.hu hero szirom-spirálja, fixen a lap mögött */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ink) url(assets/hero-wide.svg) right center / cover no-repeat;
  pointer-events: none;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 12, 0.85) 0%, rgba(14, 12, 12, 0.35) 60%),
    linear-gradient(transparent 55%, rgba(14, 12, 12, 0.9) 100%);
}
.page-bg--dim::after { background: rgba(14, 12, 12, 0.88); }
@media (max-aspect-ratio: 1/1) {
  .page-bg { background-image: url(assets/hero-tall.svg); background-position: center top; }
  .page-bg::after { background: linear-gradient(rgba(14, 12, 12, 0.35) 0%, rgba(14, 12, 12, 0.9) 55%); }
}

/* nav — a sebr.hu fejléc egyszerűsített változata */
.nav { border-bottom: 1px solid var(--line); background: rgba(14, 12, 12, 0.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); position: sticky; top: 0; z-index: 50; }
.nav__inner { display: flex; align-items: center; gap: 20px; width: min(1180px, 100% - 32px); height: 68px; margin-inline: auto; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); transition: opacity 0.2s; }
.nav__logo:hover { opacity: 0.8; }
.nav__logo img { height: 22px; width: auto; }
.nav__tag { font-size: 0.9rem; font-weight: 600; color: var(--coral-light); padding-left: 12px; border-left: 1px solid var(--line); line-height: 22px; }
.nav__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: var(--white); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.nav__cta span { transition: transform 0.2s; }
.nav__cta:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.nav__cta:hover span { transform: translateX(3px); }

main { flex: 1; width: 100%; }

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  padding-block: clamp(40px, 8vh, 96px);
}

/* hero + űrlap: desktopon két oszlop, mobilon egymás alatt */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: calc(100svh - 68px - 2 * clamp(40px, 8vh, 96px) - 180px);
}
.stage--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
@media (max-width: 860px) {
  .stage, .stage--narrow { grid-template-columns: 1fr; min-height: 0; }
}

.eyebrow {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--coral-light);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 13ch;
  text-wrap: balance;
}
h1 .hl { color: var(--coral-light); }

.lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin: 0;
}

.stage > *, .admin-header, .widget-box, .toolbar { animation: rise 0.9s var(--ease) both; }
.stage > :nth-child(2) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 24px 50px -24px rgba(207, 45, 74, 0.5);
}
.card__num { font: 700 0.85rem var(--font-h); color: var(--coral); display: block; margin-bottom: 6px; }
.card h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 1.2rem; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(14, 12, 12, 0.65);
  margin: 1.1rem 0 0.4rem;
}

label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-d);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-b);
  transition: border-color 0.15s, background 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}

.hint {
  font-size: 0.78rem;
  color: rgba(14, 12, 12, 0.5);
  margin: 0.35rem 0 0;
}

button {
  font-family: var(--font-b);
  cursor: pointer;
}

/* = sebr.hu .mailbtn világos szekción */
.btn-primary {
  width: 100%;
  margin-top: 1.7rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary span { transition: transform 0.2s; }
.btn-primary:hover { background: var(--coral); transform: translateY(-2px); }
.btn-primary:hover span { transform: translateX(3px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.msg {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.88rem;
  display: none;
  font-weight: 500;
}

.msg.show { display: block; }
.msg.success { background: rgba(61, 220, 132, 0.12); color: #1c8a52; border: 1px solid rgba(61, 220, 132, 0.4); }
.msg.error { background: rgba(255, 107, 107, 0.12); color: var(--coral-deep); border: 1px solid rgba(255, 107, 107, 0.4); }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* footer — = sebr.hu .footer */
.footer {
  text-align: center;
  padding: 56px 24px 64px;
  border-top: 1px solid var(--line);
  background: rgba(14, 12, 12, 0.85);
}
.footer img { width: 120px; margin: 0 auto 18px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; }
.footer__links a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer p { opacity: 0.5; font-size: 0.85rem; margin: 0; }

/* Admin board */
.admin-wrap { width: min(980px, 100% - 32px); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.admin-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: none; }


.header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.pill-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.1rem;
}

.status-line {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 0.5rem;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  user-select: none;
}
.filter-toggle input { accent-color: var(--coral); width: 16px; height: 16px; }

.list { display: flex; flex-direction: column; gap: 0.85rem; }

.entry {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.2s, transform 0.2s;
}

.entry:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -24px rgba(207, 45, 74, 0.5); }
.entry.is-reviewed { opacity: 0.55; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.entry-index {
  font-family: var(--font-h);
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 2rem;
}

.entry-main { flex: 1; min-width: 220px; }

.entry-tiktok {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
}

.entry-uid {
  color: rgba(14, 12, 12, 0.6);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.entry-characters {
  color: var(--coral-deep);
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.entry-time {
  color: rgba(14, 12, 12, 0.45);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.entry-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.stars { display: flex; gap: 0.15rem; }

.star {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(14, 12, 12, 0.2);
  padding: 0.1rem;
}

.star.filled { color: var(--coral); }
.star:hover { color: var(--coral); }

.review-btn {
  background: transparent;
  border: 1px solid var(--line-d);
  color: rgba(14, 12, 12, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.review-btn:hover { border-color: var(--ink); color: var(--ink); }
.review-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 3rem 1rem;
}

/* Stream widget vezérlés */
.widget-box {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  background: rgba(14, 12, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.widget-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.widget-box-title { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; }

.widget-box-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.widget-box-hint code { color: rgba(255, 255, 255, 0.75); }

.widget-url-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 0.5rem;
}

.widget-url-row input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-b);
  font-size: 0.82rem;
}

.pill-btn-coral { background: var(--coral); border-color: var(--coral); color: var(--white); }
.pill-btn-coral:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.onair-btn {
  background: transparent;
  border: 1px solid var(--line-d);
  color: rgba(14, 12, 12, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.onair-btn:hover { border-color: var(--coral); color: var(--coral-deep); }
.onair-btn.is-active { background: var(--coral); border-color: var(--coral); color: var(--white); }

.entry.is-on-air { box-shadow: 0 0 0 3px var(--coral); opacity: 1; }

/* rejtett titkok (widget link / kulcs) — alapból pöttyözve, csak másolható */
.secret-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
}
.secret-field span { overflow: hidden; text-overflow: ellipsis; }
.secret-field.is-revealed { user-select: text; color: rgba(255, 255, 255, 0.9); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* világos kártyán */
.card .secret-field { background: var(--paper); border-color: var(--line-d); color: rgba(14, 12, 12, 0.55); }
.card .secret-field.is-revealed { color: var(--ink); }
.card .pill-btn { border-color: var(--line-d); color: var(--ink); background: transparent; }
.card .pill-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card .pill-btn-coral { background: var(--coral); border-color: var(--coral); color: var(--white); }
.card .pill-btn-coral:hover { background: var(--ink); border-color: var(--ink); }
.pill-btn-danger:hover { background: var(--coral-deep) !important; border-color: var(--coral-deep) !important; color: var(--white) !important; }

/* elfelejtett jelszó súgó a belépő kártyán */
.forgot { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(14, 12, 12, 0.65); }
.forgot summary { cursor: pointer; font-weight: 600; color: var(--coral-deep); width: fit-content; }
.forgot p { margin: 0.6rem 0; }
.forgot code { display: block; background: var(--paper); border: 1px solid var(--line-d); border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 0.8rem; white-space: normal; overflow-wrap: anywhere; user-select: all; }

/* beállítások oldal */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; margin-top: 2rem; align-items: start; }
.settings-grid .card { animation: rise 0.9s var(--ease) both; scroll-margin-top: 90px; }
.settings-grid .card:nth-child(2) { animation-delay: 0.1s; }
.card p.card__text { color: rgba(14, 12, 12, 0.65); font-size: 0.92rem; margin: -0.6rem 0 1.2rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 0.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.card .btn-primary.btn-inline { width: auto; margin-top: 1.2rem; padding: 12px 24px; font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Admin vezérlő: fő tartalom + jobb oldali Twitch sáv ===== */
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  width: min(1600px, 100% - 32px);
  margin-inline: auto;
  padding-block: 40px 64px;
  align-items: start;
  flex: 1;
}
.console__main { min-width: 0; }
.console__side {
  position: sticky;
  top: 84px;
  height: calc(100vh - 100px);
  height: calc(100svh - 100px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rise 0.9s 0.1s var(--ease) both;
}
@media (max-width: 1100px) {
  .console { grid-template-columns: 1fr; }
  .console__side { position: static; height: auto; }
  .side-chat { flex: none; height: 560px; }
}

.stats {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(14, 12, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 20px;
}
.stats__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.stats__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}
.stats__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stats__badge.is-live { background: var(--coral); color: var(--white); }
.stats__badge.is-live::before { animation: pulse 2s infinite; background: var(--white); }
.stats__channel { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.stats__channel:hover { color: var(--white); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats__grid > div { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.stats__value { display: block; font: 800 1.7rem/1.1 var(--font-h); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stats__label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.stats__title { margin-top: 14px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.stats__game { font-size: 0.82rem; color: var(--coral-light); margin-top: 2px; }
.stats__note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); margin-top: 10px; }
.stats__title:empty, .stats__game:empty, .stats__note:empty { display: none; }

.side-chat {
  flex: 1;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #18181b;
}
.side-chat iframe { display: block; width: 100%; height: 100%; border: 0; }

/* fülek */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 1.6rem 0 0.4rem; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 12, 12, 0.6); }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.tab__badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--coral); color: var(--white); font-size: 0.75rem; text-align: center; }
.tab-panel { animation: rise 0.5s var(--ease) both; }

.panel-intro { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin: 1.4rem 0 0; max-width: 70ch; }
.panel-intro a { color: var(--coral-light); }
.panel-intro code, .source-row code { color: rgba(255, 255, 255, 0.8); }

/* jelenet szerkesztő */
.scene-list { display: flex; flex-direction: column; gap: 0; }
.scene-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 1rem; }
@media (max-width: 700px) { .scene-fields { grid-template-columns: 1fr; } }
.dark-label { display: block; margin: 0; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.dark-label input, .time-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  color: var(--white) !important;
  padding: 0.65rem 0.9rem !important;
  font: inherit;
  font-size: 0.95rem !important;
}
.dark-label input:focus, .time-input:focus { outline: none; border-color: var(--coral) !important; }
.time-input { width: auto; margin: 0; padding: 0.45rem 0.8rem !important; border-radius: 999px !important; color-scheme: dark; }
.countdown-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.countdown-status { font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
.scene-actions { display: flex; align-items: center; gap: 14px; margin-top: 1rem; }
.scene-msg { font-size: 0.85rem; color: var(--success); }
.scene-msg.is-error { color: var(--coral-light); }

/* OBS linkek */
.source-list { display: flex; flex-direction: column; gap: 10px; margin-top: 1.4rem; }
.source-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.source-row {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.3rem;
  background: rgba(14, 12, 12, 0.6);
}
.source-row__main { min-width: 0; flex: 1 1 280px; }
.source-row__name { font: 700 1.05rem var(--font-h); }
.source-row__meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.is-wide .nav__inner { width: min(1600px, 100% - 32px); }

/* ===== overlay beállítások: kapcsoló, választó, csúszka ===== */
.settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px 24px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.scene-common .settings { grid-template-columns: 1fr; border-top: 0; margin-top: 0; padding-top: 0; }
.scene-common__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .scene-common__grid { grid-template-columns: 1fr; } }
.settings__status { grid-column: 1 / -1; min-height: 1.2em; }

.setting { display: flex; flex-direction: column; gap: 6px; }
.setting--inline { flex-direction: row; align-items: center; gap: 12px; }
.setting__label { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

.switch { position: relative; flex: none; display: inline-block; width: 42px; height: 24px; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform 0.25s var(--ease); }
.switch input:checked + .switch__track { background: var(--coral); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--coral-light); outline-offset: 2px; }

.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.segment button { border: 0; background: transparent; color: rgba(255, 255, 255, 0.65); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.segment button:hover { color: var(--white); }
.segment button[aria-checked="true"] { background: var(--white); color: var(--ink); }

.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--coral); min-width: 0; }
.range output { min-width: 3.5em; text-align: right; font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }

.socials-editor { display: flex; flex-direction: column; gap: 8px; }
.social-row { display: flex; align-items: center; gap: 10px; }
.social-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}
.social-row input[type="text"]:focus { outline: none; border-color: var(--coral); background: rgba(255, 255, 255, 0.08); }
.social-row:has(input[type="checkbox"]:not(:checked)) input[type="text"] { opacity: 0.45; }
.icon-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: var(--white); }

/* szöveg és lista beállítás (pl. alsó sáv címe, forgó sorai) */
.setting--wide { grid-column: 1 / -1; }
.setting__text {
  width: 100%;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  color: var(--white) !important;
  padding: 0.6rem 0.9rem !important;
  font-size: 0.95rem !important;
}
.setting__text:focus { outline: none; border-color: var(--coral) !important; }
.setting__hint { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }

/* jelentkezési oldal: zárva / megtelt, chat parancs tipp */
.closed-note { margin: -0.4rem 0 1.2rem; padding: 0.8rem 1rem; border-radius: 14px; background: rgba(249, 52, 87, 0.1); border: 1px solid rgba(249, 52, 87, 0.3); color: var(--coral-deep); font-weight: 600; font-size: 0.92rem; }
form :disabled { opacity: 0.55; cursor: not-allowed; }
.chat-hint { margin: 1.1rem 0 0; font-size: 0.85rem; color: rgba(14, 12, 12, 0.6); }
.chat-hint code { background: var(--paper); border: 1px solid var(--line-d); border-radius: 8px; padding: 1px 6px; font-size: 0.82rem; color: var(--ink); }

/* ===== jelentkezés fogadása, moderálás ===== */
.state-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font: 700 0.72rem var(--font-b); }
.state-badge.is-open { background: rgba(61, 220, 132, 0.15); color: var(--success); }
.state-badge.is-closed { background: rgba(249, 52, 87, 0.18); color: var(--coral-light); }
.state-badge.is-full { background: rgba(255, 209, 102, 0.16); color: #ffd166; }
.widget-box-hint code { color: rgba(255, 255, 255, 0.8); }
.blocked-words { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.blocked-words summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); width: fit-content; }
.blocked-words textarea {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  padding: 0.7rem 0.9rem;
  font: 0.9rem/1.5 var(--font-b);
  resize: vertical;
}
.blocked-words textarea:focus { outline: none; border-color: var(--coral); }
.source-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #9146ff; color: var(--white); font: 700 0.68rem var(--font-b); }
.icon-btn--light { border-color: var(--line-d); color: rgba(14, 12, 12, 0.45); }
.icon-btn--light:hover { color: var(--white); }

/* ===== OBS kártya az oldalsávban ===== */
.stats__badge.is-ok { background: rgba(61, 220, 132, 0.15); color: var(--success); }
.obs-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-scenes:empty { display: none; }
.obs-scene {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.obs-scene:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.obs-scene[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--white); }
.obs-scene.is-pending { opacity: 0.6; }
.obs-card .stats__note { margin-top: 10px; }
.obs-card .stats__head { margin-bottom: 12px; }

/* jelenet chipek (alsó sáv auto-elrejtés), automatikus váltás */
.scene-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-chip { border: 1px solid var(--line); background: transparent; color: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
.scene-chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.scene-chip[aria-pressed="true"]::before { content: "✓ "; }
.autoswitch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.autoswitch-select, .setting__number {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  padding: 0.45rem 0.9rem;
  font: 600 0.85rem var(--font-b);
  color-scheme: dark;
}
.setting__number { width: 140px !important; border-radius: 14px !important; }

/* ===== Interakció fül ===== */
.goal-now { grid-column: 1 / -1; font: 700 1.1rem var(--font-h); }
.poll-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.poll-form__opts { display: flex; flex-direction: column; gap: 8px; margin-top: 0.8rem; }
.opt-num { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--white); color: var(--ink); font: 800 0.85rem var(--font-h); }
.poll-live__q { font: 800 1.25rem/1.2 var(--font-h); margin: 1rem 0 0.7rem; }
.poll-live__opts { display: flex; flex-direction: column; gap: 6px; }
.poll-live__opt { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 0.55rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05); overflow: hidden; font-size: 0.9rem; font-weight: 600; }
.poll-live__fill { position: absolute; inset: 0 auto 0 0; background: rgba(249, 52, 87, 0.28); transition: width 0.5s var(--ease); }
.poll-live__opt.is-leader .poll-live__fill { background: rgba(249, 52, 87, 0.5); }
.poll-live__text, .poll-live__count { position: relative; }
.poll-live__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); }
.alert-log { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.alert-log__row { display: flex; gap: 10px; align-items: baseline; font-size: 0.85rem; }
.alert-log__time { color: rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums; }
.alert-log__kind { color: var(--coral-light); font-weight: 600; min-width: 6.5em; }
.alert-log__desc { color: rgba(255, 255, 255, 0.6); }
#alertTestButtons { align-items: center; margin-top: 1rem; }

/* beállítások: Twitch alkalmazás lépései */
.setup-steps { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; color: rgba(14, 12, 12, 0.75); display: flex; flex-direction: column; gap: 0.45rem; }
.setup-steps a { color: var(--coral-deep); font-weight: 600; }
.setup-steps code { background: var(--paper); border: 1px solid var(--line-d); border-radius: 8px; padding: 1px 6px; font-size: 0.8rem; overflow-wrap: anywhere; }
.setup-steps .pill-btn { padding: 0.25rem 0.7rem; font-size: 0.75rem; vertical-align: middle; }
