/* Playority Live Events – CSS (calendar-border v1)
   File: astra-child/playority-live-events/assets/live-events.css
*/

/* ===== Container (Astra) ===== */
body.page-template-page-live-events .site-content .ast-container,
body.page-template-page-live-events-php .site-content .ast-container{
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ===== Page wrapper ===== */
.ply-live-events{
  /* Layout */
  --le-page-max: 1840px;
  --le-pad-x: 22px;
  --le-pad-y-top: 26px;
  --le-pad-y-bot: 56px;
  width: min(var(--le-page-max), 100%);
  margin: 0 auto;
  padding: var(--le-pad-y-top) var(--le-pad-x) var(--le-pad-y-bot);

  /* Calendar-like surfaces */
  --le-bgTop: rgba(22, 32, 46, .92);
  --le-bgBot: rgba(18, 24, 34, .92);
  --le-surfaceTop: rgba(28, 38, 52, .86);
  --le-surfaceBot: rgba(18, 24, 34, .86);

  --le-border: rgba(255,255,255,.10);
  --le-borderSoft: rgba(255,255,255,.07);

  --le-text: rgba(255,255,255,.94);
  --le-muted: rgba(255,255,255,.70);

  /* “glass” / calendar-ish depth */
  --le-shadow: 0 18px 60px rgba(0,0,0,.40);
  --le-inset: inset 0 1px 0 rgba(255,255,255,.06);
  --le-inset2: inset 0 -1px 0 rgba(0,0,0,.40);
  --le-radius: 18px;

  --le-gap-lg: 26px;

  color: var(--le-text);
}

/* Header */
.ply-live-events__header{ margin-bottom: 18px; }
.ply-live-events__title{
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.4px;
  font-weight: 900;
}
.ply-live-events__subtitle{
  margin: 0;
  color: var(--le-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ===== HERO (calendar-like panel) ===== */
.ply-live-events__hero{
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--le-radius) + 2px);
  border: 1px solid var(--le-border);
  background: linear-gradient(180deg, var(--le-bgTop), var(--le-bgBot));
  box-shadow: var(--le-shadow), var(--le-inset), var(--le-inset2);
  margin: 18px 0 22px;
}
.ply-live-events__hero::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 38%;
  background: radial-gradient(1200px 260px at 35% -40px, rgba(255,255,255,.10), rgba(255,255,255,0) 62%);
  pointer-events:none;
}

.ply-live-events__heroInner{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  padding: 16px;
  align-items: stretch;
  position: relative;
}

.ply-live-events__heroThumb{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--le-borderSoft);
  background: rgba(0,0,0,.18);
  min-height: 340px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  background-size: cover;
  background-position: center;
}
.ply-live-events__heroThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ply-live-events__heroLeft{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.ply-live-events__heroKicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--le-muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.ply-live-events__heroKicker::before{
  content:"";
  width:10px;height:10px;border-radius:999px;
  background: rgba(255,210,74,.95);
  box-shadow: 0 0 0 7px rgba(255,210,74,.14);
}

.ply-live-events__heroTitle{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.ply-live-events__heroMeta{
  color: var(--le-muted);
  font-size: 14px;
  margin-top: 2px;
}

.ply-live-events__heroRight{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ply-live-events__countdown{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--le-borderSoft);
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.ply-live-events__cdLabel{
  font-size: 13px;
  color: var(--le-muted);
  font-weight: 700;
}
.ply-live-events__cdTime{
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .6px;
}

/* ===== SECTION HEADER ===== */
.ply-live-events__section{ margin-top: 26px; }
.ply-live-events__sectionHead{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 0 0 12px;
}
.ply-live-events__sectionTitle{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.15px;
}
.ply-live-events__dot{
  width:10px;height:10px;border-radius:999px;display:inline-block;
}
.ply-live-events__dot--up{ background:#ffd24a; box-shadow:0 0 0 7px rgba(255,210,74,.14); }

/* ===== GRID + CARD ===== */
.ply-live-events__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--le-gap-lg);
}

.ply-live-events__card{
  position: relative;
  overflow: hidden;
  border-radius: var(--le-radius);
  border: 1px solid var(--le-border);
  background: linear-gradient(180deg, var(--le-surfaceTop), var(--le-surfaceBot));
  box-shadow: var(--le-shadow), var(--le-inset), var(--le-inset2);
  display:flex;
  flex-direction:column;
  min-height: 260px;
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease;
}
.ply-live-events__card::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 34%;
  background: radial-gradient(900px 220px at 28% -40px, rgba(255,255,255,.10), rgba(255,255,255,0) 62%);
  pointer-events:none;
}
.ply-live-events__card:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.ply-live-events__thumb{
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,.20);
  border-bottom: 1px solid var(--le-borderSoft);
}

.ply-live-events__cardBody{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  position: relative;
}

.ply-live-events__cardTitle{
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -0.15px;
}
.ply-live-events__meta{
  color: var(--le-muted);
  font-size: 13px;
}
.ply-live-events__desc{
  margin: 0;
  color: var(--le-muted);
  font-size: 13px;
  line-height: 1.38;
}
.ply-live-events__nolink{
  color: var(--le-muted);
  font-size: 13px;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1020px){
  .ply-live-events{ --le-page-max: 100%; --le-pad-x: 16px; }
  .ply-live-events__heroInner{ grid-template-columns: 1fr; }
  .ply-live-events__heroThumb{ min-height: 240px; }
  .ply-live-events__grid{ grid-template-columns: 1fr; }
  .ply-live-events__thumb{ height: 260px; }
}
@media (max-width: 520px){
  .ply-live-events__title{ font-size: 34px; }
}
