/*
  Beach Live page
  ----------------
  This file owns ALL hero + player layout for /beach-live.html
  Do NOT add hero overrides in styles.css
*/

/* Beach Live page (modern) */

.live{ background: var(--bg); }

/* ======================
   HERO (FULL IMAGE – CLEAN)
   ====================== */

.live-hero{
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

/* background image */
.live-hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:1;
}

/* overlay */
.live-hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 540px at 22% 45%, rgba(2,6,23,.72), rgba(2,6,23,.22) 60%, rgba(2,6,23,.06) 100%),
    linear-gradient(0deg, rgba(2,6,23,.35), rgba(2,6,23,.15));
  z-index:2;
}

/* hero content */
.live-hero__content{
  position: relative;
  z-index:3;
  padding: 72px 0 54px;
  color:#fff;
}

/* text */
.live-eyebrow{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity:.92;
}

.live-title{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -.02em;
}

.live-sub{
  margin: 0;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.92);
}

/* meta chips */
.live-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
  align-items:center;
}

.live-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-weight:900;
  font-size:13px;
}

.live-badge .dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#ef4444;
  box-shadow:0 0 0 6px rgba(239,68,68,.22);
}

.live-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  font-weight:900;
  font-size:13px;
}

.live-pill i{ opacity:.9; }

/* actions */
.live-actions{
  margin-top:20px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.live-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
  background: linear-gradient(90deg, var(--brand2), var(--accent));
  color:#fff;
  box-shadow: 0 14px 30px rgba(11,103,163,.28);
}
.live-btn:hover{ filter: brightness(1.05); }

.live-btn--ghost{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color:#fff;
}
.live-btn--ghost:hover{ background: rgba(255,255,255,.18); }

/* ======================
   PLAYER
   ====================== */

.live-player{ padding: 18px 0 44px; }

.player-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.player-head h2{ margin:0; font-size:24px; }

.player-tools{ display:flex; gap:10px; flex-wrap:wrap; }

.tool{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(2,6,23,.12);
  background:#fff;
  color:#111827;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}
.tool:hover{ background: rgba(2,6,23,.03); }

.player-frame{
  margin-top:12px;
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#000;
  position:relative;

  width: 100%;
  max-width: 1100px;   /* 👈 keeps it from getting too wide */
  margin-left: auto;
  margin-right: auto;

  aspect-ratio: 16/9;
}

/* ✅ Make iframe fill reliably (Safari-friendly) */
.player-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* IMPORTANT:
   If you want to use the placeholder in the future,
   only show it when iframe is missing.
   Right now you HAVE an iframe, so the placeholder should be removed from HTML. */
.player-placeholder{
  display:none;
}

.player-foot{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}
.pf-item{
  background:#fff;
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#334155;
}
.pf-item i{ color: var(--accent); margin-top:2px; }
.pf-item b{ color:#0f172a; }

/* ======================
   INFO
   ====================== */

.live-info{
  padding: 10px 0 54px;
  background:#f8fafc;
}
.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
}
.info-card{
  background:#fff;
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:16px;
  color:#334155;
  line-height:1.7;
}
.info-card h3{
  margin:0 0 10px;
  color:#0f172a;
  font-size:18px;
  display:flex;
  gap:10px;
  align-items:center;
}
.info-card h3 i{ color: var(--accent); }
.info-card ul{ margin:10px 0 0; padding-left:18px; }
.info-card li{ margin:8px 0; }
.info-card--cta .cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 980px){
  .live-hero__content{ padding:54px 0 40px; }
  .player-foot{ grid-template-columns:1fr; }
  .info-grid{ grid-template-columns:1fr; }
}

/* TABLET FIX (the “text outside hero” issue)
   Some Android tablets render min-height weird with tall browser UI.
   This forces the hero to always have enough height for the content. */
@media (max-width: 900px) and (min-width: 600px){
  .live-hero{ min-height: 680px; }
}

/* ✅ MOBILE: reduce hero vertical height + keep content off edges */
@media (max-width: 768px){
  .live-hero{
    min-height: 380px;      /* was 520px */
  }

  .live-hero__content{
    padding: 44px 0 28px;   /* tighter top/bottom */
    padding-left: 16px;
    padding-right: 16px;
  }

  .live-title{
    font-size: clamp(28px, 8vw, 40px);
  }

  .live-sub{
    font-size: 15px;
  }

  .live-meta{
    margin-top: 12px;
    gap: 8px;
  }

  .live-actions{
    margin-top: 14px;
    gap: 8px;
  }
}

/* Extra small phones */
@media (max-width: 420px){
  .live-hero{
    min-height: 340px;
  }

  .live-hero__content{
    padding: 40px 0 24px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ✅ LANDSCAPE FIX:
   On phones in landscape, viewport height is short (Safari bars),
   so 16/9 can push content off and appear "half shown".
   Use a safe viewport-based height instead. */
@media (orientation: landscape) and (max-height: 520px){
  .player-frame{
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fix ghost button inside white info cards */
.live-info .live-btn--ghost{
  background: #fff;
  color: #0f172a;
  border-color: rgba(2,6,23,.12);
  box-shadow: var(--shadow);
}

.live-info .live-btn--ghost:hover{
  background: rgba(2,6,23,.03);
}

@media (min-width: 900px){
  .live-hero__content{
    padding-left: 40px;
  }
}

@media (min-width: 900px){
  .live-hero__content,
  .live-player,
  .live-info{
    padding-left: 40px;
  }
}

/* ======================
   BEACH LIVE HERO - PHONE LANDSCAPE FIX
====================== */
@media (orientation: landscape) and (max-height: 520px){
  .live-hero{
    min-height: 260px;
  }

  .live-hero__content{
    padding: 24px 16px 18px;
  }

  .live-title{
    font-size: clamp(24px, 4vw, 32px);
    margin: 8px 0 8px;
  }

  .live-sub{
    font-size: 14px;
    line-height: 1.45;
  }

  .live-meta{
    margin-top: 10px;
    gap: 8px;
  }

  .live-actions{
    margin-top: 12px;
    gap: 8px;
  }
}

/* ======================
   BEACH LIVE PLAYER - MOBILE PORTRAIT WIDTH FIX
====================== */
@media (max-width: 768px) and (orientation: portrait){
  .player-frame{
    aspect-ratio: 16 / 9;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* ======================
   BEACH LIVE PLAYER SECTION - FULL MODERN BACKDROP
====================== */

.live-player{
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;

  background:
    radial-gradient(circle at 8% 35%, rgba(14,165,233,.14), transparent 32%),
    radial-gradient(circle at 92% 70%, rgba(14,165,233,.24), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 45%, #dff3ff 100%);
}

/* soft palm silhouette */
.live-player::before{
  content:"";
  position:absolute;
  left:-70px;
  top:160px;
  width:340px;
  height:340px;
  opacity:.14;
  pointer-events:none;

  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%230ea5e9' stroke-width='10' stroke-linecap='round'%3E%3Cpath d='M72 330 C120 250 145 180 160 80'/%3E%3Cpath d='M160 90 C85 95 35 135 10 185'/%3E%3Cpath d='M165 95 C105 135 70 190 58 255'/%3E%3Cpath d='M168 88 C205 120 230 175 235 245'/%3E%3Cpath d='M166 82 C230 70 295 95 350 145'/%3E%3Cpath d='M164 78 C220 35 285 25 365 45'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* wave lines on right */
.live-player::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:80px;
  width:420px;
  height:180px;
  opacity:.28;
  pointer-events:none;

  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0 16px,
      rgba(14,165,233,.45) 17px 19px
    );
}

.player-wrap{
  position:relative;
  z-index:1;
  width:min(1180px, calc(100vw - 96px));
  margin:18px auto 0;
  padding:28px;
  border-radius:32px;

  background:rgba(255,255,255,.55);
  border:1px solid rgba(14,165,233,.18);
  box-shadow:
    0 28px 70px rgba(15,23,42,.12),
    inset 0 0 40px rgba(255,255,255,.6);
}

.player-frame{
  margin:0 auto;
  width:100%;
  max-width:none;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow:0 24px 55px rgba(15,23,42,.22);
}

@media (max-width: 768px){
  .player-wrap{
    width: calc(100vw - 28px);
    padding: 12px;
    border-radius: 24px;
  }

  .player-frame{
    width: 100%;
    border-radius: 18px;
  }
}

/* Mobile landscape: size the player from the short screen height instead of
   the wide screen width, keeping the complete stream visible. */
@media (orientation: landscape) and (max-height: 600px){
  .live-player{
    padding-top: 10px;
  }

  .player-frame{
    width: min(100%, calc(70dvh * 720 / 435));
    max-width: 100%;
    max-height: 70dvh;
    aspect-ratio: 720 / 435;
    margin-top: 8px;
  }

  .player-frame iframe{
    width: 100%;
    height: 100%;
  }
}
