/* KAYI TV V69 — Homepage Editorial R9V
   Homepage-only visual layer. No CMS/API behavior changes. */
body.home-r9v{
  --r9v-copper:#b55f2d;
  --r9v-copper-dark:#8f451f;
  --r9v-gold:#e8b85c;
  --r9v-ink:#19303d;
  --r9v-muted:#667983;
  --r9v-surface:#ffffff;
  --r9v-soft:#f4f7f8;
  --r9v-line:#dce5e9;
  background:
    radial-gradient(circle at 82% 8%,rgba(232,184,92,.10),transparent 24%),
    linear-gradient(180deg,#f8fafb 0%,#f3f6f7 100%) !important;
  color:var(--r9v-ink)!important;
}
.home-r9v header{
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--r9v-line)!important;
  box-shadow:0 8px 24px rgba(36,58,70,.06);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.home-r9v header .nav{min-height:78px;height:auto}
.home-r9v header .brand{display:flex;align-items:center;flex:0 0 auto}
.home-r9v header .brand img{
  width:182px!important;height:70px!important;
  object-fit:contain!important;object-position:left center!important;
}
.home-r9v header .menu a{color:#223b49!important}
.home-r9v header .menu a:hover,
.home-r9v header .menu a.active{color:var(--r9v-copper)!important}
.home-r9v .r7-header-search{color:#28414e!important}
.home-r9v header .live-btn{
  border-color:var(--r9v-copper)!important;
  background:var(--r9v-copper)!important;color:#fff!important;
}
.home-r9v header .v63-lang button{color:#29414d!important}
.home-r9v .hero{
  min-height:unset!important;padding:20px 0 8px;
  background:transparent!important;border-bottom:0!important;
  overflow:visible!important;
}
.home-r9v .hero:before,.home-r9v .hero:after{display:none!important}
.home-r9v .hero .wrap{
  min-height:unset!important;display:grid!important;
  grid-template-columns:minmax(0,1.82fr) minmax(310px,.72fr)!important;
  gap:16px!important;align-items:stretch!important;
}
.home-r9v .hero-copy{
  position:relative;min-height:430px;padding:42px 44px!important;
  display:flex;flex-direction:column;justify-content:center;
  border-radius:16px;overflow:hidden;isolation:isolate;
  background:
    linear-gradient(90deg,rgba(8,26,37,.86) 0%,rgba(8,26,37,.62) 38%,rgba(8,26,37,.08) 73%,rgba(8,26,37,0) 100%),
    url('/assets/programs-master/aicha-ile-bilim.webp') center 38% / cover no-repeat!important;
  box-shadow:0 16px 42px rgba(42,64,75,.13);
}
.home-r9v .hero-copy:after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.08)),
             radial-gradient(circle at 78% 12%,rgba(232,184,92,.16),transparent 30%);
  pointer-events:none;
}
.home-r9v .hero-copy .eyebrow{
  color:#f4ca78!important;font-size:12px;letter-spacing:.14em;
}
.home-r9v .hero-copy h1{
  max-width:620px;margin:10px 0 14px!important;color:#fff!important;
  font-size:clamp(42px,4.8vw,70px)!important;line-height:.96!important;
  letter-spacing:-.04em!important;text-transform:none!important;
  text-shadow:0 3px 18px rgba(0,0,0,.20);
}
.home-r9v .hero-copy p{
  max-width:610px!important;color:#edf3f5!important;
  font-size:16px!important;line-height:1.62!important;
}
.home-r9v .hero-actions{margin-top:22px!important}
.home-r9v .hero-actions .cta{
  border-color:rgba(255,255,255,.42)!important;
  background:rgba(255,255,255,.12)!important;color:#fff!important;
  backdrop-filter:blur(8px);
}
.home-r9v .hero-actions .cta.primary{
  background:var(--r9v-copper)!important;border-color:var(--r9v-copper)!important;color:#fff!important;
}
.home-r9v .sat-frequency-card,.home-r9v .broadcast-pills{display:none!important}

.home-r9v .live-box{
  min-height:430px;background:#fff!important;
  border:1px solid var(--r9v-line)!important;border-radius:16px!important;
  box-shadow:0 16px 42px rgba(42,64,75,.10)!important;
  display:flex;flex-direction:column;overflow:hidden;
}
.home-r9v .live-head{
  min-height:48px;background:#fff!important;
  color:var(--r9v-ink)!important;border-bottom:1px solid var(--r9v-line)!important;
  padding:0 14px!important;
}
.home-r9v .live-box .live-embed{flex:1;min-height:280px;background:#071018}
.home-r9v .playerline{
  background:#111a20!important;color:#e8eef1!important;
  border-top:0!important;min-height:52px;
}
.home-r9v .section{padding:18px 0!important}
.home-r9v .section-title{margin-bottom:12px!important}
.home-r9v .section-title h2{
  color:var(--r9v-ink)!important;font-size:23px!important;
  letter-spacing:-.015em!important;
}
.home-r9v .section-title h2:before{
  background:var(--r9v-copper)!important;
}
.home-r9v .section-title a{
  color:var(--r9v-copper)!important;font-weight:850!important;
}
.home-r9v .program-rail{gap:10px!important}
.home-r9v .program-card{
  min-height:210px!important;border-radius:12px!important;
  border:1px solid #d6e0e4!important;
  box-shadow:0 8px 20px rgba(29,52,64,.07);
}
.home-r9v .program-card:hover{
  transform:translateY(-3px);border-color:rgba(181,95,45,.45)!important;
  box-shadow:0 12px 28px rgba(29,52,64,.12);
}
.home-r9v .program-card:after{
  background:linear-gradient(180deg,transparent 34%,rgba(10,22,29,.30) 56%,rgba(10,22,29,.94) 100%)!important;
}
.home-r9v .program-info .kind{color:#f0c876!important}
.home-r9v .dashboard{
  grid-template-columns:1fr 1.2fr 1fr!important;gap:14px!important;
  padding-bottom:18px!important;
}
.home-r9v .dashboard .panel{
  background:#fff!important;border:1px solid var(--r9v-line)!important;
  border-radius:14px!important;box-shadow:0 10px 26px rgba(31,55,67,.07);
}
.home-r9v .dashboard .panel-head{
  border-bottom:1px solid var(--r9v-line)!important;
}
.home-r9v .dashboard .panel-head h3{color:var(--r9v-ink)!important}
.home-r9v .dashboard .panel-head a{color:var(--r9v-copper)!important}
.home-r9v .schedule-list .slot{
  border-bottom:1px solid #e7edef!important;color:#28404c!important;
}
.home-r9v .schedule-list .slot time{color:var(--r9v-copper)!important}
.home-r9v .schedule-list .slot span:last-child{color:#74848d!important}
.home-r9v .panel.news .news-item{
  border-bottom:1px solid #e7edef!important;color:#253d49!important;
}
.home-r9v .panel.news .news-item .tag{color:var(--r9v-copper)!important}
.home-r9v .panel.news .news-item small{color:#76868e!important}
.home-r9v .panel.youth{
  border:0!important;min-height:280px!important;
  background:#102331!important;
}
.home-r9v .panel.youth:after{
  background:linear-gradient(90deg,rgba(11,27,38,.90),rgba(11,27,38,.10))!important;
}
.home-r9v .panel.youth .mini-btn{
  background:var(--r9v-copper)!important;color:#fff!important;
}
.home-r9v .r7-discovery-shell{
  background:#fff!important;border:1px solid var(--r9v-line)!important;
  box-shadow:0 10px 28px rgba(31,55,67,.06)!important;
}
.home-r9v .r7-discovery-eyebrow,
.home-r9v .r7-all-topics{color:var(--r9v-copper)!important}
.home-r9v .r7-search-field{
  background:#f8fafb!important;border-color:#d9e2e6!important;
}
.home-r9v .r7-search-field input{color:#1e3743!important}
.home-r9v .r7-search-submit{
  background:var(--r9v-copper)!important;border-color:var(--r9v-copper)!important;color:#fff!important;
}
.home-r9v .r7-topic-chip{
  background:#f4f7f8!important;border-color:#dce5e9!important;color:#35505d!important;
}
.home-r9v .r7-topic-chip:hover{
  background:#fff4ed!important;border-color:rgba(181,95,45,.30)!important;color:var(--r9v-copper-dark)!important;
}

@media(max-width:1180px){
  .home-r9v .hero .wrap{
    grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr)!important;
  }
  .home-r9v .dashboard{grid-template-columns:1fr 1fr!important}
  .home-r9v .dashboard .news{grid-column:1/-1}
}

@media(max-width:860px){
  .home-r9v header .nav{min-height:68px!important}
  .home-r9v header .brand img{width:142px!important;height:58px!important}
  .home-r9v header .menu{
    background:#fff!important;border-bottom:1px solid var(--r9v-line)!important;
    box-shadow:0 12px 24px rgba(31,55,67,.08);
  }
  .home-r9v header .toggle{color:#28414e!important}
  .home-r9v .hero{padding-top:12px!important}
  .home-r9v .hero .wrap{grid-template-columns:1fr!important;gap:12px!important}
  .home-r9v .hero-copy{
    min-height:390px;padding:32px 28px!important;
    background-position:62% 40%!important;
  }
  .home-r9v .hero-copy h1{max-width:78%;font-size:clamp(38px,10vw,56px)!important}
  .home-r9v .hero-copy p{max-width:76%;font-size:14px!important}
  .home-r9v .live-box{min-height:unset}
  .home-r9v .live-box .live-embed{min-height:unset}
  .home-r9v .dashboard{grid-template-columns:1fr!important}
  .home-r9v .dashboard .news{grid-column:auto}
}

@media(max-width:560px){
  .home-r9v .hero-copy{
    min-height:360px;padding:26px 22px!important;
    background-position:64% center!important;
  }
  .home-r9v .hero-copy:before{
    content:"";position:absolute;inset:0;z-index:-1;
    background:linear-gradient(90deg,rgba(8,26,37,.88) 0%,rgba(8,26,37,.72) 54%,rgba(8,26,37,.18) 100%);
  }
  .home-r9v .hero-copy h1{max-width:88%;font-size:42px!important}
  .home-r9v .hero-copy p{max-width:88%;line-height:1.5!important}
  .home-r9v .hero-actions{gap:8px!important}
  .home-r9v .hero-actions .cta{padding:11px 13px!important;font-size:11px!important}
  .home-r9v .program-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-r9v .program-card{min-height:190px!important}
}

@media(prefers-reduced-motion:reduce){
  .home-r9v .program-card{transition:none!important}
}


/* R9W — truthful inactive-live state + homepage schedule authority */
.home-r9v .live-box.is-inactive{
  min-height:430px;
  background:#fff!important;
}
.home-r9v .live-box.is-inactive .live-head{
  border-bottom:1px solid var(--r9v-line)!important;
}
.home-r9v .live-box.is-inactive .badge-live{
  background:#8b99a1!important;
}
.home-r9v .live-box .playerline[hidden]{
  display:none!important;
}
.home-r9v .live-inactive-preview{
  flex:1;
  min-height:320px;
  display:grid;
  place-items:center;
  grid-template-columns:minmax(120px,.42fr) minmax(0,.58fr);
  gap:26px;
  padding:36px 34px;
  background:
    radial-gradient(circle at 18% 20%,rgba(232,184,92,.13),transparent 32%),
    linear-gradient(145deg,#f9fbfc 0%,#f1f5f6 100%);
}
.home-r9v .live-inactive-preview[hidden]{
  display:none!important;
}
.home-r9v .live-inactive-preview img{
  width:min(150px,100%);
  max-height:160px;
  object-fit:contain;
  justify-self:center;
}
.home-r9v .live-inactive-copy{
  min-width:0;
}
.home-r9v .live-inactive-copy strong{
  display:block;
  color:#1f3946;
  font-size:20px;
  line-height:1.18;
  margin-bottom:9px;
}
.home-r9v .live-inactive-copy p{
  color:#687a84!important;
  font-size:12px!important;
  line-height:1.55!important;
  margin:0 0 16px!important;
}
.home-r9v .live-inactive-link{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 13px;
  border-radius:7px;
  background:var(--r9v-copper);
  color:#fff!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.03em;
}
.home-r9v .schedule-start-marker{
  background:#fff8f2;
  box-shadow:inset 3px 0 var(--r9v-copper);
}
.home-r9v .schedule-start-marker time{
  color:var(--r9v-copper-dark)!important;
}
@media(max-width:860px){
  .home-r9v .live-box.is-inactive{min-height:unset}
  .home-r9v .live-inactive-preview{
    min-height:230px;
    grid-template-columns:100px 1fr;
    gap:18px;
    padding:24px 22px;
  }
  .home-r9v .live-inactive-preview img{width:92px;max-height:108px}
  .home-r9v .live-inactive-copy strong{font-size:17px}
}
@media(max-width:520px){
  .home-r9v .live-inactive-preview{
    min-height:215px;
    grid-template-columns:78px 1fr;
    padding:20px 16px;
    gap:14px;
  }
  .home-r9v .live-inactive-preview img{width:72px}
  .home-r9v .live-inactive-copy strong{font-size:15px}
  .home-r9v .live-inactive-copy p{font-size:11px!important;margin-bottom:12px!important}
}

/* R9X — denser low-count sections and softer card tone */
.home-r9v .program-card:after{
  background:linear-gradient(
    180deg,
    transparent 38%,
    rgba(10,22,29,.22) 58%,
    rgba(10,22,29,.84) 100%
  )!important;
}

.home-r9v #cms-home-series .program-rail,
.home-r9v #cms-home-kids .program-rail,
.home-r9v #cms-home-documentaries .program-rail{
  grid-template-columns:repeat(auto-fit,minmax(188px,220px))!important;
  justify-content:start!important;
  align-items:stretch!important;
}

.home-r9v #cms-home-series .program-card,
.home-r9v #cms-home-kids .program-card,
.home-r9v #cms-home-documentaries .program-card{
  min-height:238px!important;
}

.home-r9v .panel.news .news-list:has(.cms-state){
  min-height:230px;
  display:grid;
  place-items:center;
  padding:18px!important;
  background:
    radial-gradient(circle at 85% 18%,rgba(232,184,92,.08),transparent 30%),
    linear-gradient(145deg,#fbfcfd,#f4f7f8);
}

.home-r9v .panel.news .cms-state{
  width:min(100%,280px);
  margin:0!important;
  padding:18px 16px!important;
  border:1px dashed #d7e1e5;
  border-radius:10px;
  background:#fff;
  color:#6b7d86!important;
  text-align:center;
  font-size:12px!important;
  line-height:1.55!important;
}

.home-r9v .panel.news .cms-state:before{
  content:"KAYI TV";
  display:block;
  margin-bottom:7px;
  color:var(--r9v-copper);
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}

@media(max-width:860px){
  .home-r9v #cms-home-series .program-rail,
  .home-r9v #cms-home-kids .program-rail,
  .home-r9v #cms-home-documentaries .program-rail{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .home-r9v #cms-home-series .program-card,
  .home-r9v #cms-home-kids .program-card,
  .home-r9v #cms-home-documentaries .program-card{
    min-height:205px!important;
  }
}
@media(max-width:520px){
  .home-r9v #cms-home-series .program-card,
  .home-r9v #cms-home-kids .program-card,
  .home-r9v #cms-home-documentaries .program-card{
    min-height:190px!important;
  }
}


/* R10S — launch: hide empty homepage news panel cleanly */
.home-r9v .dashboard.cms-news-empty{
  grid-template-columns:1fr 2fr!important;
}
.home-r9v .dashboard .panel.news[hidden]{
  display:none!important;
}
@media(max-width:860px){
  .home-r9v .dashboard.cms-news-empty{
    grid-template-columns:1fr!important;
  }
}


/* R11C — restore visible News / Live / Cinema homepage surfaces */
.home-r9v .panel.news[hidden]{display:block!important}
.home-r9v .panel.news .panel-head h3[data-news-linked="true"]{
  cursor:pointer;
}
.home-r9v .panel.news .panel-head h3[data-news-linked="true"]:hover{
  color:var(--r9v-copper)!important;
}
.home-r9v .news-empty-editorial{
  min-height:215px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(circle at 85% 18%,rgba(232,184,92,.10),transparent 32%),
    linear-gradient(145deg,#fbfcfd,#f4f7f8);
}
.home-r9v .news-empty-editorial .tag{
  color:var(--r9v-copper)!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  margin-bottom:8px;
}
.home-r9v .news-empty-editorial strong{
  color:var(--r9v-ink)!important;
  font-size:19px;
  line-height:1.2;
  margin-bottom:9px;
}
.home-r9v .news-empty-editorial p{
  margin:0!important;
  color:#687a84!important;
  font-size:12px!important;
  line-height:1.6!important;
}
.home-r9v .live-box.is-inactive .live-head span:last-child{
  color:var(--r9v-ink)!important;
  font-weight:850;
}
.home-r9v .live-inactive-preview img{
  width:min(180px,100%)!important;
  max-height:180px!important;
}
.home-r9v .home-cinema-info{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:24px;
  align-items:center;
  min-height:190px;
  padding:26px 30px;
  background:
    radial-gradient(circle at 18% 15%,rgba(232,184,92,.13),transparent 35%),
    linear-gradient(135deg,#fff,#f3f7f6);
  border:1px solid var(--r9v-line);
  border-radius:14px;
  box-shadow:0 10px 26px rgba(31,55,67,.07);
  color:var(--r9v-ink)!important;
}
.home-r9v .home-cinema-info:hover{
  border-color:rgba(181,95,45,.40);
  box-shadow:0 14px 30px rgba(31,55,67,.10);
}
.home-r9v .home-cinema-info img{
  width:130px;
  height:130px;
  object-fit:contain;
  justify-self:center;
}
.home-r9v .home-cinema-copy strong{
  display:block;
  color:var(--r9v-ink)!important;
  font-size:24px;
  margin-bottom:8px;
}
.home-r9v .home-cinema-copy p{
  max-width:760px;
  margin:0 0 14px!important;
  color:#667983!important;
  font-size:13px!important;
  line-height:1.62!important;
}
.home-r9v .home-cinema-copy span{
  color:var(--r9v-copper)!important;
  font-size:11px;
  font-weight:900;
}
@media(max-width:700px){
  .home-r9v .home-cinema-info{
    grid-template-columns:84px minmax(0,1fr);
    gap:16px;
    padding:20px;
    min-height:150px;
  }
  .home-r9v .home-cinema-info img{width:76px;height:76px}
  .home-r9v .home-cinema-copy strong{font-size:19px}
  .home-r9v .news-empty-editorial{min-height:180px;padding:20px}
}


/* R11E — homepage program cards keep structure but use a light editorial fade. */
.home-r9v .program-card{
  background:#ffffff!important;
  border-color:#dce5e9!important;
  box-shadow:0 8px 20px rgba(29,52,64,.07)!important;
}
.home-r9v .program-card::after{
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0) 34%,
    rgba(255,255,255,.30) 51%,
    rgba(255,255,255,.88) 70%,
    rgba(255,255,255,.99) 100%
  )!important;
}
.home-r9v .program-card .program-info h3{
  color:#203946!important;
  text-shadow:none!important;
}
.home-r9v .program-card .program-info .kind{
  color:#b55f2d!important;
  text-shadow:none!important;
}


/* R11G — homepage live fallback keeps the existing module and original logo. */
.home-r9v .live-box.is-video-fallback{
  min-height:unset!important;
  position:relative!important;
  background:#fff!important;
}
.home-r9v .live-box.is-video-fallback .live-embed{
  display:block!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  border:0!important;
}
.home-r9v .live-box.is-video-fallback .live-inactive-preview,
.home-r9v .live-box.is-video-fallback .playerline{
  display:none!important;
}
.home-r9v .live-box.is-video-fallback .badge-live{
  background:#8b99a1!important;
}

/* R14B3 — verified homepage WCAG AA text contrast corrections only. */
.home-r9v .schedule-list .slot span:last-child{color:#526570!important}
.home-r9v [data-cms-news-list] .article-mini small,
.home-r9v .panel.news .news-item small{color:#526570!important}
.home-r9v .live-head .badge-live{background:#d9272f!important;color:#fff!important}
.home-r9v .playerline > span:nth-of-type(2){color:#ff5a64!important}

