/* ==========================================================================
   home.css — logged-out homepage (index.html)
   Splash banner, On Air panel, Meet the team.
   ========================================================================== */

/* ---- Eyebrow dot ---------------------------------------------------------- */

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: premium-pulse 1.4s infinite;
}

@keyframes premium-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}

/* Homepage splash. Shown when stealth mode is off, or via the teaser preview. 1rem = 10px. */
.splash {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  max-width: 1280px;
  min-height: 600px;
  margin: 20px auto 50px;
  background:
    radial-gradient(900px 560px at 24% 36%, #e0001b 0%, rgba(224, 0, 27, 0) 70%),
    radial-gradient(700px 500px at 100% 100%, #3a0006 0%, rgba(58, 0, 6, 0) 70%),
    linear-gradient(135deg, #a80016 0%, #5c000b 55%, #1a0004 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  grid-template-areas: "copy devices feats";
}

.splash::after {
  content: "OFF";
  position: absolute;
  z-index: -1;
  left: 30%;
  bottom: -18%;
  font-size: 47rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.splash__copy {
  grid-area: copy;
  min-width: 0;
  padding: 52px 20px 44px 60px;
  display: flex;
  flex-direction: column;
}

.splash__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 1.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.splash__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.splash__title {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 7.4rem;
  line-height: 0.9;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fff;
}

.splash__title span {
  display: block;
}

.splash__title span:last-child {
  color: #0b0b0b;
}

.splash__lead {
  margin: 0;
  max-width: 26ch;
  font-size: 2.7rem;
  line-height: 1.22;
}

.splash__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.splash__btn {
  display: inline-block;
  border-radius: 4px;
  text-decoration: none;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.splash__btn--solid {
  padding: 17px 30px 14px;
  background: #fff;
  color: #0b0b0b;
}

.splash__btn--solid:hover {
  color: #0b0b0b;
}

.splash__btn--ghost {
  padding: 15px 28px 12px;
  border: 2px solid #fff;
  color: #fff;
}

.splash__btn--ghost:hover {
  color: #ffd5d5;
}

.splash__actions p {
  margin: 14px 0 0;
  font-size: 1.7rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

.splash__devices {
  grid-area: devices;
  position: relative;
  min-width: 0;
}

.splash-tv {
  position: absolute;
  left: 4%;
  top: 13%;
  width: 96%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.5));
}

.splash-tv__frame {
  background: #0d0d0e;
  border: 3px solid #2b2b2e;
  border-radius: 7px;
  padding: 2.4%;
}

.splash-tv__frame img,
.splash-laptop__lid img,
.splash-phone__body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.splash-tv__frame img {
  aspect-ratio: 16 / 9;
}

.splash-tv__legs {
  display: flex;
  justify-content: space-between;
  width: 60%;
  margin: 0 auto;
}

.splash-tv__legs span {
  width: 6px;
  height: 18px;
  background: #1b1b1d;
}

.splash-tv__legs span:first-child {
  transform: skewX(20deg);
}

.splash-tv__legs span:last-child {
  transform: skewX(-20deg);
}

.splash-laptop {
  position: absolute;
  left: -6%;
  top: 50%;
  width: 74%;
  transform: rotate(-4deg);
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.45));
}

.splash-laptop__lid {
  background: #1b1b1d;
  border: 3px solid #3b3b3e;
  border-radius: 9px 9px 3px 3px;
  padding: 3.4%;
}

.splash-laptop__lid img {
  aspect-ratio: 16 / 10;
}

.splash-laptop__base {
  height: 9px;
  margin: 0 -6%;
  background: linear-gradient(#cfcfd2, #8d8d92);
  border-radius: 0 0 10px 10px;
}

.splash-phone {
  position: absolute;
  right: 2%;
  top: 44%;
  width: 30%;
  transform: rotate(5deg);
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.55));
}

.splash-phone__body {
  background: #1b1b1d;
  border: 3px solid #3b3b3e;
  border-radius: 20px;
  padding: 6%;
}

.splash-phone__body img {
  aspect-ratio: 9 / 16;
  border-radius: 13px;
}

.splash__feats {
  grid-area: feats;
  list-style: none;
  margin: 40px 44px 40px 30px;
  padding: 0 0 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.splash__feats li {
  margin: 0;
  padding: 11px 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.splash__feats li:last-child {
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .splash {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy copy" "devices feats";
  }

  .splash__copy {
    padding: 40px 32px 28px;
  }

  .splash__title {
    white-space: normal;
  }

  .splash__devices {
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .splash {
    margin: 12px 0 30px;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "devices" "feats";
  }

  .splash__copy {
    padding: 32px 20px 8px;
  }

  .splash__title {
    font-size: clamp(4.2rem, 12vw, 7.4rem);
  }

  .splash__actions {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .splash__devices {
    min-height: 280px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .splash__feats {
    margin: 8px 20px 28px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .splash::after {
    left: 0;
    font-size: 28rem;
  }
}

/* ==========================================================================
   On Air — presenter | ad | today's programme
   ========================================================================== */

.on-air,
.team {
  max-width: 970px;
  margin: 0 auto 50px;
  padding: 40px 20px;
  background: var(--panel);
}

.on-air {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: space-between;
  gap: 0 20px;
}

.on-air > .section-title {
  grid-column: 1 / -1;
  font-size: 3.8rem;
  margin-bottom: 3rem;
}

.on-air__producer-photo {
  width: 100%;
  height: 545px;
  margin-bottom: 10px;
  object-fit: cover;
}

.on-air__role {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--red);
}

.on-air__name {
  font-size: 2.4rem;
  text-transform: uppercase;
}

.on-air__name a {
  color: inherit;
}

.on-air__name a:hover {
  color: var(--red);
}

.on-air__message {
  display: block;
  margin-top: 1rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--line);
}

.on-air__message:hover {
  color: var(--red);
}

/* Today's programme: scrolls inside its own box */
.schedule {
  height: 660px;
  padding-right: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #959595 #333;
}

.schedule__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-size: 2.8rem;
  line-height: 1;
}

.schedule__head h2 {
  font-size: inherit;
  text-transform: uppercase;
}

.schedule__head time {
  color: var(--line);
}

.schedule li {
  margin-bottom: 20px;
}

.schedule li > a,
.schedule li > div {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 15px;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.schedule img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.schedule time {
  display: block;
  margin-bottom: 4px;
  font-size: 1.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Meet the team — scrolling row of presenter cards
   ========================================================================== */

.team .carousel__track {
  --gap: 20px;
  --per-view: 3;
}

.team > .section-title {
  font-size: 3.8rem;
  margin-bottom: 3rem;
}

.team__card {
  display: block;
  aspect-ratio: 1;
  border-radius: 0;
  background: #222;
}

.team__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark fade so the name stays readable */
.team__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.1) 50%);
}

.team__card h3 {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 2.6rem;
  text-transform: uppercase;
  color: var(--white);
}

.team .carousel__arrow--prev {
  left: -8px;
}

.team .carousel__arrow--next {
  right: -8px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .on-air {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
    max-width: 100%;
  }

  .on-air__ad {
    display: none;
  }

  .schedule {
    height: auto;
  }
}

@media (max-width: 680px) {
  .on-air {
    grid-template-columns: 1fr;
  }

  .on-air > .section-title,
  .team > .section-title {
    font-size: 4rem;
  }

  .on-air__producer-photo {
    height: auto;
    aspect-ratio: 1;
  }

  .team .carousel__track {
    --per-view: 1.4;
  }
}

/* Legacy upgrade banner, shown when web sign-in is off. */
.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 20px auto 50px;
  padding: 40px 20px;
  background: var(--red);
  color: var(--white);
}

.teaser h2 {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 3rem;
  font-size: 3.8rem;
  text-align: center;
  text-transform: uppercase;
}

.teaser h2::before,
.teaser h2::after {
  content: "\a0";
  position: absolute;
  top: 45%;
  width: 50%;
  height: 1px;
  overflow: hidden;
  background: var(--white);
}

.teaser h2::before {
  margin-left: calc(-50% - 10px);
  text-align: right;
}

.teaser h2::after {
  margin-left: 10px;
}

.teaser .screens {
  display: flex;
  justify-content: space-between;
  width: 60%;
  margin: 0 0 20px;
  padding-right: 20px;
}

.teaser .screens img {
  display: block;
  max-width: 100%;
  height: auto;
}

.teaser .text {
  width: 40%;
}

.teaser .text p {
  font-size: 2.8rem;
  line-height: 1.5;
}

.teaser .stores {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.teaser .stores img {
  display: block;
  width: auto;
  height: 44px;
  margin: 0 20px;
}

/* The Google Play PNG has built-in padding, so it needs more height to match the App Store badge. */
.teaser .stores img[src$=".png"] {
  height: 66px;
  margin: 0 10px;
}

@media (max-width: 980px) {
  .teaser .screens,
  .teaser .text {
    width: 100%;
  }

  .teaser .screens {
    padding-right: 0;
  }

  .teaser .text p {
    font-size: 2.2rem;
  }

  .teaser .stores {
    margin-top: 30px;
  }
}
