:root {
  --paper: #f3efdf;
  --paper-strong: #e5deca;
  --ink: #171a22;
  --muted: #4a5160;
  --line: #b9af97;
  --blue: #1e3a7a;
  --white: #f8f8f2;
  --red: #922132;
  --gold: #b9944f;
  --coal: #12151c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(30, 58, 122, 0.14), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(146, 33, 50, 0.13), transparent 30%),
    linear-gradient(180deg, #f7f3e6 0%, #eee6d0 55%, #e5dcc5 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.34;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 66px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.34) 0 2px, transparent 2px 8px);
}

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

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

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

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #a79e89;
  background: linear-gradient(180deg, #faf7ed, #e8e0ca);
  padding: 4px;
}

.brand {
  font-family: "Cinzel", serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.links a,
.btn {
  border: 1px solid #988f7b;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--coal);
  background: linear-gradient(120deg, rgba(30, 58, 122, 0.12), rgba(248, 248, 242, 0.92), rgba(146, 33, 50, 0.12));
  transition: transform 140ms ease, box-shadow 180ms ease;
}

.links a:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.18);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(247, 242, 226, 0.95), rgba(239, 232, 213, 0.95)),
    linear-gradient(120deg, rgba(30, 58, 122, 0.06), transparent 35%, rgba(146, 33, 50, 0.07));
  box-shadow: 0 20px 48px rgba(23, 23, 23, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

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

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: 0.02em;
}

.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.77rem;
  font-weight: 700;
  color: #243354;
}

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

.lead {
  max-width: 760px;
  font-size: 1.07rem;
}

.hero-block {
  position: relative;
  border: 1px solid #a89e8a;
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(120deg, rgba(30, 58, 122, 0.17), rgba(248, 248, 242, 0.9), rgba(146, 33, 50, 0.16)),
    linear-gradient(180deg, rgba(185, 148, 79, 0.1), transparent 46%);
}

.hero-block::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 120px;
  height: 120px;
  border-radius: 50% 50% 0 0;
  border: 2px solid rgba(21, 27, 41, 0.22);
  border-bottom: 0;
  opacity: 0.46;
}

.roman-band {
  margin-top: 0.9rem;
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--red);
  padding: 0.45rem 0;
  font-weight: 700;
  color: #1d2434;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.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 #afa58f;
  border-radius: 13px;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(249, 245, 232, 0.9), rgba(238, 230, 210, 0.95)),
    linear-gradient(180deg, rgba(146, 33, 50, 0.05), transparent);
  box-shadow: 0 10px 26px rgba(24, 24, 24, 0.11);
}

.card h2 {
  font-size: 1.35rem;
}

.meta {
  margin: 0 0 0.45rem;
  color: #45506a;
  font-weight: 700;
}

.focus-line {
  padding: 0.6rem 0.75rem;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.46);
  margin: 0.85rem 0 0;
}

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

.period-filter {
  border: 1px solid #a0957f;
  border-radius: 999px;
  padding: 0.42rem 0.76rem;
  font-weight: 700;
  color: #1a1f2d;
  background: linear-gradient(120deg, rgba(30, 58, 122, 0.12), rgba(248, 248, 242, 0.9), rgba(146, 33, 50, 0.12));
}

.period-filter.is-active {
  border-color: #6f6a5e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 0 0 2px rgba(30, 58, 122, 0.16);
}

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

.tag {
  display: inline-block;
  margin: 0 0 0.45rem;
  border-radius: 999px;
  border: 1px solid #8d8b83;
  padding: 0.18rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #252f4d;
  background: rgba(255, 255, 255, 0.68);
}

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

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

iframe {
  width: 100%;
  min-height: 152px;
  border: 1px solid #a79c85;
  border-radius: 10px;
}

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

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

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  border: 1px solid #a79c85;
  border-radius: 8px;
  padding: 0.63rem 0.7rem;
  background: rgba(255, 255, 255, 0.62);
  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.56rem 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--red));
  box-shadow: 0 10px 24px rgba(18, 20, 31, 0.28);
  cursor: pointer;
}

button:hover {
  filter: saturate(1.08);
}

.error-box {
  border: 1px solid #a24650;
  border-radius: 8px;
  padding: 0.7rem;
  background: rgba(146, 33, 50, 0.14);
}

.ok {
  border: 1px solid #304f95;
  border-radius: 8px;
  padding: 0.7rem;
  background: rgba(30, 58, 122, 0.12);
}

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

th,
td {
  border: 1px solid #aca28d;
  text-align: left;
  vertical-align: top;
  padding: 0.55rem;
}

th {
  background: rgba(30, 58, 122, 0.11);
}

footer {
  padding: 1rem 0 1.5rem;
  font-size: 0.92rem;
  color: #484f5b;
}

footer a {
  color: #213562;
}

.footer-social {
  white-space: nowrap;
}

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

  .hero-block::after {
    width: 84px;
    height: 84px;
    opacity: 0.35;
  }
}
