/* ============ MineAttack Hub ============ */

/* Lokal gehostete Schriften (kein Google-Fonts-CDN — Datenschutz) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/press-start-2p.woff2') format('woff2');
}

:root {
  --bg0: #0a0d12;
  --bg1: #0f141b;
  --bg2: #131a23;
  --bg3: #1a2330;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #eef2f6;
  --text2: #9aa7b4;
  --text3: #6b7684;
  --green: #4ade60;
  --green-soft: rgba(74, 222, 96, 0.12);
  --red: #ff4655;
  --yt: #ff0033;
  --tw: #a970ff;
  --tt: #5be8f0;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* hidden-Attribut muss auch gegen display:flex/inline-block gewinnen */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(74, 222, 96, 0.35); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #2a3442; border-radius: 8px; border: 3px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: #37445a; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ Topbar ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-block { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand-text {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
  transform: translateY(1px);
}
.brand-text em, .footer-brand em { font-style: normal; color: var(--green); }

/* --- Suche --- */

.search { position: relative; flex: 1; max-width: 620px; margin: 0 auto; }

#search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 0 16px;
  height: 42px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search.open #search-form,
#search-form:focus-within {
  border-color: rgba(74, 222, 96, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 222, 96, 0.12);
}
.search-icon { width: 17px; height: 17px; color: var(--text3); flex-shrink: 0; }

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  min-width: 0;
}
#search-input::placeholder { color: var(--text3); }
#search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 50%;
}
.search-clear:hover { color: var(--text); background: var(--bg3); }
.search-clear svg { width: 14px; height: 14px; }

.search-kbd {
  font-family: var(--font);
  font-size: 11px;
  color: var(--text3);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 1px 7px;
  flex-shrink: 0;
}

/* --- Vorschläge --- */

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.suggest-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  padding: 12px 16px 6px;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
}
.suggest-item.active, .suggest-item:hover { background: var(--bg3); }
.suggest-item .avi { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.suggest-item .sthumb { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.suggest-item .s-main { min-width: 0; flex: 1; }
.suggest-item .s-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-item .s-sub { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item mark { background: none; color: var(--green); }

.suggest-footer {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.suggest-footer:hover, .suggest-footer.active { background: var(--green-soft); }

/* --- Nav --- */

.nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.12s, background 0.12s;
}
.nav a:hover { color: var(--text); background: var(--bg3); }
.nav a.current { color: var(--text); background: var(--bg3); }

.nav-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffb3b9 !important;
  background: rgba(255, 70, 85, 0.12) !important;
  border: 1px solid rgba(255, 70, 85, 0.35);
}
.nav-live:hover { background: rgba(255, 70, 85, 0.2) !important; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 1.6s ease-out infinite;
}
.live-dot.big { width: 11px; height: 11px; margin-right: 2px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 70, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0); }
}

.mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
}
.mobile-search-btn svg { width: 20px; height: 20px; }

/* ============ Layout ============ */

#main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px 64px; }

.view { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.error-banner {
  margin: 16px 0 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 70, 85, 0.1);
  border: 1px solid rgba(255, 70, 85, 0.3);
  color: #ffb3b9;
  font-size: 13.5px;
  font-weight: 600;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px 52px;
  margin: 24px 0 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(74, 222, 96, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-blocks { position: absolute; inset: 0; pointer-events: none; }
.hb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  opacity: 0.5;
  animation: float 7s ease-in-out infinite;
}
.hb1 { left: 8%; top: 30%; background: var(--green); animation-delay: 0s; }
.hb2 { left: 16%; top: 62%; background: #7c5236; width: 13px; height: 13px; animation-delay: 1.4s; }
.hb3 { right: 9%; top: 26%; background: #7c5236; animation-delay: 0.7s; }
.hb4 { right: 17%; top: 58%; background: var(--green); width: 12px; height: 12px; animation-delay: 2.2s; }
.hb5 { right: 30%; top: 14%; background: #3b82f6; width: 9px; height: 9px; animation-delay: 3s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-14px) rotate(-6deg); }
}

.hero-kicker {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--pixel);
  font-size: clamp(26px, 5.5vw, 46px);
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}
.hero-title em { font-style: normal; color: var(--green); }

.hero-logo { margin: 4px 0 0; }
.hero-logo img {
  display: block;
  width: min(520px, 88%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55));
}
.hero-sub { color: var(--text2); font-size: 15.5px; margin: 18px 0 0; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
}
.stat-chip strong { color: var(--text); font-weight: 800; }
.stat-chip.live-chip { border-color: rgba(255, 70, 85, 0.4); color: #ffb3b9; }
.stat-chip.live-chip strong { color: #ff8a94; }

/* ============ Sections ============ */

.section { margin-top: 44px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.section-meta { font-size: 12.5px; color: var(--text3); }
.section-link { font-size: 13.5px; font-weight: 700; color: var(--green); }
.section-link:hover { text-decoration: underline; }

.page-head { margin: 36px 0 22px; }
.page-head h1 {
  font-size: 30px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-sub { color: var(--text2); margin: 6px 0 0; font-size: 14.5px; }

/* ============ Live-Cards ============ */

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.lcard {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s;
  position: relative;
}
.lcard:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.lthumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg3); overflow: hidden; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.lcard:hover .lthumb img { transform: scale(1.045); }

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--pixel);
  font-size: 9px;
  padding: 6px 9px 5px;
  border-radius: 6px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(255, 70, 85, 0.5);
}
.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.viewer-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.viewer-badge svg { width: 13px; height: 13px; }

.uptime-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #d7dde4;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.lmeta { display: flex; gap: 12px; padding: 14px; }
.lmeta .avi {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--red);
  box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.25);
}
.l-main { min-width: 0; }
.l-name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.l-title {
  font-size: 13.5px;
  color: var(--text2);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-chip {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tw);
  background: rgba(169, 112, 255, 0.12);
  border: 1px solid rgba(169, 112, 255, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

/* leere Live-Sektion */
.live-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  color: var(--text2);
  background: var(--bg1);
}
.live-empty .zzz { font-size: 30px; display: block; margin-bottom: 10px; }
.live-empty strong { color: var(--text); }
.live-empty p { margin: 4px 0 0; font-size: 13.5px; color: var(--text3); }

/* ============ Video-Cards ============ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px 20px;
}

.vcard { display: block; }
.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--line);
  transition: transform 0.16s ease, box-shadow 0.16s, border-color 0.16s;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.vcard:hover .vthumb {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 96, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.vcard:hover .vthumb img { transform: scale(1.05); }

.new-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #08210d;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.dur-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.vmeta { display: flex; gap: 11px; margin-top: 11px; }
.vmeta .avi { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.v-main { min-width: 0; }
.v-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard:hover .v-title { color: var(--green); }
.v-sub { font-size: 12.5px; color: var(--text2); margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.v-sub .pf-ico { transform: translateY(1px); }
.v-sub mark, .v-title mark, .c-name mark { background: none; color: var(--green); }

.load-more-wrap { text-align: center; margin-top: 30px; }

.btn {
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
}
.btn:hover { background: var(--bg3); border-color: rgba(74, 222, 96, 0.5); }

/* ============ Kanal-Cards ============ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.13s;
}
.chip:hover { color: var(--text); border-color: var(--line2); background: var(--bg3); }
.chip.on { background: var(--text); color: var(--bg0); border-color: var(--text); }
.chip.chip-live.on { background: var(--red); color: #fff; border-color: var(--red); }
.chip .n { opacity: 0.65; font-weight: 600; margin-left: 4px; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.ccard {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s;
  overflow: hidden;
}
.ccard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(180deg, var(--pf-tint, rgba(255, 255, 255, 0.04)), transparent);
  pointer-events: none;
}
.ccard:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}
.ccard.is-live { border-color: rgba(255, 70, 85, 0.45); }

.c-avi-wrap { position: relative; display: inline-block; margin-bottom: 10px; }
.ccard .avi {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg3);
}
.ccard.is-live .avi { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.25); }
.c-live-tag {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 5px;
  border: 2px solid var(--bg2);
}

.ccard.is-host { border-color: rgba(251, 191, 36, 0.4); }
.ccard.is-host:hover { border-color: rgba(251, 191, 36, 0.65); }
.c-host {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.c-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 7px; }
.c-title { font-size: 12.5px; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-handle { font-size: 12.5px; color: var(--text2); margin-top: 5px; word-break: break-all; }
.c-subs { font-size: 12px; color: var(--text3); margin-top: 3px; font-weight: 600; }
.c-linked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
}
.c-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text3);
  min-height: 18px;
}
.c-foot .live-now { color: #ff8a94; font-weight: 700; }

/* Plattform-Icons */
.pf-ico { width: 15px; height: 15px; flex-shrink: 0; }
.pf-ico.yt { color: var(--yt); }
.pf-ico.tw { color: var(--tw); }
.pf-ico.tt { color: var(--tt); }

/* ============ Suche (Ergebnisse) ============ */

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.results-bar .chips { margin-bottom: 18px; }
.sort { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.sort select {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.result-block { margin-bottom: 34px; }
.result-block h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin: 0 0 14px;
}

.no-results {
  text-align: center;
  padding: 70px 20px;
  color: var(--text2);
}
.no-results .pick { font-size: 34px; display: block; margin-bottom: 14px; }
.no-results strong { color: var(--text); font-size: 17px; }
.no-results p { margin: 6px 0 0; font-size: 13.5px; color: var(--text3); }

/* ============ Skeletons ============ */

.skel { pointer-events: none; }
.skel .vthumb, .skel .lthumb { border: 1px solid var(--line); }
.skel-box {
  background: linear-gradient(100deg, var(--bg2) 40%, var(--bg3) 50%, var(--bg2) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel .avi { background: var(--bg3); }
.skel-line { height: 13px; margin-top: 8px; }
.skel-line.w60 { width: 60%; }

/* ============ Footer ============ */

.footer { border-top: 1px solid var(--line); background: var(--bg1); margin-top: 40px; }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 24px 40px;
  text-align: center;
  color: var(--text3);
  font-size: 12.5px;
  line-height: 1.7;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 14px;
}
.footer-brand .brand-block { width: 20px; height: 20px; border-radius: 4px; }
.footer-logo { display: block; height: 44px; width: auto; margin: 0 auto; opacity: 0.92; }
.footer-note { margin-top: 10px; font-size: 11.5px; }


/* ============ Minecraft-Serverstatus ============ */

.mc-card {
  display: block;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.mc-card:hover { border-color: rgba(74, 222, 96, 0.45); transform: translateY(-1px); }
.mc-alle {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
}
.mc-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-head-row strong { font-size: 16px; font-weight: 800; }
.mc-note { font-size: 13px; color: var(--text2); }
.mc-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--text3);
}
.mc-dot.on {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 96, 0.16);
  animation: mcPuls 2.2s ease-in-out infinite;
}
.mc-off .mc-head-row strong { color: var(--text2); }
@keyframes mcPuls {
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 96, 0.06); }
}

.mc-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mc-p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line2);
}
.mc-head {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 6px;
  image-rendering: pixelated;
  background: var(--bg3);
}
.mc-name { font-size: 13.5px; font-weight: 700; }
.mc-more {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px dashed var(--line2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
}
.mc-empty {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text3);
}


/* ============ Serverseite ============ */

.srv-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 130% at 0% 0%, var(--srv-tint, rgba(255, 255, 255, 0.04)), transparent 60%),
    var(--bg1);
}
.srv-on { --srv-tint: rgba(74, 222, 96, 0.1); }
.srv-off { --srv-tint: rgba(255, 70, 85, 0.08); }
.srv-status { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.srv-status strong { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.srv-seit { font-size: 13px; color: var(--text3); font-weight: 600; }
.srv-note { margin: 0; font-size: 14px; color: var(--text2); max-width: 46ch; }

.srv-belegung { min-width: 240px; flex: 1; max-width: 380px; }
.srv-zahl { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.srv-zahl strong { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.srv-zahl span { font-size: 13px; color: var(--text3); font-weight: 600; }
.srv-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg3);
  overflow: hidden;
}
.srv-bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.srv-p {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg1);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.srv-p:hover { border-color: rgba(74, 222, 96, 0.5); transform: translateY(-1px); }
.srv-kopf {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 7px;
  image-rendering: pixelated;
  background: var(--bg3);
}
.srv-p-name {
  font-size: 14.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-hinweis {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text3);
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg1);
  border: 1px dashed var(--line2);
}

.srv-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.srv-kpi {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.srv-kpi strong { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.srv-kpi span { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }
.srv-kpi em { font-style: normal; font-size: 11.5px; color: var(--text3); margin-top: 3px; }

.srv-cta {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.srv-cta p { margin: 0; font-size: 14px; color: var(--text2); }

@media (max-width: 620px) {
  .srv-hero { padding: 20px 18px; }
  .srv-belegung { max-width: none; }
  .srv-zahl { justify-content: flex-start; }
  .srv-cta { flex-direction: column; align-items: stretch; text-align: center; }
}


/* ---- Spielerliste & Spielerseite ---- */

.srv-liste {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg1);
}
.srv-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  color: inherit;
}
.srv-zeile + .srv-zeile { border-top: 1px solid var(--line); }
a.srv-zeile:hover { background: var(--bg2); }
.srv-rang {
  min-width: 24px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
}
.srv-kopf-klein { width: 32px; height: 32px; border-radius: 6px; }
.srv-zeile-main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.srv-zeile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-zeile-sub { font-size: 11.5px; color: var(--text3); }
.srv-zeit { font-size: 13.5px; font-weight: 800; color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv-live { font-size: 11px; font-weight: 800; color: var(--green); white-space: nowrap; }

.sp-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 30px 0 26px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 130% at 0% 0%, var(--srv-tint, rgba(255, 255, 255, 0.04)), transparent 60%),
    var(--bg1);
}
.sp-kopf {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 14px;
  image-rendering: pixelated;
  background: var(--bg3);
}
.sp-main { min-width: 0; }
.sp-name { margin: 0 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; word-break: break-word; }
.sp-sub { font-size: 13.5px; color: var(--text2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-rang { margin-top: 6px; font-size: 12.5px; color: var(--text3); font-weight: 700; }

@media (max-width: 620px) {
  .sp-hero { flex-direction: column; text-align: center; padding: 22px 18px; }
  .sp-sub { justify-content: center; }
  .srv-zeile { padding: 11px 12px; gap: 9px; }
  .srv-rang { min-width: 18px; }
}

/* ============ Bottom-Nav (Mobile) ============ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line2);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  padding: 5px 10px;
  border-radius: 10px;
  position: relative;
  min-width: 56px;
}
.bottom-nav a .bn-ico { font-size: 18px; line-height: 1; }
.bottom-nav a.current { color: var(--green); }
.bottom-nav .bn-dot {
  position: absolute;
  top: 2px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-out infinite;
}

/* ============ Countdown ============ */

.countdown {
  margin: 30px auto 4px;
  display: inline-block;
  padding: 20px 34px 16px;
  border-radius: 18px;
  background: rgba(74, 222, 96, 0.06);
  border: 1px solid rgba(74, 222, 96, 0.35);
  box-shadow: 0 0 40px rgba(74, 222, 96, 0.08), inset 0 0 30px rgba(74, 222, 96, 0.04);
}
.cd-label {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.cd-grid { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 68px;
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 10px 9px;
}
.cd-num {
  font-family: var(--pixel);
  font-size: 24px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(74, 222, 96, 0.45);
}
.cd-unit { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.cd-sep { font-family: var(--pixel); font-size: 20px; color: var(--text3); padding-top: 14px; }
.cd-date { margin: 13px 0 0; font-size: 13px; font-weight: 600; color: var(--text2); }

/* ============ Mods ============ */

.mods-callout, .callout {
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text2);
  margin: 0 0 24px;
  line-height: 1.6;
}
.mods-callout strong, .callout strong { color: var(--text); }
.mods-callout a, .callout a { color: var(--green); font-weight: 700; }
.mods-callout a:hover, .callout a:hover { text-decoration: underline; }

.mods-h2 { font-size: 19px; font-weight: 800; margin: 30px 0 16px; }
.mods-sub { font-size: 13px; color: var(--text3); margin: -10px 0 16px; }

/* --- Modpack-Download --- */

.modpack-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background:
    radial-gradient(ellipse 60% 120% at 8% 0%, rgba(74, 222, 96, 0.12), transparent 60%),
    var(--bg2);
  border: 1px solid rgba(74, 222, 96, 0.4);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 0 36px rgba(74, 222, 96, 0.07);
}
.mp-icon { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; image-rendering: pixelated; }
.mp-main { flex: 1; min-width: 0; }
.mp-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
}
.mp-main h2 { margin: 5px 0 4px; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
.mp-ver { font-size: 12.5px; font-weight: 700; color: var(--text3); margin-left: 6px; white-space: nowrap; }
.mp-main > p { margin: 0 0 10px; font-size: 13.5px; color: var(--text2); }
.mp-steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text2); display: grid; gap: 3px; }
.mp-steps a { color: var(--green); font-weight: 700; }
.mp-steps a:hover { text-decoration: underline; }
.mp-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.mp-btn {
  background: var(--green);
  border-color: var(--green);
  color: #08210d;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 24px;
  white-space: nowrap;
}
.mp-btn:hover { background: #63e87c; border-color: #63e87c; }
.mp-size { font-size: 12px; color: var(--text3); font-weight: 600; }

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.mod-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s;
}
.mod-card:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.mod-card.featured {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.05), var(--bg2) 55%);
  margin-bottom: 6px;
}

.mod-top { display: flex; align-items: center; gap: 14px; }
.mod-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg3);
  flex-shrink: 0;
}
.mod-icon-fb { display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mod-id { min-width: 0; flex: 1; }
.mod-id h3 { margin: 0; font-size: 17px; font-weight: 800; }
.mod-meta { font-size: 12.5px; color: var(--text3); font-weight: 600; margin-top: 2px; }
.mod-badge {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.mod-note { margin: 0; font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.mod-warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fcd34d;
  line-height: 1.5;
}
.mod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-chips span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}
.mod-btn { margin-top: auto; text-align: center; font-size: 13.5px; padding: 9px 18px; }

.mods-video {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.16s ease, border-color 0.16s;
}
.mods-video:hover { transform: translateY(-3px); border-color: rgba(74, 222, 96, 0.45); }
.mv-thumb { position: relative; width: 240px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg3); }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.mv-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fbbf24; }
.mv-main h3 { margin: 6px 0 6px; font-size: 17px; font-weight: 800; }
.mv-main p { margin: 0; font-size: 13.5px; color: var(--text2); }

/* ============ Regeln ============ */

.rule-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.rs-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rs-ico { font-size: 26px; margin-bottom: 4px; }
.rs-item strong { font-size: 15.5px; }
.rs-item span:last-child { font-size: 13px; color: var(--text2); line-height: 1.5; }

.rule-toc { margin-bottom: 26px; }
.rule-toc .chip { text-decoration: none; }

.rule-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 20px;
  scroll-margin-top: 84px;
}
.rule-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rule-num {
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(74, 222, 96, 0.35);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rule-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.rule-card > p { color: var(--text2); font-size: 14.5px; line-height: 1.65; }
.rule-card h3 { font-size: 15px; font-weight: 800; margin: 20px 0 12px; }
.rule-note { font-size: 13.5px !important; color: var(--text3) !important; }
.callout.ok { border-left-color: var(--green); margin-top: 18px; margin-bottom: 0; }

.penalty-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pstep {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 700;
}
.pstep small { font-weight: 600; color: var(--text3); }
.pstep.hard { border-color: rgba(255, 70, 85, 0.5); color: #ff8a94; }
.parrow { color: var(--text3); font-weight: 700; }

.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rule-list li {
  position: relative;
  padding: 10px 14px 10px 42px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.rule-list li::before {
  position: absolute;
  left: 13px;
  top: 9px;
  font-size: 14px;
  font-weight: 900;
}
.rule-list li.no::before { content: "✕"; color: #ff6a76; }
.rule-list li.yes::before { content: "✓"; color: var(--green); }
.rule-list li small { display: block; color: var(--text3); font-size: 12.5px; margin-top: 2px; }

.banner-rule {
  background: rgba(255, 70, 85, 0.09);
  border: 1px solid rgba(255, 70, 85, 0.4);
  color: #ff9aa3;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.rule-quote {
  margin: 20px 0 0;
  padding: 14px 20px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ban-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ban-grid span {
  background: rgba(255, 70, 85, 0.07);
  border: 1px solid rgba(255, 70, 85, 0.28);
  color: #ffb3b9;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1.4;
}
.ban-grid span::before { content: "✕ "; color: #ff6a76; font-weight: 900; }
.ban-grid span small { display: block; font-weight: 600; color: var(--text3); font-size: 11px; }

.rule-thanks { text-align: center; color: var(--text2); font-size: 15px; margin: 30px 0 10px; }

/* ============ Login & Profil ============ */

.auth-box { flex-shrink: 0; display: flex; align-items: center; }
.auth-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  transition: filter 0.13s;
}
.auth-login:hover { filter: brightness(1.12); }
.auth-login svg { width: 17px; height: 17px; }
.auth-avatar { display: block; border-radius: 50%; }
.auth-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line2);
  transition: border-color 0.13s;
}
.auth-avatar:hover img { border-color: var(--green); }

.vbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #08210d;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

/* --- Kanal-Seite --- */

.ch-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 36px 0 30px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, var(--pf-tint, rgba(255, 255, 255, 0.04)), transparent 55%),
    var(--bg1);
}
.ch-avi {
  width: 116px !important;
  height: 116px !important;
  border-radius: 50% !important;
  border: 4px solid var(--bg3);
  flex-shrink: 0;
}
.ch-main { flex: 1; min-width: 0; }
.ch-name {
  margin: 4px 0 2px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.ch-name .pf-ico { width: 22px; height: 22px; }
.ch-name .vbadge { width: 20px; height: 20px; font-size: 12px; }
.ch-sub { color: var(--text2); font-size: 14.5px; }
.ch-verified-note { color: var(--green); font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ch-primary { font-weight: 800; }
.ch-primary.ch-yt { background: var(--yt); border-color: var(--yt); color: #fff; }
.ch-primary.ch-yt:hover { filter: brightness(1.15); }
.ch-primary.ch-tw { background: var(--tw); border-color: var(--tw); color: #1a0f2b; }
.ch-primary.ch-tw:hover { filter: brightness(1.1); }
.ch-section { margin-top: 30px; margin-bottom: 16px; }
.ch-others { margin-top: 18px; width: 100%; }
.ch-others-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ch-others-n {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.ch-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.oc {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.oc:hover { border-color: rgba(74, 222, 96, 0.5); transform: translateY(-1px); }
.oc-avi { width: 38px; height: 38px; flex: none; }
.oc-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.oc-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-sub { font-size: 11.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-live {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}

/* --- Mein Profil --- */

.me-banner {
  margin: 24px 0 0;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.me-banner.ok { background: var(--green-soft); border: 1px solid rgba(74, 222, 96, 0.4); color: #a9f0b6; }
.me-banner.err { background: rgba(255, 70, 85, 0.1); border: 1px solid rgba(255, 70, 85, 0.35); color: #ffb3b9; }

.me-login-card {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 40px 34px;
}
.me-login-card h1 { font-size: 26px; font-weight: 900; margin: 10px 0 12px; }
.me-login-card > p { color: var(--text2); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
.me-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 26px;
}
.me-discord-btn:hover { background: #6a76ff; border-color: #6a76ff; }

.me-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.me-card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.me-note { color: var(--text3); font-size: 12.5px; line-height: 1.55; margin: 4px 0 0; }
.me-account { display: flex; align-items: center; gap: 16px; }
.me-account > div { flex: 1; }
.me-account strong { font-size: 16px; }
.me-avi { width: 52px; height: 52px; border-radius: 50%; }

.me-verify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.me-verify {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.me-verify h3 { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.me-chan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--bg3);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
}
.me-chan a { color: var(--green); }
.me-chan a:hover { text-decoration: underline; }
.me-handle { color: var(--text3); font-weight: 600; font-size: 12px; }

.me-field { display: block; font-size: 13px; font-weight: 700; color: var(--text2); margin-top: 14px; }
.me-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 13px;
}
.me-field input:focus { outline: none; border-color: rgba(74, 222, 96, 0.55); }
.me-save-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }

/* ============ Adminpanel ============ */
/* Prefix ap- statt ad-: Adblocker-Filterlisten verstecken .ad-card, .ad-row,
   .ad-btn, .ad-tabs & Co. generisch auf jeder Seite. */

#admin-content { max-width: 940px; }

.ap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.ap-stat {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ap-stat strong { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.ap-stat span { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }
.ap-stat-warn strong { color: #ff8a94; }

.ap-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 20px;
  overflow-x: auto;
}
.ap-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
}
.ap-tab:hover { color: var(--text); }
.ap-tab.on { color: var(--green); border-bottom-color: var(--green); }
.ap-tab .n {
  margin-left: 7px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--bg3);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text3);
}
.ap-tab.on .n { background: var(--green-soft); color: var(--green); }

.ap-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ap-card-head h2 { margin: 0; font-size: 16.5px; font-weight: 800; }
.ap-card-head { margin-bottom: 12px; }
.ap-card-head .me-note { margin-top: 3px; }

.ap-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ap-search {
  flex: 1;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 9px 16px;
}
.ap-search:focus { outline: none; border-color: rgba(74, 222, 96, 0.55); }
.ap-search::-webkit-search-cancel-button { filter: grayscale(1); }
.ap-chips-row { margin: 0; }

.ap-list { display: flex; flex-direction: column; gap: 6px; }
.ap-row, .ap-user summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.ap-row:hover, .ap-user summary:hover { border-color: var(--line2); }
.ap-avi { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.ap-thumb {
  width: 76px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.ap-cell { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ap-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}
a.ap-name:hover { color: var(--green); }
.ap-sub {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ap-sub .pf-ico { width: 13px; height: 13px; }
.ap-off { opacity: 0.55; }
.ap-empty { text-align: center; color: var(--text3); font-size: 13.5px; padding: 26px 10px; }

.ap-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg3);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text3);
  white-space: nowrap;
}
.ap-tag.ap-ok { color: var(--green); background: var(--green-soft); }
.ap-tag.ap-bad { color: #ff8a94; background: rgba(255, 70, 85, 0.12); }
.ap-tag.ap-info { color: #8ec1ff; background: rgba(88, 156, 255, 0.14); }

.ap-btn { padding: 7px 14px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.ap-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--bg3);
  border-radius: 10px;
}
.ap-bulk-alle { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }
.ap-bulk-n { font-size: 12.5px; color: var(--text3); min-width: 90px; }
.ap-bulk .ap-btn[disabled] { opacity: 0.4; cursor: default; }
.ap-check { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.ap-danger { border-color: rgba(255, 70, 85, 0.4) !important; color: #ff8a94 !important; background: transparent; }
.ap-danger:hover { background: rgba(255, 70, 85, 0.12) !important; }

/* Kanal hinzufügen */
.ap-add-card { border-color: rgba(74, 222, 96, 0.3); }
.ap-add-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.ap-seg {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.ap-seg button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--text3);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
}
.ap-seg button.on { background: var(--bg3); color: var(--text); }
.ap-add-row input {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 9px 16px;
}
.ap-add-row input:focus { outline: none; border-color: rgba(74, 222, 96, 0.55); }
#ap-input { flex: 2; min-width: 220px; }
#ap-name { flex: 1; min-width: 130px; }

/* Accounts */
.ap-user { border: none; background: none; padding: 0; }
.ap-user summary { cursor: pointer; list-style: none; }
.ap-user summary::-webkit-details-marker { display: none; }
.ap-user[open] summary { border-radius: 12px 12px 0 0; border-bottom-color: transparent; }
.ap-arrow { color: var(--text3); font-size: 12px; transition: transform 0.15s; }
.ap-user[open] .ap-arrow { transform: rotate(180deg); }
.ap-user-body {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-top: 1px dashed var(--line);
  border-radius: 0 0 12px 12px;
  padding: 12px 14px 14px;
}
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ap-user-body code { background: var(--bg3); border-radius: 5px; padding: 1px 6px; font-size: 11.5px; }
.ap-user-body a { color: var(--green); }
.ap-user-body .ap-btn { margin-top: 6px; }

@media (max-width: 640px) {
  .ap-row, .ap-user summary { flex-wrap: wrap; }
  .ap-cell { flex-basis: 55%; }
  .ap-btn { margin-left: auto; }
  .ap-seg { width: 100%; }
  .ap-seg button { flex: 1; justify-content: center; }
}


/* ---- Statistiken ---- */

.ap-stat em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text3); margin-top: 3px; }
.ap-stat-live strong { color: var(--green); }

.ap-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.ap-chart { width: 100%; height: auto; display: block; margin: 4px 0 2px; overflow: visible; }
.ap-chart .ap-grid { stroke: var(--line); stroke-width: 1; }
.ap-chart .ap-axis { fill: var(--text3); font-size: 11px; font-weight: 700; }
.ap-chart .ap-line { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ap-chart .ap-line2 { stroke: var(--tw); stroke-width: 1.8; stroke-dasharray: 4 4; }
.ap-chart .ap-dot { fill: var(--green); }
.ap-chart .ap-hit { fill: transparent; }
.ap-chart .ap-hit:hover { fill: rgba(255, 255, 255, 0.05); }

.ap-legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text2);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.ap-legende i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.ap-legende .ap-key1 { background: var(--green); }
.ap-legende .ap-key2 { background: var(--tw); }
.ap-legende-note { margin-left: auto; color: var(--text3); font-weight: 600; }

.ap-liste { display: flex; flex-direction: column; }
.ap-zeile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  overflow: hidden;
}
.ap-zeile + .ap-zeile { border-top: 1px solid var(--line); }
.ap-zeile-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--green-soft);
  border-radius: 8px;
  z-index: 0;
}
.ap-zeile-bot .ap-zeile-bar { background: rgba(255, 70, 85, 0.13); }
.ap-zeile-name {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-zeile-n { position: relative; z-index: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text2); }

.ap-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ap-grid2 .ap-card { margin-bottom: 0; }

.ap-hours { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.ap-hour { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.ap-hour i {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--green) 0%, rgba(74, 222, 96, 0.35) 100%);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.ap-hour b { font-size: 10px; font-weight: 700; color: var(--text3); }

@media (max-width: 620px) {
  .ap-legende-note { margin-left: 0; width: 100%; }
  .ap-hours { height: 80px; }
}


/* ---- Server-Tab: Spielzeiten & Verfügbarkeit ---- */

.sv-kopf {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 5px;
  image-rendering: pixelated;
  background: var(--bg3);
  vertical-align: middle;
}
.sv-kopf-klein { width: 22px; height: 22px; margin-right: 7px; }

.sv-tage { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; }
.sv-tag { flex: 1; height: 100%; display: flex; align-items: stretch; }
.sv-saeule {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg3);
}
.sv-saeule i { display: block; width: 100%; }
.sv-up { background: var(--green); }
.sv-down { background: var(--red); }
.sv-unk { background: var(--line2); }
.sv-leer { height: 100%; background: var(--bg3); }

.ap-legende .sv-key-up,
.ap-legende .sv-key-down,
.ap-legende .sv-key-unk {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
}
.ap-legende .sv-key-up { background: var(--green); }
.ap-legende .sv-key-down { background: var(--red); }
.ap-legende .sv-key-unk { background: var(--line2); }

.sv-jetzt { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line2);
}
.sv-p-name { font-size: 13.5px; font-weight: 700; }
.sv-p-zeit { font-size: 12px; color: var(--text3); font-weight: 600; }
.sv-meta {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  white-space: nowrap;
}
.sv-tag-live { margin-left: 7px; font-size: 11px; font-weight: 800; color: var(--green); }

@media (max-width: 620px) {
  .sv-tage { height: 90px; }
  /* Zeiten bleiben lesbar, rücken aber unter den Namen statt zu verschwinden. */
  .ap-zeile { flex-wrap: wrap; }
  .sv-meta { order: 3; width: 100%; font-size: 11.5px; }
}

/* ============ Rechtliches ============ */

.legal { max-width: 860px; }
.legal-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.legal-card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.legal-card p, .legal-card li { color: var(--text2); font-size: 14px; line-height: 1.7; }
.legal-card p { margin: 0 0 10px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 0 0 10px; padding-left: 22px; }
.legal-card a { color: var(--green); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }
.legal-card code { background: var(--bg3); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.legal-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text2);
}
.legal-table th { color: var(--text); background: var(--bg2); font-weight: 700; }

.footer-links { margin: 6px 0 2px; }
.footer-links a { color: var(--text2); font-weight: 700; }
.footer-links a:hover { color: var(--green); }

.me-danger { margin-top: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.me-danger .chip { border-color: rgba(255, 70, 85, 0.4); color: #ff8a94; }
.me-danger .chip:hover { background: rgba(255, 70, 85, 0.12); }

/* ============ Responsive ============ */

@media (max-width: 1000px) {
  .search-kbd { display: none; }
  .topbar-inner { gap: 12px; }
}

@media (max-width: 760px) {
  .topbar-inner { height: 58px; padding: 0 14px; }
  .brand-text { font-size: 11px; }
  .brand-logo { height: 34px; }
  .search {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    max-width: none;
    padding: 10px 14px 12px;
    background: var(--bg1);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .search.open { display: block; }
  .suggest { left: 14px; right: 14px; }
  .mobile-search-btn { display: flex; margin-left: auto; }
  .nav { margin-left: 0; }
  .nav a { padding: 7px 10px; font-size: 13px; }
  #main { padding: 0 14px 48px; }
  .hero { padding: 42px 16px 38px; margin-top: 16px; }
  .hero-sub br { display: none; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 14px; }
  .live-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .ccard .avi { width: 62px; height: 62px; }
  .c-title { display: none; }
  .page-head h1 { font-size: 24px; }
  .results-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .countdown { padding: 16px 14px 12px; display: block; }
  .cd-cell { min-width: 58px; padding: 10px 6px 8px; }
  .cd-num { font-size: 18px; }
  .cd-sep { display: none; }
  .cd-grid { gap: 8px; }
  .mods-video { flex-direction: column; align-items: stretch; }
  .mv-thumb { width: 100%; }
  .auth-login span { display: none; }
  .auth-login { padding: 9px; }
  .ch-hero { flex-direction: column; text-align: center; padding: 24px 16px; gap: 14px; }
  .ch-name { justify-content: center; font-size: 24px; }
  .ch-actions { justify-content: center; }
  .ch-others-grid { grid-template-columns: 1fr; }
  .me-account { flex-wrap: wrap; }
  .modpack-card { flex-direction: column; align-items: stretch; text-align: center; padding: 20px 16px; }
  .mp-icon { margin: 0 auto; }
  .mp-steps { text-align: left; }
  .mp-btn { width: 100%; text-align: center; }
  .rule-card { padding: 20px 16px; }
  .topbar-inner .nav { display: none; }
  .bottom-nav { display: flex; }
  #main { padding-bottom: 90px; }
  .footer-inner { padding-bottom: 96px; }
}

@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
  .nav a[data-nav="home"] { display: none; }
}
