:root {
  --bg: #e9edf2;
  --page: #ffffff;
  --box: #eef2f6;
  --line: #c4cdd6;
  --ink: #1a1a1a;
  --muted: #4a5560;
  --blue: #135094;
  --accent: #d61f26;
  --live: #1f8a54;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px; line-height: 1.55;
}
a { color: var(--blue); text-decoration: underline; }
a:visited { color: #4b6a9e; }
a:hover { color: var(--accent); }

.site { max-width: 820px; margin: 0 auto; padding: 16px 14px 8px; }

/* Masthead */
.masthead { border-bottom: 2px solid var(--blue); padding-bottom: 10px; }
.site-name { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: bold; color: var(--blue); letter-spacing: -0.5px; display: block; }
.site-tag { display: block; font-size: 10px; color: var(--muted); font-style: italic; margin-top: 3px; letter-spacing: .03em; }

/* Live status bar */
.status-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 10px; letter-spacing: .04em; color: #cfe0f0;
  background: #10263f; padding: 8px 12px; border: 1px solid #0a1a2c; border-top: 0; }
.status-bar b { color: #fff; font-family: "Courier New", monospace; font-weight: normal; }
.status-bar .right { margin-left: auto; }
.status-item { display: inline-flex; align-items: center; gap: 7px; }
.status-sep { color: #2a4a6b; user-select: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px 1px var(--live); }
  50% { opacity: 0.15; box-shadow: 0 0 0 0 transparent; }
}

/* Ticker */
.ticker { overflow: hidden; background: var(--accent); color: #fff; font-size: 10px; font-weight: bold; letter-spacing: .1em; padding: 5px 0; border-bottom: 1px solid #a0141a; white-space: nowrap; position: relative; }
.ticker-track { display: inline-block; white-space: nowrap; will-change: transform; }
.ticker-track span { display: inline-block; white-space: nowrap; }

/* Page body */
.page { background: var(--page); border: 1px solid var(--line); margin-top: 14px; padding: 18px 18px 14px; }
.headline { margin-bottom: 14px; }
.headline h1 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; margin: 0 0 5px; color: var(--ink); }
.lead { color: var(--muted); margin: 0; }
.event-note { color: #8a5a00; background: #fff8e0; border: 1px solid #d4b86a; margin: 10px 0 0; padding: 8px 10px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; background: #d69e00; animation: blink 1.4s ease-in-out infinite; flex-shrink: 0; }

/* Content layout — video preview with progress below */
.content-box {
  border: 1px solid var(--line); background: var(--box);
  margin-bottom: 14px;
  padding: 12px;
}
.progress-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.progress-section .module-title { margin-bottom: 10px; }

.player-preview { background: #000; border: 1px solid #8a939c; position: relative; }
.preview-video { display: block; width: 100%; height: auto; }
.video-label {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 2px;
  text-transform: uppercase; pointer-events: none;
}

.module-title { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 10px; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.feat {
  padding: 12px 10px; vertical-align: middle; text-align: center;
  transition: background .15s;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat:nth-child(2n) { border-right: 0; }
.feat:nth-last-child(-n+2) { border-bottom: 0; }
.feat:hover { background: #f5f8fb; }
.feat div b { display: block; color: var(--ink); margin-bottom: 3px; }
.feat div i { color: var(--muted); font-style: normal; font-size: 11px; }
.feat-ic { display: inline-block; margin: 0 auto 8px; }
.feat-ic img { display: block; width: 34px; height: 34px; object-fit: contain; transition: transform .2s; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.feat:hover .feat-ic img { transform: scale(1.12); }

.ad-slot { display: flex; justify-content: center; }
.ad-slot-inner { width: 320px; max-width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #9aa4af; background: #fff; color: #8894a0; }
.ad-slot-label { font-size: 9px; letter-spacing: .12em; font-weight: bold; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 0 12px; font-size: 10px; color: var(--muted); text-align: center; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

.noscript-note { margin: 12px 0; padding: 9px; border: 1px solid #b8860b; background: #fff8e0; color: #7a5a00; font-size: 11px; text-align: center; }

@media (max-width: 560px) {
  .status-item:nth-child(2) { display: none; }
  .content-box { padding: 10px; }
  .features-grid { grid-template-columns: 1fr; }
  .feat { border-right: 0; border-bottom: 1px solid var(--line); }
  .feat:last-child { border-bottom: 0; }
  .site-name { font-size: 23px; }
  .status-bar { font-size: 9px; gap: 10px; padding: 6px 10px; }
  .page { padding: 14px 12px 10px; }
  .module { padding: 12px; }
  .feat { padding: 8px 6px; }
  .feat-ic img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
