:root {
  --black: #0b0b0b;
  --ink: #161616;
  --gold: #c6a15a;
  --gold-deep: #8d6a2f;
  --white: #ffffff;
  --paper: #f4f4f2;
  --line: #e6e6e3;
  --muted: #6e6e6e;
  --live: #d01212;
}
* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Segoe UI", "Liberation Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 74px;
  padding: 8px 28px;
  background: var(--black);
  color: var(--white);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  margin-right: 8px;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  max-width: 7.2rem;
}
.links { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.links a, .more > span {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}
.links a:hover, .more:hover > span { color: var(--gold); }
.more { position: relative; }
.more div {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px 0;
  background: #1a1a1a;
  border-top: 2px solid var(--gold);
}
.more:hover div, .more:focus-within div { display: block; }
.more div a { display: block; padding: 8px 14px; }
.search { margin-left: auto; }
.search input {
  width: 180px;
  padding: 8px 12px;
  border: 0;
  border-radius: 99px;
  background: #1c1c1c;
  color: var(--white);
}
.search input::placeholder { color: #9a9a9a; }
.donate, button, .button {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}
.donate:hover, button:hover, .button:hover { background: #dfc07a; }
.menu-toggle, .menu-btn { display: none; }

.featured {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 22px;
  padding: 22px 28px 8px;
  background: var(--paper);
}
.feature-live {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 380px;
  padding: 28px;
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a, #000);
}
.hero-logo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
  justify-self: end;
  margin-right: 8%;
}
.feature-live h1 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 2rem;
  max-width: 18ch;
}
.watch-link { color: var(--gold); font-weight: 700; }
.today, .card, form.panel, .verse, .page {
  background: var(--white);
}
.today {
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
}
.today h2, .rail h2, .page h1, .now-bar h1 {
  font-family: Georgia, serif;
}
.today ol { list-style: none; margin: 0; padding: 0; }
.today li { padding: 10px 0; border-top: 1px solid var(--line); }
.today time { display: block; color: var(--gold-deep); font-size: 0.82rem; }
.today a.more-link { color: var(--gold-deep); font-weight: 700; text-decoration: none; }

.rail { padding: 8px 28px 18px; }
.rail-head, .page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.rail-head a, .page-head a { color: var(--gold-deep); text-decoration: none; font-weight: 700; }
.rail-row, .poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.poster { text-decoration: none; color: var(--ink); }
.poster-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  padding: 10px;
  color: var(--white);
  background: linear-gradient(145deg, #1a1a1a 20%, #4a3514);
}
.poster-art::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  right: 10px;
  top: 10px;
  border-radius: 50%;
  background: #fff url("/logo.jpg") center / cover;
}
.poster strong, .poster em { display: block; }
.poster strong { margin-top: 8px; }
.poster em { color: var(--muted); font-style: normal; font-size: 0.9rem; }
.empty-note { color: var(--muted); }

.partner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 28px 28px;
  padding: 28px;
  background: var(--black);
  color: var(--white);
}
.partner h2 { font-family: Georgia, serif; margin: 0 0 6px; }
.partner p { margin: 0; color: #d9d9d9; }

.site-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 36px 28px 48px;
  background: var(--black);
  color: #ddd;
}
.site-foot h3 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; }
.site-foot a { color: #ddd; text-decoration: none; display: block; margin: 6px 0; }
.site-foot img { width: 72px; height: 72px; border-radius: 50%; background: white; }

.page { padding: 28px; max-width: 1180px; margin: 0 auto; }
.filters { display: flex; gap: 14px; margin-bottom: 18px; }
.filters a { text-decoration: none; color: var(--muted); }
.filters a.on, .filters a:hover { color: var(--black); border-bottom: 2px solid var(--gold); }

.live-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: calc(100vh - 74px);
  background: #111;
  color: var(--white);
}
.live-main { padding: 18px 18px 28px; }
.player { background: #000; position: relative; }
.player video, .player audio { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.live-badge, .badge {
  display: inline-block;
  background: var(--live);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}
.now-bar h1 { margin: 8px 0; font-size: 1.8rem; }
.kicker { color: var(--gold); letter-spacing: 0.12em; font-size: 0.78rem; margin-bottom: 0; }
.live-layout .today { background: #161616; color: white; border: 0; }
.live-layout .today li { border-color: #2a2a2a; }
.live-layout .today a { color: var(--gold); }
.audio-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  background: #111;
}
.audio-stage img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card, form.panel { border: 1px solid var(--line); padding: 16px; }
.card h3, .card h2 { font-family: Georgia, serif; margin: 8px 0; }
label { display: block; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
input[type="checkbox"] { width: auto; }
.verse { padding: 8px 12px; margin: 6px 0; border-bottom: 1px solid var(--line); }
.verse b { color: var(--gold-deep); margin-right: 8px; }
.chapters a { display: inline-block; min-width: 2rem; margin: 2px; text-align: center; text-decoration: none; }
.chapters a.on { background: var(--black); color: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.error { color: var(--live); }
.ok { background: #f8f1e2; padding: 10px 12px; }
.channel-admin { background: var(--paper); }
.channel-admin .page { max-width: 1100px; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }

@media (max-width: 980px) {
  .hero-logo { width: 150px; height: 150px; margin-right: 0; }
  .featured, .live-layout, .site-foot, .split, .rail-row, .poster-grid { grid-template-columns: 1fr 1fr; }
  .site-foot { grid-template-columns: 1fr 1fr; }
  .live-layout { grid-template-columns: 1fr; }
  .feature-live { min-height: 260px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; margin-left: auto; color: white; }
  .search, .donate, .links { display: none; }
  .menu-toggle:checked ~ .links,
  .menu-toggle:checked ~ .search,
  .menu-toggle:checked ~ .donate { display: flex; }
  .top { flex-wrap: wrap; }
  .links, .search, .donate { width: 100%; }
  .links { flex-direction: column; align-items: flex-start; padding-bottom: 8px; }
  .more div { position: static; display: block; background: transparent; border: 0; }
  .featured, .rail-row, .poster-grid, .site-foot, .split, .feature-live { grid-template-columns: 1fr; }
  .hero-logo { width: 88px; height: 88px; justify-self: start; margin: 12px 0 0; }
  .partner { display: block; }
  .partner .button { margin-top: 14px; }
}
