/* ============================================================
   LIVE PORTAL — dark streaming theme
   ============================================================ */

:root {
  --bg: #0e0f13;
  --bg-raise: #16181f;
  --bg-card: #1c1f28;
  --line: #2a2e3a;
  --text: #e8eaf0;
  --text-dim: #9aa0ae;
  --accent: #ff4655;
  --accent-soft: rgba(255, 70, 85, 0.12);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.nav { display: flex; gap: 6px; }

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--text); background: var(--bg-card); }

.nav .nav-blog {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 6px;
}

.nav .nav-blog:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- live section ---------- */

main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }

.live-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 6px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

.live-layout.no-chat { grid-template-columns: 1fr; }

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- chat ---------- */

.chat-wrap {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.chat-wrap iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}

.chat-placeholder .big { font-size: 32px; }

.chat-placeholder a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.chat-placeholder a:hover { text-decoration: underline; }

/* ---------- sections ---------- */

.section { margin-top: 56px; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  margin-bottom: 18px;
}

/* ---------- schedule ---------- */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s, transform 0.15s;
}

.schedule-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.schedule-when {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.schedule-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 6px;
}

.schedule-time { font-size: 15px; font-weight: 700; }

.schedule-title { font-size: 15px; font-weight: 600; }

.schedule-note { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

.schedule-empty { color: var(--text-dim); font-size: 14px; }

/* ---------- archive ---------- */

.archive-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.archive-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- links ---------- */

.links-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}

.link-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .live-layout { grid-template-columns: 1fr; }
  .chat-wrap { min-height: 360px; }
  .nav a { padding: 8px 8px; font-size: 13px; }
}
