:root {
  --bg: #f3efe6;
  --bg-deep: #ddd2bc;
  --text: #14231f;
  --text-soft: #2f4b44;
  --accent: #ef4e2b;
  --accent-2: #0a8f7b;
  --card: rgba(255, 255, 255, 0.68);
  --stroke: rgba(20, 35, 31, 0.15);
  --shadow: 0 14px 40px rgba(20, 35, 31, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.4;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #fff5da 0, transparent 38%),
    radial-gradient(circle at 85% 15%, #d6f4ec 0, transparent 35%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

.bg-orb-1 {
  background: #f6b163;
  top: -15vmax;
  right: -8vmax;
}

.bg-orb-2 {
  background: #43b9a8;
  bottom: -20vmax;
  left: -8vmax;
  animation-duration: 18s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, -16px) scale(1.08);
  }
}

.site-header {
  width: min(1200px, 92%);
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  font-family: "Bebas Neue", sans-serif;
  margin: 0;
  letter-spacing: 1.2px;
  font-size: 2rem;
  line-height: 1;
}

.brand-title {
  font-family: "Bebas Neue", sans-serif;
  margin: 0;
  letter-spacing: 1.2px;
  font-size: 2rem;
  line-height: 1;
}

.brand p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(145deg, var(--accent), #f08f28);
  color: white;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
  background: var(--accent);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform-origin: left;
  transform: scaleX(1);
}

main {
  width: min(1200px, 92%);
  margin: 28px auto 60px;
  display: grid;
  gap: 26px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
}

.hero-copy,
.next-up-card,
.live-panel,
.notes,
.admin {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero h2 {
  font-family: "Bebas Neue", sans-serif;
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #ff8a36);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--stroke);
  background: #ffffff95;
  color: var(--text);
}

.next-up-card h3,
.section-head h3,
.panel-head h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.9rem;
}

.next-up-title {
  margin: 0;
  font-weight: 700;
}

.next-up-time,
.section-head p,
.stream-note,
.poll-result,
.notify-message {
  margin: 0;
  color: var(--text-soft);
}

.countdown {
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #0d43395e;
  color: #0e2722;
  font-weight: 700;
}

.live-panel,
.notes,
.admin {
  padding: 22px;
}

.watching-now {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.live-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #102320;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.live-title span {
  color: var(--accent);
}

.live-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 6px 9px;
  border-radius: 999px;
  background: #db3414;
}

.video-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0f1816;
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.stream-note {
  margin-top: 10px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.section-head {
  margin-bottom: 12px;
}


.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.note-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: #fff8;
}

.note-item p {
  margin: 0;
}

.note-item time {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.admin-login-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-login-form input {
  flex: 1 1 180px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 11px 14px;
  min-height: 44px;
  font: inherit;
  background: #fff9;
}

.admin-editor {
  margin-top: 12px;
}

.note-form {
  display: grid;
  gap: 10px;
}

.note-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff9;
}

.admin-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

footer {
  width: min(1200px, 92%);
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 450ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 950px) {
  .site-header {
    width: min(1200px, 95%);
    padding: 12px 14px;
  }

  main {
    width: min(1200px, 95%);
    margin: 20px auto 42px;
    gap: 18px;
  }

  .panel-head {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .panel-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    line-height: 1;
  }
}

@media (max-width: 680px) {
  .live-panel,
  .notes,
  .admin {
    padding: 14px;
  }

  .site-header {
    justify-content: flex-start;
    gap: 12px;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  nav {
    width: 100%;
    gap: 10px;
  }

  nav a {
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .watching-now {
    font-size: 0.92rem;
  }

  .video-shell {
    border-radius: 12px;
  }

  .admin-login-form input,
  .admin-login-form .btn,
  .admin-editor-actions .btn {
    width: 100%;
  }

  .admin-editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
