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

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --font-xs: clamp(0.7rem, 0.64rem + 0.25vw, 0.85rem);
  --font-sm: clamp(0.85rem, 0.78rem + 0.3vw, 1rem);
  --font-base: clamp(1rem, 0.94rem + 0.4vw, 1.2rem);
  --font-lg: clamp(1.35rem, 1.18rem + 0.7vw, 1.75rem);
  --font-xl: clamp(1.75rem, 1.5rem + 1vw, 2.4rem);
  --cta-width: clamp(220px, 60vw, 320px);
  --cta-icons-width: calc(var(--cta-width) - 32px);
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #f9fafb;
  background-color: #041b18;
  background-image: url("paper.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-color: rgba(4, 27, 24, 0.9); 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(14, 229, 179, 0.1);
  backdrop-filter: blur(12px);
  border-bottom: 4px solid rgba(14, 229, 179, 0.2);
  z-index: 50;
}

.top-nav .schedule-button {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.top-nav .schedule-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.schedule-button-icon {
  display: block;
  height: clamp(32px, 5vh, 44px);
  width: auto;
  filter: drop-shadow(0 0 18px rgba(10, 236, 214, 0.9))
    drop-shadow(0 0 32px rgba(14, 229, 179, 0.9));
  transition: filter 220ms ease-out;
}

.schedule-button-text {
  display: inline-block;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-sm);
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: #f9fafb;
  margin-left: 0.5rem;
}

.top-nav .schedule-button:hover .schedule-button-icon {
  filter: drop-shadow(0 0 24px rgba(125, 211, 252, 1))
    drop-shadow(0 0 40px rgba(56, 189, 248, 0.8));
}

.space-scene {
  position: relative;
  width: 100%;
  flex: 0.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
}

.main-content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  padding: 0 1rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 280px;
}

.scene-layer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex: 1; */
}

.tv-ship {
  position: relative;
  width: min(100vw, 1000px);
  aspect-ratio: 16 / 9;
  margin-top: clamp(1rem, 1vh, 2rem);
}

.tv-video {
  position: absolute;
  /* Position the video to match the TV screen area inside tv.png */
  top: 15.2%;
  left: 7.2%;
  right: 7.2%;
  bottom: 15.2%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.tv-video iframe {
  width: 80%;
  height: 100%;
  border: 0;
}

.tv-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: hue-rotate(180deg) saturate(0.6) brightness(0.9);
}

.cta-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-strip-inner {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
  width: min(var(--cta-icons-width), 100%);
}

.cta-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.cta-icon-link:hover,
.cta-icon-link:focus-visible {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.9;
}

.cta-icon-link:focus-visible {
  outline: 1px dashed #f97316;
  outline-offset: 2px;
}

.cta-icon-image {
  display: block;
  width: clamp(34px, 7vw, 40px);
  height: auto;
  max-height: clamp(34px, 7vw, 40px);
  object-fit: contain;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 220ms ease-out;
}

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

.brand-logo-image {
  display: block;
  height: clamp(32px, 7vh, 56px);
  width: auto;
  filter: drop-shadow(0 0 18px rgba(10, 236, 214, 0.9))
    drop-shadow(0 0 32px rgba(14, 229, 179, 0.9));
  transform: translateZ(0);
  transition: transform 220ms ease-out, filter 220ms ease-out;
}

.brand-logo-tvicon {
  display: block;
  height: clamp(20px, 4.5vh, 40px);
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.85))
    drop-shadow(0 0 22px rgba(56, 189, 248, 0.5));
  transform: translateZ(0);
  transition: transform 220ms ease-out, filter 220ms ease-out,
    opacity 220ms ease-out;
}

.brand-logo:hover .brand-logo-tvicon {
  transform: translateY(-1px) scale(1.03);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, 1))
    drop-shadow(0 0 30px rgba(56, 189, 248, 0.8));
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo:hover .brand-logo-image {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 24px rgba(125, 211, 252, 1))
    drop-shadow(0 0 40px rgba(56, 189, 248, 0.8));
}

.button-chunky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-base);
  text-transform: lowercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  width: var(--cta-width);
  text-align: center;
  box-shadow: 0 0 0 2px #020617, 4px 4px 0 #020617,
    0 0 18px rgba(250, 204, 21, 0.4);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    background 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}

.button-chunky:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.button-chunky:hover {
  transform: translate(-1px, -1px);
  background: rgba(31, 41, 55, 0.98);
  border-color: #fde047;
  box-shadow: 0 0 0 2px #020617, 5px 5px 0 #020617,
    0 0 24px rgba(250, 204, 21, 0.8);
}

.button-chunky[disabled],
.button-chunky[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.newsletter-copy {
  margin: 0;
  font-size: var(--font-lg);
  color: #e5e7eb;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}

.newsletter-form-button,
.newsletter-loading-button {
  justify-content: center;
  align-self: center;
}

.newsletter-form-button {
  width: auto;
  padding: 0.7rem 1.4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(10, 236, 214, 0.8);
  box-shadow: 0 0 0 2px #020617, 4px 4px 0 #020617,
    0 0 18px rgba(10, 236, 214, 0.6);
  text-transform: lowercase;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    border-color 120ms ease-out;
}

.newsletter-form-button:hover {
  transform: translate(-2px, -2px);
  border-color: rgba(14, 229, 179, 1);
  box-shadow: 0 0 0 2px #020617, 6px 6px 0 #020617,
    0 0 28px rgba(10, 236, 214, 0.9);
}

.newsletter-loading-button {
  display: none;
}

.newsletter-form-input {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-sm);
  color: #0f172a;
  width: 100%;
  max-width: 320px;
  min-width: 180px;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.4),
    0 10px 30px rgba(2, 6, 23, 0.45);
}

.newsletter-form-input::placeholder {
  color: rgba(209, 213, 219, 0.75);
}

.newsletter-success,
.newsletter-error {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.newsletter-success-message,
.newsletter-error-message {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-sm);
  margin: 0;
}

.newsletter-success-message {
  color: #fef9c3;
}

.newsletter-error-message {
  color: #f87171;
}

.newsletter-back-button {
  display: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-back-button:hover,
.newsletter-back-button:focus-visible {
  color: #f9fafb;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.button-icon {
  display: inline-block;
  font-size: var(--font-base);
}

.button-text {
  display: inline-block;
}

@media (max-width: 1340px) {
  .main-content-row {
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 0.5rem 0.75rem;
  }

  .space-scene {
    padding-bottom: 1rem;
  }

  .main-content-row {
    gap: 0.5rem;
  }

  .sidebar {
    gap: 0.75rem;
  }

  .schedule-button-icon {
    height: clamp(28px, 4vh, 36px);
  }

  .schedule-button-text {
    display: none;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-logo-image {
    height: clamp(24px, 5vh, 36px);
  }

  .brand-logo-tvicon {
    height: clamp(16px, 3.5vh, 28px);
  }

  .scene-layer {
    padding-top: 0;
  }

  .tv-ship {
    margin-top: 0;
  }

  .newsletter-copy {
    font-size: var(--font-sm);
    margin-bottom: 0;
  }

  .cta-strip-inner {
    gap: 0.5rem;
  }
}

.schedule-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
  backdrop-filter: blur(10px);
  z-index: 100;
  animation: modal-fade-in 200ms ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.schedule-modal-panel {
  width: min(820px, 100%);
  max-height: min(560px, 100%);
  padding: 1.2rem 1.3rem 1.4rem;
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #0b1120);
  border-radius: 12px;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px rgba(56, 189, 248, 0.8),
    0 18px 45px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: modal-slide-in 250ms ease-out;
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.9);
}

.schedule-header-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-kicker {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #38bdf8;
}

.schedule-title {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-lg);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #e5e7eb;
}

.schedule-subtitle {
  font-size: var(--font-sm);
  color: #9ca3af;
}

.schedule-close-button {
  border-radius: 0;
  border: 2px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px #020617, 3px 3px 0 #020617;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    background 120ms ease-out, border-color 120ms ease-out;
}

.schedule-close-button:hover {
  transform: translate(-1px, -1px);
  background: rgba(15, 23, 42, 1);
  border-color: #e5e7eb;
  box-shadow: 0 0 0 1px #020617, 4px 4px 0 #020617;
}

.schedule-close-button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.schedule-body {
  overflow: auto;
  padding: 0.1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--font-xs);
}

.schedule-table thead th {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9ca3af;
  padding: 0 0.5rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 64, 175, 0.9);
}

.schedule-table thead th:first-child,
.schedule-table thead th:nth-child(2) {
  width: 60px;
}

.schedule-table thead th:nth-child(3) {
  width: auto;
}

.schedule-table tbody tr {
  transition: background 140ms ease-out, box-shadow 140ms ease-out,
    transform 120ms ease-out;
}

.schedule-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.6);
}

.schedule-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3);
}

.schedule-table tbody td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  vertical-align: middle;
}

.schedule-time {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-sm);
  color: #e5e7eb;
  white-space: nowrap;
}

.schedule-program {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-base);
  color: #f9fafb;
  white-space: nowrap;
}

.schedule-row--past {
  opacity: 0.6;
}

.schedule-row--upcoming {
  opacity: 0.95;
}

.schedule-row--current {
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 45%, #6366f1 100%);
  color: #f9fafb;
  outline: 2px solid rgba(250, 204, 21, 0.7);
  outline-offset: -1px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.schedule-row--current .schedule-time,
.schedule-row--current .schedule-program {
  color: inherit;
  text-shadow: 0 0 8px rgba(15, 23, 42, 0.6);
}

.schedule-row--current .schedule-time {
  font-weight: 600;
  letter-spacing: 0.08em;
}
