.ho-channels { scrollbar-width: thin; }
.ho-channels::-webkit-scrollbar { width: 4px; }
.ho-channels::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 999px; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Topbar: mobil / desktop (Tailwind hidden+md:flex ile .hidden !important çakışmasın) */
.ho-topbar-mobile,
.ho-topbar-mobile-search { display: block; }
.ho-topbar-desktop { display: none; }
@media (min-width: 768px) {
  .ho-topbar-mobile,
  .ho-topbar-mobile-search { display: none !important; }
  .ho-topbar-desktop {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
}

/* Logo: açık/koyu mod */
.ho-brand-logo-link {
  display: block;
  height: 3.125rem;
  width: 11.5rem;
  min-width: 11.5rem;
  flex: 0 0 auto;
  overflow: hidden;
}
.ho-brand-logo {
  height: 3.125rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}
.ho-brand-logo--light,
.ho-brand-logo--light-only { display: block !important; }
.ho-brand-logo--dark { display: none !important; }
html.dark .ho-brand-logo--light { display: none !important; }
html.dark .ho-brand-logo--dark { display: block !important; }
.ho-brand-logo--dark-only { display: block !important; }

/* Tema ikonları */
#themeIconLight,
.ho-theme-icon-light { display: none; }
#themeIconDark,
.ho-theme-icon-dark { display: block; }
html.dark #themeIconLight,
html.dark .ho-theme-icon-light { display: block !important; }
html.dark #themeIconDark,
html.dark .ho-theme-icon-dark { display: none !important; }

.ho-watch-cta { background: radial-gradient(ellipse at center, #1a1f2e 0%, #000 70%); }

/* Desktop canlı TV: grid düzeni — player genişliği korunur, kanal listesi scroll */
@media (min-width: 768px) {
  .ho-page-canlitv .ho-tv-layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    align-items: start;
    --ho-player-w: min(62rem, calc(100vw - 18rem));
    --ho-tv-stack-h: calc(var(--ho-player-w) * 0.5625 + 5.25rem);
  }
  .ho-page-canlitv .ho-tv-channels {
    grid-column: 1;
    grid-row: 1;
    width: 228px;
    max-width: 228px;
    max-height: var(--ho-tv-stack-h);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ho-page-canlitv .ho-tv-channels .ho-channels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .ho-page-canlitv .ho-tv-player {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .ho-page-canlitv .ho-tv-player-inner {
    width: 100%;
  }
  .ho-page-canlitv .ho-tv-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
  }
  .ho-page-canlitv .ho-tv-player-frame::after {
    content: '';
    display: block;
    clear: both;
  }
  #hoPlayerMount,
  #hoPlayerMount .ho-pl,
  #hoPlayerMount .ho-pl--youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  #hoPlayerMount .ho-pl__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
  }
  #hoPlayerMount .ho-pl__yt {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
  }
}

/* Mobil canlitv: header akışta, player hemen altında — ekstra boşluk yok */
@media (max-width: 767px) {
  body.ho-page-canlitv {
    --ho-head-h: 0px;
  }
  .ho-page-canlitv .ho-site-head {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .ho-page-canlitv .ho-site-head > div {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
  .ho-page-canlitv .ho-topbar-mobile-search {
    margin-top: 0.375rem;
  }
  .ho-page-canlitv .ho-canlitv-main {
    padding: 0 0 1rem !important;
    margin: 0;
  }
  .ho-page-canlitv .ho-tv-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0f172a;
  }
  .ho-page-canlitv .ho-tv-layout {
    gap: 0;
    overflow-x: hidden;
  }
  .ho-page-canlitv .ho-tv-player {
    position: sticky;
    top: var(--ho-head-h, 0px);
    z-index: 40;
    background: #000;
  }
  .ho-page-canlitv .ho-tv-player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 200px;
    max-height: 52vh;
    flex: none;
  }
  .ho-page-canlitv .ho-tv-channels {
    position: relative;
    z-index: 1;
  }
  .ho-page-canlitv .ho-tv-channels .ho-channels {
    max-height: 55vh;
  }
  #hoPlayerMount,
  #hoPlayerMount .ho-pl,
  #hoPlayerMount .ho-pl--youtube,
  #hoPlayerMount .ho-pl__yt {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  #hoPlayerMount .ho-pl__video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000;
  }
}

.ho-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 100;
  padding: 1rem; pointer-events: none;
}
.ho-cookie__inner {
  pointer-events: auto;
  margin: 0 auto; max-width: 56rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1rem;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(15,23,42,.12);
}
.dark .ho-cookie__inner {
  background: rgba(17,24,39,.96);
  border-color: rgba(71,85,105,.5);
}
.ho-cookie__text { font-size: .875rem; line-height: 1.5; color: #334155; flex: 1; min-width: 200px; }
.dark .ho-cookie__text { color: #cbd5e1; }
.ho-cookie__link { color: #dc2626; font-weight: 600; text-decoration: underline; }
.ho-cookie__actions { display: flex; gap: .5rem; flex-shrink: 0; }
.ho-cookie__btn {
  padding: .5rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 700; cursor: pointer; border: none;
}
.ho-cookie__btn--ghost { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.dark .ho-cookie__btn--ghost { color: #94a3b8; border-color: #475569; }
.ho-cookie__btn--primary { background: #dc2626; color: #fff; }
.ho-cookie__btn--primary:hover { background: #b91c1c; }

.ho-legal h1 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
.ho-legal h2 { font-size: 1.125rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.ho-legal p, .ho-legal li { font-size: .9375rem; line-height: 1.7; color: #475569; margin-bottom: .75rem; }
.dark .ho-legal p, .dark .ho-legal li { color: #94a3b8; }
.ho-legal ul { padding-left: 1.25rem; list-style: disc; }

/* Haber detay içeriği (CKEditor HTML) */
.ho-article-body { font-size: 1.0625rem; line-height: 1.8; }
.ho-article-body > *:first-child { margin-top: 0; }
.ho-article-body > *:last-child { margin-bottom: 0; }
.ho-article-body p { margin-bottom: 1.25rem; }
.ho-article-body h2 { margin: 2rem 0 1rem; font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.dark .ho-article-body h2 { color: #f8fafc; }
.ho-article-body h3 { margin: 1.5rem 0 .75rem; font-size: 1.25rem; font-weight: 700; color: #0f172a; }
.dark .ho-article-body h3 { color: #f1f5f9; }
.ho-article-body a { color: #dc2626; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ho-article-body a:hover { color: #b91c1c; }
.ho-article-body img { margin: 1.5rem 0; max-width: 100%; height: auto; border-radius: 1rem; }
.ho-article-body ul, .ho-article-body ol { margin: 0 0 1.25rem 1.25rem; }
.ho-article-body li { margin-bottom: .5rem; }
.ho-article-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid #dc2626;
  background: rgba(220,38,38,.06); border-radius: 0 .75rem .75rem 0; font-style: italic;
}
.dark .ho-article-body blockquote { background: rgba(220,38,38,.12); }
.ho-article-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .9375rem; }
.ho-article-body th, .ho-article-body td { border: 1px solid #e2e8f0; padding: .625rem .75rem; text-align: left; }
.dark .ho-article-body th, .dark .ho-article-body td { border-color: #334155; }
.ho-article-body iframe { max-width: 100%; margin: 1.5rem 0; border-radius: .75rem; }

.ho-admin-input {
  width: 100%; margin-top: .25rem; border-radius: .75rem; border: 1px solid #e2e8f0;
  background: #fff; padding: .625rem .875rem; font-size: .875rem;
}
.ho-admin-input:focus { outline: 2px solid #fecaca; border-color: #dc2626; }
.ho-admin-label { display: block; font-size: .8125rem; font-weight: 600; color: #475569; }

/* Haber slider — header (max-w-7xl) ile aynı genişlik, 16:9 oran */
.ho-news-slider-bar {
  width: 100%;
}
.ho-news-slider {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.dark .ho-news-slider {
  border-color: #1e293b;
  box-shadow: none;
}
.ho-news-slider__viewport {
  position: absolute;
  inset: 0;
}
.ho-news-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ho-news-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1;
}
.ho-news-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.ho-news-slider__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.ho-news-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ho-news-slider__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}
.ho-news-slider__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 38%, transparent 68%);
  pointer-events: none;
}
.ho-news-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.625rem 2.75rem 0.75rem 0.75rem;
}
@media (min-width: 768px) {
  .ho-news-slider__caption {
    padding: 1rem 3.5rem 1.25rem 1.25rem;
  }
}
@media (min-width: 1024px) {
  .ho-news-slider {
    border-radius: 1.25rem;
  }
  .ho-news-slider__caption {
    padding: 1.25rem 4.5rem 1.5rem 1.5rem;
  }
}
.ho-news-slider__time {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fca5a5;
}
@media (min-width: 768px) {
  .ho-news-slider__time { font-size: 0.75rem; }
}
.ho-news-slider__title {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .ho-news-slider__title {
    font-size: 1.125rem;
    -webkit-line-clamp: 2;
  }
}
@media (min-width: 1024px) {
  .ho-news-slider__title {
    font-size: 1.375rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  .ho-news-slider__time {
    font-size: 0.8125rem;
  }
}
.ho-news-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ho-news-slider__btn:hover {
  background: #dc2626;
  color: #fff;
  transform: scale(1.05);
}
.ho-news-slider__btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.ho-news-slider__btn--prev { left: 0.4rem; }
.ho-news-slider__btn--next { right: 0.4rem; }
@media (min-width: 768px) {
  .ho-news-slider__btn {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
  }
  .ho-news-slider__btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  .ho-news-slider__btn--prev { left: 0.75rem; }
  .ho-news-slider__btn--next { right: 0.75rem; }
}
@media (min-width: 1024px) {
  .ho-news-slider__btn {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
  }
  .ho-news-slider__btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .ho-news-slider__btn--prev { left: 1rem; }
  .ho-news-slider__btn--next { right: 1rem; }
}
.ho-news-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  z-index: 6;
  display: flex;
  transform: translateX(-50%);
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.ho-news-slider__dot {
  width: 0.375rem;
  height: 0.375rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.ho-news-slider__dot.is-active {
  width: 0.875rem;
  background: #dc2626;
}
.ho-home-main {
  padding-bottom: 2rem;
}
.ho-haberler-main {
  padding-bottom: 2rem;
}
.ho-page-home .ho-news-section,
.ho-page-haberler .ho-news-section {
  margin-top: 0;
}
