:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1b2030;
  --border: rgba(255,255,255,.07);
  --text: #e8eaf0;
  --muted: #8a91a5;
  --accent: #e5383b;
  --accent-2: #ff5a5f;
}
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-2); }
.text-secondary { color: var(--muted) !important; }

/* Navigasyon */
.site-nav { background: rgba(11,13,18,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-nav .navbar-brand { color: #fff; font-weight: 800; letter-spacing: -.3px; }
.site-nav .navbar-brand i { color: var(--accent); }
.site-nav .nav-link { color: var(--muted); font-weight: 500; }
.site-nav .nav-link:hover { color: #fff; }
.navbar-toggler { color: #fff; border-color: var(--border); }
.btn-country { background: var(--surface-2); color: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: .9rem; }
.btn-country:hover { border-color: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: none; font-weight: 600; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }

/* Ülke penceresi */
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.modal-header { border-color: var(--border); }
.modal .form-control, .form-control { background: var(--bg); border-color: var(--border); color: #fff; }
.form-control:focus { background: var(--bg); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229,56,59,.15); }
.form-control::placeholder { color: #5d6377; }
.detected-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(229,56,59,.1); border: 1px solid rgba(229,56,59,.3); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.country-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid transparent; font-size: .9rem; }
.country-item:hover, .country-item.active { border-color: var(--accent); color: #fff; }
.country-item .flag { font-size: 1.2rem; }
.country-item .cname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-item .cnt { color: var(--muted); font-size: .75rem; }

/* Ana sayfa */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; margin: 0; }
.search-wrap { position: relative; width: 100%; max-width: 320px; }
.search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap input { padding-left: 38px; border-radius: 24px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 20px; padding: 6px 14px; font-size: .85rem; }
.chip span { color: var(--muted); font-size: .75rem; margin-left: 4px; }
.chip.active, .chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active span { color: rgba(255,255,255,.8); }

.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ch-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.ch-card:hover { transform: translateY(-3px); border-color: var(--accent); color: #fff; }
.ch-card.featured { border-color: rgba(229,56,59,.45); }
.ch-logo { position: relative; aspect-ratio: 16/10; background: #fff1; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ch-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ph { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.live-dot { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; }
.ch-name { padding: 9px 10px; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.grid-ad { grid-column: 1 / -1; }
.empty-box { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: 14px; border: 1px solid var(--border); }
.empty-box i { font-size: 2.6rem; color: var(--accent); margin-bottom: 14px; }
.intro-text { margin-top: 40px; padding: 24px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); color: var(--muted); line-height: 1.8; }
.intro-text h2, .intro-text h3 { color: var(--text); font-size: 1.2rem; }

/* İzleme sayfası */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs i { margin: 0 6px; font-size: .7rem; }
.player-box { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.player-box video { width: 100%; height: 100%; background: #000; }
.player-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.6); color: #fff; text-align: center; padding: 20px; pointer-events: auto; cursor: default; }
.player-msg i { font-size: 2.4rem; color: var(--accent); }
.player-msg .spinner-border { color: var(--accent); }
.source-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.src-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 5px 12px; font-size: .8rem; }
.src-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ch-info { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.ch-info-logo { width: 90px; height: 64px; flex: none; background: #fff1; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ch-info-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ch-info h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.ch-info h1 small { font-size: .8rem; color: var(--accent); font-weight: 600; margin-left: 6px; }
.ch-info .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); }
.tag { background: var(--surface-2); padding: 2px 10px; border-radius: 12px; font-size: .75rem; }
.ch-desc { margin-top: 18px; color: var(--muted); line-height: 1.8; }
.side-title { font-weight: 700; margin-bottom: 12px; }
.side-list { display: flex; flex-direction: column; gap: 6px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; border: 1px solid var(--border); font-size: .9rem; }
.side-item:hover { border-color: var(--accent); color: #fff; }
.side-logo { width: 56px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; }
.side-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.side-logo .ph { width: 32px; height: 32px; font-size: .7rem; }

/* Reklam alanları */
.ad-slot { margin: 16px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-header, .ad-footer { max-width: 1320px; padding: 0 12px; }

/* İçerik sayfaları */
.content-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; line-height: 1.85; }
.content-box h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 20px; }
.content-box h2 { font-size: 1.2rem; margin-top: 24px; }
.form-select { background-color: var(--bg); border-color: var(--border); color: #fff; }
label { color: var(--muted); font-size: .9rem; }

/* Alt bilgi */
.site-footer { margin-top: 60px; padding: 36px 0 20px; border-top: 1px solid var(--border); background: #080a0e; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.site-footer .copy { margin-top: 24px; font-size: .8rem; color: #5d6377; text-align: center; }
@media (max-width: 767px) {
  .footer-links { justify-content: flex-start; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .content-box { padding: 20px; }
}
