:root {
    --ctv-bg: #0e0f13;
    --ctv-bg-alt: #16181f;
    --ctv-card: #1c1f28;
    --ctv-text: #eef0f4;
    --ctv-muted: #9aa0ac;
    --ctv-accent: #ff3b47;
    --ctv-radius: 10px;
}

* { box-sizing: border-box; }

/* Dikey kaydırma çubuğunu her zaman göster: oynatıcı büyüyüp scrollbar
   kaybolunca viewport genişleyip oynatıcının tekrar büyümesi şeklindeki
   sonsuz titreme (flicker) döngüsünü engeller. */
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    background: var(--ctv-bg);
    color: var(--ctv-text);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ctv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.ctv-header {
    background: var(--ctv-bg-alt);
    border-bottom: 1px solid #22252f;
    position: sticky;
    top: 0;
    z-index: 50;
}
.ctv-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 16px;
}
.ctv-logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--ctv-accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.ctv-menu {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}
.ctv-menu a {
    color: var(--ctv-text);
    text-decoration: none;
    font-size: 14px;
}
.ctv-menu a:hover { color: var(--ctv-accent); }

.ctv-search {
    margin-left: auto;
    display: flex;
}
.ctv-search input[type="search"] {
    background: var(--ctv-card);
    border: 1px solid #2a2d38;
    color: var(--ctv-text);
    padding: 8px 12px;
    border-radius: 6px 0 0 6px;
    outline: none;
    width: 180px;
}
.ctv-search button {
    background: var(--ctv-accent);
    border: none;
    color: #fff;
    padding: 0 14px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.ctv-category-bar {
    background: var(--ctv-bg);
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #22252f;
}
.ctv-category-bar .ctv-container {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
}
.ctv-cat-link {
    display: inline-block;
    color: var(--ctv-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ctv-card);
    flex-shrink: 0;
}
.ctv-cat-link:hover { color: #fff; background: #262a35; }

/* Main */
.ctv-main { padding: 28px 0 60px; }
.ctv-page-title {
    font-size: 22px;
    margin: 0 0 18px;
}
.ctv-section-title {
    font-size: 18px;
    margin: 40px 0 16px;
    color: var(--ctv-muted);
}

/* Grid */
.ctv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.ctv-card {
    display: block;
    text-decoration: none;
    color: var(--ctv-text);
    background: var(--ctv-card);
    border-radius: var(--ctv-radius);
    overflow: hidden;
    transition: transform .15s ease;
}
.ctv-card:hover { transform: translateY(-3px); }
.ctv-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #22252f;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ctv-card-placeholder {
    font-size: 28px;
    font-weight: 700;
    color: var(--ctv-muted);
    text-transform: uppercase;
}
.ctv-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ctv-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.ctv-card-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player */
.ctv-player-wrap {
    background: #000;
    border-radius: var(--ctv-radius);
    overflow: hidden;
    margin: 0 auto 20px;
    width: 100%;
    /* Standart içerik sütunu genişliğiyle hizalı oynatıcı (~800px);
       ortalanır. */
    max-width: 800px;
}
.ctv-player-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ctv-muted);
}
/* Hem video hem iframe için ortak 16:9 responsive kutu.
   Yükseklik padding-top hilesiyle sabitlenir (aspect-ratio değil):
   her tarayıcıda kararlıdır ve içerik sonradan yüklense bile
   kutu boyutu değişmez. */
.ctv-video-container,
.ctv-iframe-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}
.ctv-video-container #ctv-video,
.ctv-iframe-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}
/* Tablet: oynatıcı biraz daralsın, kenarlardan taşmasın */
@media (max-width: 1024px) {
    .ctv-player-wrap { max-width: 720px; }
}
/* Küçük tablet / büyük telefon */
@media (max-width: 768px) {
    .ctv-player-wrap {
        max-width: 100%;
        border-radius: 10px;
    }
}
/* Mobil: tam genişlik, köşeleri düz, tam 16:9 */
@media (max-width: 480px) {
    .ctv-player-wrap {
        max-width: 100%;
        border-radius: 0;
        margin-bottom: 14px;
    }
}
.ctv-single-cats { margin-bottom: 16px; }
.ctv-single-desc { color: var(--ctv-muted); line-height: 1.6; }

.ctv-empty {
    color: var(--ctv-muted);
    padding: 40px 0;
}

.ctv-pagination { margin-top: 30px; }
.ctv-pagination a, .ctv-pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    background: var(--ctv-card);
    color: var(--ctv-text);
    text-decoration: none;
    border-radius: 6px;
}
.ctv-pagination .current { background: var(--ctv-accent); color: #fff; }

/* Footer */
.ctv-footer {
    border-top: 1px solid #22252f;
    padding: 20px 0;
    color: var(--ctv-muted);
    font-size: 13px;
}

@media (max-width: 700px) {
    .ctv-menu { display: none; }
    .ctv-search input[type="search"] { width: 120px; }
}

/* Reklam alanları */
.ctv-ad-slot {
    margin: 16px 0;
    text-align: center;
    overflow: hidden;
    min-height: 0;
}
.ctv-ad-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.ctv-ad-container:not(:empty) { pointer-events: auto; }

/* Paylaş butonları */
.ctv-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}
.ctv-share-label { color: var(--ctv-muted); font-size: 13px; margin-right: 4px; }
.ctv-share-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    background: var(--ctv-card);
    color: var(--ctv-text);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #2a2d38;
    cursor: pointer;
}
.ctv-share-btn:hover { background: #262a35; }
.ctv-share-wa:hover { color: #25D366; }
.ctv-share-x:hover { color: #fff; background: #000; }
.ctv-share-fb:hover { color: #1877F2; }
.ctv-share-tg:hover { color: #229ED9; }

/* Etiketler */
.ctv-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.ctv-tag-pill {
    background: var(--ctv-bg-alt);
    color: var(--ctv-muted);
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #22252f;
}
.ctv-tag-pill:hover { color: var(--ctv-text); }

/* Hata bildir kutusu */
.ctv-report-box {
    margin: 28px 0;
    border: 1px dashed #2a2d38;
    border-radius: var(--ctv-radius);
    padding: 14px;
}
.ctv-report-toggle {
    background: none;
    border: none;
    color: var(--ctv-accent);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}
.ctv-report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.ctv-report-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--ctv-muted);
}
.ctv-report-form select,
.ctv-report-form textarea {
    background: var(--ctv-bg);
    border: 1px solid #2a2d38;
    color: var(--ctv-text);
    padding: 8px 10px;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}
.ctv-report-submit {
    align-self: flex-start;
    background: var(--ctv-accent);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.ctv-report-status { font-size: 13px; color: var(--ctv-muted); margin: 0; }

/* Responsive iyileştirmeler */
@media (max-width: 480px) {
    .ctv-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .ctv-page-title { font-size: 18px; }
    .ctv-header-inner { gap: 12px; }
    .ctv-share-bar { gap: 6px; }
    .ctv-share-btn { padding: 6px 10px; font-size: 12px; }
}

/* ---- Blog ---- */
.ctv-blog-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ctv-blog-card {
    display: flex;
    gap: 16px;
    background: var(--ctv-card);
    border-radius: var(--ctv-radius);
    overflow: hidden;
}
.ctv-blog-thumb {
    flex: 0 0 220px;
    aspect-ratio: 16/10;
    background: #22252f;
    display: block;
}
.ctv-blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctv-blog-card-body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.ctv-blog-cat {
    display: inline-block;
    color: var(--ctv-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ctv-blog-card-title { margin: 0; font-size: 17px; }
.ctv-blog-card-title a { color: var(--ctv-text); text-decoration: none; }
.ctv-blog-card-title a:hover { color: var(--ctv-accent); }
.ctv-blog-card-excerpt { color: var(--ctv-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.ctv-blog-card-date { color: var(--ctv-muted); font-size: 12px; }

.ctv-single-post { max-width: 780px; margin: 0 auto; }
.ctv-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ctv-muted);
    font-size: 13px;
    margin-bottom: 16px;
}
.ctv-post-thumb {
    margin-bottom: 16px;
    border-radius: var(--ctv-radius);
    overflow: hidden;
}
.ctv-post-thumb img { width: 100%; height: auto; display: block; }

.ctv-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ctv-text);
}
.ctv-post-content p { margin: 0 0 20px; }
.ctv-post-content img,
.ctv-post-content iframe,
.ctv-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--ctv-radius);
}
.ctv-post-content iframe { width: 100%; }
.ctv-post-content h2, .ctv-post-content h3 { margin: 32px 0 14px; }
.ctv-post-content a { color: var(--ctv-accent); }
.ctv-post-content blockquote {
    border-left: 3px solid var(--ctv-accent);
    margin: 20px 0;
    padding: 4px 0 4px 16px;
    color: var(--ctv-muted);
    font-style: italic;
}

.ctv-content-ad {
    margin: 24px 0;
    text-align: center;
    overflow: hidden;
}

.ctv-comments { margin-top: 40px; }

@media (max-width: 640px) {
    .ctv-blog-card { flex-direction: column; }
    .ctv-blog-thumb { flex: none; width: 100%; }
    .ctv-blog-card-body { padding: 12px 14px 14px; }
}

/* ---- Adblock Uyarı Overlay ---- */
.ctv-adblock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 10, 0.94);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ctv-adblock-box {
    background: var(--ctv-card);
    border: 1px solid #2a2d38;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
}
.ctv-adblock-icon { font-size: 40px; margin-bottom: 12px; }
.ctv-adblock-box h2 { font-size: 20px; margin: 0 0 12px; color: var(--ctv-text); }
.ctv-adblock-box p { color: var(--ctv-muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.ctv-adblock-btn {
    background: var(--ctv-accent);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.ctv-adblock-btn:hover { filter: brightness(1.08); }

/* ---- Ana Sayfa: Bölümler ---- */
.ctv-section { margin-bottom: 40px; }
.ctv-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ctv-section-title-lg { margin: 0 0 14px; font-size: 19px; }
.ctv-section-head .ctv-section-title-lg { margin-bottom: 0; }
.ctv-section-more {
    color: var(--ctv-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.ctv-section-more:hover { text-decoration: underline; }
.ctv-section-foot { text-align: center; margin-top: 20px; }
.ctv-see-all-btn {
    display: inline-block;
    background: var(--ctv-card);
    color: var(--ctv-text);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #2a2d38;
}
.ctv-see-all-btn:hover { background: var(--ctv-accent); border-color: var(--ctv-accent); color: #fff; }

.ctv-featured-section {
    background: linear-gradient(180deg, rgba(255,59,71,0.08), transparent);
    border-radius: 16px;
    padding: 20px 16px 8px;
    margin-top: 4px;
}

/* ---- Logo Kartları (ana sayfa) ---- */
.ctv-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
}
.ctv-logo-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.ctv-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ctv-text);
    cursor: pointer;
}
.ctv-logo-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 96px;
    background: #f4f5f7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 2px solid transparent;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ctv-logo-card:hover .ctv-logo-tile {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--ctv-accent);
    box-shadow: 0 8px 20px rgba(255,59,71,0.25);
}
.ctv-logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ctv-logo-placeholder {
    font-size: 22px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
}
.ctv-live-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--ctv-bg);
    border-radius: 50%;
}
.ctv-logo-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

@media (max-width: 480px) {
    .ctv-logo-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
    .ctv-logo-tile { max-width: 72px; border-radius: 12px; padding: 10px; }
    .ctv-logo-name { max-width: 80px; font-size: 11px; }
    .ctv-section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
