:root {
  --paper: #11151d;
  --paper-soft: #161d29;
  --ink: #f2f6ff;
  --muted: #b3bfd3;
  --accent-blue: #2f6fe4;
  --accent-red: #c72f36;
  --accent-dark: #e9eefc;
  --line: #2a3344;
  --glow-blue: rgba(47, 111, 228, 0.34);
  --glow-red: rgba(199, 47, 54, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(47, 111, 228, 0.24), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(199, 47, 54, 0.24), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.06), transparent 42%),
    #05070b;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

nav {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #3a4761;
  background: #0d1118;
  padding: 3px;
}

.links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.links a, .btn {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(47, 111, 228, 0.15), rgba(199, 47, 54, 0.15));
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.links a:hover, .btn:hover {
  transform: translateY(-1px);
  border-color: #40506d;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 25, 37, 0.98), rgba(14, 18, 27, 0.98));
  padding: 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

h1, h2 {
  font-family: "Cinzel", serif;
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--paper-soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.33);
}

.meta {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 0.4rem;
}

.period-filter {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(120deg, rgba(47, 111, 228, 0.12), rgba(199, 47, 54, 0.12));
  box-shadow: none;
}

.period-filter.is-active {
  border-color: #4d6285;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 14px rgba(47, 111, 228, 0.2);
}

.period-result {
  margin: 0.2rem 0 0.8rem;
}

.tag {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #3a4a66;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d8e5ff;
  background: rgba(47, 111, 228, 0.16);
}

.episode-card.is-hidden {
  display: none;
}

iframe {
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: 10px;
}

iframe.yt {
  min-height: 300px;
}

form {
  display: grid;
  gap: 0.7rem;
}

input, textarea, button {
  font: inherit;
}

input, textarea {
  border: 1px solid #334158;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: #0f141d;
  color: var(--ink);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consent input {
  width: auto;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-red));
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px var(--glow-blue), 0 0 12px var(--glow-red);
  transition: transform 160ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px var(--glow-blue), 0 0 16px var(--glow-red);
}

.error-box {
  border: 1px solid #7f2f36;
  background: rgba(199, 47, 54, 0.16);
  border-radius: 8px;
  padding: 0.7rem;
}

.ok {
  border: 1px solid #2f6fe4;
  background: rgba(47, 111, 228, 0.16);
  border-radius: 8px;
  padding: 0.7rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #182031;
}

footer {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0 1.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

footer a {
  color: #dbe6ff;
}

@media (max-width: 900px) {
  .cards, .cards.two {
    grid-template-columns: 1fr;
  }
}
