:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #11131a;
  --panel-2: #171a22;
  --text: #fff9ef;
  --muted: #bfc4ce;
  --gold: #f5c15b;
  --crimson: #d9294f;
  --teal: #3fc9bd;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.94) 0%, rgba(8, 9, 13, 0.68) 46%, rgba(8, 9, 13, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 13, 0) 32%);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
h1,
h2 {
  font-family: "Bebas Neue", Inter, sans-serif;
  letter-spacing: 0;
}

.brand {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold);
}

.topbar__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-switcher {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.48);
  backdrop-filter: blur(14px);
}

.site-switcher__link {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.site-switcher__link--active {
  background: var(--gold);
  color: #101015;
}

.topbar__links {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.36);
  backdrop-filter: blur(14px);
}

.topbar__links a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.topbar__links a:hover {
  color: var(--text);
}

.hero__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4.3rem, 11vw, 9.5rem);
  line-height: 0.86;
}

.hero__copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button--primary {
  background: var(--crimson);
  border-color: var(--crimson);
  color: white;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section__heading {
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
}

.video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050609;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: stretch;
}

.live-chat {
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-chat__frame {
  min-height: 0;
  height: 100%;
}

.live-chat__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  background: white;
}

.chat-toggle {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #050609;
  color: var(--gold);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.live-chat--hidden .live-chat__frame {
  display: none;
}

.video-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 35% 20%, rgba(245, 193, 91, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(217, 41, 79, 0.14), rgba(63, 201, 189, 0.1));
}

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

.person-card {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.person-card__photo {
  position: relative;
  height: 330px;
  background:
    linear-gradient(135deg, rgba(245, 193, 91, 0.28), rgba(217, 41, 79, 0.22)),
    var(--panel-2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  font-size: 2.4rem;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.person-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 56px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 13, 0) 0%,
    rgba(8, 9, 13, 0.72) 42%,
    rgba(8, 9, 13, 0.98) 100%
  );
}

.person-card__name {
  margin: 0;
  font-weight: 900;
  font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.person-card__role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.person-card--eliminated {
  border-color: rgba(217, 41, 79, 0.5);
}

.person-card--eliminated .person-card__photo {
  filter: grayscale(0.7) brightness(0.78);
}

.person-card__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ff2a2a;
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: clamp(5rem, 9vw, 7rem);
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 42, 42, 0.45);
  background: linear-gradient(180deg, rgba(90, 0, 0, 0.12), rgba(130, 0, 0, 0.24));
  pointer-events: none;
  z-index: 1;
}

.person-card__vote-result {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 193, 91, 0.7);
  background: rgba(8, 9, 13, 0.82);
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.person-card__vote-row {
  min-height: 36px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.person-card__selected {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vote-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #101015;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.vote-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.votation-status {
  margin-top: 18px;
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.app-promo {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.app-promo p {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  line-height: 1.5;
}

.google-play-link {
  flex: 0 0 auto;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #050609;
  color: white;
  font-weight: 900;
}

.google-play-link small {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.google-play-logo {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.google-play-logo__part {
  position: absolute;
  inset: 0;
}

.google-play-logo__part--blue {
  background: #4285f4;
  clip-path: polygon(0 0, 45% 50%, 0 100%);
}

.google-play-logo__part--green {
  background: #34a853;
  clip-path: polygon(0 0, 45% 50%, 88% 25%, 100% 50%);
}

.google-play-logo__part--yellow {
  background: #fbbc04;
  clip-path: polygon(45% 50%, 100% 50%, 88% 75%);
}

.google-play-logo__part--red {
  background: #ea4335;
  clip-path: polygon(0 100%, 45% 50%, 88% 75%, 100% 50%);
}

.day-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-tab {
  min-width: 92px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.day-tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #101015;
}

.day-description {
  min-height: 28px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 760px) {
  .live-layout {
    grid-template-columns: 1fr;
  }

  .live-chat__frame iframe {
    min-height: 440px;
  }

  .participant-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .person-card {
    min-height: 300px;
  }

  .person-card__photo {
    height: 300px;
  }

  .person-card__body {
    padding: 52px 14px 16px;
  }

  .person-card__vote-result {
    top: 10px;
    right: 10px;
    min-width: 56px;
    padding: 7px 8px;
    font-size: 0.85rem;
  }

  .app-promo {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .topbar__menu {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-switcher {
    width: 100%;
    overflow-x: auto;
  }

  .topbar__links {
    width: 100%;
    overflow-x: auto;
  }

  .hero__content {
    padding-bottom: 90px;
  }

  .footer {
    flex-direction: column;
  }
}
