/* ================= ARONYA TV — KANAL ana sayfa düzeni (NOW benzeri) =================
   .kn kök sınıfı ile kapsamlanır. Renkler tema değişkenlerinden türetilir,
   beyaz haber bantları kendi paletini (--kn-fg / --kn-muted) taşır. */

.kn {
  --kn-fg: var(--text);
  --kn-muted: var(--text-muted);
  --kn-surface: var(--bg-soft);
  --kn-surface-2: var(--bg-card);
  --kn-red: var(--primary);
  --kn-radius: 10px;
  position: relative;
  padding-bottom: 46px;
  color: var(--kn-fg);
}

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

/* ---------- Ortak: görsel yüzey + degrade yedek ---------- */
.kn-media,
.kn-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--kn-radius);
  background: var(--kn-surface-2);
}
.kn-media { aspect-ratio: 16 / 9; }
.kn-poster { aspect-ratio: 2 / 3; }

.kn .kn-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--hue, 210) 42% 24%), hsl(var(--hue, 210) 38% 8%));
}
.kn .kn-ph > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kn-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .12) 46%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* ---------- Bölüm başlıkları ---------- */
.kn-sec { padding: 30px 0 4px; }
/* Ekran dışındaki bölümler görünene kadar boyanmaz: mobilde boyama/animasyon yükü azalır.
   Akış bandı hariç — canlı göstergeler her an güncel boyanmalı. */
.kn-sec:not(.kn-sec-flow) { content-visibility: auto; contain-intrinsic-size: auto 460px; }
.kn-sec-tight { padding: 18px 0 4px; }
.kn-sec-inset { padding: 26px 0 0; }

.kn-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.kn-sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--kn-fg);
  line-height: 1.2;
}
.kn-sec-title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.kn-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--kn-muted);
  transition: color .18s ease;
}
.kn-sec-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kn-sec-link:hover { color: var(--kn-red); }

/* ---------- Raylar ---------- */
.kn-rail { position: relative; }
.kn-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}
.kn-rail-track::-webkit-scrollbar { display: none; }
.kn-rail-track > * { scroll-snap-align: start; }

.kn-arrow {
  position: absolute;
  top: 38%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  color: var(--kn-fg);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.kn-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kn-arrow:hover { background: var(--kn-red); color: #fff; border-color: var(--kn-red); }
.kn-arrow:disabled { opacity: .32; pointer-events: none; }
.kn-arrow-prev { left: -6px; }
.kn-arrow-next { right: -6px; }
@media (hover: hover) and (min-width: 900px) {
  .kn-rail.is-scrollable:hover .kn-arrow { display: flex; }
}

/* ---------- 16:9 video kartı ---------- */
.kn-vcard {
  flex: 0 0 244px;
  display: block;
  color: inherit;
}
.kn-grid4 .kn-vcard { flex: none; width: 100%; }
.kn-vcard .kn-media { transition: transform .35s ease; }
.kn-vcard:hover .kn-media { box-shadow: 0 12px 26px rgba(0, 0, 0, .4); }
.kn-vcard:hover .kn-play { background: var(--kn-red); }

.kn-play {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 22, 28, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.kn-play svg { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }

.kn-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--kn-red);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.kn-cap {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kn-cap strong {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #fff;
}
.kn-cap em {
  font-size: 10px;
  font-style: normal;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.kn-vtitle {
  display: block;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--kn-fg);
}
.kn-vsub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--kn-muted);
}

/* ---------- 3:4 afiş kartı ---------- */
.kn-pcard { flex: 0 0 176px; display: block; color: inherit; }
.kn-pcard .kn-poster { transition: transform .3s ease; }
.kn-pcard:hover .kn-poster { box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: translateY(-3px); }
.kn-ptitle {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--kn-fg);
}
.kn-pmeta { display: block; margin-top: 2px; font-size: 11px; color: var(--kn-muted); }

/* ---------- Hero ---------- */
.kn-hero { position: relative; height: min(76vh, 620px); min-height: 420px; overflow: hidden; background: #0a0c10; }
.kn-hero-stage { position: absolute; inset: 0; }
.kn-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.kn-slide.is-active { opacity: 1; visibility: visible; }
.kn-slide > img,
.kn-slide > .kn-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.kn-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .62) 38%, rgba(8, 9, 12, .12) 72%),
    linear-gradient(to top, rgba(8, 9, 12, .95) 0%, rgba(8, 9, 12, 0) 42%);
}
.kn-hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  z-index: 2;
  max-width: min(1280px, 92%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.kn-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.kn-hero-title {
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .55);
}
.kn-hero-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.kn-chip {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .25);
}
.kn-chip-imdb { border-color: rgba(245, 197, 24, .6); color: #f5c518; }
.kn-chip-star { border-color: rgba(245, 197, 24, .45); color: #ffd463; }
.kn-hero-desc { max-width: 560px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.kn-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.kn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.kn-btn svg { width: 15px; height: 15px; fill: currentColor; }
.kn-btn-solid { background: #fff; color: #111; }
.kn-btn-solid:hover { background: var(--kn-red); color: #fff; transform: translateY(-1px); }
.kn-btn-line { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.kn-btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.kn-dots {
  position: absolute;
  right: max(4%, 22px);
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 7px;
}
.kn-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
/* Görsel nokta küçük kalır, dokunma alanı 25px'e genişler (WCAG 2.5.8) */
.kn-dots button::before { content: ''; position: absolute; inset: -8px; }
.kn-dots button.is-active { background: #fff; transform: scale(1.18); }

/* ---------- Yayın akışı paneli ---------- */
.kn-flow {
  background: var(--kn-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 0 20px;
}
.kn-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px 14px;
}
.kn-flow-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--kn-fg);
}
.kn-flow-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 22px 10px;
  scrollbar-width: none;
}
.kn-flow-track::-webkit-scrollbar { display: none; }
.kn-flow-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 300px;
  color: inherit;
  cursor: pointer;
}
.kn-flow-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.kn-flow-time { font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: -1px; color: var(--kn-fg); }
.kn-flow-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--kn-fg);
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kn-flow-badge {
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--kn-red);
  color: #fff;
}
.kn-flow-badge.is-plain { background: var(--kn-surface-2); color: var(--kn-muted); }
.kn-flow-badge.is-live {
  border: 1px solid var(--kn-red);
  background: transparent;
  color: var(--kn-red);
  animation: knPulse 2.2s ease-in-out infinite;
}
@keyframes knPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, .38); }
  50% { box-shadow: 0 0 0 5px rgba(229, 9, 20, 0); }
}
.kn-flow-thumb {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--kn-surface-2);
}
.kn-flow-item:hover .kn-flow-thumb { outline: 2px solid var(--kn-red); outline-offset: -2px; }
.kn-flow-item.is-now .kn-flow-time { color: var(--kn-red); }

/* ---------- 4'lü ızgara ---------- */
.kn-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Beyaz haber bandı ---------- */
.kn-light {
  --kn-fg: #14161a;
  --kn-muted: #6b7280;
  --kn-surface: #f4f5f7;
  --kn-surface-2: #e6e8ec;
  margin-top: 34px;
  padding: 34px 0 40px;
  background: #fff;
  color: var(--kn-fg);
}
.kn-light .kn-media,
.kn-light .kn-poster { background: #dfe2e7; }
.kn-light .kn-play { background: rgba(255, 255, 255, .82); color: #111; }
.kn-light .kn-brand-badge { color: var(--kn-red); text-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.kn-light .kn-arrow { background: #fff; border-color: #e2e5ea; color: #14161a; }

.kn-ncard { display: block; color: inherit; }
.kn-ncard .kn-media { border-radius: 8px; }
.kn-ntitle {
  display: block;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .1px;
  color: var(--kn-fg);
}
.kn-ncard:hover .kn-ntitle { color: var(--kn-red); }

/* ---------- Promosyon bandı ---------- */
.kn-promo {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 300px;
  border-radius: 18px;
  background: #0b0d11;
  isolation: isolate;
}
.kn-promo-bg { position: absolute; inset: 0; z-index: -2; }
.kn-promo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 9, .94) 0%, rgba(6, 7, 9, .72) 42%, rgba(6, 7, 9, .1) 78%);
}
.kn-promo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  padding: 46px 44px;
}
.kn-promo-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.6px;
  color: #fff;
}
.kn-promo-lead { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.kn-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 24px;
  border-radius: 7px;
  background: #fff;
  color: #111;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.kn-promo-btn svg { width: 14px; height: 14px; fill: currentColor; }
.kn-promo:hover .kn-promo-btn { background: var(--kn-red); color: #fff; }

/* ---------- "daha{SITE}" mozaik bandı ---------- */
.kn-light-more { padding-top: 30px; }
.kn-subbrand {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.6px;
  text-transform: uppercase;
  color: var(--kn-red);
}
.kn-subbrand span {
  margin-right: 1px;
  color: #f97316;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
}
.kn-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 186px;
  gap: 14px;
}
.kn-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #dfe2e7;
  color: inherit;
}
.kn-tile .kn-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.kn-tile-lead { grid-column: span 2; grid-row: span 2; }
.kn-tile-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.kn-tile-lead .kn-tile-title { font-size: 19px; }
.kn-tile:hover .kn-media img { transform: scale(1.04); }
.kn-tile .kn-media img { transition: transform .4s ease; }

/* ---------- Reklam alanı ---------- */
.kn .ad-slot { margin: 6px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kn-vcard { flex-basis: 224px; }
  .kn-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kn-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 168px; }
}
@media (max-width: 900px) {
  .kn-hero { height: auto; min-height: 0; }
  .kn-slide { position: relative; inset: auto; opacity: 1; visibility: visible; }
  .kn-slide:not(.is-active) { display: none; }
  .kn-hero-stage { position: relative; inset: auto; }
  .kn-hero-inner { position: relative; bottom: auto; padding: 26px 0 34px; }
  .kn-hero { display: flex; flex-direction: column; }
  .kn-hero .kn-hero-stage { flex: 0 0 auto; }
  .kn-slide > img, .kn-slide > .kn-ph { position: relative; aspect-ratio: 16 / 10; }
  .kn-hero-fade { inset: auto 0 0 0; height: 60%; }
  .kn-dots { right: 4%; top: 12px; bottom: auto; }
  .kn-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .kn-tile-lead { grid-column: span 2; grid-row: span 1; min-height: 210px; }
  .kn-promo-text { padding: 30px 24px; }
}
@media (max-width: 640px) {
  .kn-sec { padding: 22px 0 2px; }
  .kn-sec-title { font-size: 15.5px; }
  .kn-vcard { flex-basis: 208px; }
  .kn-pcard { flex-basis: 142px; }
  .kn-flow-item { width: 262px; }
  .kn-flow-thumb { width: 128px; }
  .kn-flow-time { font-size: 23px; }
  .kn-grid4 { grid-template-columns: 1fr; }
  .kn-mosaic { grid-template-columns: 1fr; grid-auto-rows: 172px; }
  .kn-tile-lead { grid-column: span 1; }
  .kn-hero-actions .kn-btn { flex: 1 1 auto; justify-content: center; }
}
