/* ===== UPGRADE LAN v5 — STRICT DARK SYSTEM ===== */
:root {
  --bg:       #080A0F;
  --surface:  #0E1118;
  --card:     #121620;
  --card-2:   #161B26;
  --line:     rgba(255,255,255,.07);
  --line-med: rgba(255,255,255,.13);
  --accent:   #FF6B00;
  --accent-2: #FF9A44;
  --green:    #2ECC71;
  --red:      #E74C3C;
  --blue:     #3498DB;
  --text:     #F0F2F5;
  --muted:    #6B7A8D;
  --muted-2:  #8A9AB0;
  --shadow:   0 8px 32px rgba(0,0,0,.55);
  --shadow-lg:0 24px 64px rgba(0,0,0,.7);
  --r-sm:     6px;
  --r-md:     10px;
  --r-lg:     16px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,sans-serif;
  font-size:14px;
  line-height:1.5;
  min-height:100vh;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
b,strong{font-weight:600}

/* NOISE LAYER */
body::before{
  content:'';
  position:fixed;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.028;pointer-events:none;z-index:-5
}

/* TOP ACCENT LINE */
body::after{
  content:'';
  position:fixed;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent 0%,var(--accent) 30%,var(--accent-2) 50%,var(--accent) 70%,transparent 100%);
  z-index:999
}

/* ===== LAYOUT ===== */
.wrap{max-width:1260px;margin:0 auto;padding:0 24px}
.wrap-lg{max-width:1440px;margin:0 auto;padding:0 24px}

/* ===== TOPBAR ===== */
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
  position:sticky;top:0;
  background:rgba(8,10,15,.88);
  backdrop-filter:blur(16px);
  z-index:100;
}
.topbar-brand{
  display:flex;align-items:center;gap:14px;
}
.topbar-logo{
  width:34px;height:34px;border-radius:var(--r-sm);
  background:var(--accent);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:16px;color:#fff;
  letter-spacing:-.02em;
  font-family:'Russo One',sans-serif;
}
.topbar-name{
  font-weight:700;font-size:15px;letter-spacing:.01em;
}
.topbar-name small{
  display:block;font-weight:400;font-size:11px;
  color:var(--muted);letter-spacing:.06em;text-transform:uppercase;
}
.topbar-nav{display:flex;align-items:center;gap:8px}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:none;border-radius:var(--r-sm);
  padding:9px 16px;
  font-size:13px;font-weight:600;letter-spacing:.02em;
  cursor:pointer;transition:all .15s;
  white-space:nowrap;
  font-family:inherit;
}
.btn:hover{opacity:.85;transform:translateY(-1px)}
.btn:active{transform:translateY(0);opacity:1}
.btn.full{width:100%}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 0 0 1px rgba(255,107,0,.3)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--line-med)}
.btn-ghost:hover{background:rgba(255,255,255,.05)}
.btn-danger{background:rgba(231,76,60,.12);color:#F08080;border:1px solid rgba(231,76,60,.25)}
.btn-sm{padding:6px 12px;font-size:12px}

/* ===== HERO ===== */
.hero{
  padding:72px 24px 56px;
  max-width:1260px;margin:0 auto;
  border-bottom:1px solid var(--line);
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);
  margin-bottom:20px;
}
.hero-eyebrow::before{
  content:'';width:20px;height:2px;background:var(--accent);
}
.hero h1{
  font-family:'Russo One',Inter,sans-serif;
  font-size:clamp(40px,7vw,80px);
  line-height:.95;
  letter-spacing:-.02em;
  text-transform:uppercase;
  color:var(--text);
  margin-bottom:18px;
}
.hero h1 span{color:var(--accent)}
.hero p{
  max-width:640px;
  font-size:15px;line-height:1.65;
  color:var(--muted-2);
  margin-bottom:28px;
}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ===== STATS STRIP ===== */
.stats-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1px;
  background:var(--line);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:48px;
}
.stat-cell{
  background:var(--bg);
  padding:20px 24px;
  display:flex;flex-direction:column;gap:4px;
}
.stat-num{
  font-family:'Russo One',Inter,sans-serif;
  font-size:28px;color:var(--text);
}
.stat-lbl{font-size:11px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}

/* ===== SECTION HEADER ===== */
.sec-hdr{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:20px;gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.sec-hdr-left{display:flex;align-items:center;gap:12px}
.sec-num{
  width:28px;height:28px;border-radius:var(--r-sm);
  background:var(--accent);
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:#fff;flex:none;
}
.sec-hdr h2{font-size:18px;font-weight:700;letter-spacing:.01em}
.sec-hdr p{font-size:12px;color:var(--muted);margin-top:2px}
.sec-tag{
  font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);background:var(--surface);
  border:1px solid var(--line-med);border-radius:var(--r-sm);
  padding:4px 8px;
}

/* ===== LIVE BANNER ===== */
.live-banner{
  background:var(--card);
  border:1px solid var(--line);
  border-left:3px solid var(--green);
  border-radius:var(--r-md);
  padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-bottom:32px;
}
.live-banner.idle{border-left-color:var(--line-med)}
.live-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--green);margin-bottom:6px;
}
.live-dot{
  width:7px;height:7px;border-radius:50%;background:var(--green);
  animation:pulse 1.4s infinite;
  box-shadow:0 0 0 0 rgba(46,204,113,.6);
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(46,204,113,.6)}
  70%{box-shadow:0 0 0 8px rgba(46,204,113,0)}
  100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}
}
.live-banner h3{font-size:17px;font-weight:700;margin-bottom:3px}
.live-banner p{font-size:13px;color:var(--muted-2)}
.live-banner p strong{color:var(--text)}
.live-chips{display:flex;gap:8px;flex-wrap:wrap}
.live-chip{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:10px 16px;text-align:center;
  min-width:100px;
}
.live-chip b{display:block;font-size:20px;font-family:'Russo One',Inter,sans-serif;color:var(--accent-2)}
.live-chip span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}

/* ===== BRACKET ===== */
.bracket-section{margin-bottom:48px}
.bracket-wrap{
  overflow-x:auto;
  padding-bottom:8px;
}
.bracket-flow{
  display:flex;
  align-items:flex-start;
  gap:0;
  min-width:max-content;
}
.bracket-round{
  display:flex;flex-direction:column;
  min-width:240px;
  border-right:1px solid var(--line);
}
.bracket-round:last-child{border-right:none}
.bracket-round-hdr{
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  display:flex;flex-direction:column;gap:2px;
}
.bracket-round-hdr h4{
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted-2);
}
.bracket-round-hdr span{
  font-size:11px;color:var(--muted);
}
.bracket-round-hdr .round-date{
  font-size:11px;color:var(--accent);font-weight:600;
  display:flex;align-items:center;gap:4px;
  margin-top:2px;
}
.bracket-matches{
  display:flex;flex-direction:column;
  justify-content:space-around;
  flex:1;
  padding:8px 0;
}
.b-match{
  position:relative;
  padding:8px 16px;
}
.b-match-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  transition:border-color .15s;
}
.b-match-card.live{
  border-color:rgba(46,204,113,.4);
  box-shadow:0 0 0 1px rgba(46,204,113,.1);
}
.b-match-card.done{border-color:rgba(255,107,0,.2)}
.b-match-card.final-card{
  border-color:rgba(255,107,0,.35);
  box-shadow:0 0 20px rgba(255,107,0,.08);
}
.b-match-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 10px;
  background:var(--card-2);
  border-bottom:1px solid var(--line);
}
.b-match-title{font-size:11px;font-weight:600;color:var(--muted-2)}
.b-match-status{
  font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 7px;border-radius:3px;
}
.b-match-status.scheduled{background:rgba(255,255,255,.07);color:var(--muted)}
.b-match-status.live{background:rgba(46,204,113,.18);color:var(--green)}
.b-match-status.finished{background:rgba(255,107,0,.15);color:var(--accent-2)}
.b-team{
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
}
.b-team:last-child{border-bottom:none}
.b-team.winner{background:rgba(46,204,113,.06)}
.b-team.empty{opacity:.45}
.b-team-logo{
  width:28px;height:28px;flex:none;
  border-radius:5px;overflow:hidden;
  background:var(--card-2);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:var(--muted-2);
}
.b-team-logo img{width:100%;height:100%;object-fit:cover}
.b-team-name{flex:1;font-size:13px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.b-team-name.muted{color:var(--muted);font-weight:400}
.b-team-win{
  width:16px;height:16px;flex:none;
  background:var(--green);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:9px;color:#fff;font-weight:700;
}
.b-team-crown{
  font-size:13px;margin-left:auto;
}

/* connector lines between rounds */
.bracket-conn{
  width:32px;flex:none;
  align-self:stretch;
  position:relative;
}

/* ===== TEAM GRID ===== */
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  margin-bottom:48px;
}
.team-card{
  background:var(--card);
  padding:18px 20px;
  display:flex;flex-direction:column;gap:14px;
  transition:background .15s;
}
.team-card:hover{background:var(--card-2)}
.team-card-top{display:flex;align-items:flex-start;gap:12px}
.team-logo{
  width:48px;height:48px;flex:none;
  border-radius:var(--r-md);overflow:hidden;
  background:var(--surface);border:1px solid var(--line-med);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:17px;color:var(--muted-2);
}
.team-logo img{width:100%;height:100%;object-fit:cover}
.team-logo.lg{width:56px;height:56px;border-radius:var(--r-md)}
.team-info{flex:1;min-width:0}
.team-name{font-size:15px;font-weight:700;margin-bottom:3px;line-height:1.2}
.team-captain{font-size:12px;color:var(--muted)}
.team-slots{
  padding:4px 8px;border-radius:var(--r-sm);
  background:var(--surface);border:1px solid var(--line);
  font-size:12px;font-weight:600;color:var(--muted-2);
  white-space:nowrap;
}
.status-pill{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  border-radius:3px;padding:3px 7px;
  margin-bottom:4px;
}
.status-pill.approved{background:rgba(46,204,113,.12);color:#6DDC97}
.status-pill.pending{background:rgba(255,154,68,.12);color:#FFB366}
.status-pill.rejected{background:rgba(231,76,60,.12);color:#F08080}
.status-pill::before{
  content:'';width:5px;height:5px;border-radius:50%;background:currentColor;
}

.members-list{display:flex;flex-direction:column;gap:5px}
.member-row{
  display:flex;align-items:center;gap:8px;
  padding:7px 10px;
  border-radius:var(--r-sm);
  background:var(--surface);
  font-size:13px;
}
.member-row.empty{border:1px dashed var(--line-med);color:var(--muted);background:transparent}
.member-avatar{
  width:24px;height:24px;flex:none;
  border-radius:50%;overflow:hidden;
  background:var(--card-2);
}
.member-avatar img{width:100%;height:100%;object-fit:cover}

/* ===== ADMIN ===== */
.admin-bar{
  padding:24px;
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  flex-wrap:wrap;
}
.admin-bar h1{font-family:'Russo One',Inter,sans-serif;font-size:28px;letter-spacing:-.01em}
.admin-bar p{font-size:13px;color:var(--muted);margin-top:4px}

.admin-grid{display:grid;gap:20px;padding:24px}
.admin-tools{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.admin-tools-info h3{font-size:15px;font-weight:600;margin-bottom:4px}
.admin-tools-info p{font-size:12px;color:var(--muted);max-width:560px}
.admin-tools-btns{display:flex;gap:8px;flex-wrap:wrap}

/* ADMIN LIVE BOARD */
.board-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.now-card{
  background:var(--card);border:1px solid var(--line);
  border-left:3px solid var(--green);border-radius:var(--r-lg);padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.now-card.idle{border-left-color:var(--line-med)}
.now-card-text h3{font-size:18px;font-weight:700;margin:6px 0 3px}
.now-card-text p{font-size:13px;color:var(--muted-2)}
.now-live-label{
  font-family:'Russo One',Inter,sans-serif;
  font-size:22px;color:var(--green);
  opacity:.7;
  letter-spacing:.04em;
}

.admin-matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:16px}
.admin-match-card{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:16px;
  display:grid;gap:10px;
}
.admin-match-card.live{border-color:rgba(46,204,113,.35)}
.admin-match-card.done{border-color:rgba(255,107,0,.2)}
.admin-match-hdr{
  display:flex;align-items:center;justify-content:space-between;
  padding-bottom:10px;border-bottom:1px solid var(--line);
}
.admin-match-hdr b{font-size:14px}
.winner-btns{display:grid;gap:6px}
.winner-btn{
  display:flex;align-items:center;gap:10px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:8px 10px;
  cursor:pointer;color:var(--text);font-size:13px;font-weight:500;
  text-align:left;transition:all .15s;width:100%;font-family:inherit;
}
.winner-btn:hover{border-color:var(--line-med);background:var(--card-2)}
.winner-btn.selected{border-color:rgba(46,204,113,.5);background:rgba(46,204,113,.07);color:var(--green)}
.winner-btn.disabled{opacity:.4;cursor:not-allowed}
.winner-btn .w-logo{width:28px;height:28px;border-radius:4px;overflow:hidden;background:var(--card-2);flex:none;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--muted-2)}
.winner-btn .w-logo img{width:100%;height:100%;object-fit:cover}
.winner-btn .w-info{flex:1;min-width:0}
.winner-btn .w-info b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.winner-btn .w-info small{font-size:11px;color:var(--muted);display:block;margin-top:1px}

/* ADMIN TEAM LIST */
.admin-list{display:flex;flex-direction:column;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.admin-team{background:var(--card);padding:16px 20px;display:grid;gap:12px}
.admin-team:hover{background:var(--card-2)}
.admin-team-top{display:flex;align-items:flex-start;gap:12px}
.admin-team-info{flex:1;min-width:0}
.admin-team-info h3{font-size:15px;font-weight:600;margin:4px 0 4px}
.admin-team-info p{font-size:12px;color:var(--muted);margin-bottom:2px}
.admin-team-actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line)}

.seed-form{display:flex;gap:6px;align-items:center}
.seed-form select{
  background:var(--surface);border:1px solid var(--line-med);
  border-radius:var(--r-sm);color:var(--text);
  padding:8px 10px;font-size:12px;font-family:inherit;
  outline:none;cursor:pointer;min-width:130px;
}
.seed-form select option{background:#0E1118}

/* DATE FORM on match cards */
.match-date-form{
  display:flex;gap:6px;align-items:center;flex-wrap:wrap;
  padding:8px 10px;
  background:var(--surface);
  border-radius:var(--r-sm);
  border:1px solid var(--line);
}
.match-date-form label{font-size:11px;color:var(--muted);white-space:nowrap}
input[type="date"],input[type="time"],input[type="text"],input[type="password"]{
  background:var(--surface);border:1px solid var(--line-med);
  border-radius:var(--r-sm);color:var(--text);
  padding:7px 10px;font-size:13px;font-family:inherit;
  outline:none;width:100%;
  color-scheme:dark;
}
input[type="date"]:focus,input[type="time"]:focus,input[type="text"]:focus,input[type="password"]:focus{
  border-color:var(--accent);
}

/* ===== LOGIN ===== */
.login-wrap{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.login-card{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:32px;
  width:100%;max-width:380px;
}
.login-card h1{font-family:'Russo One',Inter,sans-serif;font-size:28px;margin-bottom:6px}
.login-card p{font-size:13px;color:var(--muted);margin-bottom:24px}
.login-card form{display:grid;gap:10px}
.error-msg{font-size:12px;color:#F08080;padding:8px 10px;background:rgba(231,76,60,.1);border-radius:var(--r-sm);border:1px solid rgba(231,76,60,.2)}

/* ===== EMPTY ===== */
.empty{text-align:center;padding:48px 24px;color:var(--muted)}
.empty h3{font-size:17px;font-weight:600;color:var(--text);margin-bottom:8px}
.empty p{font-size:13px}

/* ===== CONTACTS ===== */
.contact-panel{
  display:grid;grid-template-columns:minmax(260px,.9fr) 1.4fr;gap:18px;
  background:linear-gradient(135deg,rgba(255,107,0,.10),rgba(255,255,255,.025));
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);
  padding:24px;margin-bottom:22px;position:relative;overflow:hidden;
}
.contact-panel:before{
  content:"";position:absolute;inset:auto -70px -90px auto;width:220px;height:220px;
  background:radial-gradient(circle,rgba(255,107,0,.18),transparent 68%);pointer-events:none;
}
.contact-copy{position:relative;z-index:1}
.contact-copy h2{font-family:'Russo One',Inter,sans-serif;font-size:clamp(26px,3vw,42px);line-height:.95;text-transform:uppercase;margin:8px 0 12px}
.contact-copy p{color:var(--muted);font-size:14px;line-height:1.65;max-width:430px}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;position:relative;z-index:1}
.contact-card{
  display:grid;grid-template-columns:42px 1fr;grid-template-areas:"icon small" "icon title";align-items:center;gap:2px 12px;
  min-height:74px;padding:14px;border:1px solid var(--line);border-radius:var(--r-md);
  background:rgba(6,8,13,.62);text-decoration:none;color:var(--text);transition:.18s ease;
}
.contact-card:hover{border-color:var(--accent);transform:translateY(-1px);background:rgba(255,107,0,.08)}
.contact-card.primary{background:linear-gradient(135deg,rgba(255,107,0,.22),rgba(6,8,13,.7));border-color:rgba(255,107,0,.35)}
.contact-card.wide{grid-column:1/-1}
.contact-icon{
  grid-area:icon;width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,107,0,.13);border:1px solid rgba(255,107,0,.25);color:var(--accent);font-weight:900;font-size:13px;
}
.contact-card small{grid-area:small;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.contact-card b{grid-area:title;font-size:15px;overflow-wrap:anywhere}

/* ===== FOOTER ===== */
.site-footer{
  border-top:1px solid var(--line);
  padding:20px 24px 24px;
  font-size:12px;color:var(--muted);
  background:rgba(5,7,12,.74);
}
.site-footer-inner{
  width:min(1320px,100%);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.footer-brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.footer-brand b{display:block;font-size:14px}
.footer-brand span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.footer-logo{width:34px;height:34px;font-size:12px}
.footer-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.footer-links a{color:var(--muted);text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:8px 11px;background:rgba(255,255,255,.02);transition:.18s ease}
.footer-links a:hover{color:var(--text);border-color:var(--accent);background:rgba(255,107,0,.08)}

/* ===== MEMBERS compact ===== */
.members-compact{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:5px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .contact-panel{grid-template-columns:1fr}
  .board-row{grid-template-columns:1fr}
  .bracket-round{min-width:200px}
  .hero h1{font-size:clamp(32px,10vw,60px)}
  .admin-bar{flex-direction:column;align-items:flex-start}
  .topbar{padding:14px 16px}
  .wrap,.wrap-lg{padding:0 16px}
}
@media(max-width:600px){
  .contact-grid{grid-template-columns:1fr}
  .site-footer-inner{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
  .stats-strip{grid-template-columns:1fr 1fr}
  .hero-actions{flex-direction:column}
  .live-banner{flex-direction:column}
  .admin-tools{flex-direction:column;align-items:flex-start}
}

/* partial reload no-flash */
#live-root,#admin-live-root{contain:layout style;transition:none}

/* ===== BRACKET ROUND DATE BADGE ===== */
.round-date-badge{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:600;color:var(--accent);
  background:rgba(255,107,0,.1);border-radius:3px;padding:2px 6px;
  margin-top:3px;letter-spacing:.04em;
}

/* ===== MEMBERS COUNT BADGE ===== */
.count-badge{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sm);
  padding:4px 8px;font-size:12px;font-weight:600;color:var(--muted-2);
  white-space:nowrap;
}

/* ===== SITE REGISTRATION / PROFILE ===== */
.auth-wrap{min-height:calc(100vh - 76px);display:flex;align-items:center;justify-content:center;padding:40px 24px}
.auth-card,.form-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:28px}
.auth-card{width:min(680px,100%)}
.auth-card h1,.profile-head h1{font-family:'Russo One',Inter,sans-serif;font-size:clamp(32px,5vw,54px);line-height:1;margin-bottom:14px;text-transform:uppercase}
.auth-card p,.form-card p,.profile-head p{color:var(--muted-2);margin-bottom:18px}
.verify-box{margin-top:16px;background:var(--surface);border:1px solid var(--line-med);border-radius:var(--r-md);padding:14px;color:var(--muted-2);word-break:break-all}
.form-grid{display:grid;gap:14px;margin-top:18px}
.form-grid label{display:grid;gap:7px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.form-grid input{width:100%;background:var(--surface);border:1px solid var(--line-med);border-radius:var(--r-sm);color:var(--text);padding:12px 13px;font:inherit;outline:none}
.form-grid input:focus{border-color:rgba(255,107,0,.65);box-shadow:0 0 0 3px rgba(255,107,0,.08)}
.profile-wrap{padding-top:34px;padding-bottom:50px}
.profile-head{display:flex;align-items:stretch;justify-content:space-between;gap:20px;margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.profile-kpis{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;min-width:420px}
.profile-kpis .stat-cell{background:var(--card);margin:0}
.profile-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;margin-bottom:20px}
.team-mini{display:flex;gap:14px;align-items:center;margin:12px 0 14px}
.team-mini h3{font-size:22px;margin-bottom:4px}
.profile-members .member-row{align-items:center}
.profile-members small{color:var(--muted);margin-left:6px}
.mini-danger{background:transparent;color:#F08080;border:1px solid rgba(231,76,60,.35);border-radius:var(--r-sm);padding:4px 8px;font-size:11px;cursor:pointer}
.history-list{display:grid;gap:8px;margin-top:14px}
.history-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px}
.history-row span{color:var(--green);font-weight:700}.history-row small{color:var(--muted)}
.admin-settings-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.switch-line{display:flex;align-items:center;gap:8px;color:var(--muted-2);font-size:13px}.switch-line input{accent-color:var(--accent)}
@media (max-width:800px){.profile-head,.profile-grid{grid-template-columns:1fr;display:grid}.profile-kpis{min-width:0;grid-template-columns:repeat(3,1fr)}.topbar-nav{flex-wrap:wrap;justify-content:flex-end}}
@media (max-width:520px){.profile-kpis{grid-template-columns:1fr}.auth-card,.form-card{padding:20px}.history-row{grid-template-columns:1fr}.topbar{align-items:flex-start}.topbar-nav .btn{padding:6px 8px}}

/* ===== GAME THEMES ===== */
body.game-csgo{--accent:#FF6B00;--accent-2:#FFB366;--theme-glow:rgba(255,107,0,.18)}
body.game-valorant{--accent:#FF4655;--accent-2:#7C5CFF;--theme-glow:rgba(255,70,85,.2)}
body.game-dota2{--accent:#B83C2F;--accent-2:#D9A45F;--theme-glow:rgba(184,60,47,.22)}
body.game-minecraft{--accent:#47B657;--accent-2:#8BD450;--theme-glow:rgba(71,182,87,.2)}
.game-hero{position:relative;overflow:hidden}
.game-hero::after{display:none}
.game-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-8px 0 22px}
.game-tab{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line-med);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.03)}
.game-tab.active{color:#fff;border-color:rgba(255,255,255,.22);background:linear-gradient(135deg,var(--accent),var(--accent-2));box-shadow:0 10px 30px var(--theme-glow)}
.rules-card,.rules-public{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));border:1px solid var(--line-med);border-radius:var(--r-md);padding:16px;margin-top:10px}
.rules-card h3{font-size:14px;margin-bottom:8px}.rules-card pre,.rules-public pre{white-space:pre-wrap;color:var(--muted-2);font-family:inherit;font-size:13px;line-height:1.6}.rules-public{margin-bottom:32px}
.check-line{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:10px;text-transform:none!important;letter-spacing:0!important;font-size:13px!important;color:var(--muted-2)!important;font-weight:600!important}.check-line input{width:auto!important;accent-color:var(--accent)}
input[type="file"],select,textarea{width:100%;background:var(--surface);border:1px solid var(--line-med);border-radius:var(--r-sm);color:var(--text);padding:10px 12px;font:inherit;outline:none;color-scheme:dark}textarea{resize:vertical;min-height:130px}select option{background:#0E1118}input[type="file"]::file-selector-button{border:none;border-radius:var(--r-sm);background:var(--accent);color:#fff;padding:7px 10px;margin-right:10px;font:inherit;font-weight:700;cursor:pointer}
.profile-id{display:flex;align-items:center;gap:18px}.profile-avatar{border-radius:50%;overflow:hidden;background:var(--card-2);border:1px solid var(--line-med);display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--muted-2)}.profile-avatar.xl{width:84px;height:84px;font-size:26px}.profile-avatar img{width:100%;height:100%;object-fit:cover}.edit-team-box{margin:12px 0 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:12px}.edit-team-box summary{cursor:pointer;font-weight:800;color:var(--accent)}
.admin-settings-wide{align-items:flex-start}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;width:min(760px,100%)}.admin-field{display:grid;gap:7px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.rules-field{grid-column:1/-1}.settings-grid .btn{justify-self:start}
@media(max-width:780px){.settings-grid{grid-template-columns:1fr}.profile-id{align-items:flex-start}.profile-avatar.xl{width:64px;height:64px}.game-tabs{margin-top:0}}

/* Media logos: images, GIF and video files */
.team-logo video,
.b-team-logo video,
.w-logo video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.team-logo img,
.b-team-logo img,
.w-logo img{
  display:block;
}
.team-logo.logo-broken img,
.b-team-logo.logo-broken img,
.w-logo.logo-broken img{display:none!important}
.team-logo.logo-broken::after,
.b-team-logo.logo-broken::after,
.w-logo.logo-broken::after{
  content:"UP";
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:var(--muted-2);
}
.member-avatar span{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:var(--muted-2);
  font-size:12px;
}

/* v10 tournament settings / prizes */
.admin-field small{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.35}
.admin-field input[type="number"],.admin-field input[type="text"],.admin-field input:not([type]){width:100%;margin-top:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);border-radius:12px;color:var(--text);padding:11px 12px;outline:none}
.prize-public{margin-bottom:18px}
.prize-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.prize-card{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px}
.prize-card b{font-size:13px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.06em}
.prize-card span{font-size:20px;font-weight:900;color:var(--accent)}
.prize-card small{color:var(--muted);font-size:11px}

/* v11 public hero prize panel */
.hero-with-prizes{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:34px;
  align-items:center;
}
.hero-main{min-width:0}
.hero-prize-panel{
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,107,0,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  border-radius:22px;
  padding:18px;
  box-shadow:0 20px 70px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
  position:relative;
  overflow:hidden;
}
.hero-prize-panel::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(255,107,0,.18), transparent 38%, rgba(255,255,255,.035));
  pointer-events:none;
}
.hero-prize-top,.hero-prize-list,.hero-prize-empty{position:relative;z-index:1}
.hero-prize-top{
  padding:4px 4px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  margin-bottom:10px;
}
.hero-prize-kicker{
  display:inline-flex;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  font-size:11px;
  margin-bottom:8px;
}
.hero-prize-top strong{
  display:block;
  font-family:'Russo One',Inter,sans-serif;
  font-size:clamp(26px,3vw,38px);
  line-height:1;
  letter-spacing:-.02em;
  color:var(--text);
  text-transform:uppercase;
}
.hero-prize-top small{display:block;color:var(--muted);font-size:12px;margin-top:6px;text-transform:uppercase;letter-spacing:.08em}
.hero-prize-list{display:flex;flex-direction:column;gap:8px}
.hero-prize-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(7,9,14,.52);
  border-radius:14px;
  padding:12px 13px;
}
.hero-prize-row.first{border-color:rgba(255,107,0,.38);background:rgba(255,107,0,.095)}
.hero-prize-row b{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-2)}
.hero-prize-row em{display:block;font-style:normal;font-size:11px;color:var(--muted);margin-top:1px}
.hero-prize-row span{font-weight:900;color:var(--accent);font-size:16px;text-align:right;max-width:160px;line-height:1.25}
.hero-prize-empty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:14px;
  padding:14px;
  background:rgba(0,0,0,.16);
}
.hero-prize-empty b{display:block;color:var(--text);font-size:14px;margin-bottom:4px}
.hero-prize-empty span{display:block;color:var(--muted);font-size:12px;line-height:1.45}
@media (max-width:980px){
  .hero-with-prizes{grid-template-columns:1fr;gap:22px}
  .hero-prize-panel{max-width:520px;width:100%}
}


/* v14 contacts/rules pages, footer fix, scroll top */
.topbar-brand, .footer-brand{ text-decoration:none; color:inherit; }
.topbar-brand{display:flex;align-items:center;gap:12px}
.footer-brand{display:flex;align-items:center;gap:12px}
.page-wrap{padding-top:42px;padding-bottom:42px}
.page-hero-card{
  border:1px solid rgba(255,255,255,.10);
  background:radial-gradient(circle at 0 0, rgba(255,107,0,.14), transparent 32%), rgba(255,255,255,.035);
  border-radius:24px;
  padding:28px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin-bottom:22px;
}
.page-hero-card h1{font-family:'Russo One',Inter,sans-serif;font-size:clamp(34px,5vw,64px);line-height:.95;margin:10px 0 12px;text-transform:uppercase}
.page-hero-card p{max-width:720px;color:var(--muted-2);font-size:15px;line-height:1.65}
.contact-grid-page{margin-top:18px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.rules-page-card{margin-top:18px}
.site-footer{margin-top:60px;border-top:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);padding:24px 0}
.site-footer-inner{max-width:1280px;margin:0 auto;padding:0 28px;display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap}
.footer-brand span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.footer-links{display:flex;gap:10px;flex-wrap:wrap}
.footer-links a{color:var(--muted-2);text-decoration:none;border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:9px 12px;font-weight:700;font-size:12px}
.footer-links a:hover{color:var(--text);border-color:rgba(255,107,0,.38);background:rgba(255,107,0,.08)}
.scroll-top{
  position:fixed;right:22px;bottom:22px;z-index:50;
  width:46px;height:46px;border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,107,0,.95), rgba(190,59,35,.95));
  color:#fff;font-size:22px;font-weight:900;
  box-shadow:0 18px 45px rgba(0,0,0,.38);
  cursor:pointer;opacity:0;transform:translateY(12px);pointer-events:none;
  transition:.18s ease;
}
.scroll-top.show{opacity:1;transform:translateY(0);pointer-events:auto}
.scroll-top:hover{filter:brightness(1.08);transform:translateY(-2px)}
@media (max-width:720px){
  .page-hero-card{align-items:stretch;flex-direction:column;padding:22px}
  .site-footer-inner{align-items:flex-start}
  .scroll-top{right:14px;bottom:14px}
}

/* v15 sticky footer */
html{min-height:100%;scroll-behavior:smooth}
body{min-height:100vh;display:flex;flex-direction:column}
.site-footer{margin-top:auto}

/* v16 bracket/team visual fix */
.bracket-section{
  margin-bottom:56px;
}
.bracket-wrap{
  overflow-x:auto;
  padding:8px 4px 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,107,0,.45) rgba(255,255,255,.05);
}
.bracket-flow{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px, 1fr);
  align-items:start;
  gap:28px;
  min-width:760px;
}
.bracket-round{
  min-width:0;
  width:100%;
  border-right:0;
  background:rgba(255,255,255,.018);
  border:1px solid rgba(255,255,255,.075);
  border-radius:18px;
  overflow:hidden;
}
.bracket-round:last-child{border-right:1px solid rgba(255,255,255,.075)}
.bracket-round-hdr{
  padding:12px 14px;
  background:rgba(255,255,255,.025);
}
.bracket-round-hdr h4{color:var(--text);letter-spacing:.09em}
.bracket-matches{
  justify-content:flex-start;
  gap:16px!important;
  padding:14px!important;
  min-height:auto;
}
.b-match{
  padding:0;
}
.b-match-card{
  border-radius:14px;
  background:rgba(18,22,32,.92);
  box-shadow:0 14px 36px rgba(0,0,0,.18);
}
.b-match-card.final-card{
  border-color:rgba(255,107,0,.42);
  box-shadow:0 18px 46px rgba(255,107,0,.075), 0 14px 36px rgba(0,0,0,.2);
}
.b-match-top{
  padding:8px 11px;
}
.b-team{
  min-height:44px;
  padding:9px 11px;
}
.b-team-logo{
  width:32px;height:32px;border-radius:8px;
}
.b-team.empty{
  min-height:44px;
  opacity:.52;
  background:rgba(255,255,255,.012);
}
.bracket-conn{
  display:none!important;
}
@media(min-width:1100px){
  .bracket-flow{
    min-width:100%;
    grid-auto-columns:minmax(260px, 1fr);
  }
}
@media(max-width:720px){
  .bracket-flow{grid-auto-columns:260px;gap:14px;min-width:max-content}
  .bracket-wrap{padding-left:0;padding-right:0}
}

.team-grid{
  background:transparent;
  border:0;
  overflow:visible;
  gap:22px;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  align-items:start;
}
.team-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:20px;
  gap:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.20);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(18,22,32,.92));
  min-height:auto;
}
.team-card:hover{
  border-color:rgba(255,107,0,.22);
  transform:translateY(-1px);
}
.team-card-top{
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.065);
}
.team-logo.lg{
  width:64px;height:64px;border-radius:16px;
}
.team-name{
  font-size:18px;
  line-height:1.12;
  margin:1px 0 6px;
}
.team-captain{line-height:1.35}
.members-list{
  gap:8px;
}
.member-row{
  min-height:38px;
  padding:8px 10px;
  background:rgba(6,8,13,.45);
  border:1px solid rgba(255,255,255,.035);
}
.member-row.empty{
  min-height:38px;
  border:1px dashed rgba(255,255,255,.10);
  background:rgba(255,255,255,.015);
}
.member-avatar{
  width:28px;height:28px;
  border:1px solid rgba(255,255,255,.06);
}
@media(max-width:780px){
  .team-grid{grid-template-columns:1fr;gap:16px}
  .team-card{padding:16px;border-radius:16px}
  .team-logo.lg{width:54px;height:54px;border-radius:14px}
}


/* v17 desktop layout — use full site area instead of narrow/mobile-like stack */
.tournament-layout{
  width:min(1520px,100%);
  padding-left:28px;
  padding-right:28px;
}
#live-root{
  width:100%;
}
#live-root .live-banner{
  width:100%;
  margin-left:0;
  margin-right:0;
}
.bracket-section{
  width:100%;
}
.bracket-wrap{
  width:100%;
  overflow-x:auto;
}
.bracket-flow{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  grid-auto-columns:initial;
  gap:24px;
}
.bracket-round{
  min-width:0;
  width:100%;
}
.bracket-round-hdr{
  min-height:52px;
}
.bracket-matches{
  min-height:100%;
}
.b-match-card{
  width:100%;
}
.team-grid{
  width:100%;
  grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
  gap:24px;
}
.team-card{
  min-height:0;
}
.team-card-top{
  align-items:flex-start;
}
.members-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:8px;
}
.member-row{
  min-width:0;
}
.member-row.empty{
  justify-content:flex-start;
}
@media (min-width:1280px){
  .tournament-layout{
    max-width:none;
    width:min(1560px, calc(100vw - 96px));
  }
  .bracket-flow{
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:28px;
  }
  .team-grid{
    grid-template-columns:repeat(auto-fit,minmax(460px,1fr));
    gap:28px;
  }
}
@media (max-width:900px){
  .tournament-layout{padding-left:16px;padding-right:16px}
  .bracket-flow{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:280px;
    width:max-content;
    min-width:max-content;
    gap:14px;
  }
  .team-grid{grid-template-columns:1fr;gap:16px}
  .members-list{grid-template-columns:1fr}
}

/* v18 classic tournament layout + team results */
.tournament-layout{
  max-width:1500px;
  width:min(1500px, calc(100vw - 72px));
  padding-left:0;
  padding-right:0;
}
.bracket-section{width:100%;margin-bottom:64px}
.bracket-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(15,20,31,.74),rgba(10,13,20,.46));
  box-shadow:0 18px 70px rgba(0,0,0,.22);
  padding:0 0 14px;
}
.bracket-flow{
  display:flex!important;
  align-items:stretch;
  gap:0!important;
  width:max-content!important;
  min-width:max-content!important;
  grid-template-columns:none!important;
  grid-auto-columns:auto!important;
}
.bracket-round{
  flex:0 0 314px!important;
  width:314px!important;
  min-width:314px!important;
  display:flex;
  flex-direction:column;
  border-right:1px solid rgba(255,255,255,.07)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.006));
}
.bracket-round:last-child{border-right:none!important}
.bracket-round-hdr{
  padding:14px 16px!important;
  min-height:58px;
  border-bottom:1px solid rgba(255,255,255,.075);
}
.bracket-round-hdr h4{color:var(--muted-2);font-size:11px;letter-spacing:.11em}
.bracket-matches{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-around!important;
  gap:30px!important;
  padding:18px 18px!important;
  flex:1;
  min-height:330px;
}
.bracket-round:last-of-type .bracket-matches{justify-content:center!important}
.b-match{padding:0!important;position:relative}
.b-match-card{
  width:100%!important;
  border-radius:15px!important;
  background:rgba(14,19,30,.92);
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}
.b-match-card.final-card{border-color:rgba(255,107,0,.45)!important;box-shadow:0 0 0 1px rgba(255,107,0,.10),0 18px 42px rgba(255,107,0,.06)}
.b-match-top{padding:8px 12px!important}
.b-team{min-height:46px;padding:9px 12px!important}
.b-team.winner{background:linear-gradient(90deg,rgba(49,196,141,.16),rgba(49,196,141,.035))}
.b-team-logo{width:32px;height:32px;border-radius:8px}
.b-team-name{font-size:14px;font-weight:700}
.bracket-conn{
  width:54px!important;
  flex:0 0 54px!important;
  align-self:stretch;
  position:relative;
  display:block!important;
  opacity:1!important;
}
.bracket-conn:before,
.bracket-conn:after{
  content:"";
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,107,0,.45);
}
.bracket-conn:before{left:7px;right:7px;height:1px}
.bracket-conn:after{right:7px;width:8px;height:8px;border-top:1px solid rgba(255,107,0,.65);border-right:1px solid rgba(255,107,0,.65);background:transparent;transform:translateY(-50%) rotate(45deg)}
.team-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(520px,1fr))!important;
  gap:22px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  margin-bottom:34px!important;
}
.team-card{
  border:1px solid rgba(255,255,255,.075);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(18,24,36,.82),rgba(13,18,28,.76));
  box-shadow:0 14px 45px rgba(0,0,0,.16);
  padding:22px 24px;
}
.team-card-top{padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.075)}
.team-logo.lg{width:70px;height:70px;border-radius:18px}
.members-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px!important;
}
.member-row{border-radius:10px;min-height:42px;background:rgba(6,9,15,.54)}
.team-result-line{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.075);
}
.team-result-line div{
  background:rgba(6,9,15,.42);
  border:1px solid rgba(255,255,255,.055);
  border-radius:12px;
  padding:9px 10px;
  min-width:0;
}
.team-result-line span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.team-result-line b{display:block;font-size:13px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-results-section{margin:10px 0 58px}
.results-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:12px}
.result-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(15,20,31,.72);
}
.result-row.champion{border-color:rgba(255,178,79,.38);background:linear-gradient(90deg,rgba(255,178,79,.14),rgba(15,20,31,.72))}
.result-row.lost{opacity:.82}
.result-main{display:flex;align-items:center;gap:12px;min-width:0}
.result-main b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.result-main span{display:block;font-size:12px;color:var(--muted)}
.team-logo.mini{width:42px;height:42px;border-radius:12px}
.result-kpis{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;font-size:12px;color:var(--muted-2)}
.result-kpis strong{color:var(--accent-2);font-size:14px}
.result-place{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--text);font-weight:700}
@media (min-width:1600px){
  .tournament-layout{width:min(1600px, calc(100vw - 96px))}
  .bracket-round{flex-basis:340px!important;width:340px!important;min-width:340px!important}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:980px){
  .tournament-layout{width:100%;padding-left:16px;padding-right:16px}
  .bracket-round{flex-basis:286px!important;width:286px!important;min-width:286px!important}
  .bracket-conn{width:34px!important;flex-basis:34px!important}
  .team-grid{grid-template-columns:1fr!important;gap:16px!important}
  .members-list{grid-template-columns:1fr!important}
  .team-result-line{grid-template-columns:repeat(2,1fr)}
  .results-board{grid-template-columns:1fr}
  .result-row{align-items:flex-start;flex-direction:column}
  .result-kpis{justify-content:flex-start}
}

/* v19 tournament type + leaderboards */
.tournament-meta-note{
  margin-top:14px;
  display:inline-flex;
  max-width:760px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:10px 12px;
  color:var(--muted-2);
  font-size:13px;
  line-height:1.45;
}
.tournament-meta-note b{color:var(--accent-2)}
.entry-info-card{
  border:1px solid rgba(255,107,0,.22);
  background:linear-gradient(135deg,rgba(255,107,0,.12),rgba(255,255,255,.03));
  border-radius:16px;
  padding:13px 14px;
  display:grid;
  gap:5px;
  margin:12px 0 4px;
}
.entry-info-card b{font-size:14px;color:var(--text)}
.entry-info-card span{font-size:13px;color:var(--muted-2);line-height:1.45}
.top-page-wrap{width:min(1440px,calc(100vw - 72px));max-width:none}
.top-hero-card{margin-bottom:28px}
.top-games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
  gap:18px;
  margin-bottom:44px;
}
.top-game-card,
.top-players-section{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(18,24,36,.86),rgba(13,18,28,.72));
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 54px rgba(0,0,0,.18);
}
.top-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.075)}
.top-card-kicker{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:900;margin-bottom:5px}
.top-card-head h2{font-size:20px;font-weight:900}
.ranking-list,.players-ranking{display:grid;gap:10px}
.ranking-row,.player-rank-card{
  display:grid;
  grid-template-columns:34px 46px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(6,9,15,.46);
  border-radius:16px;
  padding:10px;
}
.rank-place{
  width:30px;height:30px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-weight:900;color:var(--muted-2);
}
.ranking-row.rank-1,.player-rank-card.rank-1{border-color:rgba(255,196,87,.45);background:linear-gradient(90deg,rgba(255,196,87,.15),rgba(6,9,15,.46))}
.ranking-row.rank-2,.player-rank-card.rank-2{border-color:rgba(210,220,235,.32);background:linear-gradient(90deg,rgba(210,220,235,.10),rgba(6,9,15,.46))}
.ranking-row.rank-3,.player-rank-card.rank-3{border-color:rgba(205,127,50,.36);background:linear-gradient(90deg,rgba(205,127,50,.12),rgba(6,9,15,.46))}
.rank-1 .rank-place{background:linear-gradient(180deg,#ffd46a,#d99620);color:#15100a;border:0;box-shadow:0 0 0 3px rgba(255,196,87,.12)}
.rank-2 .rank-place{background:linear-gradient(180deg,#f0f3f8,#9ba8b7);color:#11151c;border:0;box-shadow:0 0 0 3px rgba(210,220,235,.10)}
.rank-3 .rank-place{background:linear-gradient(180deg,#d99a5f,#8d5524);color:#140d08;border:0;box-shadow:0 0 0 3px rgba(205,127,50,.10)}
.team-logo.mini{width:46px;height:46px;border-radius:13px}
.top-player-avatar{
  width:46px;height:46px;border-radius:50%;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);border:1px solid rgba(255,255,255,.10);
  font-weight:900;color:var(--muted-2);
}
.top-player-avatar img{width:100%;height:100%;object-fit:cover}
.rank-1 .top-player-avatar{box-shadow:0 0 0 3px rgba(255,196,87,.25),0 0 28px rgba(255,196,87,.18)}
.rank-2 .top-player-avatar{box-shadow:0 0 0 3px rgba(210,220,235,.18)}
.rank-3 .top-player-avatar{box-shadow:0 0 0 3px rgba(205,127,50,.20)}
.rank-info{min-width:0}
.rank-info b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.rank-info span{display:block;font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-score{text-align:right;min-width:58px}
.rank-score b{display:block;font-family:'Russo One',Inter,sans-serif;font-size:22px;color:var(--accent-2);line-height:1}
.rank-score span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.mini-empty{padding:18px;border-radius:16px;font-size:13px}
@media(max-width:760px){
  .top-page-wrap{width:100%;padding-left:16px;padding-right:16px}
  .top-games-grid{grid-template-columns:1fr}
  .ranking-row,.player-rank-card{grid-template-columns:30px 42px minmax(0,1fr);gap:9px}
  .rank-score{grid-column:3;justify-self:start;text-align:left;display:flex;align-items:baseline;gap:6px}
}

/* v21 tournament lifecycle/stat pages */
.countdown-card{margin-top:16px;display:inline-flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);border-radius:18px;background:linear-gradient(135deg,rgba(255,107,0,.16),rgba(255,255,255,.035));box-shadow:0 16px 40px rgba(0,0,0,.24)}
.countdown-card>span{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.08em;text-transform:uppercase}.countdown-values{display:flex;align-items:baseline;gap:5px}.countdown-values b{font-size:28px;line-height:1;color:var(--text);font-family:var(--display)}.countdown-values small{font-size:12px;color:var(--accent);font-weight:800;margin-right:5px}.countdown-card.started{border-color:rgba(66,211,146,.45);background:rgba(66,211,146,.09)}
.danger-zone{border-color:rgba(255,74,74,.28)!important;background:linear-gradient(135deg,rgba(255,74,74,.08),rgba(255,255,255,.025))!important}.danger-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.danger-inline input,.delete-run-form input{background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--text);padding:10px 12px;max-width:140px}.game-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.game-stat-card{display:block;text-decoration:none;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;transition:.18s ease}.game-stat-card:hover,.game-stat-card.active{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 55%,transparent);box-shadow:0 18px 60px rgba(0,0,0,.25)}.game-stat-card span{display:block;font-size:13px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em}.game-stat-card b{display:block;font-size:36px;font-family:var(--display);margin:8px 0;color:var(--accent)}.game-stat-card small{color:var(--muted)}.tournament-run-list{display:grid;gap:14px}.tournament-run-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:18px}.run-main{text-decoration:none;color:var(--text);display:block;flex:1}.run-main h3{margin:8px 0 4px;font-size:22px}.run-main p{color:var(--muted);margin:0 0 6px}.run-main small{color:var(--muted-2)}.delete-run-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-match-card .btn.full{width:100%;justify-content:center;margin-top:8px}
@media(max-width:820px){.game-stat-grid{grid-template-columns:1fr 1fr}.tournament-run-card{align-items:flex-start;flex-direction:column}.countdown-card{width:100%;justify-content:space-between}}@media(max-width:520px){.game-stat-grid{grid-template-columns:1fr}.countdown-card{align-items:flex-start;flex-direction:column}}

/* ──────────────────────────────────────────────────────────
   NEWS MODULE / SEO HOME
   ────────────────────────────────────────────────────────── */
.news-topbar{position:sticky;top:0;z-index:30;backdrop-filter:blur(18px);background:rgba(7,8,14,.72);border-bottom:1px solid rgba(255,255,255,.08)}
.news-hero{position:relative;max-width:1180px;margin:28px auto 0;padding:54px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:34px;background:radial-gradient(circle at 12% 20%,rgba(255,108,45,.26),transparent 34%),radial-gradient(circle at 80% 0,rgba(108,93,255,.22),transparent 36%),linear-gradient(145deg,rgba(18,20,31,.96),rgba(8,10,17,.98));box-shadow:0 28px 90px rgba(0,0,0,.38)}
.news-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,rgba(255,255,255,.08),transparent 25%,transparent 68%,rgba(255,255,255,.04));pointer-events:none}
.news-hero-glow{position:absolute;width:420px;height:420px;right:-160px;bottom:-220px;border-radius:50%;background:rgba(255,109,45,.24);filter:blur(70px)}
.news-hero-content,.news-hero-panel{position:relative;z-index:1}.news-hero h1{margin:12px 0 16px;font-family:'Russo One',Inter,sans-serif;font-size:clamp(34px,5vw,66px);line-height:.98;letter-spacing:-.04em;text-transform:uppercase}.news-hero p{max-width:760px;color:rgba(255,255,255,.74);font-size:18px;line-height:1.62}.news-hero-panel{align-self:stretch;border:1px solid rgba(255,255,255,.1);border-radius:28px;padding:28px;background:rgba(0,0,0,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);display:flex;flex-direction:column;gap:12px}.news-hero-panel span{color:rgba(255,255,255,.58);font-size:13px;text-transform:uppercase;letter-spacing:.12em}.news-hero-panel strong{font-family:'Russo One',Inter,sans-serif;font-size:74px;line-height:.9;color:#fff}.news-hero-panel small{color:rgba(255,255,255,.64)}.news-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.news-mini-stats b{padding:10px;border-radius:14px;background:rgba(255,255,255,.07);text-align:center}.news-tournament-link{margin-top:auto;display:block;padding:16px;border-radius:18px;background:linear-gradient(135deg,rgba(255,109,45,.22),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.1);color:#fff;text-decoration:none;font-weight:800}.news-layout{padding:42px 24px 24px}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.news-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,rgba(28,30,43,.88),rgba(13,15,23,.95));border:1px solid rgba(255,255,255,.09);box-shadow:0 18px 50px rgba(0,0,0,.28);transition:transform .18s ease,border-color .18s ease}.news-card:hover{transform:translateY(-3px);border-color:rgba(255,119,45,.35)}.news-card.featured{grid-column:span 2}.news-cover{position:relative;height:230px;display:block;background:radial-gradient(circle at 35% 35%,rgba(255,108,45,.18),transparent 34%),#0b0d15;overflow:hidden}.news-card.featured .news-cover{height:310px}.news-cover img,.news-cover video,.article-cover img,.article-cover video,.admin-news-thumb img,.admin-news-thumb video,.editor-current-cover img,.editor-current-cover video{width:100%;height:100%;object-fit:cover;display:block}.news-cover:after{content:"";position:absolute;inset:auto 0 0;height:44%;background:linear-gradient(transparent,rgba(0,0,0,.72))}.news-cover-placeholder{height:100%;display:grid;place-items:center;text-align:center}.news-cover-placeholder b{font-family:'Russo One';font-size:58px;color:#fff}.news-cover-placeholder span{display:block;color:rgba(255,255,255,.45);letter-spacing:.24em}.news-card-body{display:flex;flex:1;flex-direction:column;padding:22px}.news-meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:rgba(255,255,255,.48);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.news-card h3{margin:12px 0 10px;font-size:24px;line-height:1.12}.news-card h3 a{color:#fff;text-decoration:none}.news-card p{margin:0 0 18px;color:rgba(255,255,255,.68);line-height:1.55}.news-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.news-reactions{display:flex;flex-wrap:wrap;gap:10px;color:rgba(255,255,255,.62);font-size:13px}.news-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:30px}.news-empty{padding:52px}.article-wrap{padding:34px 24px;max-width:980px}.article-card,.comments-card,.editor-main-card,.editor-side-card{border:1px solid rgba(255,255,255,.1);border-radius:30px;background:linear-gradient(180deg,rgba(22,24,36,.92),rgba(12,14,22,.96));box-shadow:0 24px 70px rgba(0,0,0,.28)}.article-card{overflow:hidden}.article-head{padding:38px 42px 24px}.article-back{color:rgba(255,255,255,.65);text-decoration:none;font-weight:700}.article-head h1{margin:16px 0 14px;font-family:'Russo One',Inter,sans-serif;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.035em}.article-lead{font-size:18px;line-height:1.65;color:rgba(255,255,255,.72)}.article-stats{display:flex;align-items:center;gap:14px;margin-top:22px}.like-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:10px 15px;font-weight:900;cursor:pointer}.like-btn.liked{background:linear-gradient(135deg,rgba(255,77,109,.32),rgba(255,109,45,.22));border-color:rgba(255,95,95,.42)}.article-cover{height:min(56vw,520px);background:#080a10}.article-content{padding:36px 42px 46px;color:rgba(255,255,255,.82);font-size:18px;line-height:1.75}.article-content h2,.article-content h3{color:#fff;line-height:1.12;margin:1.4em 0 .55em}.article-content h2{font-size:32px}.article-content h3{font-size:25px}.article-content p{margin:0 0 1.1em}.article-content a{color:#ff9a63;font-weight:800}.article-content blockquote{margin:22px 0;padding:18px 22px;border-left:4px solid #ff7a32;border-radius:18px;background:rgba(255,255,255,.06);color:#fff}.article-content ul,.article-content ol{padding-left:1.3em}.media-embed{margin:26px 0}.media-embed img,.media-embed video{width:100%;border-radius:22px;border:1px solid rgba(255,255,255,.1);background:#080a10}.media-embed figcaption{color:rgba(255,255,255,.48);font-size:13px;text-align:center;margin-top:8px}.comments-card{margin-top:22px;padding:28px}.comment-form{display:grid;grid-template-columns:240px 1fr auto;gap:12px;margin-bottom:22px}.comment-form input,.comment-form textarea,.news-editor-form input,.news-editor-form textarea,.news-editor-form select{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(0,0,0,.26);color:#fff;padding:13px 14px;outline:none}.comment-form textarea{resize:vertical}.comments-list{display:flex;flex-direction:column;gap:12px}.comment-item{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06)}.comment-avatar{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#ff7a32,#7b61ff);font-weight:900}.comment-top{display:flex;gap:10px;align-items:baseline}.comment-top span{color:rgba(255,255,255,.45);font-size:12px}.comment-item p{white-space:pre-wrap;margin:6px 0 0;color:rgba(255,255,255,.75)}.small-empty{padding:18px}.admin-news-wrap{padding:30px 24px}.admin-news-list{display:flex;flex-direction:column;gap:14px}.admin-news-row{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(18,20,31,.88);padding:16px}.admin-news-thumb{height:108px;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center;color:#fff;font-weight:900}.admin-news-main h3{margin:8px 0;font-size:22px}.admin-news-main p{margin:0 0 10px;color:rgba(255,255,255,.6)}.admin-news-actions{display:flex;flex-direction:column;gap:8px}.admin-comments-box{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.admin-comments-box summary{cursor:pointer;color:rgba(255,255,255,.74);font-weight:800}.admin-comment-row{display:flex;justify-content:space-between;gap:14px;margin-top:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.05)}.admin-comment-row.hidden-comment{opacity:.52}.admin-comment-row p{white-space:pre-wrap;margin:6px 0 0;color:rgba(255,255,255,.7)}.news-editor-wrap{padding:30px 24px}.news-editor-form{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.editor-main-card,.editor-side-card{padding:24px}.editor-side-card{position:sticky;top:92px;display:flex;flex-direction:column;gap:14px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 10px}.editor-toolbar button{border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;padding:9px 12px;font-weight:800;cursor:pointer}.editor-toolbar button:hover{background:rgba(255,122,50,.18)}.editor-surface{min-height:460px;padding:24px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(0,0,0,.26);color:#fff;font-size:18px;line-height:1.7;outline:none}.editor-surface:empty:before{content:attr(data-placeholder);color:rgba(255,255,255,.38)}.editor-surface img,.editor-surface video{max-width:100%;border-radius:18px}.editor-help{margin-top:10px;color:rgba(255,255,255,.52);font-size:13px}.editor-current-cover{height:180px;border-radius:18px;overflow:hidden;background:#080a10}.news-admin-entry .admin-tools-btns{align-items:center}
@media (max-width: 980px){.news-hero{grid-template-columns:1fr;padding:34px 24px;margin:16px}.news-grid{grid-template-columns:1fr}.news-card.featured{grid-column:auto}.news-editor-form{grid-template-columns:1fr}.editor-side-card{position:static}.comment-form{grid-template-columns:1fr}.admin-news-row{grid-template-columns:1fr}.admin-news-thumb{height:180px}.article-head,.article-content{padding-left:24px;padding-right:24px}}

/* News public cleanup and editor improvements */
.article-actions{display:flex;align-items:center;gap:14px;margin-top:22px}
.editor-toolbar button[data-cmd="justifyLeft"],.editor-toolbar button[data-cmd="justifyCenter"],.editor-toolbar button[data-cmd="justifyRight"]{min-width:42px}
.article-content [style*="text-align: center"],.article-content [style*="text-align:center"]{text-align:center}
.article-content [style*="text-align: right"],.article-content [style*="text-align:right"]{text-align:right}
.article-content [style*="text-align: left"],.article-content [style*="text-align:left"]{text-align:left}
.news-card-foot{justify-content:flex-start}

/* News homepage compact polish: smaller hero, smaller thumbnails, full-card click */
.news-hero.news-hero-compact{
  max-width:1040px;
  grid-template-columns:1fr;
  padding:38px 44px;
  margin-top:22px;
  border-radius:28px;
}
.news-hero.news-hero-compact .news-hero-content{max-width:780px}
.news-hero.news-hero-compact h1{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(30px,3.8vw,48px);
  line-height:1.06;
  letter-spacing:-.035em;
  text-transform:none;
  max-width:780px;
}
.news-hero.news-hero-compact p{
  max-width:700px;
  font-size:16px;
  line-height:1.55;
}
.news-hero.news-hero-compact .hero-actions{margin-top:18px}
.news-grid{
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px;
}
.news-card.featured{grid-column:auto}
.news-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.news-cover{height:165px}
.news-card.featured .news-cover{height:165px}
.news-card-body{padding:18px}
.news-card-title{
  display:block;
  margin:10px 0 8px;
  color:#fff;
  font-size:20px;
  font-weight:900;
  line-height:1.18;
}
.news-card-excerpt{
  display:block;
  margin:0 0 16px;
  color:rgba(255,255,255,.68);
  line-height:1.52;
  font-size:14px;
}
.news-card:hover .news-card-title{color:#fff}
.news-card:hover .btn.btn-ghost{border-color:rgba(255,119,45,.35);background:rgba(255,119,45,.12)}
.news-cover-placeholder b{font-size:42px}
.news-cover-placeholder span{font-size:12px}
@media (max-width:980px){
  .news-hero.news-hero-compact{padding:28px 22px;margin:14px;border-radius:24px}
  .news-cover,.news-card.featured .news-cover{height:170px}
}

/* v22 news detail polish: full cover, lower like button, compact authenticated comments */
.article-card .article-head{padding-bottom:20px}
.article-card .article-head .article-actions{display:none}
.article-cover.full-media-cover{height:auto;max-height:none;background:#080a10;border-top:1px solid rgba(255,255,255,.055);border-bottom:1px solid rgba(255,255,255,.055);display:block;overflow:hidden}
.article-cover.full-media-cover img{width:100%;height:auto;max-height:none;object-fit:contain;display:block;margin:0 auto;background:#080a10}
.article-cover.full-media-cover video{width:100%;height:auto;max-height:82vh;object-fit:contain;display:block;margin:0 auto;background:#080a10}
.article-bottom-actions{padding:0 42px 34px;display:flex;align-items:center;justify-content:flex-start;gap:12px}
.article-bottom-actions .like-btn{padding:10px 16px}

.news-card-foot .public-news-stats{margin-right:auto}
.public-news-stats span{display:inline-flex;align-items:center;gap:4px;min-width:0;color:rgba(255,255,255,.66);font-weight:700}

.comments-card.compact-comments{padding:20px 22px;margin-top:18px;border-radius:24px}
.compact-comments .comments-header{margin-bottom:12px;padding-bottom:12px}
.compact-comments .comments-header h2{font-size:16px}
.compact-comments .comments-header p{font-size:11px}
.comment-form.compact-comment-form{display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:10px;align-items:stretch;margin-bottom:16px}
.compact-comment-form textarea{min-height:56px;max-height:120px;resize:vertical;padding:11px 12px;border-radius:13px;font-size:13px;line-height:1.45}
.compact-comment-form .btn{min-height:56px;border-radius:13px}
.comment-user-preview{display:flex;align-items:center;gap:10px;min-height:56px;padding:9px 10px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(0,0,0,.22);min-width:0}
.comment-user-preview img,.comment-user-preview span{width:34px;height:34px;border-radius:11px;flex:none;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#ff7a32,#7b61ff);font-weight:900;color:#fff}
.comment-user-preview div{min-width:0}.comment-user-preview b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.comment-user-preview small{display:block;color:rgba(255,255,255,.48);font-size:11px;line-height:1.15}
.comments-login-box{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;padding:13px 14px;border:1px solid rgba(255,107,0,.18);border-radius:16px;background:linear-gradient(135deg,rgba(255,107,0,.10),rgba(255,255,255,.035))}
.comments-login-box b{display:block;font-size:14px}.comments-login-box span{display:block;color:rgba(255,255,255,.58);font-size:12px;margin-top:2px}
.compact-comments .comments-list{gap:10px}.compact-comments .comment-item{grid-template-columns:38px 1fr;padding:12px;border-radius:15px}.compact-comments .comment-avatar{width:38px;height:38px;border-radius:12px;overflow:hidden}.comment-avatar img{width:100%;height:100%;object-fit:cover;display:block}.comment-avatar span{width:100%;height:100%;display:grid;place-items:center}.comment-top{flex-wrap:wrap}.comment-top em{font-style:normal;color:rgba(255,255,255,.44);font-size:12px}.compact-comments .comment-item p{font-size:13px;line-height:1.5;margin-top:5px}

@media(max-width:980px){
  .article-bottom-actions{padding:0 22px 26px}
  .comment-form.compact-comment-form{grid-template-columns:1fr;gap:9px}
  .compact-comment-form .btn{min-height:44px;width:100%}
  .comments-login-box{align-items:flex-start;flex-direction:column}
  .comments-login-box .btn{width:100%}
}


/* v23 news home cleanup: no big hero block, 9 posts per page, clear pager */
.news-layout{padding-top:34px}
.news-pagination{padding-top:6px;margin-bottom:34px}
.news-pagination span{color:rgba(255,255,255,.62);font-weight:800;font-size:13px;letter-spacing:.06em}
@media(max-width:980px){.news-layout{padding-top:24px}}

/* v24 profile, admin analytics, moderation, and improved news editor */
.comments-card .comments-header p{display:none!important}
.clean-preview small{color:rgba(255,255,255,.46);font-size:12px}.clean-login-box span{color:rgba(255,255,255,.58);font-size:12px}
.profile-v2{max-width:1180px}.profile-hero-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:26px;border:1px solid rgba(255,255,255,.1);border-radius:30px;background:radial-gradient(circle at 8% 10%,rgba(255,107,0,.18),transparent 35%),linear-gradient(140deg,rgba(24,26,38,.94),rgba(10,12,18,.96));box-shadow:0 24px 70px rgba(0,0,0,.25)}.profile-hero-card h1{margin:8px 0 6px;font-size:clamp(30px,4vw,54px);line-height:1;letter-spacing:-.04em}.profile-bio{max-width:620px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.04);color:rgba(255,255,255,.75);line-height:1.5}.profile-kpis-v2{grid-template-columns:repeat(4,minmax(100px,1fr));min-width:520px}.profile-main-grid{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr)}.profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wide-field{grid-column:1/-1}.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.achievements-grid{display:grid;grid-template-columns:1fr;gap:10px}.achievement{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035);opacity:.62}.achievement.done{opacity:1;border-color:rgba(255,107,0,.28);background:linear-gradient(135deg,rgba(255,107,0,.12),rgba(255,255,255,.04))}.achievement-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-size:20px}.achievement b{display:block}.achievement span{display:block;color:rgba(255,255,255,.55);font-size:12px;margin-top:2px}.team-history-grid{grid-template-columns:1fr 1fr}
.admin-tabs{position:sticky;top:74px;z-index:20;display:flex;gap:8px;flex-wrap:wrap;margin:-6px 0 18px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(10,12,18,.78);backdrop-filter:blur(16px)}.admin-tabs a{padding:9px 12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;color:rgba(255,255,255,.72);text-decoration:none;font-weight:800;font-size:13px}.admin-tabs a:hover{background:rgba(255,107,0,.15);color:#fff}.admin-section-panel{margin-bottom:22px;padding:20px;border:1px solid rgba(255,255,255,.09);border-radius:26px;background:linear-gradient(180deg,rgba(21,23,34,.86),rgba(11,13,21,.9))}.admin-metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.admin-metric{padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(255,255,255,.04)}.admin-metric span{display:block;color:rgba(255,255,255,.52);font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.admin-metric b{display:block;margin:6px 0;font-size:32px;color:#fff}.admin-metric small{color:rgba(255,255,255,.52)}.admin-split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-mini-table{padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(0,0,0,.18)}.admin-mini-table h3{margin:0 0 12px}.admin-mini-table div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid rgba(255,255,255,.06)}.admin-mini-table span{color:rgba(255,255,255,.58);font-size:12px}.admin-users-list{display:grid;gap:10px}.admin-user-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035)}.admin-user-main{display:flex;align-items:center;gap:12px}.admin-user-main .profile-avatar{width:44px;height:44px}.admin-user-main span{display:block;color:rgba(255,255,255,.56);font-size:12px;margin-top:3px}.inline-admin-form{margin-left:auto}.comment-admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pending-comment{border-color:rgba(255,184,77,.22)!important;background:rgba(255,184,77,.06)!important}
.editor-v2{grid-template-columns:minmax(0,1fr) 360px}.editor-pro-card{padding:26px}.editor-pro-head{align-items:center}.editor-save-actions{display:flex;gap:8px;flex-wrap:wrap}.editor-title-grid{display:grid;grid-template-columns:1fr;gap:12px}.editor-quick-blocks{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.editor-quick-blocks button{border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.05);color:#fff;padding:10px 13px;font-weight:900;cursor:pointer}.editor-quick-blocks button:hover,.pro-toolbar button:hover{border-color:rgba(255,107,0,.32);background:rgba(255,107,0,.14)}.pro-toolbar{position:sticky;top:76px;z-index:15;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(13,15,22,.88);backdrop-filter:blur(14px)}.editor-drop-zone{margin:12px 0;padding:14px;border:1px dashed rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.035);color:rgba(255,255,255,.55);text-align:center;font-weight:800}.editor-drop-zone.active{border-color:rgba(255,107,0,.55);background:rgba(255,107,0,.12);color:#fff}.pro-editor-surface{min-height:560px;background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.32))}.pro-editor-surface .selected-media{outline:3px solid #ff6b00;outline-offset:3px}.editor-pro-side{gap:18px}.editor-side-section{display:grid;gap:12px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}.editor-side-section h3{margin:0;font-size:16px}.news-gallery,.news-collage{display:grid;gap:10px;margin:24px 0}.news-gallery{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.news-collage{grid-template-columns:repeat(2,minmax(0,1fr))}.news-collage.cols-3{grid-template-columns:1.2fr .8fr}.news-collage.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.news-gallery figure,.news-collage figure{margin:0}.news-gallery img,.news-gallery video,.news-collage img,.news-collage video{width:100%;height:100%;min-height:160px;object-fit:cover;border-radius:18px;border:1px solid rgba(255,255,255,.1)}.article-cta{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:16px;background:linear-gradient(135deg,#ff6b00,#ff8a3d);color:#fff!important;text-decoration:none;font-weight:900}.editor-preview-modal{width:min(860px,calc(100vw - 32px));max-height:86vh;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:#0c0f18;color:#fff;padding:0}.editor-preview-modal::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(6px)}.modal-close{position:sticky;top:10px;float:right;margin:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#fff;border-radius:12px;width:38px;height:38px;font-size:24px;cursor:pointer}
@media(max-width:1100px){.admin-metric-grid{grid-template-columns:repeat(3,1fr)}.editor-v2,.profile-main-grid,.team-history-grid{grid-template-columns:1fr}.profile-hero-card{display:grid}.profile-kpis-v2{min-width:0}.editor-pro-side{position:static}.admin-split{grid-template-columns:1fr}}@media(max-width:700px){.admin-metric-grid,.profile-kpis-v2,.profile-edit-grid{grid-template-columns:1fr}.admin-user-row{align-items:flex-start;flex-direction:column}.inline-admin-form{margin-left:0}.admin-tabs{top:0}.comment-admin-actions{width:100%}.comment-admin-actions form,.comment-admin-actions button{width:100%}}

/* Invite/profile guidance */
.profile-alert{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:18px 0;
  padding:18px;
  border-radius:var(--r-lg);
  border:1px solid var(--line-med);
  background:linear-gradient(135deg, rgba(255,107,0,.14), rgba(255,154,68,.05)), var(--card);
  box-shadow:var(--shadow-soft);
}
.profile-alert h2{margin:0 0 6px;font-size:20px}
.profile-alert p{margin:0;color:var(--muted-2);line-height:1.55}
.profile-alert .btn{margin-top:12px}
.profile-alert-icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#111;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 10px 30px rgba(255,107,0,.22);
}
.profile-alert.danger{
  background:linear-gradient(135deg, rgba(255,69,58,.15), rgba(255,107,0,.05)), var(--card);
}
.profile-alert.danger .profile-alert-icon{background:linear-gradient(135deg, #ff453a, var(--accent));color:#fff}
.profile-alert.success{
  background:linear-gradient(135deg, rgba(48,209,88,.14), rgba(255,107,0,.04)), var(--card);
}
.profile-alert.success .profile-alert-icon{background:linear-gradient(135deg, #30d158, var(--accent-2));color:#07120a}
@media (max-width:720px){.profile-alert{padding:14px}.profile-alert h2{font-size:18px}}

/* v25 compact profile notifications and cleaner public copy */
.toast-stack{
  position:fixed;
  top:96px;
  right:24px;
  z-index:1200;
  display:grid;
  gap:10px;
  width:min(360px, calc(100vw - 32px));
  pointer-events:none;
}
.site-toast{
  pointer-events:auto;
  display:grid;
  grid-template-columns:42px 1fr 32px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(18,22,32,.96), rgba(10,12,18,.96));
  box-shadow:0 22px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter:blur(18px);
  animation:toastIn .28s ease-out both;
}
.site-toast.success{border-color:rgba(48,209,88,.28);background:linear-gradient(135deg, rgba(23,38,29,.96), rgba(12,15,20,.96));}
.site-toast-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#30d158,#ff8a3d);
  color:#08110b;
  font-weight:1000;
  box-shadow:0 12px 30px rgba(48,209,88,.18);
}
.site-toast b{display:block;color:#fff;font-size:14px;line-height:1.2}
.site-toast span:not(.site-toast-icon){display:block;margin-top:3px;color:rgba(255,255,255,.62);font-size:12px;line-height:1.35}
.site-toast-close{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:11px;
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.72);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.site-toast-close:hover{color:#fff;background:rgba(255,255,255,.09)}
.site-toast.hide{animation:toastOut .22s ease-in forwards}
@keyframes toastIn{from{opacity:0;transform:translateY(-10px) translateX(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(-8px) translateX(12px) scale(.98)}}
@media(max-width:720px){.toast-stack{top:82px;right:16px;left:16px;width:auto}.site-toast{grid-template-columns:38px 1fr 30px;padding:12px}.site-toast-icon{width:38px;height:38px}}

/* v25 news feed redesign: showcase + proper grid instead of a single vertical tape */
.news-layout.news-feed-v2{
  max-width:1480px;
  padding-top:28px;
  padding-bottom:36px;
}
.news-headline-bar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
  padding:22px 26px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(17,20,31,.88),rgba(9,11,18,.95));
  box-shadow:0 22px 60px rgba(0,0,0,.24);
}
.news-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.news-headline-bar h1{
  margin:8px 0 10px;
  font-size:clamp(28px,3.6vw,46px);
  line-height:1.02;
  letter-spacing:-.04em;
}
.news-headline-bar p{
  max-width:820px;
  color:rgba(255,255,255,.62);
  font-size:15px;
  line-height:1.55;
}
.news-headline-pills{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.news-headline-pills span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:800;
}
.news-showcase-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr);
  gap:18px;
  margin-bottom:24px;
  align-items:stretch;
}
.news-featured-card,
.news-spotlight-card,
.news-mini-panel,
.news-card-v2{
  border:1px solid rgba(255,255,255,.09);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(23,25,37,.92),rgba(11,13,20,.96));
  box-shadow:0 22px 60px rgba(0,0,0,.26);
}
.news-featured-card{
  overflow:hidden;
  min-height:100%;
}
.news-featured-link{
  display:grid;
  grid-template-columns:minmax(340px,.95fr) minmax(0,1fr);
  min-height:100%;
  color:inherit;
  text-decoration:none;
}
.news-featured-media{
  position:relative;
  min-height:420px;
  background:radial-gradient(circle at 26% 20%,rgba(255,107,0,.22),transparent 34%),#0b0d15;
  overflow:hidden;
}
.news-featured-media img,
.news-featured-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.news-featured-media:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:48%;
  background:linear-gradient(transparent,rgba(0,0,0,.74));
}
.news-featured-body{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:30px 30px 28px;
  gap:12px;
}
.news-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,107,0,.22),rgba(255,255,255,.06));
  border:1px solid rgba(255,107,0,.22);
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.news-featured-title{
  display:block;
  color:#fff;
  font-size:clamp(28px,3vw,40px);
  font-weight:900;
  line-height:1.02;
  letter-spacing:-.04em;
}
.news-featured-excerpt{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.65;
}
.news-spotlight-stack{
  display:grid;
  grid-template-rows:repeat(2,minmax(0,1fr)) auto;
  gap:18px;
}
.news-spotlight-card{
  overflow:hidden;
}
.news-cover.news-cover-sm{height:160px}
.compact-body{padding:16px 18px 18px}
.compact-body .news-card-title{font-size:18px;line-height:1.16}
.compact-body .news-card-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:auto;
}
.news-mini-panel{
  padding:18px 20px;
}
.news-mini-panel b{
  display:block;
  margin-bottom:10px;
  font-size:15px;
}
.news-mini-panel ul{
  margin:0;
  padding-left:18px;
  color:rgba(255,255,255,.66);
  line-height:1.55;
}
.news-mini-panel li+li{margin-top:6px}
.news-section-title{
  margin-bottom:16px;
}
.news-grid.news-grid-v2{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.news-card-v2{
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.news-card-v2:hover,
.news-featured-card:hover,
.news-spotlight-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,119,45,.34);
  box-shadow:0 28px 70px rgba(0,0,0,.30);
}
.news-card-v2 .news-cover{height:190px}
.news-card-v2 .news-card-body{padding:18px}
.news-card-v2 .news-card-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:46px;
}
.news-card-v2 .news-card-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:64px;
}
.news-card-v2 .news-card-foot{gap:10px}
.news-card-v2 .btn.btn-ghost{margin-left:auto}
.news-feed-v2 .news-pagination{
  margin-top:24px;
  padding:18px 0 0;
  justify-content:center;
}
@media (max-width:1200px){
  .news-showcase-grid{grid-template-columns:1fr}
  .news-featured-link{grid-template-columns:1fr}
  .news-featured-media{min-height:340px}
  .news-spotlight-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto}
  .news-mini-panel{grid-column:1/-1}
}
@media (max-width:980px){
  .news-headline-bar{padding:20px;align-items:flex-start;flex-direction:column}
  .news-grid.news-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .news-layout.news-feed-v2{padding-top:20px}
  .news-headline-bar{padding:18px 16px;border-radius:22px}
  .news-headline-pills{justify-content:flex-start}
  .news-spotlight-stack{grid-template-columns:1fr}
  .news-featured-media{min-height:250px}
  .news-featured-body{padding:22px 18px 18px}
  .news-featured-title{font-size:26px}
  .news-grid.news-grid-v2{grid-template-columns:1fr}
}

/* v26 cleanup + cover focus controls */
.news-headline-pills,.news-mini-panel{display:none!important}
.news-headline-bar{align-items:flex-start}
.news-showcase-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.62fr)}
.news-spotlight-stack{grid-template-rows:repeat(2,minmax(0,1fr))}
.news-cover img,
.news-cover video,
.news-featured-media img,
.news-featured-media video,
.cover-preview-media img,
.cover-preview-media video{
  object-position:var(--cover-pos-x,50%) var(--cover-pos-y,50%);
}
.cover-card-preview{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
}
.cover-card-preview>b{
  display:block;
  padding:12px 13px 0;
  font-size:13px;
}
.cover-preview-media{
  position:relative;
  height:168px;
  margin:12px;
  overflow:hidden;
  border-radius:16px;
  background:radial-gradient(circle at 35% 30%,rgba(255,107,0,.22),transparent 36%),#080a10;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.45);
  font-weight:900;
}
.cover-preview-media img,
.cover-preview-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cover-preview-caption{
  padding:0 14px 14px;
}
.cover-preview-caption strong{
  display:block;
  color:#fff;
  font-size:15px;
  line-height:1.25;
}
.cover-preview-caption small{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.48);
  font-size:12px;
  line-height:1.35;
}
.cover-focus-controls{
  display:grid;
  gap:12px;
}
.cover-focus-controls label{
  display:grid;
  gap:8px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:800;
}
.cover-focus-controls label span{
  float:right;
  color:var(--accent);
}
.cover-focus-controls input[type="range"]{
  width:100%;
  accent-color:var(--accent);
}
@media(max-width:1200px){.news-showcase-grid{grid-template-columns:1fr}.news-spotlight-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}}
@media(max-width:700px){.news-spotlight-stack{grid-template-columns:1fr}}

/* v27 news showcase slots + category/hashtag display */
.news-feed-v3{
  max-width:1480px;
  padding-top:28px;
  padding-bottom:36px;
}
.clean-headline-bar{
  margin-bottom:20px;
  padding:18px 22px;
  border-radius:24px;
}
.news-showcase-v3{
  display:grid;
  grid-template-columns:minmax(0,1.38fr) minmax(330px,.62fr);
  gap:20px;
  margin-bottom:22px;
}
.news-featured-main .news-featured-media{min-height:560px}
.news-featured-main .news-featured-link{grid-template-columns:minmax(380px,1fr) minmax(0,.92fr)}
.news-spotlight-fixed{display:flex;flex-direction:column;gap:14px}/* overridden by FINAL block */
.spotlight-headline{
  padding:12px 16px 0;
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.92;
}
.promo-spotlight{border-color:rgba(255,124,0,.22)}
.news-type-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,124,0,.16);
  border:1px solid rgba(255,124,0,.26);
  color:#ffd5b2;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}
.news-hashtags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.news-hashtags span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:700;
}
.news-hashtags.small-tags span{min-height:24px;font-size:11px;padding:0 9px}
.article-hashtags{margin-top:12px}
.news-card-v2 .news-card-body,
.news-spotlight-card .news-card-body{gap:12px}
.news-card-v2 .news-card-excerpt,
.news-spotlight-card .news-card-excerpt{margin-bottom:0}
.news-card-v2 .news-card-foot,
.news-spotlight-card .news-card-foot,
.news-featured-card .news-card-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.editor-check-grid{display:grid;gap:10px;margin-top:12px}
.editor-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.78);
  font-size:13px;
  line-height:1.45;
}
.editor-check input{margin-top:2px;accent-color:var(--accent)}
@media (max-width:1280px){
  .news-showcase-v3{grid-template-columns:1fr}
  .news-featured-main .news-featured-link{grid-template-columns:1fr}
  .news-featured-main .news-featured-media{min-height:360px}
  .news-spotlight-fixed{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}
}
@media (max-width:700px){
  .news-showcase-v3{gap:16px}
  .news-spotlight-fixed{grid-template-columns:1fr}
  .news-featured-main .news-featured-media{min-height:260px}
  .news-featured-main .news-featured-title{font-size:30px}
}

/* v28 automatic news cover generator */
.auto-cover-settings{
  display:grid;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.auto-cover-settings input[type="color"]{
  min-height:42px;
  padding:5px;
  cursor:pointer;
}
.cover-card-preview .cover-preview-media img[src^="data:image/svg+xml"]{
  background:#080a10;
}


/* ===== SHOWCASE FINAL: единый чистый блок (заменяет v29-v32) ===== */

/* ── Showcase grid: левая + правая колонки ── */
.news-showcase-v3{
  display: grid;
  grid-template-columns: minmax(0,1.42fr) minmax(0,.58fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 22px;
}

/* ── Правая колонка: две карточки строго пополам ── */
.news-spotlight-fixed{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: visible;
}

/* ── Каждая spotlight-карточка: ФИКСИРОВАННАЯ высота ── */
.news-spotlight-fixed .news-spotlight-card{
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Ссылка внутри карточки — вся высота ── */
.news-spotlight-card .news-card-link{
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* ── Превью: фиксированная высота, не сжимается ── */
.news-spotlight-card .news-cover.news-cover-sm{
  height: 120px;
  flex-shrink: 0;
  flex-grow: 0;
}

/* ── Тело карточки: flex-колонка, режет переполнение ── */
.news-spotlight-card .compact-body,
.compact-body{
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px 14px 12px;
  gap: 5px;
}

/* ── meta-row (дата + чип): одна строка, не переносится ── */
.compact-body .news-meta-row{
  font-size: 11px;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Заголовок: максимум 2 строки ── */
.compact-body .news-card-title{
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  flex-shrink: 1;
}

/* ── Excerpt в spotlight: скрыт (мало места) ── */
.news-spotlight-card .news-card-excerpt,
.compact-body .news-card-excerpt{
  display: none !important;
}

/* ── Хэштеги: одна строка, не переносятся ── */
.compact-body .news-hashtags.small-tags{
  flex-shrink: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  max-height: 22px;
}
.compact-body .news-hashtags.small-tags span{
  white-space: nowrap;
}

/* ── Футер (статы): прибит к низу, ВСЕГДА ВИДЕН ── */
.news-spotlight-card .news-card-foot{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  flex-shrink: 0;
  margin-top: auto;
}
.news-spotlight-card .news-reactions.public-news-stats{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── spotlight-headline: заголовок секции ── */
.spotlight-headline{
  padding: 12px 14px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  position: relative;
  flex-shrink: 0;
}
.spotlight-headline::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,130,0,.35), transparent);
}
.promo-spotlight .spotlight-headline{ color: rgba(255,160,60,.9); }
.recent-spotlight .spotlight-headline{ color: rgba(255,255,255,.55); }
.recent-spotlight .spotlight-headline::after{
  background: linear-gradient(90deg, rgba(140,120,255,.3), transparent);
}

/* ── Обводки карточек ── */
.news-spotlight-card{
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  transition:
    transform .22s cubic-bezier(.22,1,.36,1),
    border-color .22s ease,
    box-shadow .22s ease;
}
.promo-spotlight{
  border-color: rgba(255,130,0,.22);
  background: linear-gradient(180deg,rgba(28,22,12,.96),rgba(14,12,8,.98));
}
.recent-spotlight{
  border-color: rgba(120,100,255,.18);
}

/* ── Hover spotlight ── */
.news-spotlight-card:hover{
  transform: translateY(-3px) scale(1.010);
  border-color: rgba(255,130,0,.5);
  box-shadow:
    0 0 0 1px rgba(255,130,0,.16),
    0 24px 60px rgba(0,0,0,.36),
    0 0 28px rgba(255,100,0,.10);
}
.recent-spotlight:hover{
  border-color: rgba(140,120,255,.5);
  box-shadow:
    0 0 0 1px rgba(140,120,255,.14),
    0 24px 60px rgba(0,0,0,.36),
    0 0 28px rgba(120,80,255,.08);
}
.news-spotlight-card:active{
  transform: translateY(-1px) scale(.99);
  transition-duration: .08s;
}

/* ── Shine эффект на обложках ── */
.news-card-v2 .news-cover,
.news-spotlight-card .news-cover,
.news-featured-media{
  overflow: hidden;
  position: relative;
}
.news-card-v2 .news-cover::before,
.news-spotlight-card .news-cover::before,
.news-featured-media::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,transparent 30%,rgba(255,255,255,.08) 50%,transparent 70%);
  transform: translateX(-120%);
  transition: transform .5s ease;
  z-index: 2;
  pointer-events: none;
}
.news-card-v2:hover .news-cover::before,
.news-spotlight-card:hover .news-cover::before,
.news-featured-card:hover .news-featured-media::before{
  transform: translateX(120%);
}

/* ── Главная featured карточка ── */
.news-featured-main{
  display: flex;
  flex-direction: column;
}
.news-featured-main .news-featured-link{
  flex: 1 1 auto;
}
.news-featured-card:hover,
.news-featured-main:hover{
  transform: translateY(-3px);
  border-color: rgba(255,130,0,.5) !important;
  box-shadow:
    0 0 0 1px rgba(255,130,0,.14),
    0 32px 80px rgba(0,0,0,.4),
    0 0 40px rgba(255,100,0,.10) !important;
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .22s, box-shadow .22s;
}
.news-featured-card:active{ transform: translateY(-1px) scale(.99); transition-duration:.08s; }
.news-featured-body .news-card-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.news-featured-body .news-reactions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.news-featured-card:hover .news-badge{
  background: linear-gradient(135deg,rgba(255,107,0,.38),rgba(255,255,255,.10));
  box-shadow: 0 0 14px rgba(255,100,0,.22);
}

/* ── news-card-v2 (лента) ── */
.news-card-v2{
  border: 1px solid rgba(255,255,255,.08);
  transition:
    transform .22s cubic-bezier(.22,1,.36,1),
    border-color .22s ease,
    box-shadow .22s ease;
}
.news-card-v2:hover{
  transform: translateY(-5px);
  border-color: rgba(255,130,0,.42);
  box-shadow:
    0 0 0 1px rgba(255,130,0,.12),
    0 28px 64px rgba(0,0,0,.36),
    0 0 32px rgba(255,100,0,.08);
}
.news-card-v2:active{ transform: translateY(-1px) scale(.99); transition-duration:.08s; }

/* ── Кнопки nav ── */
.btn.btn-ghost{
  position: relative;
  overflow: hidden;
  transition: background .18s, border-color .18s, transform .14s, box-shadow .18s;
}
.btn.btn-ghost:hover{
  background: rgba(255,130,0,.12);
  border-color: rgba(255,130,0,.36);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255,100,0,.14);
}
.btn.btn-ghost:active{ transform: translateY(0); transition-duration:.06s; }

/* ── Логотип ── */
@keyframes logoPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(255,120,0,.0); }
  50%     { box-shadow: 0 0 0 4px rgba(255,120,0,.14), 0 0 16px rgba(255,100,0,.10); }
}
.topbar-logo{
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, background .18s;
  cursor: pointer;
  user-select: none;
}
.topbar-logo.logo-idle{ animation: logoPulse 3s ease-in-out infinite; }
.topbar-logo.logo-hover{
  animation: none;
  transform: rotate(-6deg) scale(1.14);
  background: #ff9030;
  box-shadow: 0 0 0 3px rgba(255,140,0,.22), 0 6px 22px rgba(255,100,0,.28);
}
.topbar-logo.logo-click{
  transform: rotate(4deg) scale(.92);
  background: #e06010;
  box-shadow: 0 0 0 2px rgba(255,100,0,.18), 0 2px 8px rgba(255,80,0,.20);
  transition-duration: .08s;
}

/* ── Page transition overlay ── */
.page-transition-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d15;
  opacity: 0;
  transition: opacity .25s ease;
}
.page-transition-overlay.pto-active{
  opacity: 1;
  pointer-events: all;
}
.page-transition-overlay.pto-leave{
  opacity: 0;
}
.pto-logo{
  font-family: 'Russo One', sans-serif;
  font-size: 38px;
  color: #fff;
  background: var(--accent);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .22s ease .05s, transform .22s cubic-bezier(.22,1,.36,1) .05s;
}
.page-transition-overlay.pto-active .pto-logo{
  opacity: 1;
  transform: scale(1);
}

/* ── Скрываем старый headline-bar ── */
.clean-headline-bar{ display: none; }

/* ── Отступ сверху ── */
.news-feed-v3{ padding-top: 20px; }

/* ── Адаптив ── */
@media (max-width: 1280px){
  .news-showcase-v3{ grid-template-columns: 1fr; }
  .news-featured-main .news-featured-link{ grid-template-columns: 1fr; }
  .news-featured-main .news-featured-media{ min-height: 340px; }
  .news-spotlight-fixed{
    flex-direction: row;
    flex-wrap: wrap;
  }
  .news-spotlight-fixed .news-spotlight-card{
    flex: 1 1 280px;
  }
}
@media (max-width: 700px){
  .news-showcase-v3{ gap: 14px; }
  .news-spotlight-fixed{ flex-direction: column; }
  .news-featured-main .news-featured-media{ min-height: 240px; }
}

/* ===== КОНЕЦ SHOWCASE FINAL ===== */

/* ===== Public topbar: left-expanding row menu ===== */
.public-topbar{
  min-height:72px;
  gap:10px;
  isolation:isolate;
}
.public-topbar .topbar-brand{
  position:relative;
  z-index:1202;
  min-width:0;
  margin-right:auto;
}
.public-topbar .topbar-name{min-width:0}
.topbar-menu-toggle{
  position:relative;
  z-index:1203;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:112px;
  height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
  transition:transform .18s cubic-bezier(.22,1,.36,1), border-color .18s, background .18s, box-shadow .18s;
}
.topbar-menu-toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(255,122,32,.42);
  background:linear-gradient(135deg,rgba(255,107,0,.22),rgba(255,255,255,.06));
  box-shadow:0 16px 38px rgba(255,100,0,.12),0 18px 42px rgba(0,0,0,.28);
}
.topbar-menu-toggle:active{transform:translateY(0) scale(.98)}
.menu-toggle-lines{
  width:20px;
  height:14px;
  position:relative;
  display:inline-flex;
  flex-direction:column;
  justify-content:space-between;
}
.menu-toggle-lines i{
  display:block;
  height:2px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 12px rgba(255,122,32,.34);
  transform-origin:center;
  transition:transform .24s cubic-bezier(.22,1,.36,1), opacity .16s, width .2s;
}
.menu-toggle-lines i:nth-child(2){width:14px;margin-left:auto}
.public-topbar.nav-open .topbar-menu-toggle{
  border-color:rgba(255,122,32,.56);
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 16px 44px rgba(255,100,0,.22),0 18px 42px rgba(0,0,0,.34);
}
.public-topbar.nav-open .menu-toggle-lines i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.public-topbar.nav-open .menu-toggle-lines i:nth-child(2){opacity:0;transform:scaleX(0)}
.public-topbar.nav-open .menu-toggle-lines i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.public-topbar .topbar-backdrop{display:none}

/* Desktop: меню находится слева от кнопки и раскрывается в одну строку влево */
.public-topbar .topbar-nav{
  position:relative;
  z-index:1201;
  flex:0 1 auto;
  order:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  max-width:0;
  min-width:0;
  height:46px;
  overflow:hidden;
  padding:0;
  border:1px solid transparent;
  border-radius:18px;
  background:transparent;
  box-shadow:none;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  white-space:nowrap;
  transform:translateX(24px) scaleX(.96);
  transform-origin:right center;
  transition:
    max-width .36s cubic-bezier(.22,1,.36,1),
    padding .26s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    opacity .2s ease,
    transform .34s cubic-bezier(.22,1,.36,1),
    visibility .2s ease;
}
.public-topbar.nav-open .topbar-nav{
  max-width:min(1180px,calc(100vw - 310px));
  padding:5px;
  border-color:rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(18,21,31,.86),rgba(8,10,16,.78));
  box-shadow:0 18px 48px rgba(0,0,0,.28),0 0 0 1px rgba(255,107,0,.05) inset;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(0) scaleX(1);
}
.public-topbar .topbar-nav-head{display:none}
.public-topbar .topbar-nav .btn{
  flex:0 0 auto;
  min-height:34px;
  width:auto;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  font-size:11px;
  letter-spacing:.01em;
  opacity:0;
  transform:translateX(14px);
  transition:opacity .18s ease, transform .24s cubic-bezier(.22,1,.36,1), background .18s, border-color .18s, box-shadow .18s;
}
.public-topbar.nav-open .topbar-nav .btn{
  opacity:1;
  transform:translateX(0);
}
.public-topbar.nav-open .topbar-nav .btn:nth-child(2){transition-delay:.02s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(3){transition-delay:.04s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(4){transition-delay:.06s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(5){transition-delay:.08s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(6){transition-delay:.10s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(7){transition-delay:.12s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(8){transition-delay:.14s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(9){transition-delay:.16s}
.public-topbar.nav-open .topbar-nav .btn:nth-child(10){transition-delay:.18s}
.public-topbar .topbar-nav .btn-primary{box-shadow:0 10px 24px rgba(255,107,0,.20),0 0 0 1px rgba(255,255,255,.08) inset}
.public-topbar .topbar-nav .btn::after{content:none}
.topbar-menu-toggle{order:3}

@media (max-width:1100px){
  .public-topbar.nav-open .topbar-nav{max-width:min(900px,calc(100vw - 270px))}
  .public-topbar .topbar-nav .btn{padding:8px 10px;font-size:10.5px}
}

/* Mobile/tablet: если в одну строку не помещается — открывается аккуратная карточка */
@media (max-width:900px){
  .public-topbar{padding:14px 16px;align-items:center}
  .topbar-menu-toggle{min-width:46px;width:46px;padding:0;border-radius:14px}
  .menu-toggle-text{display:none}
  .public-topbar .topbar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:1199;
    border:0;
    background:rgba(2,3,7,.42);
    backdrop-filter:blur(7px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .24s ease, visibility .24s ease;
  }
  .public-topbar.nav-open .topbar-backdrop{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .public-topbar .topbar-nav{
    position:fixed;
    top:72px;
    right:12px;
    z-index:1201;
    width:calc(100vw - 24px);
    max-width:none;
    height:auto;
    max-height:calc(100dvh - 88px);
    overflow:auto;
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
    gap:10px;
    padding:16px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    background:radial-gradient(circle at 88% 4%,rgba(255,107,0,.22),transparent 32%),linear-gradient(180deg,rgba(20,23,34,.96),rgba(9,11,18,.97));
    box-shadow:0 28px 90px rgba(0,0,0,.58),0 0 0 1px rgba(255,107,0,.08) inset;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    white-space:normal;
    transform:translate3d(26px,-8px,0) scale(.97);
    transform-origin:top right;
    transition:transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease, visibility .2s ease;
  }
  .public-topbar.nav-open .topbar-nav{
    max-width:none;
    padding:16px;
    border-color:rgba(255,255,255,.12);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate3d(0,0,0) scale(1);
  }
  .public-topbar .topbar-nav-head{
    display:flex;
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
    padding:4px 4px 10px;
    border-bottom:1px solid rgba(255,255,255,.08);
    margin-bottom:4px;
  }
  .public-topbar .topbar-nav-head span{
    font-family:'Russo One',Inter,sans-serif;
    font-size:18px;
    letter-spacing:.02em;
  }
  .public-topbar .topbar-nav-head small{
    color:rgba(255,255,255,.45);
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
  }
  .public-topbar .topbar-nav .btn{
    min-height:42px;
    width:100%;
    justify-content:flex-start;
    padding:11px 13px;
    border-radius:14px;
    font-size:12px;
    opacity:1;
    transform:none;
  }
  .public-topbar .topbar-nav .btn::after{
    content:'›';
    margin-left:auto;
    opacity:.38;
    font-size:18px;
    line-height:1;
  }
  body.menu-lock{overflow:hidden}
}
@media (max-width:520px){
  .public-topbar .topbar-name{font-size:14px;max-width:210px}
  .public-topbar .topbar-name small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (prefers-reduced-motion:reduce){
  .topbar-menu-toggle,
  .menu-toggle-lines i,
  .public-topbar .topbar-backdrop,
  .public-topbar .topbar-nav,
  .public-topbar .topbar-nav .btn{transition:none!important}
}

/* v13 public tournament visibility switch */
.settings-switch-strong{
  grid-column:1/-1;
  padding:12px 14px;
  border:1px solid rgba(255,122,26,.28);
  border-radius:16px;
  background:rgba(255,122,26,.08);
  color:#fff;
}
.settings-help-wide{
  grid-column:1/-1;
  margin-top:-6px;
  color:var(--muted-2);
  font-size:12px;
  line-height:1.45;
}
.disabled-link{
  opacity:.55;
  pointer-events:none;
}
