:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101418;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101418;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.profile-hero {
  isolation: isolate;
  min-height: 76vh;
  overflow: hidden;
  padding: 28px clamp(20px, 4vw, 52px) 64px;
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(16, 20, 24, 0.95), rgba(16, 20, 24, 0.5)),
    url('../host/host-bg.jpg') center/cover no-repeat;
  inset: 0;
  position: absolute;
  z-index: -1;
}

.profile-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
}

.brand {
  color: #f8c537;
  font-size: 22px;
  font-weight: 900;
}

.profile-nav div {
  display: flex;
  gap: 12px;
}

.profile-nav a:not(.brand) {
  border: 1px solid rgba(203, 213, 225, 0.32);
  border-radius: 8px;
  font-weight: 800;
  padding: 10px 16px;
}

.hero-content {
  align-items: start;
  display: grid;
  gap: clamp(20px, 2.6vw, 42px);
  grid-template-areas: "host schedule video";
  grid-template-columns: minmax(220px, 280px) minmax(360px, 470px) minmax(420px, 560px);
  justify-content: center;
  margin: 10vh auto 0;
  max-width: 1440px;
}

.profile-main {
  display: grid;
  gap: 12px;
  grid-area: host;
  justify-self: start;
  max-width: 280px;
  width: 100%;
}

.profile-logo {
  background: #f8fafc;
  border: 3px solid rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  display: none;
  height: 84px;
  object-fit: contain;
  padding: 8px;
  width: 84px;
}

.profile-logo.active {
  display: block;
}

.eyebrow {
  color: #8bd3dd;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(46px, 4.6vw, 72px);
  line-height: 0.95;
  max-width: 280px;
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  margin-top: 8px;
}

.profile-about {
  color: #cbd5e1;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.video-panel {
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(71, 85, 105, 0.78);
  border-radius: 8px;
  display: none;
  gap: 12px;
  grid-area: video;
  justify-self: end;
  padding: 16px;
  width: min(560px, 100%);
}

.video-panel.active {
  display: grid;
}

.video-panel h2 {
  font-size: 28px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.video-frame {
  position: relative;
}

.video-open-link {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid #475569;
  border-radius: 8px;
  bottom: 10px;
  color: #f8c537;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  position: absolute;
  right: 10px;
}

.video-message {
  align-content: center;
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 18px;
}

.video-message strong {
  color: #f8c537;
  font-size: 20px;
}

.video-message p {
  color: #cbd5e1;
  line-height: 1.45;
}

.video-panel-warning .video-frame {
  border-color: #f8c537;
}

.primary-link,
.secondary-link {
  border-radius: 8px;
  font-weight: 900;
  min-height: 56px;
  padding: 16px 22px;
}

.primary-link {
  background: #f8c537;
  color: #111827;
}

.secondary-link {
  background: #1f2937;
  border: 1px solid #475569;
  color: #f8fafc;
}

.profile-details {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  background: #334155;
}

.profile-details article {
  background: #111827;
  min-height: 170px;
  padding: clamp(24px, 5vw, 48px);
}

.profile-details span,
.quiz-card span {
  color: #8bd3dd;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.profile-details p {
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.15;
}

.scheduled-plays-section {
  display: none;
  gap: 14px;
  grid-area: schedule;
  justify-self: stretch;
  padding: 0 0 4px;
}

.scheduled-plays-section.active {
  display: grid;
}

.scheduled-plays-section h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  margin-top: 8px;
}

.scheduled-plays {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.scheduled-play-card {
  align-items: stretch;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid #334155;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  padding: 14px;
}

.scheduled-play-card h3 {
  color: #f8fafc;
  font-size: 24px;
  margin: 6px 0;
}

.scheduled-play-card p,
.play-date,
.play-countdown span {
  color: #cbd5e1;
}

.play-date,
.play-countdown span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.play-countdown {
  background: #1f2937;
  border: 1px solid #475569;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  text-align: center;
}

.play-countdown strong {
  color: #f8c537;
  font-size: 26px;
}

.quiz-section,
.play-history-section {
  display: grid;
  gap: 30px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px clamp(20px, 5vw, 64px);
}

.play-history-section {
  border-top: 1px solid #334155;
  padding-top: 56px;
}

.quiz-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quiz-card,
.empty-state {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
}

.empty-state.compact {
  padding: 14px;
}

.play-history-list {
  display: grid;
  gap: 16px;
}

.play-history-card {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.play-history-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.play-history-head span {
  color: #8bd3dd;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.play-history-head h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.play-history-head p {
  color: #cbd5e1;
  font-weight: 800;
}

.play-scoreboard {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.play-scoreboard li {
  align-items: center;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  padding: 12px 14px;
}

.quiz-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.quiz-card p,
.empty-state,
.missing-profile p {
  color: #cbd5e1;
  line-height: 1.55;
}

.quiz-card span {
  margin: 16px 0 0;
}

.missing-profile {
  display: grid;
  gap: 20px;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
}

@media (max-width: 760px) {
  .profile-nav {
    align-items: flex-start;
    gap: 14px;
  }

  .profile-nav div,
  .profile-details,
  .scheduled-plays,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-areas:
      "host"
      "schedule"
      "video";
  }

  .profile-main,
  .video-panel {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .profile-details {
    display: grid;
  }

  .scheduled-play-card {
    align-items: stretch;
    flex-direction: column;
  }

  .play-countdown {
    width: 100%;
  }
}
