:root{
  --plh-green:#10b981;
  --plh-green-2:#34d399;
  --plh-green-dark:#064e3b;
  --plh-ink:#0b1220;
}
.plh-hub{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.45;color:var(--plh-ink)}
.plh-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.plh-hero{padding:22px 14px;border-radius:16px;color:#fff;overflow:hidden}
.plh-hero--green{background:linear-gradient(135deg, rgba(6,78,59,.98), rgba(16,185,129,.55)); border:1px solid rgba(16,185,129,.25)}
.plh-hero__inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1.2fr .8fr;gap:16px;align-items:center}
.plh-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:6px 10px;border-radius:999px;font-size:12px}
.plh-title{margin:10px 0 6px;font-size:30px;letter-spacing:-.02em}
.plh-subtitle{margin:0 0 10px;color:rgba(255,255,255,.86)}
.plh-meta{font-size:13px;color:rgba(255,255,255,.88)}
.plh-actions{display:grid;gap:10px}
.plh-search{width:100%;border-radius:12px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.10);color:#fff;padding:12px 12px;font-size:14px;outline:none}
.plh-search::placeholder{color:rgba(255,255,255,.72)}
.plh-wrap{max-width:1100px;margin:18px auto 0;padding:0 14px}
.plh-section{margin:18px 0}
.plh-section__head{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;justify-content:space-between;margin-bottom:10px}
.plh-h2{margin:0;font-size:18px;letter-spacing:-.01em}
.plh-muted{font-size:12px;color:rgba(0,0,0,.6)}
.plh-list{display:grid;gap:10px}
.plh-row{display:grid;grid-template-columns:160px 1fr 170px;gap:10px;align-items:center;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:12px}
.plh-row__time{font-weight:900}
.plh-row__title{font-weight:900}
.plh-row__sub{font-size:12px;color:rgba(0,0,0,.62);margin-top:2px}
.plh-row__actions{display:flex;justify-content:flex-end}
.plh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.plh-card{border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.plh-card__top{padding:14px 14px 10px}
.plh-pillrow{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.plh-pill{font-size:12px;padding:5px 9px;border-radius:999px;background:rgba(16,185,129,.10);border:1px solid rgba(16,185,129,.18);color:var(--plh-green-dark)}
.plh-card__title{font-size:15px;font-weight:900;margin:0 0 6px}
.plh-card__time{font-size:13px;color:rgba(0,0,0,.65)}
.plh-card__bottom{margin-top:auto;padding:12px 14px;border-top:1px solid rgba(0,0,0,.06);display:flex;gap:10px;align-items:center;justify-content:space-between}
.plh-more{font-size:12px;color:rgba(0,0,0,.6)}

/* Buttons/links */
.plh-btn{border:1px solid rgba(0,0,0,.14);background:#fff;border-radius:12px;padding:10px 12px;font-weight:900;cursor:pointer}
.plh-btn--green{border-color:rgba(16,185,129,.40); box-shadow:0 1px 0 rgba(0,0,0,.03)}
.plh-btn--green:hover{transform:translateY(-1px)}
.plh-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border-radius:12px;padding:10px 12px;border:1px solid rgba(0,0,0,.12);font-weight:900;font-size:13px;background:#fff;color:var(--plh-ink)}
.plh-link--green{border-color:rgba(16,185,129,.40)}
.plh-link--green:hover{transform:translateY(-1px)}

/* Empty */
.plh-empty{border:1px dashed rgba(16,185,129,.45);border-radius:16px;padding:24px;text-align:center;background:#fff;margin:14px 0}
.plh-empty__title{font-size:16px;font-weight:900;margin-bottom:6px}
.plh-empty__text{color:rgba(0,0,0,.65)}

/* Single channel */
.plh-channel{max-width:1100px;margin:18px auto;padding:0 14px}
.plh-channel__head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
.plh-channel__title{margin:0;font-size:22px;letter-spacing:-.02em}
.plh-iframewrap{border-radius:16px;overflow:hidden;border:1px solid rgba(16,185,129,.30);background:#000}
.plh-iframewrap iframe{width:100%;border:0;display:block}
.plh-seo{margin-top:14px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:14px}
.plh-seo h2{margin:0 0 8px;font-size:18px}
.plh-seo .plh-content{color:rgba(0,0,0,.82)}
.plh-split{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.plh-mini{border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:14px}
.plh-mini h3{margin:0 0 10px;font-size:16px}
.plh-mini .plh-mini-grid{display:grid;gap:10px}
.plh-mini a{color:inherit;text-decoration:none}
.plh-mini .plh-mini-item{display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px}
.plh-mini .plh-mini-pill{font-size:12px;padding:4px 8px;border-radius:999px;background:rgba(16,185,129,.10);border:1px solid rgba(16,185,129,.18);color:var(--plh-green-dark)}

@media (max-width: 900px){
  .plh-hero__inner{grid-template-columns:1fr}
  .plh-title{font-size:26px}
  .plh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plh-row{grid-template-columns:1fr;gap:8px}
  .plh-row__actions{justify-content:flex-start}
  .plh-split{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .plh-grid{grid-template-columns:1fr}
}

/* v1.1 enhancements */
.plh-mini .plh-mini-item{background:linear-gradient(180deg,#fff,rgba(16,185,129,.03));}
.plh-mini .plh-mini-item:hover{transform:translateY(-1px);border-color:rgba(16,185,129,.35)}


/* v1.2 match cards */
.plh-card__logo{width:44px;height:44px;border-radius:12px;overflow:hidden;border:1px solid rgba(0,0,0,.06);background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.plh-card__logo img{width:100%;height:100%;object-fit:contain}

.plh-matchgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plh-matchcard{border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.plh-matchcard__title{font-weight:950;letter-spacing:-.01em}
.plh-matchcard__sub{font-size:12px;color:rgba(0,0,0,.62);margin-top:4px}
.plh-matchcard__time{font-size:12px;color:rgba(16,185,129,.95);margin-top:6px;font-weight:800}
.plh-matchcard__cta{display:flex;align-items:center;justify-content:flex-end;min-width:120px}
.plh-empty--mini{padding:14px}
.plh-mini .plh-matchgrid{grid-template-columns:1fr}
.plh-mini .plh-matchcard{padding:12px;border-radius:14px}
.plh-mini .plh-matchcard__cta{min-width:auto}

@media (max-width: 900px){
  .plh-matchgrid{grid-template-columns:1fr}
}

/* match countdown badges */
.plh-matchcard__meta{display:flex;gap:10px;align-items:center;margin-top:8px}
.plh-matchbadge{font-size:12px;padding:4px 8px;border-radius:999px;background:rgba(16,185,129,.10);border:1px solid rgba(16,185,129,.18);color:var(--plh-green-dark);font-weight:900}
.plh-matchtime{font-size:12px;color:rgba(0,0,0,.65);font-weight:700}

/* channel directory hero */
.plh-hero{border:1px solid rgba(0,0,0,.08);border-radius:18px;background:linear-gradient(135deg,rgba(16,185,129,.12),rgba(16,185,129,.04));padding:18px;display:flex;gap:18px;align-items:center;justify-content:space-between}
.plh-hero__left{min-width:240px}
.plh-hero__badge{display:inline-flex;gap:10px;align-items:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(0,0,0,.06);font-weight:900}
.plh-dot{width:10px;height:10px;border-radius:999px;background:rgba(16,185,129,1);box-shadow:0 0 0 4px rgba(16,185,129,.18)}
.plh-sep{opacity:.55}
.plh-hero__title{margin:10px 0 4px;font-size:22px;letter-spacing:-.02em}
.plh-hero__sub{color:rgba(0,0,0,.65);font-weight:600}
.plh-search{max-width:420px}
.plh-search__input{width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(0,0,0,.10);background:rgba(255,255,255,.8);outline:none}
.plh-search__input:focus{border-color:rgba(16,185,129,.45);box-shadow:0 0 0 4px rgba(16,185,129,.12)}
.plh-search__hint{margin-top:8px;color:rgba(0,0,0,.55);font-size:12px}
.plh-loadmore-wrap{display:flex;justify-content:center;margin-top:14px}
.plh-grid.is-loading{opacity:.6;pointer-events:none}
@media (max-width: 900px){.plh-hero{flex-direction:column;align-items:stretch}}

.plh-link--red{background:#b91c1c;border-color:#b91c1c;color:#fff}
.plh-link--red:hover{filter:brightness(1.05)}

/* simple channel bar */
.plh-channelbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.plh-channelbar .plh-search{max-width:420px;flex:1}
@media (max-width: 900px){.plh-channelbar{flex-direction:column;align-items:stretch}}

/* infinite scroll hint */
/* .plh-scrollhint removed */
.plh-scrollhint{display:flex;justify-content:center;margin-top:10px;color:rgba(0,0,0,.55);font-size:12px}

/* list head (no hero/channelbar) */
.plh-listhead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}
.plh-search--inline{max-width:420px;flex:1}
.plh-loadmore-wrap{position:relative;z-index:5}
.plh-loadmore-wrap .plh-btn{cursor:pointer;pointer-events:auto}
@media (max-width: 900px){.plh-listhead{flex-direction:column;align-items:stretch}}

/* ===============================
   Card style matching screenshot
   =============================== */
.plh-grid{gap:18px}
.plh-card--hero{
  background:#f4f5f7;
  border:1px solid rgba(0,0,0,.05);
  border-radius:22px;
  padding:28px 20px 22px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.plh-card--hero:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 60px rgba(0,0,0,.11);
}
.plh-card--hero .plh-card__logo{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:110px;
}
.plh-card--hero .plh-card__logo img{
  max-width:220px;
  max-height:90px;
  object-fit:contain;
  width:auto;
  height:auto;
}
.plh-card--hero .plh-card__logo--placeholder{
  font-weight:900;
  font-size:18px;
  color:rgba(0,0,0,.55);
}
.plh-card--hero .plh-card__name{
  font-weight:950;
  letter-spacing:.06em;
  font-size:20px;
  color:rgba(0,0,0,.85);
}
.plh-card--hero .plh-card__desc{
  font-size:16px;
  color:rgba(0,0,0,.55);
  font-weight:600;
}
.plh-card--hero .plh-card__cta{margin-top:6px}
.plh-card--hero .plh-card__btn{
  display:inline-block;
  padding:12px 26px;
  border-radius:999px;
  background:#15803d; /* green */
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 18px rgba(21,128,61,.22);
}
.plh-card--hero .plh-card__btn:hover{filter:brightness(1.05)}
/* mobile */
@media (max-width: 900px){
  .plh-card--hero{padding:26px 18px 20px}
  .plh-card--hero .plh-card__logo img{max-width:200px}
}

/* main channels title */
.plh-main-title{
  font-size:34px;
  font-weight:900;
  text-align:center;
  margin:10px 0 30px;
  color:#065f46;
}
@media (max-width: 900px){
  .plh-main-title{font-size:28px;margin-bottom:24px}
}

/* ===============================
   Premium hover + live dot
   =============================== */
.plh-card--hero{
  position:relative;
  overflow:hidden;
}
.plh-card--hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(circle at 30% 20%, rgba(21,128,61,.14), transparent 45%),
             radial-gradient(circle at 80% 10%, rgba(21,128,61,.10), transparent 55%);
  opacity:.85;
  pointer-events:none;
}
.plh-card--hero:hover{
  box-shadow:0 28px 70px rgba(0,0,0,.12);
}
.plh-card--hero:hover .plh-card__btn{
  filter:brightness(1.06);
  transform:translateY(-1px);
}
.plh-card--hero *{position:relative; z-index:2;}

/* Removed blinking green dot from channel cards (kept hidden for backwards compatibility) */
.plh-live-dot{display:none !important;}
@keyframes plhPulse{
  0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)}
  70%{box-shadow:0 0 0 10px rgba(22,163,74,0)}
  100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}
}

/* ===============================
   Matches UI: match grey cards
   =============================== */
.plh-matchgrid{gap:18px}
.plh-matchcard{
  background:#f4f5f7;
  border:1px solid rgba(0,0,0,.05);
  border-radius:22px;
  padding:18px 18px;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}
.plh-matchcard:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 60px rgba(0,0,0,.11);
}
.plh-matchcard__title{
  font-weight:950;
  letter-spacing:-.02em;
}
.plh-matchcard__sub{
  color:rgba(0,0,0,.55);
  font-weight:650;
}
.plh-matchcard__cta .plh-link{
  border-radius:999px;
  padding:10px 18px;
  font-weight:900;
}
.plh-link--green{background:#15803d;border-color:#15803d}
.plh-link--red{background:#b91c1c;border-color:#b91c1c}

/* keep layout nice on mobile */
@media (max-width:900px){
  .plh-matchgrid{grid-template-columns:1fr}
}

/* ===============================
   Schedule list style (like screenshot)
   =============================== */
.plh-schedule{display:flex;flex-direction:column;gap:18px}
.plh-sched-day{border:1px solid rgba(0,0,0,.10);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.08)}
.plh-sched-head{background:#2ea043;color:#fff;font-weight:900;padding:12px 14px;text-align:center}
.plh-sched-list{background:#fff}
.plh-sched-row{display:grid;grid-template-columns:76px 44px 1fr auto;gap:10px;align-items:center;padding:12px 14px;border-top:1px solid rgba(0,0,0,.10)}
.plh-sched-row:first-child{border-top:none}
.plh-sched-time{text-align:center;font-weight:900;white-space:nowrap;font-size:13px}
.plh-sched-main{min-width:0}
.plh-sched-title{font-weight:850;color:rgba(0,0,0,.85);line-height:1.15;font-size:14px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.plh-sched-cta{margin-left:auto}
.plh-sched-cta .plh-link{border-radius:999px;padding:9px 16px;font-weight:900;white-space:nowrap;flex-shrink:0;display:inline-block}
@media (max-width: 900px){
  .plh-sched-row{padding:12px}
}

/* Keep EVERYTHING on one straight line on small screens */
@media (max-width: 420px){
  .plh-sched-row{grid-template-columns:64px 34px 1fr auto;gap:8px}
  .plh-sched-time{font-size:12px}
  .plh-sched-flag{font-size:16px}
  .plh-sched-title{white-space:nowrap;text-overflow:ellipsis}
  .plh-sched-cta .plh-link{padding:8px 12px;font-size:13px}
}

/* ===============================
   Channel watch page: light grey shell
   =============================== */
.plh-channel-shell{background:#f4f5f7;border-radius:22px;padding:14px;border:1px solid rgba(0,0,0,.05);box-shadow:0 18px 45px rgba(0,0,0,.08)}
.plh-player{border-radius:18px;overflow:hidden;background:#000;border:1px solid rgba(0,0,0,.10)}
.plh-seo-box{background:#f4f5f7;border:1px solid rgba(0,0,0,.05);border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.08)}

/* flags */
.plh-flag{
  font-size:18px;
  margin-right:6px;
}

/* flags in schedule */
.plh-sched-flag{min-width:34px;display:flex;align-items:center;justify-content:center;font-size:18px}
.plh-flagimg{width:20px;height:14px;object-fit:cover;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,.15)}



/* ===============================
   Jannah theme mobile override:
   keep schedule row ONE LINE + full width
   =============================== */
@media (max-width: 768px){
  /* full-bleed card on mobile (use carefully) */
  .plh-schedule .plh-sched-day{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 14px;
  }

  /* Force single-line layout even if theme forces links to block */
  .plh-schedule .plh-sched-row{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px;
  }
  .plh-schedule .plh-sched-time{
    flex: 0 0 64px !important;
    text-align: left !important;
  }
  .plh-schedule .plh-sched-flag{
    flex: 0 0 34px !important;
  }
  .plh-schedule .plh-sched-main{
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .plh-schedule .plh-sched-title{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .plh-schedule .plh-sched-cta{
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .plh-schedule .plh-sched-cta .plh-link{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
  }
}


/* === Jannah mobile: fix "Also live" block on channel page === */
@media (max-width: 768px){
  .plh-channel{ overflow-x:hidden; }
  .plh-channel .plh-split{ display:block; }
  .plh-channel .plh-mini{ margin: 0 0 16px 0; }
  /* Disable full-bleed inside channel sidebar blocks */
  .plh-channel .plh-mini-grid .plh-schedule .plh-sched-day{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

