/* ============================================================
   AMG Streams — Elegant Dark Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0d0e11;
  --bg-soft:   #14161b;
  --surface:   #191c22;
  --surface-2: #1f232b;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text:      #ece9e2;
  --muted:     #a19e96;
  --faint:     #6f6d67;
  --accent:    #d21f3c;
  --accent-hi: #ff4d63;
  --gold:      #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.35);
  --radius:    14px;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(210, 31, 60, 0.07), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(201, 164, 92, 0.05), transparent 60%),
    linear-gradient(180deg, #101218 0%, #0d0e11 40%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hi); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; }

.brand img {
  height: 46px;
  padding: 5px 12px;
  background: #fdfdfc;
  border-radius: 9px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.brand:hover img { transform: translateY(-1px); }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* mobile nav */
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 640px) {
  .nav-toggle-btn { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 14, 17, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav a { padding: 16px 28px; border-radius: 0; }
  .site-nav a.active::after { left: 28px; right: auto; width: 28px; }
  .nav-toggle:checked ~ .site-nav { max-height: 260px; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============ Layout ============ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* staggered page-load reveal */
.reveal { animation: rise 0.7s ease both; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ Typography ============ */
.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  text-align: center;
  letter-spacing: 0.01em;
}

.title-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 46px;
}
.title-rule::before,
.title-rule::after {
  content: '';
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.title-rule::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.title-rule .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
}

h2.video-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* ============ Live badge ============ */
.live-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.live-badge span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-hi);
  border: 1px solid rgba(210, 31, 60, 0.35);
  background: rgba(210, 31, 60, 0.08);
  padding: 7px 16px 7px 14px;
  border-radius: 100px;
}
.live-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 99, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 77, 99, 0); }
}

/* ============ Video player ============ */
.video-block { margin-bottom: 56px; }

.player-frame {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, rgba(201, 164, 92, 0.35), rgba(255, 255, 255, 0.06) 30%, rgba(210, 31, 60, 0.25));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 80px -30px rgba(210, 31, 60, 0.25);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  background: #000;
}

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

/* ============ Section headings ============ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 70px 0 30px;
}
.section-heading::before,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-heading h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  white-space: nowrap;
}

/* ============ Cards (contact) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}

.info-card .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
}
.info-card .icon svg { width: 20px; height: 20px; }

.info-card .label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.info-card .value {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text);
}
.info-card .value a { color: var(--text); }
.info-card .value a:hover { color: var(--gold); }

.org-line {
  text-align: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.org-line strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ============ Archive controls ============ */
.event-picker {
  max-width: 520px;
  margin: 0 auto 44px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  text-align: center;
}

.event-picker label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.event-picker select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a45c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 44px 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.event-picker select:hover,
.event-picker select:focus {
  border-color: var(--gold-soft);
  outline: none;
}
.event-picker option { background: var(--surface); color: var(--text); }

/* ---- Archive search ---- */
.search-box {
  position: relative;
  margin-bottom: 10px;
}
.search-box svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--gold);
  opacity: 0.75;
  pointer-events: none;
}
.search-box {
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(201, 164, 92, 0.4), rgba(255, 255, 255, 0.07) 35%, rgba(210, 31, 60, 0.22));
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.25s ease;
}
.search-box:focus-within {
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6), 0 0 26px -6px rgba(201, 164, 92, 0.28);
}
.search-box input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #171a20, var(--bg-soft));
  border: 0;
  border-radius: 13px;
  padding: 19px 22px 19px 48px;
  transition: background 0.2s ease;
}
.search-box input::placeholder { color: var(--faint); font-weight: 300; }
.search-box input:focus {
  outline: none;
  background: linear-gradient(180deg, #1a1d24, #15171c);
}
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-results { text-align: left; }
.search-results .status-note { padding: 14px 0 8px; }

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.search-result:hover {
  border-color: var(--gold-soft);
  background: var(--surface);
  transform: translateY(-1px);
}
.search-result .sr-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.search-result .sr-titles {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.picker-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}
.picker-divider::before,
.picker-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.picker-divider span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

.status-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 26px 0;
}
.status-note.error { color: var(--accent-hi); }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 34px 24px 44px;
  text-align: center;
}
.site-footer .foot-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.site-footer p {
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .container { padding: 40px 18px 60px; }
  .video-block { margin-bottom: 40px; }
}
