/* Sendezentrale – Regieraum bei Nacht */
:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --panel: #151518;
  --panel-2: #1c1c20;
  --line: #2a2a30;
  --line-2: #3a3a42;
  --text: #ece8e1;
  --muted: #a39e95;
  --dim: #6f6b65;
  --red: #ff3030;
  --red-deep: #c4161c;
  --red-glow: rgba(255, 40, 40, .55);
  --amber: #ffad2e;
  --amber-soft: #ffcf80;
  --phos: #8cf0b4;
  --head: "Helvetica Neue", "Arial Narrow", "Liberation Sans Narrow", "DejaVu Sans Condensed", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(255, 60, 30, .07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    var(--bg);
  color: var(--text);
  font: 17px/1.62 var(--body);
  overflow-x: hidden;
}
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--amber-soft); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--head); font-stretch: condensed; letter-spacing: -.005em; }

/* ============ Kopf: Regie-Leiste ============ */
.regie { position: relative; background: #070708; border-bottom: 1px solid var(--line); }
.regie-bar {
  position: relative; z-index: 3;
  max-width: 1240px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.site-logo { line-height: 0; min-width: 0; }
.site-logo img { max-height: 64px; width: auto; }
.regie-status { display: flex; align-items: center; gap: 14px; font-family: var(--mono); }
.onair {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; border-radius: 4px;
  font: 700 .82rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ff3b3b, #c0141a);
  border: 1px solid #ff6a6a;
  box-shadow: 0 0 0 1px #3a0a0b, 0 0 18px var(--red-glow), 0 0 46px rgba(255, 30, 30, .28), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 0 8px rgba(255, 210, 210, .8);
  animation: onair 2.8s ease-in-out infinite;
}
.onair i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes onair { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.tc { color: var(--amber); font-size: .9rem; letter-spacing: .06em; padding: 6px 10px; border: 1px solid #3a2a12; border-radius: 4px; background: #120d06; font-variant-numeric: tabular-nums; }
.tc small { color: #8a6a35; font-size: .7rem; margin-right: 2px; }

/* ============ Monitorwand ============ */
.wall { position: relative; max-width: 1240px; margin: 0 auto; min-height: 560px; overflow: hidden; isolation: isolate; }
.wall-pic { position: absolute; inset: 0; z-index: -2; }
.wall-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; filter: saturate(1.05) contrast(1.05); }
.wall-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #070708 0%, rgba(7,7,8,0) 16%, rgba(7,7,8,0) 50%, rgba(7,7,8,.9) 84%, #070708 100%),
    linear-gradient(90deg, #070708 0%, rgba(7,7,8,0) 16%, rgba(7,7,8,0) 84%, #070708 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
}
.wall::before, .wall::after { /* Ecken-Markierungen wie im Sucher */
  content: ""; position: absolute; z-index: 1; width: 26px; height: 26px; border: 2px solid rgba(255, 173, 46, .7); pointer-events: none;
}
.wall::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.wall::after { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }

/* Vorschau-Monitor rechts */
.pvw {
  position: absolute; right: 44px; bottom: 176px; z-index: 3; margin: 0; width: 178px;
  background: #050506; padding: 7px 7px 0; border-radius: 6px;
  border: 1px solid #34343a;
  box-shadow: 0 18px 40px rgba(0,0,0,.65), 0 0 0 4px #121215, 0 0 30px rgba(255, 173, 46, .12);
}
.pvw-screen { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: #000; }
.pvw-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvw-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.pvw figcaption { display: flex; align-items: center; gap: 6px; padding: 7px 2px 8px; font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pvw figcaption span { color: #0b0b0d; background: var(--phos); padding: 3px 5px; border-radius: 2px; font-weight: 700; }
.pvw .ico { width: 15px; height: 15px; color: var(--amber); }
.pvw figcaption em { font-style: normal; white-space: nowrap; }

/* Bauchbinde mit H1 */
.lower-third {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  max-width: 1080px; margin: 0 auto; padding: 0 16px 34px;
  display: flex; align-items: stretch; gap: 0;
}
.lt-tag {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  background: var(--red); color: #fff; font: 800 .85rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 24px var(--red-glow);
}
.lt-tag i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.lt-main { min-width: 0; flex: 1 1 auto; background: linear-gradient(90deg, rgba(14,14,17,.94), rgba(14,14,17,.82) 70%, rgba(14,14,17,.0)); border-top: 3px solid var(--amber); padding: 14px 22px 12px; backdrop-filter: blur(4px); }
h1 { margin: 0; font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.55rem); line-height: 1.08; font-weight: 800; color: #fff; text-wrap: balance; }
.lt-sub { margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font: .82rem/1.4 var(--mono); color: var(--amber-soft); letter-spacing: .03em; }
.lt-sub span::before { content: "▸ "; color: var(--red); }

/* ============ Einleitung ============ */
.intro {
  position: relative; margin: 30px 0 24px; padding: 20px 24px 8px 26px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0;
}
.intro::before { content: "Ansage"; position: absolute; top: -10px; left: 18px; padding: 2px 8px; background: var(--bg); color: var(--amber); font: 700 .72rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; border: 1px solid #4a3612; border-radius: 3px; }
.intro h2 { margin: 6px 0 10px; font-size: 1.32rem; line-height: 1.25; color: #fff; }
.intro p { margin: 0 0 12px; color: #d9d4cb; }
.intro ul { margin: 0 0 12px; padding-left: 1.2em; }
.intro li::marker { color: var(--red); }

/* ============ Werbeplätze ============ */
.ad {
  position: relative; margin: 26px auto; padding: 26px 12px 12px; max-width: 790px;
  text-align: center; overflow: hidden;
  background: #09090b; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 40px rgba(0,0,0,.6);
}
.ad::after { content: ""; position: absolute; top: 9px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #4c4a46; }
.ad-label { position: absolute; top: 6px; left: 12px; font: 700 .7rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ad a { display: inline-block; max-width: 100%; line-height: 0; }
.ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ad iframe, .ad > div, .ad > ins, .ad video { max-width: 100% !important; margin-left: auto; margin-right: auto; }
.ad > *:not(.ad-label) { max-width: 100%; }
.ad { line-height: 0; }
.ad > :not(a):not(.ad-label) { line-height: normal; }

/* ============ Sendeplan (Liste) ============ */
.sendeplan { margin: 34px 0 10px; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.sp-title { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 1.5rem/1.1 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.sp-title small { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.sp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red-glow); }

.guide { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.guide-head, .ch { display: grid; grid-template-columns: 96px minmax(0, 1fr) 216px; }
.guide-head {
  background: #070708; border-bottom: 1px solid var(--line);
  font: 700 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.guide-head span { padding: 11px 16px; }
.guide-head span:first-child { text-align: center; padding-left: 0; padding-right: 0; }
.guide-head span:last-child { border-left: 1px solid var(--line); }

.ch { position: relative; border-top: 1px solid var(--line); background: var(--panel); transition: background .2s; }
.ch:first-of-type, .guide-head + .ch { border-top: 0; }
.ch:nth-of-type(even) { background: #131316; }
.ch:hover { background: var(--panel-2); }
.ch:hover .ch-no { color: var(--amber); }

.ch-no {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 6px; background: #0d0d10; border-right: 1px solid var(--line);
  font-family: var(--mono); color: var(--muted);
}
.ch-pre { font-size: .7rem; letter-spacing: .3em; color: var(--dim); padding-left: .3em; }
.ch-no b { font-size: 1.85rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ch-no b[data-n="1"]::before, .ch-no b[data-n="2"]::before, .ch-no b[data-n="3"]::before,
.ch-no b[data-n="4"]::before, .ch-no b[data-n="5"]::before, .ch-no b[data-n="6"]::before,
.ch-no b[data-n="7"]::before, .ch-no b[data-n="8"]::before, .ch-no b[data-n="9"]::before { content: "0"; }

.ch-body { padding: 16px 20px 14px; min-width: 0; }
.ch-title { margin: 0 0 4px; font: 700 1.14rem/1.3 var(--head); }
.sitetitle { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.sitetitle:hover, .sitetitle:focus-visible { color: var(--amber); text-decoration: underline; }
.new { display: inline-block; margin-left: 8px; padding: 2px 7px; vertical-align: 2px; border-radius: 3px; background: var(--phos); color: #08140d; font: 800 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.banner { display: block; margin: 10px 0 6px; border: 1px solid var(--line-2); border-radius: 3px; max-width: 100%; height: auto; }
.ch-body a:has(> .banner) { display: inline-block; max-width: 100%; line-height: 0; }
.description { margin: 4px 0 0; color: #c9c4ba; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }

.ch-meta { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 14px 16px; border-left: 1px solid var(--line); font-family: var(--mono); }
.ch-meta p { margin: 0; }
.ch-state { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #ff8a8a; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(255, 48, 48, .18), 0 0 10px var(--red-glow); }
.ch-state .ico { width: 19px; height: 19px; color: var(--dim); }
.ch .i-head { display: none; }
.ch.ton .i-head { display: block; color: var(--amber); }
.ch.ton .i-cam { display: none; }

/* Signalstärke – nach Platz abgestuft */
.sig { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.sig i { width: 7px; background: #2c2c33; border-radius: 1px; }
.sig i:nth-child(1) { height: 20%; } .sig i:nth-child(2) { height: 40%; } .sig i:nth-child(3) { height: 60%; }
.sig i:nth-child(4) { height: 80%; } .sig i:nth-child(5) { height: 100%; }
.sig i:nth-child(-n+2) { background: var(--amber); }
.sig[data-n="1"] i, .sig[data-n="2"] i, .sig[data-n="3"] i { background: var(--phos); box-shadow: 0 0 6px rgba(140, 240, 180, .35); }
.sig[data-n="4"] i:nth-child(-n+4), .sig[data-n="5"] i:nth-child(-n+4), .sig[data-n="6"] i:nth-child(-n+4),
.sig[data-n="7"] i:nth-child(-n+4), .sig[data-n="8"] i:nth-child(-n+4) { background: var(--phos); }
.sig[data-n="9"] i:nth-child(-n+3), .sig[data-n="10"] i:nth-child(-n+3), .sig[data-n="11"] i:nth-child(-n+3),
.sig[data-n="12"] i:nth-child(-n+3), .sig[data-n="13"] i:nth-child(-n+3), .sig[data-n="14"] i:nth-child(-n+3) { background: var(--amber); }

.io { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--text); font-variant-numeric: tabular-nums; }
.io b { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-right: 3px; }
.io small { color: var(--dim); font-size: .78rem; }

/* Top 3 = Hauptprogramm */
.ch.top1, .ch.top2, .ch.top3 { background: linear-gradient(90deg, rgba(255, 48, 48, .09), rgba(21, 21, 24, 0) 45%), var(--panel); }
.ch.top1::before, .ch.top2::before, .ch.top3::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); box-shadow: 0 0 14px var(--red-glow); }
.top1 .ch-no, .top2 .ch-no, .top3 .ch-no { background: linear-gradient(180deg, #1a0a0b, #0f0809); color: #ff6b6b; }
.top1 .ch-no b { font-size: 2.35rem; color: var(--red); text-shadow: 0 0 16px var(--red-glow); }
.top1 .ch-pre, .top2 .ch-pre, .top3 .ch-pre { color: #b85a5a; }
.top1 .ch-body::before, .top2 .ch-body::before, .top3 .ch-body::before {
  display: inline-block; margin-bottom: 6px; padding: 3px 7px; border-radius: 2px;
  font: 700 .66rem/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); border: 1px solid #5a3f12; background: #1a1206;
}
.top1 .ch-body::before { content: "Primetime · Kanal 1"; color: #fff; background: var(--red-deep); border-color: var(--red); }
.top2 .ch-body::before { content: "Primetime · Kanal 2"; }
.top3 .ch-body::before { content: "Primetime · Kanal 3"; }
.top1 .ch-title { font-size: 1.32rem; }
.top1 .sitetitle, .top2 .sitetitle, .top3 .sitetitle { color: #fff; }

/* Seitenwahl */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0; font-family: var(--mono); }
.pagination:empty { display: none; }
.sp-head .pagination { margin: 0; }
.pagination a, .pagination strong {
  display: inline-block; min-width: 42px; padding: 8px 10px; text-align: center; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: var(--text); font-size: .95rem;
}
.pagination a:hover { border-color: var(--amber); color: var(--amber); }
.pagination strong { background: var(--red-deep); border-color: var(--red); color: #fff; box-shadow: 0 0 12px rgba(255, 40, 40, .3); }

/* ============ SEO-Text ============ */
.seotext {
  position: relative; margin: 38px 0 24px; padding: 32px clamp(18px, 4vw, 48px) 26px;
  background: linear-gradient(180deg, var(--panel) 0, var(--bg-2) 240px);
  border: 1px solid var(--line); border-radius: 8px;
  color: #d4cfc6; font-size: 1.03rem; line-height: 1.72;
}
.seotext::before { content: "Manuskript"; position: absolute; top: -10px; left: 22px; padding: 2px 8px; background: var(--bg); color: var(--phos); font: 700 .72rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; border: 1px solid #23503a; border-radius: 3px; }
.seotext > * { max-width: 80ch; }
.seotext h2 { margin: 1.6em 0 .6em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.18; font-weight: 800; color: #fff; padding-bottom: .45em; border-bottom: 1px solid var(--line-2); position: relative; }
.seotext h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--red); }
.seotext h2:first-child { margin-top: 0; }
.seotext h3 { margin: 1.5em 0 .45em; font-size: 1.18rem; line-height: 1.3; font-weight: 700; color: var(--amber-soft); display: flex; gap: 10px; align-items: baseline; }
.seotext h3::before { content: "▸"; color: var(--red); font-size: .9em; flex: none; }
.seotext p { margin: 0 0 1em; }
.seotext > :last-child { margin-bottom: 0; }
.seotext strong { color: #fff; font-weight: 700; }
.seotext em { color: var(--amber-soft); }
.seotext a { color: var(--amber); }
.seotext ul, .seotext ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.seotext li { margin: .3em 0; }
.seotext li::marker { color: var(--red); }

/* ============ Statistik ============ */
.stats { margin: 30px 0 10px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #09090b; }
.stats-title { margin: 0 0 10px; font: 700 .72rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.stats li { padding: 7px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font: .8rem/1.4 var(--mono); color: var(--muted); }
.stats strong { color: var(--amber); font-weight: 700; }

/* ============ Fuß ============ */
.site-footer { margin-top: 30px; padding: 22px 0 36px; border-top: 1px solid var(--line); background: #070708; text-align: center; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 8px 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--amber); }
.tl-hinweis { max-width: 760px; margin: 0 auto 14px !important; padding: 10px 14px; border: 1px solid #4a1517; border-radius: 6px; background: #140809; color: #e6cfcf; font-size: .9rem; line-height: 1.5; }
.license { font-size: .85rem; color: var(--dim); }
.license a { color: var(--amber) !important; }

/* ============ Formulare / Unterseiten ============ */
.regie-mini { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #000; }
.kicker { margin: 30px 0 4px; font: 700 .75rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
main.wrap > h1 { margin: 6px 0 18px; }
main.wrap > .site-logo + h1, main.notfound h1 { margin-top: 28px; }
.form-card { margin: 18px 0; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.form-card h2 { margin: 0 0 12px; font-size: 1.25rem; color: #fff; }
.rules-text { color: #d4cfc6; }
.rules-text ul, .rules-text ol { margin: 0; padding-left: 1.25em; }
.rules-text li { margin: 4px 0; }
.rules-text li::marker { color: var(--red); }
.form-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 16px; align-items: start; margin-bottom: 14px; }
.form-row > label, .form-row > .label { padding-top: 10px; font: 600 .82rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-row .error { grid-column: 2; color: #ff7a7a; font-size: .9rem; }
.form-row .error:empty { display: none; }
.form-row.rules label { display: flex; gap: 10px; align-items: center; padding-top: 10px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  width: 100%; padding: 11px 12px; font: 16px/1.4 var(--body); color: var(--text);
  background: #0a0a0c; border: 1px solid var(--line-2); border-radius: 4px;
}
input:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 173, 46, .18); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
.captcha img { vertical-align: middle; margin-right: 10px; background: #fff; border-radius: 3px; }
.captcha input { max-width: 160px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.btn, .form-actions input {
  display: inline-block; padding: 12px 22px; border-radius: 4px; cursor: pointer; text-decoration: none;
  font: 700 .85rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #ff3b3b, #c0141a); border: 1px solid #ff6a6a;
  box-shadow: 0 0 16px rgba(255, 40, 40, .3);
}
.btn:hover, .form-actions input:hover { color: #fff; filter: brightness(1.1); }
.btn.secondary { background: transparent; border-color: var(--line-2); color: var(--text); box-shadow: none; }
.btn.secondary:hover { border-color: var(--amber); color: var(--amber); }
.message, .updatemessage { color: var(--amber); font-weight: 700; }
.message:empty { display: none; }
.stats-table { width: 100%; border-collapse: collapse; font: .9rem/1.4 var(--mono); }
.stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.stats-table td:nth-child(even) { color: var(--amber); text-align: right; }
.codebox { overflow-x: auto; }
.codebox textarea { min-height: 110px; font: .85rem/1.5 var(--mono); }
.codebox img { max-width: 100%; }

/* 404 */
.notfound .nosignal { margin: 34px auto 0; max-width: 520px; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px; background: #050506; box-shadow: 0 0 0 5px #121215; }
.nosignal .bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 130px; border-radius: 3px; overflow: hidden; opacity: .6; }
.nosignal .bars i:nth-child(1) { background: #b7b2a8; } .nosignal .bars i:nth-child(2) { background: #c9a03a; }
.nosignal .bars i:nth-child(3) { background: #3fa7a0; } .nosignal .bars i:nth-child(4) { background: #4f9a5c; }
.nosignal .bars i:nth-child(5) { background: #9a3f86; } .nosignal .bars i:nth-child(6) { background: #b8302f; }
.nosignal .bars i:nth-child(7) { background: #2c3a8c; }
.nosignal p { margin: 10px 0 2px; text-align: center; font: 700 .85rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.notfound h1 { text-align: center; }
.notfound .intro { max-width: 720px; margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Tablet ============ */
@media (max-width: 900px) {
  .wall { min-height: 500px; }
  .pvw { width: 132px; right: 20px; bottom: 200px; }
  .guide-head, .ch { grid-template-columns: 80px minmax(0, 1fr) 180px; }
}

/* ============ Handy ============ */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .regie-bar { padding: 10px 14px; }
  .site-logo img { max-height: 46px; }
  .tc { display: none; }
  .onair { padding: 6px 10px 6px 9px; font-size: .72rem; letter-spacing: .18em; }

  .wall { min-height: 0; display: flex; flex-direction: column; }
  .wall-pic { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .wall-pic img { object-position: 50% 35%; }
  .wall-shade { background:
      linear-gradient(180deg, rgba(7,7,8,.6) 0%, rgba(7,7,8,0) 20%, rgba(7,7,8,0) 50%, #0b0b0d 100%) top / 100% calc(100vw * .625) no-repeat,
      linear-gradient(#0b0b0d, #0b0b0d) bottom / 100% calc(100% - 100vw * .625) no-repeat; }
  .wall::before { top: 12px; left: 12px; width: 18px; height: 18px; }
  .wall::after { top: 12px; right: 12px; width: 18px; height: 18px; }
  .pvw { width: 92px; right: 14px; top: calc(100vw * .625 - 158px); bottom: auto; padding: 4px 4px 0; }
  .pvw figcaption { font-size: .6rem; padding: 5px 1px 6px; gap: 4px; }
  .pvw figcaption span { padding: 2px 3px; }
  .pvw .ico { width: 12px; height: 12px; }
  .pvw figcaption em { display: none; }
  .lower-third { position: relative; margin-top: -26px; padding: 0 12px 6px; flex-direction: column; }
  .lt-tag { align-self: flex-start; padding: 8px 12px; font-size: .75rem; }
  .lt-main { padding: 12px 14px 12px; background: rgba(16,16,19,.96); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  h1 { font-size: 1.5rem; }
  .lt-sub { flex-direction: column; gap: 2px; font-size: .8rem; }

  .intro { margin-top: 26px; padding: 18px 16px 6px 18px; }
  .intro h2 { font-size: 1.2rem; }

  .ad { padding: 24px 8px 8px; margin: 22px 0; }

  .sp-title { font-size: 1.3rem; }
  .guide-head { display: none; }
  .ch { grid-template-columns: 64px minmax(0, 1fr); }
  .ch-no { grid-row: 1 / span 2; padding: 18px 4px 12px; justify-content: flex-start; }
  .ch-no b { font-size: 1.45rem; }
  .top1 .ch-no b { font-size: 1.8rem; }
  .ch-pre { font-size: .62rem; }
  .ch-body { padding: 14px 14px 8px; }
  .ch-title { font-size: 1.08rem; }
  .top1 .ch-title { font-size: 1.18rem; }
  .description { font-size: 1rem; }
  .ch-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 14px; padding: 8px 14px 12px; border-left: 0; border-top: 1px dashed var(--line); }
  .sig { height: 16px; } .sig i { width: 5px; }
  .io { font-size: .85rem; gap: 2px 12px; }

  .seotext { padding: 28px 16px 20px; font-size: 1rem; line-height: 1.68; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li { font-size: .75rem; }

  .form-card { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row > label, .form-row > .label { padding-top: 0; }
  .form-row .error { grid-column: 1; }
  .stats-table td { display: block; text-align: left !important; border: 0; padding: 3px 0; }
  .stats-table tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .onair, .lt-tag i { animation: none; }
}
