:root{
  --bg:#0b0b0d;
  --panel:#121316;
  --panel2:#0f1012;
  --text:#e6edf3;
  --muted:#9fb0c0;
  --accent:#ff6a2a;
  --accent2:#ff2d55;
  --danger:#ff6b6b;
  --ok:#2ee59d;
  --border:rgba(255,255,255,.08);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max:1015px;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:
      radial-gradient(1100px 520px at 50% -120px, rgba(255,106,42,.10), transparent 60%),
      radial-gradient(900px 420px at 92% 10%, rgba(255,45,85,.06), transparent 55%),
      /* etwas heller nach unten, damit der Footer nicht "absäuft" */
      linear-gradient(180deg, #0b0b0d 0%, #0a0a0c 55%, #09090b 100%);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
body{position:relative; min-height:100vh;}
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none;
  background:
    /* Vignette entschärft: unten nicht so stark abdunkeln */
    radial-gradient(1200px 900px at 50% 18%, rgba(0,0,0,.0), rgba(0,0,0,.42) 72%),
    linear-gradient(90deg, rgba(255,106,42,.05), rgba(0,0,0,0) 35%, rgba(255,45,85,.04));
  mix-blend-mode:normal;
}
.container{max-width:var(--max); margin:0 auto; padding:18px}
.header-slot{
  position:relative;
  height:170px;
  max-width:var(--max);
  margin:18px auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  overflow:hidden;
  background:transparent;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.header-slot::before{
  content:"";
  position:absolute;
  inset:0;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  height:100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(900px 240px at 35% 0%, rgba(255,106,42,.22), transparent 62%),
    radial-gradient(900px 240px at 70% 0%, rgba(255,45,85,.18), transparent 60%),
    radial-gradient(700px 200px at 50% 100%, rgba(0,0,0,.35), transparent 70%),
    rgba(18,19,22,.72);
  z-index:0;
  pointer-events:none;
}
.header-slot img{position:relative; z-index:1; width:1015px; height:170px; object-fit:contain; display:block}
.topbar{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  letter-spacing:.4px;
}
.badge{
  font-size:12px;
  padding:3px 9px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
}
.nav{
  display:flex; gap:10px; flex-wrap:wrap;
}
.nav a{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.nav a:hover{
  color:var(--text);
  border-color:var(--border);
  background:rgba(255,255,255,.03);
}
.nav a.active{
  color:var(--text);
  border-color:rgba(255,106,42,.55);
  background:rgba(255,106,42,.06);
  box-shadow:0 0 0 1px rgba(255,106,42,.16) inset;
}
.card{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card .in{padding:18px}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} }
.h1{font-size:28px; margin:0 0 6px; line-height:1.15}
.p{color:var(--muted); margin:0 0 14px; line-height:1.55}
.kpis{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.kpis .k{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn.primary{
  border-color:rgba(255,106,42,.38);
  background:linear-gradient(180deg, rgba(255,106,42,.20), rgba(255,106,42,.08));
  box-shadow: 0 8px 18px rgba(255,106,42,.10);
}
.btn.primary:hover{box-shadow: 0 10px 24px rgba(255,106,42,.14)}
.btn.purple{
  border-color:rgba(255,45,85,.35);
  background:linear-gradient(180deg, rgba(255,45,85,.18), rgba(255,45,85,.08));
  box-shadow: 0 8px 18px rgba(255,45,85,.10);
}
.btn.purple:hover{box-shadow: 0 10px 24px rgba(255,45,85,.14)}
.row{display:flex; gap:10px; flex-wrap:wrap}
.form{
  display:grid; gap:10px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(255,106,42,.55)}
.small{font-size:13px; color:var(--muted)}
.hr{height:1px; background:var(--border); margin:14px 0}
.footer{
  color:var(--muted);
  font-size:12px;
  padding:18px;
  text-align:center;
  opacity:.9;
}
.notice{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}
.notice.ok{border-color:rgba(46,229,157,.25); background:rgba(46,229,157,.06)}
.notice.bad{border-color:rgba(255,107,107,.25); background:rgba(255,107,107,.06)}

/* --- SubMain warm accent bar --- */
.topbar{
  position:sticky;
  top:0;
  backdrop-filter:saturate(140%) blur(10px);
  z-index:10;
}
.topbar::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-12px;
  height:64px;
  pointer-events:none;
  background: linear-gradient(90deg,
    rgba(255,106,42,.18),
    rgba(255,45,85,.14),
    rgba(255,180,90,.10));
  filter: blur(0px);
  opacity:.9;
  border-radius: 0 0 18px 18px;
}
.topbar > *{position:relative}

/* active nav (set class="active") */
.nav a.active{
  color:var(--text);
  border-color:rgba(255,106,42,.30);
  background:linear-gradient(180deg, rgba(255,106,42,.16), rgba(255,45,85,.06));
}
.nav a.active:hover{opacity:1}

/* Header UI overlay (login box inside header graphic) */
.header-slot{position:relative; overflow:hidden;}
.header-slot img{width:100%; height:170px; object-fit:cover; display:block; border-radius:20px;}
.header-ui{position:absolute; inset:0; z-index:2; pointer-events:none;}
/* Header auth sits inside the right "box" area of the header PNG */
.header-auth{
  pointer-events:auto;
  position:absolute;
  /* slightly more to the right to center within the header's right frame */
  left:82%;
  top:50%;
  transform:translate(-50%,-50%);
  width:280px;
  max-width:280px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.header-auth--plain{padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none;}

/* 2-row layout: (user+pass+go) then (register+twitch) */
.header-auth .auth-form,
.header-auth .auth-logged{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:center;
}

.header-auth .auth-row1,
.header-auth .auth-row2{
  display:flex;
  gap:10px;
  align-items:center;
}

.header-auth .auth-row1 .auth-input{
  flex:1 1 0;
  min-width:0;
}

.header-auth .btn-go{
  width:46px;
  min-width:46px;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

.header-auth .auth-input{
  padding:9px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.35);
  color:var(--text);
  outline:none;
}
.header-auth .auth-input::placeholder{color:rgba(255,255,255,.55)}
.header-auth .auth-input:focus{border-color:rgba(255,106,42,.55); box-shadow:0 0 0 3px rgba(255,106,42,.12);}

.header-auth .btn{padding:9px 12px; border-radius:14px; justify-content:center; flex:1 1 auto;}
.header-auth .btn.twitch{flex:1 1 auto;}
.header-auth .btn.ghost{flex:1 1 auto;}

.header-auth .auth-row2 .btn{width:auto;}

.header-auth .avatar{
  width:38px; height:38px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.header-auth .u{display:flex; flex-direction:column; line-height:1.1;}
.header-auth .u .name{font-weight:800;}
.header-auth .u .sub{font-size:12px; opacity:.75;}

@media (max-width: 980px){
  .header-auth{left:75%; width:250px; max-width:250px;}
  .header-auth .auth-row1, .header-auth .auth-row2{gap:8px;}
  /* Arrow button slimmer so inputs have more room; tiny right-shift for the glyph */
  .header-auth .btn-go{width:34px; min-width:34px; padding-left:4px; padding-right:0;}
}
.header-auth .u .name{font-weight:800; font-size:13px;}
.header-auth .u .sub{font-size:11px; color:rgba(255,255,255,.70);}
.btn.twitch{border-color:rgba(145,70,255,.55);}
.btn.twitch:hover{box-shadow:0 0 0 1px rgba(145,70,255,.22) inset, 0 10px 25px rgba(145,70,255,.18);}
@media (max-width: 900px){
  .header-auth{left:81%; top:56%;}
  .header-auth .u{display:none;}
  .header-auth .auth-input{display:none;}
}

.btn.ghost{background:transparent;}
.btn.ghost:hover{background:rgba(255,255,255,.06);}

/* --- Twitch Random Channel Card (Variant 1: Scrim + Content Box) --- */
.tcard{position:relative; overflow:hidden; height:260px;}
.tcard .in{height:100%; display:flex; align-items:flex-end;}
.tcard-bg{filter:brightness(.74) saturate(.9) contrast(1.05);} 
.tcard-scrim{background:linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.58) 44%, rgba(0,0,0,0) 78%);} 
.tcard-box{max-width:100%; width:520px; background:rgba(12,12,14,.72); border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:12px; backdrop-filter: blur(10px); box-shadow:0 16px 60px rgba(0,0,0,.45); max-height:100%; overflow:hidden;} 
.tcard-top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px;} 
.tcard-kicker{font-weight:900; font-size:14px; letter-spacing:.2px; text-shadow:0 2px 14px rgba(0,0,0,.65);} 
.tcard-badges{display:flex; align-items:center; gap:8px; flex-wrap:wrap;} 
.badge-live{background:rgba(255,60,100,.16); border-color:rgba(255,60,100,.35);} 
.badge-offline{opacity:.9;} 
.tcard-main{display:flex; gap:12px; align-items:flex-start;} 
.tcard-avatar{width:56px; height:56px; border-radius:14px; object-fit:cover; border:1px solid rgba(255,255,255,.18); box-shadow:0 10px 30px rgba(0,0,0,.35);} 
.tcard-meta{flex:1; min-width:0;} 
.tcard-textbg{background:rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:10px; box-shadow:0 10px 30px rgba(0,0,0,.22) inset;} 
.tcard-name{display:flex; gap:8px; align-items:baseline; flex-wrap:wrap;} 
.tcard-display{font-weight:900; font-size:16px; line-height:1.2; text-shadow:0 2px 14px rgba(0,0,0,.65);} 
.tcard-login{font-size:12px; opacity:.75; font-weight:800;} 
.tcard-title{margin-top:4px; font-size:12px; opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 
.tcard-desc{margin-top:10px; font-size:12px; opacity:.92; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;} 
.tcard-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;} 
.tcard-hint{margin-top:10px; font-size:11px; opacity:.68; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 


@media (max-width: 900px){
  .tcard{height:240px;}
  .tcard-box{width:100%;}
}
/* --- Compact Icon Buttons (Admin UI) --- */
.btn.icon-btn{padding:0; width:36px; height:36px; min-width:36px; display:inline-flex; align-items:center; justify-content:center; gap:0;}
.btn.icon-btn svg{width:18px; height:18px; opacity:.9;}

/* --- Modular CSS components (do not edit below unless needed) --- */
@import url('/assets/css/components.css');


/* SubMainFamily */
.family-link { margin-top:10px; }
.family-link .btn { padding:8px 12px; }

.family-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 900px){
  .family-grid{ grid-template-columns: 1fr; }
}

.family-card{ position:relative;overflow:hidden; min-height: 170px; }

/* Live highlight (dezent rot + Shine) */
.family-card.is-live{
  border:1px solid rgba(255,72,92,.55);
  box-shadow:
    0 0 0 1px rgba(255,72,92,.18),
    0 0 18px rgba(255,72,92,.18),
    var(--shadow);
}
.family-card.is-live::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  z-index:2;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,72,92,0) 40%,
    rgba(255,72,92,.22) 50%,
    rgba(255,72,92,0) 60%,
    transparent 100%);
  transform: translateX(-120%);
  animation: familyLiveShine 3.6s ease-in-out infinite;
  opacity:.7;
  mix-blend-mode: screen;
}
@keyframes familyLiveShine{
  0%{ transform: translateX(-120%); }
  60%{ transform: translateX(120%); }
  100%{ transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce){
  .family-card.is-live::after{ animation:none; }
}

.family-bg{
  position:absolute; inset:0;
  z-index:0;
  background-size:cover; background-position:center;
  filter:saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.family-bg--fallback{
  background: radial-gradient(circle at 10% 10%, rgba(165,92,255,.22), transparent 55%),
              radial-gradient(circle at 90% 20%, rgba(0,230,255,.16), transparent 55%),
              rgba(10,10,12,.92);
}
.family-scrim{
  position:absolute; inset:0;
  z-index:1;
  background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.40) 55%, rgba(0,0,0,.55));
}
.family-in{ position:relative; z-index:2; padding:14px; }
.family-head{ display:flex; gap:12px; align-items:center; }
.family-avatar{ width:54px; height:54px; border-radius:14px; object-fit:cover; box-shadow:0 6px 20px rgba(0,0,0,.45); flex:0 0 auto; }
.family-name{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.family-display{ font-weight:800; letter-spacing:.2px; }
.family-login{ opacity:.7; font-weight:600; }
.family-game{ font-size:12px; opacity:.85; margin-top:2px; }
.family-streamtitle{ margin-top:10px; font-weight:700; opacity:.95; }
.family-desc{ margin-top:6px; opacity:.85; font-size:13px; line-height:1.35; }
.family-actions{ margin-top:10px; }

/* --- Family page: readable text panel (match homepage SetCard readability) --- */
.family-in{ position:relative; z-index:2; }
.family-panel{
  background: rgba(12,12,14,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 14px 14px 12px;
  max-width: 100%;
}
.family-display, .family-login, .family-game, .family-streamtitle, .family-desc{ text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.family-desc{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Impressum ===== */
.impressum-body{
  /* padding comes from .card .in on this page */
  padding: 0;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}
.impressum-grid{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
  max-width: 900px;
}
.impressum-k{
  opacity: .85;
}
.impressum-body h3{
  margin: 0 0 8px 0;
  font-size: 16px;
}
.impressum-body hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 16px 0;
}
.mail-obf{
  unicode-bidi: bidi-override;
  direction: ltr;
}
@media (max-width: 720px){
  .impressum-body{ padding: 0; }
  .impressum-grid{ grid-template-columns: 1fr; }
}

/* ===== Admin: dezente Wasserzeichen/Logos in Kacheln ===== */
.admin-card{
  position: relative;
  overflow: hidden;
}
.admin-card[data-wm]::before{
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 240px;
  height: 240px;
  background-image: var(--wm-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.20;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}
.admin-card > .in{ position: relative; z-index: 1; }


/* ===== Homepage v0.17 Patch: layout, slider, news, event teaser ===== */
.home-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(300px, .75fr);
  gap:16px;
  align-items:start;
}
.home-main,.home-side{display:flex; flex-direction:column; gap:14px; min-width:0;}
.home-section-head,.channel-slider-head,.modal-head,.news-editor-head,.news-admin-list-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px;
}
.home-section-head h2,.current-event-card h2,.news-editor-head h1{margin:0; line-height:1.15;}
.home-plus{font-size:24px; width:44px; height:44px; padding:0; border-radius:50%;}
@media (max-width: 980px){ .home-layout{grid-template-columns:1fr;} }

.channel-slider-wrap{margin-top:14px;}
.channel-slider-head strong{font-size:18px;}
.channel-slider-status{font-size:12px; color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:4px 9px; background:rgba(255,255,255,.03);}
.channel-slider{position:relative; min-height:260px;}
.channel-slide{display:none; opacity:0; transform:translateX(18px);}
.channel-slide.active{display:block; opacity:1; transform:translateX(0); animation:channelSlideIn .55s ease both;}
.channel-slider .tcard{height:260px;}
.channel-slider-dots{position:absolute; right:14px; bottom:12px; display:flex; gap:6px; z-index:4;}
.channel-slider-dots span{width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.28); border:1px solid rgba(255,255,255,.18);}
.channel-slider-dots span.active{background:rgba(255,106,42,.95); box-shadow:0 0 14px rgba(255,106,42,.35);}
@keyframes channelSlideIn{from{opacity:0; transform:translateX(18px)} to{opacity:1; transform:translateX(0)}}
@media (prefers-reduced-motion: reduce){ .channel-slide.active{animation:none;} }

.news-list{display:flex; flex-direction:column; gap:12px;}
.news-card{display:block; padding:12px; border:1px solid var(--border); border-radius:16px; background:rgba(255,255,255,.025); overflow:hidden;}
.news-card.pinned{border-color:rgba(255,106,42,.26); background:linear-gradient(180deg, rgba(255,106,42,.08), rgba(255,255,255,.025));}
.news-card-img{width:100%; height:110px; object-fit:cover; border-radius:13px; border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.2);}
.news-card-body{min-width:0;}
.news-card h3{margin:4px 0 6px; font-size:18px; line-height:1.2;}
.news-card p{margin:0 0 10px; color:var(--muted); line-height:1.5; font-size:13px;}
.news-meta{display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:var(--muted); font-size:12px;}
.news-meta .badge{font-size:11px; padding:2px 7px; color:var(--text); border-color:rgba(255,106,42,.24); background:rgba(255,106,42,.10);}
.news-content{line-height:1.62; color:rgba(255,255,255,.88); overflow-wrap:anywhere;}
.news-content img,.news-preview-img{max-width:100%; height:auto; border-radius:14px; border:1px solid rgba(255,255,255,.10); margin:8px 0;}
.news-content blockquote{border-left:3px solid rgba(255,106,42,.55); margin:12px 0; padding:8px 12px; background:rgba(255,255,255,.035); border-radius:0 12px 12px 0;}
.news-center{text-align:center;}
@media (max-width: 620px){ .news-card{grid-template-columns:1fr;} .news-card-img{height:160px;} }

.current-event-card{position:relative; overflow:hidden;}
.current-event-card::after{content:""; position:absolute; right:-80px; top:-80px; width:220px; height:220px; border-radius:50%; background:radial-gradient(circle, rgba(255,106,42,.18), transparent 68%); pointer-events:none;}
.current-event-card .in{position:relative; z-index:1;}
.event-chip{display:inline-flex; border-radius:999px; padding:5px 10px; margin-bottom:10px; font-size:12px; font-weight:800; color:#fff; background:linear-gradient(90deg, rgba(255,106,42,.75), rgba(255,45,85,.65));}
.current-event-teaser{margin-top:10px; color:var(--muted); line-height:1.55; font-size:13px;}
.event-facts{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; margin-top:12px;}
.event-facts div{padding:9px 10px; border-radius:13px; border:1px solid var(--border); background:rgba(255,255,255,.035);}
.event-facts b{display:block; font-size:16px; color:var(--text);}
.event-facts span{display:block; font-size:11px; color:var(--muted); margin-top:2px;}

.hof-stack{display:flex; flex-direction:column; gap:12px;}
.hof-mini-card{padding:12px; border-radius:15px; border:1px solid var(--border); background:rgba(255,255,255,.025);}
.hof-head{display:flex; align-items:center; gap:10px; margin-bottom:10px;}
.hof-head img{width:72px; height:40px; object-fit:contain; opacity:.95;}
.hof-row{display:flex; justify-content:space-between; gap:10px; align-items:center; color:var(--muted); font-size:13px; padding:3px 0;}
.hof-row a{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.hof-row span{font-weight:800; color:var(--text);}

.home-modal-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.86); backdrop-filter:blur(8px); z-index:9998; padding:5vh 14px; overflow:auto;}
.home-modal{max-width:620px; margin:0 auto;}
.home-modal.news-modal{max-width:760px;}
.home-modal > .card{background:linear-gradient(180deg, rgba(18,19,22,.99), rgba(8,8,10,.99)); border-color:rgba(255,255,255,.16); box-shadow:0 22px 80px rgba(0,0,0,.78);}
.news-editor-options{display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:10px 12px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.025); color:var(--muted); font-size:13px;}
.news-editor-options.compact{padding:8px 10px;}
.news-editor-textarea{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height:1.5; min-height:280px; resize:vertical;}

.news-admin-grid{display:grid; grid-template-columns:300px minmax(0,1fr); gap:14px; align-items:start;}
.news-admin-list{position:sticky; top:82px;}
.news-admin-item{display:block; padding:10px; border-radius:13px; border:1px solid transparent; margin-bottom:8px; background:rgba(255,255,255,.025);}
.news-admin-item:hover,.news-admin-item.active{border-color:rgba(255,106,42,.28); background:rgba(255,106,42,.06);}
.news-admin-item strong{display:block; font-size:13px; margin-bottom:4px;}
.news-admin-item span{display:block; color:var(--muted); font-size:12px; line-height:1.35;}
.news-editor-form{display:flex; flex-direction:column; gap:12px;}
.news-image-row{display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:12px; align-items:start;}
.news-admin-preview{width:160px; height:100px; object-fit:cover; border-radius:14px; border:1px solid var(--border);}
.news-preview{background:rgba(0,0,0,.16);}
.news-preview h2{margin:4px 0 8px;}
.news-editor-actions{display:flex; justify-content:flex-end; gap:10px;}
@media (max-width: 980px){ .news-admin-grid{grid-template-columns:1fr;} .news-admin-list{position:static;} .news-image-row{grid-template-columns:1fr;} .news-admin-preview{width:100%; height:170px;} }

.admin-card.wm-news::after{
  background-image: radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), transparent 34%), linear-gradient(135deg, rgba(255,106,42,.55), rgba(255,45,85,.25));
  border-radius:32px;
  opacity:.22;
}
.news-card-excerpt{font-size:13px; color:var(--muted); margin:0 0 10px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;}
.news-card-excerpt p{margin:0;}

.news-upload-box{padding:12px; border:1px solid var(--border); border-radius:14px; background:rgba(0,0,0,.18);}
.news-upload-box.compact{padding:10px; margin:2px 0;}
.news-upload-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:10px;}
.news-upload-row{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center;}
.news-upload-result{margin-top:10px;}
.news-bbcode-output{min-height:46px; resize:vertical; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height:1.45;}
@media (max-width: 620px){ .news-upload-row{grid-template-columns:1fr;} }
