/*
Theme Name:        AlphaFlix WP
Theme URI:         https://alphaflix.wp
Author:            AlphaFlix Dev
Author URI:        https://alphaflix.wp
Description:       Piyasanın en gelişmiş sadece-dizi odaklı WordPress teması. TMDB entegrasyonu, bot scraper, Telegram bildirimi, watchlist, gelişmiş admin paneli ve çok daha fazlası.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       alphaflix
Tags:              tv-series, dark, entertainment, custom-menu, custom-logo, post-thumbnails, full-width-template
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  (Accent rengi admin panelinden gelir)
   ============================================================ */
:root {
    --af-accent:        #ffd500;
    --af-accent-hover:  #e6bf00;
    --af-accent-rgb:    255, 213, 0;
    --af-bg:            #191d1e;
    --af-bg-2:          #212426;
    --af-bg-3:          #1b1d1f;
    --af-bg-card:       #212426;
    --af-border:        #2e3234;
    --af-text:          #c3d0d6;
    --af-text-muted:    #6c757d;
    --af-text-heading:  #ffffff;
    --af-green:         #00e676;
    --af-red:           #ff1744;
    --af-header-h:      58px;
    --af-radius:        4px;
    --af-shadow:        0 2px 12px rgba(0,0,0,.55);
    --af-font-1:        'gotham rounded', 'Helvetica Neue', Arial, sans-serif;
    --af-font-2:        'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: var(--af-font-1);
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--af-bg);
    color: var(--af-text);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin bar: body margin = admin-bar-height + header-height (override inline style) */
body.admin-bar { margin-top: calc(32px + var(--af-header-h)) !important; }
@media screen and (min-width: 601px) and (max-width: 782px) { body.admin-bar { margin-top: calc(46px + var(--af-header-h)) !important; } }
@media screen and (max-width: 600px) { body.admin-bar { margin-top: var(--af-header-h) !important; } }

body.admin-bar #site-header { top: 32px; }
@media screen and (min-width: 601px) and (max-width: 782px) { body.admin-bar #site-header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar #site-header { top: 0 !important; } }

a { color: var(--af-accent); text-decoration: none; }
a:hover { color: var(--af-accent-hover); outline: 0; }
a:active { outline: 0; }

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button { overflow: visible; }
article, aside, details, figcaption, figure, footer, header,
hgroup, main, menu, nav, section, summary { display: block; }

h1,h2,h3,h4,h5,h6 { margin-top: 0; color: var(--af-text-heading); font-family: var(--af-font-1); }
p,ol,ul,dl,pre { margin-top: 0; margin-bottom: 1rem; }
.clearfix::after, .row::after { content: ''; display: table; clear: both; }

/* ============================================================
   LAYOUT HELPERS  (eşdeğeri orijinal grid sistemi)
   ============================================================ */
.pull-left  { float: left !important; }
.pull-right { float: right !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-left  { text-align: left !important; }
.text-muted { color: var(--af-text-muted) !important; }
.text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase !important; }
.full-width { width: 100%; }
.list-unstyled { list-style: none; margin: 0; padding: 0; }
.link-unstyled { color: inherit !important; text-decoration: none !important; }
.display-5 { font-size: .85em; }
.bg-dark { background-color: var(--af-bg-3); }
.ff-2 { font-family: var(--af-font-2); }
.fw-bold { font-weight: 700; }
.fw-light { font-weight: 300; }

/* Spacing */
.m-b-0 { margin-bottom: 0 !important; }
.m-b-1 { margin-bottom: 1rem !important; }
.m-t-0 { margin-top: 0 !important; }
.m-t-1 { margin-top: 1rem !important; }
.m-t-2 { margin-top: 2rem !important; }
.m-r-1 { margin-right: 1rem !important; }
.m-r-2 { margin-right: 2rem !important; }
.p-x-2 { padding-left: 2rem !important; padding-right: 2rem !important; }
.p-l-0 { padding-left: 0 !important; }

/* Span Grid (orijinal 12-col sistemi) */
.span-three  { width: 25%; }
.span-six    { width: 50%; }
.span-nine   { width: 75%; }
.span-twelwe { width: 100%; }
.span-twelve { width: 100%; }

/* Accent colors */
.primary-color { color: var(--af-accent) !important; }
.filled-green  { color: var(--af-green) !important; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Episode section wrapper (single-bolum matches single-dizi) */
.dz-ep-section { width: 100%; }

/* Small button variant */
.dz-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.15);
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.dz-btn-sm:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
#main-wrapper {
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--af-header-h);
    background: var(--af-bg-2);
    border-bottom: 1px solid var(--af-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Logo */
#site-header .logo {
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
    margin-right: 8px;
}
#site-header .logo-type {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--af-accent);
    line-height: 1;
    font-family: var(--af-font-1);
}
#site-header .logo-desc {
    font-size: 9px;
    color: var(--af-text-muted);
    letter-spacing: 1px;
    text-transform: lowercase;
    line-height: 1;
    margin-top: 2px;
}

/* Search */
#site-header #searchform {
    display: flex;
    align-items: center;
    background: var(--af-bg-3);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    padding: 0 10px;
    height: 36px;
    position: relative;
    min-width: 220px;
}
#site-header #searchform .icon-search {
    color: var(--af-text-muted);
    font-size: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}
#site-header #searchform input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--af-text);
    font-size: 13px;
    font-family: var(--af-font-2);
    width: 100%;
    line-height: 1;
}
#site-header #searchform input::placeholder { color: var(--af-text-muted); }

/* Nav menu */
#top-menu { margin-left: 8px; }
#top-menu .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
#top-menu .menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: var(--af-radius);
    color: var(--af-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: background .2s, color .2s;
    text-decoration: none;
}
#top-menu .menu-link:hover,
#top-menu .menu-link.active {
    background: rgba(var(--af-accent-rgb), .12);
    color: var(--af-accent);
}
#top-menu .menu-link i { font-size: 14px; }

/* Sub-menu dropdown structure */
.menu-item.has-children { position: relative; }
.menu-item .menu-children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--af-bg-2);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    min-width: 160px;
    z-index: 1001;
    padding: 6px 0;
    box-shadow: var(--af-shadow);
}
.menu-item:hover .menu-children { display: block; }
.menu-item .menu-children .menu-item { display: block; }
.menu-item .menu-children .menu-link { padding: 7px 16px; border-radius: 0; }

/* User area */
#user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sign-up-link-button {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--af-text-muted) !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: var(--af-radius);
    transition: color .2s;
    text-decoration: none !important;
}
.sign-up-link-button:hover { color: var(--af-text) !important; }
.btn-login {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--af-radius);
    border: 1px solid var(--af-accent);
    color: var(--af-accent) !important;
    background: transparent;
    transition: background .2s, color .2s;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-login:hover { background: var(--af-accent); color: var(--af-bg) !important; }

/* User logged-in dropdown */
.user-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.user-avatar-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: opacity .2s;
}
.user-avatar-link:hover { opacity: .85; }
.user-avatar-link .user-avatar-img { border-color: var(--af-accent); }
.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--af-radius);
    border: 1px solid var(--af-border);
    background: var(--af-bg-3);
    color: var(--af-text);
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s;
}
.user-dropdown-trigger:hover { border-color: var(--af-accent); }
.user-avatar-img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--af-border);
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--af-bg-2);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    min-width: 180px;
    z-index: 1002;
    box-shadow: var(--af-shadow);
    padding: 6px 0;
}
.user-dropdown-wrap:hover .user-dropdown-menu { display: block; }
.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--af-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover { background: var(--af-bg-3); color: var(--af-accent); }
.user-dropdown-menu .menu-divider { border-top: 1px solid var(--af-border); margin: 4px 0; }
/* Notification bell */
.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--af-bg-3);
    border: 1px solid var(--af-border);
    color: var(--af-text);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.notif-btn:hover { border-color: var(--af-accent); color: var(--af-accent); }
.notif-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--af-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ============================================================
   AUTH MODAL — yeni sistem (body seviyesinde, z-index:10001)
   ============================================================ */
.af-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.af-modal-overlay.active { display: block; }

.af-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 10001;
    width: 92%;
    max-width: 420px;
    background: linear-gradient(160deg, #1e2326 0%, #161a1d 100%);
    border: 1px solid rgba(255,213,0,.18);
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
    opacity: 0;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
.af-modal.active {
    display: block;
    transform: translate(-50%, -50%);
    opacity: 1;
}
.af-modal-wide { max-width: 520px; }

.af-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(255,255,255,.07);
    border: none;
    color: var(--af-text-muted);
    font-size: 20px;
    line-height: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.af-modal-close:hover { background: rgba(255,213,0,.15); color: var(--af-accent); }

.af-modal-header { text-align: center; margin-bottom: 24px; }
.af-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(var(--af-accent-rgb),.12);
    border: 2px solid rgba(var(--af-accent-rgb),.3);
    color: var(--af-accent);
    font-size: 22px;
    margin-bottom: 14px;
}
.af-modal-header h4 {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;
    margin: 0 0 6px;
}
.af-modal-sub { font-size: 12px; color: var(--af-text-muted); margin: 0; }

.af-modal-field {
    position: relative;
    margin-bottom: 14px;
}
.af-modal-field > .icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--af-text-muted);
    font-size: 14px;
    pointer-events: none;
}
.af-modal-field .form-control { padding-left: 38px; }
.af-modal-field .form-control-l { height: 46px; font-size: 14px; }

.af-modal-submit {
    height: 48px;
    font-size: 14px;
    letter-spacing: .8px;
    margin-top: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(var(--af-accent-rgb),.25);
    transition: transform .15s, box-shadow .15s;
}
.af-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(var(--af-accent-rgb),.35); }

.af-modal-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--af-border);
}
.af-modal-footer-links button {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--af-font-1);
    padding: 0;
}

.af-modal-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.af-modal .status { display: none; }
.af-modal .status.alert-info { display: block; margin-bottom: 14px; }

/* Legacy modal compat */
.modal { display: none; }
#modal-overlay { display: none !important; }
.modal-close { display: none; }

@media (max-width: 480px) {
    .af-modal { padding: 28px 18px 22px; border-radius: 14px; }
    .af-modal-wide { max-width: 96vw; }
    .af-modal-2col { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: var(--af-bg-3);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    color: var(--af-text);
    font-size: 13px;
    font-family: var(--af-font-2);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.form-control:focus { border-color: var(--af-accent); }
.form-control::placeholder { color: var(--af-text-muted); }
.form-control-l { height: 42px; }
.control-group { margin-bottom: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--af-radius);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--af-font-1);
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--af-accent);
    border-color: var(--af-accent);
    color: #111;
}
.btn-primary:hover { background: var(--af-accent-hover); border-color: var(--af-accent-hover); color: #111; }
.btn-outline-primary {
    background: transparent;
    border-color: var(--af-accent);
    color: var(--af-accent);
}
.btn-outline-primary:hover { background: var(--af-accent); color: #111; }
.btn-default {
    background: var(--af-bg-3);
    border-color: var(--af-border);
    color: var(--af-text);
}
.btn-default:hover { border-color: var(--af-accent); color: var(--af-accent); }
.btn-s { padding: 4px 10px; font-size: 11px; }
.full-width { width: 100%; }

hr { border: 0; border-top: 1px solid var(--af-border); margin: 16px 0; }

/* Alert */
.alert { padding: 10px 14px; border-radius: var(--af-radius); font-size: 12px; margin-bottom: 12px; }
.alert-info { background: rgba(var(--af-accent-rgb),.1); border: 1px solid rgba(var(--af-accent-rgb),.3); color: var(--af-accent); }
.alert-success { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--af-green); }
.alert-danger { background: rgba(255,23,68,.1); border: 1px solid rgba(255,23,68,.3); color: var(--af-red); }
.blue-link { color: #42a5f5; }

/* ============================================================
   ALPHABETICAL CATEGORY BAR
   ============================================================ */
.alphabetical-category-wrapper {
    position: relative;
    z-index: 50;
    background: var(--af-bg-3);
    border-bottom: 1px solid var(--af-border);
}
#alphabetical-category {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
#alphabetical-category::-webkit-scrollbar { display: none; }
.alphabetical-category-index {
    display: flex;
    flex-wrap: nowrap;
    padding: 4px 0;
    white-space: nowrap;
}
.alphabetical-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--af-radius);
    color: var(--af-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.alphabetical-category-link:hover { background: rgba(var(--af-accent-rgb),.12); color: var(--af-accent); }
/* Alphabetical list (hidden by default, toggled by JS) */
.alphabetical-category-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--af-bg-2);
    border: 1px solid var(--af-border);
    border-top: none;
    z-index: 200;
    columns: 5 auto;
    column-gap: 0;
    padding: 10px 30px;
    max-height: 320px;
    overflow-y: auto;
}
.alphabetical-category-list.active { display: block; }
.alphabetical-category-list li { break-inside: avoid; }
.alphabetical-category-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: var(--af-text-muted);
    font-size: 12px;
    border-radius: 3px;
    transition: color .15s, background .15s;
    text-decoration: none;
}
.alphabetical-category-list li a:hover { color: var(--af-accent); background: rgba(var(--af-accent-rgb),.08); }

/* ============================================================
   SUB-MENU BAR
   ============================================================ */
#sub-menu {
    background: var(--af-bg-2);
    border-bottom: 2px solid var(--af-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
#sub-menu::-webkit-scrollbar { display: none; }
#sub-menu .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}
#sub-menu .menu-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--af-text-muted);
    font-size: 12px;
    font-family: var(--af-font-2);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    text-decoration: none;
}
#sub-menu .menu-link:hover,
#sub-menu .menu-link.active { color: var(--af-accent); border-bottom-color: var(--af-accent); }
#sub-menu .menu-link.primary-color { color: var(--af-accent); }

/* ============================================================
   HEADER BOTTOM AD BAR
   ============================================================ */
.box-header-bottom { background: var(--af-bg); padding: 10px 20px; }
.dbad {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.dbad a { display: inline-block; }
.dbad img { border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,.1); height: 65px; width: auto; vertical-align: top; }

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--af-border);
}
.title h2, .title h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--af-text-heading);
    margin: 0;
}
.title h3 { font-size: 12px; }
.title h3 a { color: var(--af-text-muted); font-weight: 600; }
.title h3 a:hover { color: var(--af-accent); }
.title-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(var(--af-accent-rgb), .15);
    color: var(--af-accent);
    font-size: 13px;
    flex-shrink: 0;
}

/* ============================================================
   HERO SECTION  (#af-hero)
   ============================================================ */
#af-hero {
    position: relative;
    background: #111 center / cover no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 24px;
}
.af-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.af-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
    z-index: 1;
}
.af-hero-content {
    position: relative;
    z-index: 2;
    padding: 56px 40px;
    max-width: 620px;
}
.af-hero-title {
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.af-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.72);
    margin: 0 0 28px;
    line-height: 1.65;
}
.af-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
}

/* ============================================================
   HOMEPAGE SECTION TITLE BAR  (.af-section-title)
   ============================================================ */
.af-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--af-border);
}
.af-section-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.af-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--af-accent-rgb), .15);
    color: var(--af-accent);
    font-size: 12px;
    flex-shrink: 0;
}
.af-section-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--af-text-heading);
    letter-spacing: .3px;
    text-transform: uppercase;
}
.af-section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--af-text-muted);
    text-decoration: none;
    transition: color .2s;
}
.af-section-link:hover { color: var(--af-accent); }

/* ============================================================
   INSTAGRAM STORY CIRCLES  (#af-upcoming-list)
   ============================================================ */
section#upcoming-series-section {
    padding: 8px 0 4px;
}
#af-upcoming-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#af-upcoming-list::-webkit-scrollbar { display: none; }
.af-upcoming-item {
    flex: 0 0 auto;
    width: 86px;
    scroll-snap-align: start;
}
.af-upcoming-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: inherit;
}
.af-upcoming-circle {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--af-accent) 0%, #ff6b6b 50%, #a855f7 100%);
    flex-shrink: 0;
    transition: transform .25s, box-shadow .25s;
}
.af-upcoming-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: var(--af-bg-2);
}
.af-upcoming-circle-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border-radius: 50%;
    background: var(--af-bg-3);
}
.af-upcoming-item a:hover .af-upcoming-circle {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(var(--af-accent-rgb), .4);
}
.af-upcoming-badge {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--af-accent);
    color: #111;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: .3px;
}
.af-upcoming-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--af-text);
    text-align: center;
    line-height: 1.3;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.af-upcoming-sub {
    font-size: 10px;
    color: var(--af-text-muted);
    text-align: center;
    margin-top: -4px;
}

/* ============================================================
   RECOMMENDED / UPCOMING SERIES  (Horizontal Scroll)
   ============================================================ */
section.recommended { margin-bottom: 28px; }
section.recommended .row { overflow: hidden; }
#recommended_series {
    list-style: none;
    margin: 0;
    padding: 8px 0 12px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--af-border) transparent;
    -webkit-overflow-scrolling: touch;
}
#recommended_series::-webkit-scrollbar { height: 4px; }
#recommended_series::-webkit-scrollbar-track { background: transparent; }
#recommended_series::-webkit-scrollbar-thumb { background: var(--af-border); border-radius: 2px; }
#recommended_series > li {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 120px;
    cursor: pointer;
}
#recommended_series > li a {
    display: block;
    text-decoration: none;
    color: inherit;
}
#recommended_series > li a > div {
    position: relative;
    border-radius: var(--af-radius);
    overflow: hidden;
    margin-bottom: 6px;
}
#recommended_series .recommended_simg,
#recommended_series img.afis {
    width: 120px;
    height: 174px;
    object-fit: cover;
    display: block;
    border-radius: var(--af-radius);
    transition: opacity .3s;
}
#recommended_series > li:hover img { opacity: .85; }
#recommended_series .available {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--af-green);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 3px 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}
#recommended_series .baslik {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--af-text);
    text-transform: uppercase;
    letter-spacing: .3px;
    max-width: 120px;
}
#recommended_series small {
    font-size: 10px;
    color: var(--af-text-muted);
}
/* Trailer box */
#trailer-box {
    margin-top: 16px;
    background: var(--af-bg-3);
    border-radius: 8px;
    padding: 12px;
}
#trailer-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--af-text-heading);
    margin-bottom: 10px;
    padding: 6px 10px 0;
}
.embed-responsive { position: relative; width: 100%; }
.embed-responsive-16by9::before { content: ''; display: block; padding-top: 56.25%; }
.embed-responsive-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.embed-responsive-item iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* ============================================================
   SERIES POSTER CARDS  (.article-series-poster.grid-six)
   ============================================================ */
.row { width: 100%; overflow: hidden; }
.grid-six {
    float: left;
    width: calc(100% / 6 - 6px);
    margin-right: 6px;
    margin-bottom: 14px;
}
.grid-six:nth-child(6n) { margin-right: 0; }
.article-series-poster figure.figure-link {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--af-radius);
    overflow: hidden;
    background: var(--af-bg-card);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.article-series-poster figure.figure-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.article-series-poster figure.figure-link img {
    width: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
    max-height: 180px;
}
.thumbnail-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to bottom, transparent 5%, rgba(0,0,0,1.75) 75%);
    pointer-events: none;
}
.thumbnail-gradient.green { background: linear-gradient(to bottom, transparent 0%, rgba(0,180,80,.5) 100%); }
.thumbnail-figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 6px 8px;
    z-index: 2;
}
.poster-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 3px;
}
.poster-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
}
.poster-meta .imdb { color: var(--af-accent); font-weight: 700; }
.poster-meta .imdb i { font-size: 10px; }
.poster-meta .release { color: var(--af-text-muted); }

/* ============================================================
   EPISODE CARDS  (.article-episode-card.grid-five)
   ============================================================ */
.grid-five {
    float: left;
    width: calc(100% / 5 - 6px);
    margin-right: 6px;
    margin-bottom: 14px;
}
.grid-five:nth-child(5n) { margin-right: 0; }
.article-episode-card figure.figure-link {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--af-radius);
    overflow: hidden;
    background: var(--af-bg-card);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.article-episode-card figure.figure-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.article-episode-card figure.figure-link img {
    width: 100%;
    display: block;
    aspect-ratio: 220/140;
    object-fit: cover;
}
.article-episode-card .thumbnail-figcaption {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 7px 7px 3px;
    background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.episode-card-title {
    display: block;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.3;
}
.series-name {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.episode-card-title .season { font-size: 10px; color: var(--af-text-muted); }
.episode-card-title .episode { font-size: 10px; color: var(--af-accent); font-weight: 700; }
.poster-meta.span-three { text-align: right; }
.language-flag { width: 20px; height: auto; border-radius: 2px; }
.publish-date { font-size: 9px; color: var(--af-text-muted); margin-top: 2px; }

/* ============================================================
   SERIES SMALL GRID  (#recommended-series .article-series-small-grid)
   ============================================================ */
#recommended-series {
    width: 100%;
    margin-bottom: 28px;
}
.article-series-small-grid {
    position: relative;
    float: left;
    width: 290px;
    height: 81px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: var(--af-radius);
    overflow: hidden;
    background: var(--af-bg-card);
    transition: transform .2s;
    cursor: pointer;
}
.article-series-small-grid:hover { transform: translateY(-2px); box-shadow: var(--af-shadow); }
.article-series-small-grid .box-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .25;
    transition: opacity .3s;
}
.article-series-small-grid:hover .box-image { opacity: .4; }
.article-series-small-grid .figure {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    float: left;
    width: 60px;
    height: 81px;
    padding: 0 8px;
    text-decoration: none;
}
.article-series-small-grid .figure .imdb {
    position: absolute;
    top: 4px; left: 4px;
    background: var(--af-accent);
    color: #111;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.4;
}
.small-thumbnail {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(var(--af-accent-rgb),.4);
}
.article-series-small-grid .series-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 81px;
    padding: 6px 10px;
    overflow: hidden;
    text-decoration: none;
}
.article-series-small-grid .tv-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    max-width: 210px;
}
.article-series-small-grid .turler {
    font-size: 10px;
    color: var(--af-text-muted);
    margin-top: 3px;
    max-width: 210px;
}

/* Row scrollable for small-grid sections */
#recommended-series .full-width { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--af-border) transparent; }
#recommended-series .full-width::-webkit-scrollbar { height: 4px; }
#recommended-series .full-width::-webkit-scrollbar-thumb { background: var(--af-border); border-radius: 2px; }
#recommended-series .row { display: flex; flex-wrap: wrap; }

/* ============================================================
   SMALL EPISODE LIST  (.article-episode-small-grid)  col-2 sidebar
   ============================================================ */
.article-episode-small-grid {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--af-border);
    gap: 10px;
}
.article-episode-small-grid:last-child { border-bottom: none; }
.square-thumbnail {
    flex-shrink: 0;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: var(--af-radius);
    overflow: hidden;
}
.square-thumbnail-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.article-episode-small-grid .tv-title {
    flex: 1;
    overflow: hidden;
    text-decoration: none;
}
.article-episode-small-grid .archive {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--af-text-heading);
    letter-spacing: .3px;
}
.article-episode-small-grid .season { font-size: 11px; color: var(--af-text-muted); }
.article-episode-small-grid .episode { font-size: 11px; color: var(--af-accent); font-weight: 700; }
/* Translation status bar */
.translation-status { flex-shrink: 0; width: 50px; }
.translation-status-text {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    padding: 1px 0;
    border-radius: 2px 2px 0 0;
}
.translation-percentage {
    height: 3px;
    background: var(--af-border);
    border-radius: 0 0 2px 2px;
    overflow: hidden;
}
.translation-percentage-bar {
    height: 100%;
    background: var(--af-green);
    border-radius: inherit;
}

/* ============================================================
   BEST SERIES / CATEGORY POSTS GRIDS  (grid-four, grid-three)
   ============================================================ */
.grid-four {
    float: left;
    width: calc(100% / 4 - 6px);
    margin-right: 6px;
    margin-bottom: 14px;
}
.grid-four:nth-child(4n) { margin-right: 0; }
.grid-three {
    float: left;
    width: calc(100% / 3 - 8px);
    margin-right: 8px;
    margin-bottom: 14px;
}
.grid-three:nth-child(3n) { margin-right: 0; }
.grid-two {
    float: left;
    width: calc(50% - 6px);
    margin-right: 6px;
    margin-bottom: 14px;
}
.grid-two:nth-child(even) { margin-right: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--af-bg-2);
    border-top: 1px solid var(--af-border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
#site-footer .logo { text-decoration: none; }
#site-footer .logo-type { font-size: 18px; font-weight: 900; color: var(--af-accent); letter-spacing: -.3px; }
#site-footer .logo-desc { font-size: 9px; color: var(--af-text-muted); text-transform: lowercase; letter-spacing: 1px; }
.site-copyright { font-size: 11px; color: var(--af-text-muted); text-align: right; }
.site-copyright a { color: var(--af-text-muted); text-decoration: none; }
.site-copyright a:hover { color: var(--af-accent); }
.af-footer-genre-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 3px 2px 0;
    border: 1px solid var(--af-border);
    border-radius: 3px;
    color: var(--af-text-muted);
    font-size: 10px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.af-footer-genre-tag:hover { border-color: var(--af-accent); color: var(--af-accent); }

/* ============================================================
   LIVE SEARCH RESULTS  (Dave's WP Live Search)
   ============================================================ */
ul.dwls_search_results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--af-bg-2);
    border: 1px solid var(--af-border);
    border-top: none;
    border-radius: 0 0 var(--af-radius) var(--af-radius);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,.4);
    max-height: 360px;
    overflow-y: auto;
}
ul.dwls_search_results li {
    color: var(--af-text);
    background: var(--af-bg-2);
    border-bottom: 1px solid var(--af-border);
    font-size: 12px;
}
ul.dwls_search_results li:hover { background: var(--af-bg-3); }
ul.dwls_search_results li a { color: #fff !important; display: block; padding: 8px 12px; }
.search_footer { background: var(--af-bg-2); padding: 8px 12px; border-top: 1px solid var(--af-border); }
.search_footer a { color: var(--af-text-muted); font-size: 11px; }
.post_thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 3px; float: left; margin-right: 8px; }

/* ============================================================
   GROWL NOTIFICATIONS
   ============================================================ */
.growl { border-radius: var(--af-radius) !important; background: var(--af-bg-2) !important; border: 1px solid var(--af-border) !important; color: var(--af-text) !important; }
.growl-default { border-left: 4px solid var(--af-accent) !important; }
.growl-notice  { border-left: 4px solid var(--af-green) !important; }
.growl-warning { border-left: 4px solid var(--af-red) !important; }

/* ============================================================
   SCROLLBAR (perfect-scrollbar override)
   ============================================================ */
.ps__thumb-x,
.ps__thumb-y {
    background-color: var(--af-border) !important;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1400px) {
    .grid-five { width: calc(100% / 5 - 5px); }
    .article-series-small-grid { width: 240px; }
}
@media (max-width: 1200px) {
    .content-wrapper { padding: 14px; }
    .grid-six { width: calc(100% / 5 - 5px); }
    .grid-six:nth-child(6n) { margin-right: 5px; }
    .grid-six:nth-child(5n) { margin-right: 0; }
    .article-series-small-grid { width: 220px; }
}
@media (max-width: 992px) {
    #site-header #searchform { min-width: 160px; }
    .grid-five { width: calc(100% / 4 - 5px); }
    .grid-five:nth-child(5n) { margin-right: 5px; }
    .grid-five:nth-child(4n) { margin-right: 0; }
    .grid-six { width: calc(100% / 4 - 5px); }
    .grid-six:nth-child(5n) { margin-right: 5px; }
    .grid-six:nth-child(4n) { margin-right: 0; }
    .alphabetical-category-list { columns: 3 auto; }
}
@media (max-width: 768px) {
    #site-header { padding: 0 12px; gap: 8px; }
    #site-header #searchform { min-width: 120px; }
    #top-menu { display: none; }
    .grid-five { width: calc(100% / 3 - 5px); }
    .grid-five:nth-child(4n) { margin-right: 5px; }
    .grid-five:nth-child(3n) { margin-right: 0; }
    .grid-six { width: calc(100% / 3 - 5px); }
    .grid-six:nth-child(4n) { margin-right: 5px; }
    .grid-six:nth-child(3n) { margin-right: 0; }
    .article-series-small-grid { width: 100%; }
    .alphabetical-category-list { columns: 2 auto; }
}
@media (max-width: 576px) {
    .grid-five { width: calc(50% - 4px); }
    .grid-five:nth-child(3n) { margin-right: 4px; }
    .grid-five:nth-child(2n) { margin-right: 0; }
    .grid-six { width: calc(50% - 4px); }
    .grid-six:nth-child(3n) { margin-right: 4px; }
    .grid-six:nth-child(2n) { margin-right: 0; }
    .content-wrapper { padding: 10px; }
    .modal { min-width: unset; width: 95vw; padding: 20px 16px; }
    .alphabetical-category-list { columns: 1 auto; }
    #site-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   WATCHLIST BUTTONS (FAZ 3 için yer tutucu)
   ============================================================ */
.af-watchlist-btn,
.af-watched-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--af-radius);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--af-border);
    background: transparent;
    color: var(--af-text-muted);
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-family: var(--af-font-1);
}
.af-watchlist-btn:hover,
.af-watchlist-btn.active { border-color: var(--af-accent); color: var(--af-accent); background: rgba(var(--af-accent-rgb),.1); }
.af-watched-btn:hover,
.af-watched-btn.active { border-color: var(--af-green); color: var(--af-green); background: rgba(0,230,118,.1); }

/* ============================================================
   MOBILE RESPONSIVE — Kapsamlı Düzeltmeler
   ============================================================ */

/* Header — mobil hamburger görünümü */
@media (max-width: 768px) {
    :root { --af-header-h: 48px; }
    #site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        padding: 0 12px;
        height: 48px;
        gap: 10px;
    }
    #site-header .logo img { max-height: 28px; }
    #site-header .logo-type { font-size: 17px; }
    #site-header .logo-desc { display: none; }
    #site-header #searchform { min-width: 100px; border-radius: 6px; }
    #site-header #searchform input[type="text"] { font-size: 12px; padding: 0 8px; }
    #site-header .user-dropdown-button { padding: 4px 8px; font-size: 11px; }
    .mobile-menu-toggle { display: flex; }
    .sub-menu-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding: 6px 10px; }
    .sub-menu-bar li { display: inline-block; }
    .alphabetical-category-list { columns: 2 auto; }
}

/* Mobil menü overlay */
@media (max-width: 900px) {
    #top-menu {
        display: none;
        position: fixed;
        top: 54px; left: 0; right: 0; bottom: 0;
        background: rgba(14,16,18,.97);
        z-index: 9998;
        overflow-y: auto;
        padding: 20px;
        flex-direction: column;
    }
    #top-menu.menu-open { display: flex; }
    #top-menu ul { flex-direction: column; gap: 0; }
    #top-menu ul li a { display: block; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--af-border); }
}

/* Dizi detay sayfası — mobil */
@media (max-width: 768px) {
    .single-dizi-wrapper,
    .single-bolum-wrapper { padding: 0 12px; }
    .dizi-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 16px;
    }
    .dizi-poster-col { width: 140px; flex-shrink: 0; }
    .dizi-info-col { width: 100%; }
    .dizi-meta-row { justify-content: center; flex-wrap: wrap; }
    .dizi-action-btns { justify-content: center; }
    .season-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .season-tab { display: inline-block; }
    .grid-four { width: calc(50% - 5px); }
    .grid-four:nth-child(3n) { margin-right: 5px; }
    .grid-four:nth-child(2n) { margin-right: 0; }
}

/* Bölüm player sayfası — mobil */
@media (max-width: 768px) {
    .bolum-player-wrapper { padding: 0; }
    .bolum-embed iframe { border-radius: 0; min-height: 220px; }
    .bolum-nav-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px; }
    .bolum-nav-btns { flex-wrap: wrap; gap: 6px; }
    .bolum-info-row { flex-direction: column; gap: 10px; padding: 12px 14px; }
    .bolum-action-btns { flex-wrap: wrap; }
}

/* Arama & Arşiv sayfaları — mobil */
@media (max-width: 768px) {
    .archive-filters { position: static; width: 100%; }
    .archive-filter-toggle { display: block; }
    .archive-sidebar { display: none; }
    .archive-sidebar.open { display: block; }
    .archive-content { width: 100%; }
    .archive-grid-wrapper { gap: 6px; }
    .search-filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

/* Genel grid — küçük ekranlar */
@media (max-width: 480px) {
    .grid-four {
        width: calc(50% - 4px);
    }
    .grid-four:nth-child(3n) { margin-right: 4px; }
    .grid-four:nth-child(2n) { margin-right: 0; }
    .grid-three { width: 100%; }
    .container { padding: 0 10px; }
    .content-wrapper { padding: 10px 0; }
    .section-title-row { padding: 0 10px; }
}

/* Yorumlar — mobil */
@media (max-width: 576px) {
    #comments { padding: 16px 12px; }
    .comment-form textarea { min-height: 100px; }
    .comment-meta { flex-direction: column; gap: 4px; }
}

/* Modals — mobil */
@media (max-width: 576px) {
    .modal { width: 96vw !important; min-width: unset !important; padding: 20px 14px !important; margin: 0 2vw; }
    .modal-login, .modal-register { top: 10px; }
}

/* Footer — mobil */
@media (max-width: 768px) {
    .site-footer-inner { flex-direction: column; gap: 24px; }
    .footer-logo-area, .footer-nav-area, .footer-social-area { width: 100%; text-align: center; }
    .footer-social-links { justify-content: center; }
    .footer-nav ul { flex-wrap: wrap; justify-content: center; }
}

/* Grid genişlik override — tüm küçük ekranlar */
@media (max-width: 576px) {
    .grid-six  { width: calc(50% - 4px) !important; }
    .grid-six:nth-child(3n)  { margin-right: 4px !important; }
    .grid-six:nth-child(2n)  { margin-right: 0 !important; }
    .grid-five { width: calc(50% - 4px) !important; }
    .grid-five:nth-child(3n) { margin-right: 4px !important; }
    .grid-five:nth-child(2n) { margin-right: 0 !important; }
}

/* Touch targets */
@media (max-width: 768px) {
    .btn, button { min-height: 42px; }
    .af-watchlist-btn, .af-watched-btn { padding: 8px 14px; font-size: 12px; }
    .pagination a, .pagination span { min-width: 36px; min-height: 36px; font-size: 13px; }
}

/* Scroll hint for horizontal containers */
.scroll-hint { position: relative; }
.scroll-hint::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--af-bg));
    pointer-events: none;
}

/* Profile page mobile */
@media (max-width: 768px) {
    .af-profile-grid { grid-template-columns: 1fr; }
    .af-profile-aside { display: contents; }
    .af-profile-card  { order: -1; }
    .af-profile-nav   { display: flex; overflow-x: auto; border-radius: var(--af-radius); }
    .af-pnav-item     { flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--af-border); }
}

/* ============================================================
   PLAY BUTTON OVERLAY — dizi & bölüm kartları
   ============================================================ */
.af-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background .22s ease;
    z-index: 3;
}
.af-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(var(--af-accent-rgb), .92);
    color: #111;
    font-size: 18px;
    box-shadow: 0 0 0 0 rgba(var(--af-accent-rgb),.5);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .22s, transform .22s, box-shadow .22s;
}
figure.figure-link:hover .af-play-overlay { background: rgba(0,0,0,.38); }
figure.figure-link:hover .af-play-btn,
.article-series-poster:hover .af-play-btn {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(var(--af-accent-rgb),.2);
    animation: afPulse 1.8s infinite;
}
@keyframes afPulse {
    0%   { box-shadow: 0 0 0 0   rgba(var(--af-accent-rgb),.45); }
    70%  { box-shadow: 0 0 0 14px rgba(var(--af-accent-rgb),0);  }
    100% { box-shadow: 0 0 0 0   rgba(var(--af-accent-rgb),0);   }
}

/* Episode card play btn — smaller */
.article-episode-card .af-play-btn { width: 36px; height: 36px; font-size: 14px; }

/* ============================================================
   SECTION HEADERS — dizibox tarzı
   ============================================================ */
.af-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--af-border);
}
.af-section-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.af-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: rgba(var(--af-accent-rgb),.15);
    border-radius: 8px;
    color: var(--af-accent);
    font-size: 16px;
}
.af-section-text {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}
.af-section-text::after {
    content: '';
    display: block;
    width: 40px; height: 3px;
    background: var(--af-accent);
    border-radius: 2px;
    margin-top: 3px;
}
.af-section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--af-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: color .15s;
}
.af-section-link:hover { color: var(--af-accent); }

/* ============================================================
   CIRCULAR UPCOMING SERIES — dizibox tarzı
   ============================================================ */
#af-upcoming-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 4px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--af-border) transparent;
    -webkit-overflow-scrolling: touch;
}
#af-upcoming-list::-webkit-scrollbar { height: 4px; }
#af-upcoming-list::-webkit-scrollbar-thumb { background: var(--af-border); border-radius: 2px; }

.af-upcoming-item {
    flex-shrink: 0;
    text-align: center;
    width: 100px;
    cursor: pointer;
}
.af-upcoming-item a { text-decoration: none; color: inherit; display: block; }
.af-upcoming-circle {
    position: relative;
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid var(--af-border);
    overflow: hidden;
    transition: border-color .22s, transform .22s;
    background: var(--af-bg-card);
}
.af-upcoming-item:hover .af-upcoming-circle {
    border-color: var(--af-accent);
    transform: scale(1.07);
    box-shadow: 0 0 0 4px rgba(var(--af-accent-rgb),.2);
}
.af-upcoming-circle img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}
.af-upcoming-item:hover .af-upcoming-circle img { opacity: .85; }
.af-upcoming-circle .af-upcoming-badge {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--af-green);
    color: #111;
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
    text-transform: uppercase;
}
.af-upcoming-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--af-text);
    text-transform: uppercase;
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}
.af-upcoming-sub { font-size: 10px; color: var(--af-text-muted); margin-top: 2px; }

/* Placeholder circle when no image */
.af-upcoming-circle-ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 28px; color: #444;
}

/* ============================================================
   POSTER CARD IMPROVEMENTS
   ============================================================ */
.article-series-poster figure.figure-link {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.article-series-poster figure.figure-link:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 12px 32px rgba(0,0,0,.6);
}
/* Broken image fallback */
.article-series-poster figure.figure-link img,
.af-upcoming-circle img {
    background: var(--af-bg-card);
}
.article-series-poster figure.figure-link img::before {
    content: '';
    display: block;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e2326 0%, #252b2f 100%);
}

/* ============================================================
   EPISODE CARD IMPROVEMENTS
   ============================================================ */
.article-episode-card figure.figure-link {
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.article-episode-card figure.figure-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,.55);
}
/* Episode card — empty thumbnail fallback */
.article-episode-card figure.figure-link img[src=""],
.article-episode-card figure.figure-link img:not([src]) {
    background: linear-gradient(135deg, #1e2326 0%, #252b2f 100%);
}

/* ============================================================
   RATING BADGE (poster üstünde IMDb puanı)
   ============================================================ */
.af-rating-badge {
    position: absolute;
    top: 7px; left: 7px;
    background: rgba(0,0,0,.75);
    border: 1px solid rgba(var(--af-accent-rgb),.5);
    color: var(--af-accent);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 4;
    backdrop-filter: blur(4px);
}
.af-rating-badge .icon { font-size: 9px; }

/* NEW badge */
.af-new-badge {
    position: absolute;
    top: 7px; right: 7px;
    background: var(--af-red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 4;
}

/* ============================================================
   GRID-BOX CARD — profile + 404 + archive
   ============================================================ */
.grid-box {
    float: left;
}
.grid-box .box-image {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-color: var(--af-bg-card);
    border-radius: var(--af-radius);
    overflow: hidden;
    aspect-ratio: 2/3;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    cursor: pointer;
}
.grid-box:hover .box-image {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 12px 32px rgba(0,0,0,.6);
}
.grid-box .box-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .22s;
}
.grid-box:hover .box-image::after { background: rgba(0,0,0,.3); }
/* Play icon on grid-box */
.grid-box .box-image .af-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(.7);
    z-index: 5;
    opacity: 0;
    transition: opacity .22s, transform .22s;
}
.grid-box:hover .box-image .af-play-btn {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}
/* af-play-overlay inside .box-image */
.grid-box:hover .box-image .af-play-overlay { background: rgba(0,0,0,.38); }
.grid-box:hover .box-image .af-play-overlay .af-play-btn {
    opacity: 1;
    transform: scale(1);
    position: static;
}

/* Rating badge inside grid-box */
.grid-box .rating-box {
    position: absolute;
    top: 7px; right: 7px;
    background: rgba(0,0,0,.75);
    color: var(--af-accent);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 4;
}

.grid-box .post-title {
    padding: 6px 2px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--af-text);
    text-transform: uppercase;
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grid-box .post-title a { color: inherit; text-decoration: none; }
.grid-box .post-title a:hover { color: var(--af-accent); }

/* grid-four, grid-six for grid-box */
.grid-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-wrapper.grid-six  .grid-box { width: calc(100% / 6 - 7px); }
.grid-wrapper.grid-five .grid-box { width: calc(100% / 5 - 7px); }
.grid-wrapper.grid-four .grid-box { width: calc(100% / 4 - 7px); }
.grid-wrapper.grid-three.grid-box { width: calc(100% / 3 - 6px); }
@media (max-width:1100px) { .grid-wrapper.grid-six .grid-box  { width: calc(100%/5 - 7px); } }
@media (max-width:900px)  { .grid-wrapper.grid-six .grid-box, .grid-wrapper.grid-five .grid-box { width: calc(100%/4 - 7px); } }
@media (max-width:700px)  { .grid-wrapper.grid-six .grid-box, .grid-wrapper.grid-five .grid-box, .grid-wrapper.grid-four .grid-box { width: calc(50% - 5px); } }
@media (max-width:480px)  { .grid-wrapper .grid-box { width: calc(50% - 4px); } }

/* ============================================================
   SINGLE DİZİ — play button on poster
   ============================================================ */
.dizi-poster-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background .22s;
    border-radius: var(--af-radius);
    z-index: 2;
}
.dizi-poster-wrap:hover .dizi-poster-play { background: rgba(0,0,0,.45); }
.dizi-poster-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(var(--af-accent-rgb),.9);
    color: #111;
    font-size: 26px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .25s, transform .25s;
    animation: afPulse 2s infinite;
}
.dizi-poster-wrap:hover .dizi-poster-play-btn { opacity: 1; transform: scale(1); }

/* ============================================================
   SINGLE BÖLÜM — player improvements
   ============================================================ */
.bolum-player-opts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.bolum-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--af-bg-3);
    border: 1px solid var(--af-border);
    border-radius: 6px;
    color: var(--af-text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.bolum-opt-btn:hover,
.bolum-opt-btn.active { border-color: var(--af-accent); color: var(--af-accent); background: rgba(var(--af-accent-rgb),.08); }
.bolum-opt-btn .icon { font-size: 14px; }

/* ============================================================
   HEADER — sign-up-link-button reset (now a <button>)
   ============================================================ */
.sign-up-link-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--af-font-1);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 4px 8px;
    transition: color .15s;
}
.sign-up-link-button:hover { color: var(--af-accent) !important; }

/* ============================================================
   FONT AWESOME 6 — Fontello'da eksik ikon alias'ları
   ============================================================ */
.icon-play:before          { font-family: "Font Awesome 6 Free"; content: "\f04b"; font-weight: 900; }
.icon-play-circled2:before { font-family: "Font Awesome 6 Free"; content: "\f144"; font-weight: 900; }
.icon-play-circle:before   { font-family: "Font Awesome 6 Free"; content: "\f144"; font-weight: 900; }
.icon-left-dir:before      { font-family: "Font Awesome 6 Free"; content: "\f053"; font-weight: 900; }
.icon-left-open:before     { font-family: "Font Awesome 6 Free"; content: "\f053"; font-weight: 900; }
.icon-right-open:before    { font-family: "Font Awesome 6 Free"; content: "\f054"; font-weight: 900; }
.icon-right-dir:before     { font-family: "Font Awesome 6 Free"; content: "\f054"; font-weight: 900; }
.icon-up-dir:before        { font-family: "Font Awesome 6 Free"; content: "\f077"; font-weight: 900; }
.icon-down-open:before     { font-family: "Font Awesome 6 Free"; content: "\f078"; font-weight: 900; }
.icon-attention:before     { font-family: "Font Awesome 6 Free"; content: "\f071"; font-weight: 900; }
.icon-check-empty:before   { font-family: "Font Awesome 6 Free"; content: "\f0c8"; font-weight: 400; }
.icon-list:before          { font-family: "Font Awesome 6 Free"; content: "\f03a"; font-weight: 900; }
.icon-link:before          { font-family: "Font Awesome 6 Free"; content: "\f0c1"; font-weight: 900; }
.icon-reply:before         { font-family: "Font Awesome 6 Free"; content: "\f3e5"; font-weight: 900; }
.icon-image:before         { font-family: "Font Awesome 6 Free"; content: "\f03e"; font-weight: 900; }
.icon-upload:before        { font-family: "Font Awesome 6 Free"; content: "\f093"; font-weight: 900; }
.icon-download:before      { font-family: "Font Awesome 6 Free"; content: "\f019"; font-weight: 900; }
.icon-trash:before         { font-family: "Font Awesome 6 Free"; content: "\f1f8"; font-weight: 900; }
.icon-edit:before          { font-family: "Font Awesome 6 Free"; content: "\f044"; font-weight: 900; }
.icon-close:before,
.icon-cancel:before        { font-family: "Font Awesome 6 Free"; content: "\f00d"; font-weight: 900; }
.icon-minus:before         { font-family: "Font Awesome 6 Free"; content: "\f068"; font-weight: 900; }
.icon-info:before          { font-family: "Font Awesome 6 Free"; content: "\f129"; font-weight: 900; }
.icon-flag:before          { font-family: "Font Awesome 6 Free"; content: "\f024"; font-weight: 900; }
.icon-home:before          { font-family: "Font Awesome 6 Free"; content: "\f015"; font-weight: 900; }
.icon-film:before          { font-family: "Font Awesome 6 Free"; content: "\f008"; font-weight: 900; }
.icon-tv:before            { font-family: "Font Awesome 6 Free"; content: "\f26c"; font-weight: 900; }
.icon-fire:before          { font-family: "Font Awesome 6 Free"; content: "\f06d"; font-weight: 900; }
.icon-bolt:before          { font-family: "Font Awesome 6 Free"; content: "\f0e7"; font-weight: 900; }
.icon-trophy:before        { font-family: "Font Awesome 6 Free"; content: "\f091"; font-weight: 900; }
.icon-check:before         { font-family: "Font Awesome 6 Free"; content: "\f00c"; font-weight: 900; }
.icon-times:before         { font-family: "Font Awesome 6 Free"; content: "\f00d"; font-weight: 900; }
.icon-bars:before          { font-family: "Font Awesome 6 Free"; content: "\f0c9"; font-weight: 900; }

/* ============================================================
   AF-MODAL-WIDE — trailer / video modals
   ============================================================ */
.af-modal-wide {
    width: min(860px, 95vw);
    max-width: 95vw;
    padding: 10px;
    background: #000;
}
.af-modal-wide .af-modal-close {
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,.1);
    color: #fff;
}
.af-modal-wide .af-modal-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   AF-SECTION-TITLE — h1 inside (archive page)
   ============================================================ */
.af-section-title h1.af-section-text { font-size: 18px; margin: 0; }

/* ============================================================
   MOBILE — quick fixes
   ============================================================ */
@media (max-width: 768px) {
    .bolum-player-opts { gap: 6px; }
    .bolum-opt-btn { padding: 6px 10px; font-size: 11px; }
}

@media (max-width: 576px) {
    #af-upcoming-list { gap: 12px; padding: 8px 2px 12px; }
    .af-upcoming-item { width: 80px; }
    .af-upcoming-circle { width: 68px; height: 68px; }
    .af-upcoming-title { font-size: 10px; max-width: 80px; }
    .af-section-text { font-size: 13px; }
    .af-modal-icon { width: 46px; height: 46px; font-size: 18px; }
    .af-modal-header h4 { font-size: 16px; }
    .af-modal-wide { padding: 6px; }
    .dizi-poster-wrap { width: 100% !important; }
    .dizi-poster-wrap img { width: 100%; height: auto; }
    .bolum-player-opts { padding: 8px 0; }
}

/* ============================================================
   HERO / BANNER — index.php
   ============================================================ */
.af-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0e1113;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 8px;
}
.af-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.af-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.45) 60%,
        rgba(0,0,0,.15) 100%
    );
    z-index: 1;
}
.af-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 680px;
}
.af-hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.af-hero-subtitle {
    font-size: clamp(13px, 2vw, 18px);
    color: rgba(255,255,255,.78);
    margin: 0 0 28px;
    line-height: 1.6;
}
.af-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: transform .15s, box-shadow .15s;
}
.af-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--af-accent-rgb),.45);
}
@media (max-width: 768px) {
    .af-hero { min-height: 280px; }
    .af-hero-content { padding: 40px 16px; }
}

/* ============================================================
   DZ-PAGE — Single Dizi Redesign (dizipal.im style)
   ============================================================ */

/* --- Hero --- */
.dz-hero {
    position: relative;
    min-height: 360px;
    background: #0d1117 center top / cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.dz-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,17,23,.35) 0%, rgba(13,17,23,.92) 75%, #0d1117 100%);
    z-index: 1;
}
.dz-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    align-items: flex-end;
    padding: 40px 24px 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.dz-poster-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dz-poster-img {
    width: 160px;
    height: 234px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.7);
    display: block;
}
.dz-poster-placeholder {
    width: 160px;
    height: 234px;
    background: #1c2128;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #3d444d;
}
.dz-trailer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.dz-trailer-pill:hover { background: rgba(255,255,255,.2); }

/* Info column */
.dz-info-col { flex: 1; min-width: 0; }
.dz-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}
.dz-year { color: rgba(255,255,255,.5); font-weight: 400; font-size: .8em; margin-left: 6px; }
.dz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dz-tag {
    padding: 4px 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    color: rgba(255,255,255,.8);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.dz-tag:hover { background: rgba(255,255,255,.2); color: #fff; }
.dz-ratings {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 13px;
}
.dz-imdb { color: var(--af-accent); font-weight: 700; }
.dz-imdb .icon { font-size: 12px; }
.dz-views { color: rgba(255,255,255,.6); }

/* Action buttons */
.dz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.dz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.dz-btn:hover { opacity: .85; transform: translateY(-1px); }
.dz-btn-primary { background: var(--af-accent); color: #111; }
.dz-btn-dark     { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.dz-btn-ghost    { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.dz-btn-watchlist {
    background: transparent;
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.2);
}
.dz-btn-watchlist.active { color: var(--af-accent); border-color: var(--af-accent); }

.dz-desc {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    line-height: 1.65;
    margin-bottom: 12px;
    max-width: 600px;
}
.dz-director-row { font-size: 12px; color: rgba(255,255,255,.5); }
.dz-meta-lbl { color: rgba(255,255,255,.4); margin-right: 4px; }
.dz-meta-val { color: rgba(255,255,255,.75); text-decoration: none; }
.dz-meta-val:hover { color: var(--af-accent); }

/* --- Main 2-col layout --- */
.dz-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 24px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Episodes column --- */
.dz-ep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 16px;
}
.dz-ep-label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dz-ep-count {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    font-weight: 400;
    margin-left: 4px;
}

.dz-season-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dz-season-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.06);
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.dz-season-tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.dz-season-tab.active { background: var(--af-accent); color: #111; border-color: var(--af-accent); }

/* Episode grid */
.dz-ep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.dz-ep-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #161b22;
    border: 1px solid rgba(255,255,255,.06);
    transition: border-color .15s, transform .15s;
}
.dz-ep-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
.dz-ep-card.dz-ep-watched { opacity: .6; }
.dz-ep-card.dz-ep-watched:hover { opacity: 1; }

.dz-ep-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 — Safari/iOS uyumlu */
    overflow: hidden;
    background: #0d1117;
}
.dz-ep-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.dz-ep-card:hover .dz-ep-img { transform: scale(1.04); }
.dz-ep-no-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2d333b;
}
.dz-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.dz-ep-play-overlay .icon { font-size: 28px; color: #fff; }
.dz-ep-card:hover .dz-ep-play-overlay { opacity: 1; }

.dz-ep-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,.75);
    color: var(--af-accent);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.dz-ep-final-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #dc3545;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}
.dz-ep-watched-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,200,100,.85);
    color: #fff;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-ep-meta {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.dz-ep-num  { font-size: 11px; font-weight: 700; color: var(--af-accent); }
.dz-ep-title-text { font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-ep-date { font-size: 10px; color: rgba(255,255,255,.4); }
.dz-ep-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: rgba(255,255,255,.3);
    cursor: pointer;
    transition: color .15s;
}
.dz-ep-mark:hover, .dz-ep-mark.active { color: #28a745; }
.dz-ep-empty { color: rgba(255,255,255,.4); padding: 24px 0; font-size: 13px; grid-column: 1/-1; }

.dz-mark-season-btn {
    margin-top: 16px;
    padding: 10px 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}
.dz-mark-season-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* --- Sidebar --- */
.dz-stat-card {
    background: #161b22;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 16px;
    position: sticky;
    top: 80px;
}
.dz-stat-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.dz-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 12px;
    line-height: 1.4;
}
.dz-stat-row:last-child { border-bottom: none; }
.dz-stat-lbl { color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.dz-stat-lbl .icon { font-size: 11px; }
.dz-stat-val { color: rgba(255,255,255,.8); text-align: right; }
.dz-stat-val a { color: rgba(255,255,255,.7); text-decoration: none; }
.dz-stat-val a:hover { color: var(--af-accent); }
.dz-imdb-val { color: var(--af-accent); font-size: 16px; font-weight: 800; }

/* --- Cast section --- */
.dz-cast-section,
.dz-comments-section {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.dz-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dz-section-title small { color: rgba(255,255,255,.4); font-size: .75em; font-weight: 400; }
.dz-cast-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.dz-cast-card {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}
.dz-cast-card a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dz-cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.1);
    display: block;
}
.dz-cast-no-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1c2128;
    border: 2px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #484f58;
    text-transform: uppercase;
}
.dz-cast-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.3; }
.dz-cast-role { font-size: 10px; color: rgba(255,255,255,.4); }

/* --- Comments --- */
.dz-comment-login { color: rgba(255,255,255,.5); font-size: 13px; }
.dz-comment-login a { color: var(--af-accent); }
.dz-comment-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 14px; }
.dz-comment {
    display: flex;
    gap: 12px;
    background: #161b22;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 14px;
}
.dz-comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dz-comment-body { flex: 1; min-width: 0; }
.dz-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dz-comment-author { font-size: 12px; font-weight: 700; color: var(--af-accent); text-decoration: none; }
.dz-comment-date { font-size: 11px; color: rgba(255,255,255,.35); margin-left: auto; }
.dz-comment-text { font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 6px; line-height: 1.55; }
.dz-comment-reply a { font-size: 11px; color: rgba(255,255,255,.4); text-decoration: none; }
.dz-comment-reply a:hover { color: var(--af-accent); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .dz-main { grid-template-columns: 1fr; }
    .dz-sidebar { display: none; }
    .dz-ep-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .dz-hero-inner { flex-direction: column; align-items: flex-start; padding: 24px 16px 20px; gap: 16px; }
    .dz-poster-col { flex-direction: row; align-items: flex-end; gap: 14px; width: 100%; }
    .dz-poster-img { width: 100px; height: 146px; }
    .dz-poster-placeholder { width: 100px; height: 146px; font-size: 24px; }
    .dz-title { font-size: 20px; }
    .dz-actions { gap: 6px; }
    .dz-btn { padding: 8px 14px; font-size: 12px; }
    .dz-main { padding: 16px 12px 0; gap: 16px; }
    .dz-ep-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dz-cast-section, .dz-comments-section { padding: 16px 12px; }
}
@media (max-width: 480px) {
    .dz-ep-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dz-season-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .dz-season-tab { white-space: nowrap; }
    .dz-ep-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SINGLE-BOLUM Player Improvements
   ============================================================ */
.dz-page #ep-nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.dz-page .ep-series-btn {
    font-weight: 700;
    font-size: 13px;
    color: var(--af-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dz-page .ep-nav-info {
    display: flex;
    gap: 6px;
    font-size: 13px;
    align-items: center;
}
.dz-page .ep-nav-btns { display: flex; gap: 8px; margin-left: auto; }

/* Player wrapper */
#player-wrapper {
    background: #000;
    position: relative;
}
.player-area {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}
.player-cover {
    position: absolute;
    inset: 0;
    background: #000 center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    gap: 12px;
}
.player-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 0;
}
.big-play { position: relative; z-index: 2; }
.player-cover-info { position: relative; z-index: 2; text-align: center; font-size: 13px; }
#pVid { position: absolute; inset: 0; z-index: 4; }
#pVid iframe { width: 100%; height: 100%; border: 0; }

/* Animated play button */
.af-play-ring {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.af-play-ring::before,
.af-play-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,213,0,.45);
    animation: afRingPulse 2s ease-out infinite;
}
.af-play-ring::after {
    animation-delay: .9s;
    border-color: rgba(255,213,0,.25);
}
@keyframes afRingPulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}
.af-play-btn-inner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--af-accent, #ffd500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 0 0 0 rgba(255,213,0,.5);
    position: relative;
    z-index: 1;
}
.af-play-btn-inner i {
    font-size: 26px;
    color: #111;
    margin-left: 4px; /* optical centering for play icon */
}
.player-cover:hover .af-play-btn-inner {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(255,213,0,.4);
}

/* No-video state */
.dz-no-video {
    padding: 60px 20px;
    text-align: center;
    background: #0d1117;
}
.dz-no-video .dz-noep-icon {
    font-size: 48px;
    color: #2d333b;
    margin-bottom: 14px;
    display: block;
}
.dz-no-video p { color: rgba(255,255,255,.4); font-size: 14px; margin-bottom: 16px; }

/* Player actions bar */
.player-actions {
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 10px 16px;
}
.bolum-player-opts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bolum-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.bolum-opt-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.bolum-opt-btn.active { background: var(--af-accent); color: #111; border-color: var(--af-accent); }

/* ============================================================
   MOBILE — KAPSAMLI DÜZELTMELer (320px – 768px)
   ============================================================ */

/* --- Genel content-wrapper --- */
@media (max-width: 768px) {
    .content-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
    .content-wrapper.dz-page { padding: 0; }
}

/* --- Dizi hero mobil --- */
@media (max-width: 600px) {
    .dz-hero { min-height: auto; }
    .dz-hero-inner {
        flex-direction: column;
        padding: 16px 12px 16px;
        gap: 12px;
        align-items: flex-start;
    }
    .dz-poster-col {
        flex-direction: row;
        align-items: flex-end;
        gap: 12px;
        width: 100%;
    }
    .dz-poster-img,
    .dz-poster-placeholder {
        width: 90px;
        height: 130px;
        flex-shrink: 0;
    }
    .dz-info-col { width: 100%; }
    .dz-title { font-size: 18px; line-height: 1.25; }
    .dz-meta-row { flex-wrap: wrap; gap: 6px; font-size: 11px; }
    .dz-tags { flex-wrap: wrap; gap: 5px; }
    .dz-tag { padding: 3px 8px; font-size: 10px; }
    .dz-desc { font-size: 12px; -webkit-line-clamp: 4; line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .dz-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .dz-btn {
        padding: 7px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    .dz-btn-primary, .dz-btn-dark { flex: 1 1 auto; }
}

/* --- Sezon tabları mobil --- */
@media (max-width: 600px) {
    .dz-season-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 10px 12px;
        scrollbar-width: none;
    }
    .dz-season-tabs::-webkit-scrollbar { display: none; }
    .dz-season-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 11px;
    }
    .dz-ep-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px 6px;
    }
    .dz-ep-title-bar { font-size: 13px; }
    .dz-ep-count { font-size: 11px; }
}

/* --- Bölüm grid mobil --- */
@media (max-width: 600px) {
    .dz-ep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 12px 12px;
    }
    .dz-ep-card-thumb { padding-top: 56%; }   /* 16:9 */
    .dz-ep-info { padding: 6px 8px; }
    .dz-ep-num { font-size: 11px; }
    .dz-ep-name { font-size: 11px; }
    .dz-ep-air { display: none; }
}
@media (max-width: 360px) {
    .dz-ep-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8px 10px; }
}

/* --- Cast section mobil --- */
@media (max-width: 600px) {
    .dz-cast-section { padding: 12px; }
    .dz-cast-scroll { gap: 12px; }
    .dz-cast-card { width: 80px; }
    .dz-cast-photo, .dz-cast-no-photo { width: 64px; height: 64px; font-size: 16px; }
    .dz-cast-name { font-size: 10px; }
    .dz-cast-role { display: none; }
}

/* --- Yorumlar mobil --- */
@media (max-width: 600px) {
    .dz-comments-section { padding: 12px; }
    .dz-comment { padding: 10px; gap: 8px; }
    .dz-comment-avatar { width: 32px; height: 32px; }
    .dz-comment-text { font-size: 12px; }
    .dz-comment-date { display: none; }
}

/* --- Bölüm sayfası nav bar mobil --- */
@media (max-width: 600px) {
    .dz-page #ep-nav-bar {
        padding: 8px 10px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .dz-page .ep-series-btn {
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .dz-page .ep-nav-info { font-size: 11px; white-space: nowrap; }
    .dz-page .ep-nav-btns { gap: 4px; flex-shrink: 0; }
    .dz-page .ep-nav-btns .btn { font-size: 10px; padding: 5px 8px; }
}

/* --- Player area mobil --- */
@media (max-width: 600px) {
    #player-wrapper { border-radius: 0; }
    .player-area .big-play > div { width: 60px !important; height: 60px !important; }
    .player-area .big-play > div i { font-size: 24px !important; }
    .player-cover-info { font-size: 11px !important; }
    .player-actions { padding: 8px 10px; }
    .bolum-player-opts { gap: 4px; }
    .bolum-opt-btn { font-size: 10px; padding: 5px 8px; }
}

/* ============================================================
   CONTENT-WRAPPER FLOAT CLEAR — footer kaymasını önler
   ============================================================ */
.content-wrapper::after {
    content: '';
    display: table;
    clear: both;
}
.content-wrapper.dz-page {
    display: flow-root;
}

/* ============================================================
   #category-posts — Episode Grid (CSS Grid + padding-bottom 16:9)
   Eski flex+aspect-ratio yaklaşımı kaldırıldı
   ============================================================ */
#category-posts {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 0;
    width: 100%;
    overflow: hidden;
    float: none !important;
}
#category-posts .grid-box,
#category-posts .grid-four {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
    border-radius: 6px;
    overflow: hidden;
    background: var(--af-bg-card, #1a1f22);
    transition: transform .2s;
}
#category-posts .grid-box:hover {
    transform: translateY(-3px);
}
#category-posts .grid-box .box-image {
    aspect-ratio: unset !important;
    width: 100% !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    position: relative !important;
    background-position: center center;
    background-size: cover;
    background-color: #111;
    border-radius: 0;
    overflow: hidden;
    transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
#category-posts .grid-box .box-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .2s;
}
#category-posts .grid-box:hover .box-image::after {
    background: rgba(0,0,0,.25);
}
#category-posts .grid-box .post-title {
    padding: 6px 6px 5px;
    background: var(--af-bg-card, #1a1f22);
}
#category-posts .grid-box .post-title .season-episode {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#category-posts .grid-box .post-title .date {
    font-size: 10px;
    color: var(--af-text-muted, #6c757d);
    display: block;
    margin-top: 2px;
}
#category-posts .grid-box.active-episode .box-image {
    outline: 2px solid var(--af-accent);
    outline-offset: -2px;
}
#category-posts .ep-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Responsive: episode grid */
@media (max-width: 900px) {
    #category-posts { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (max-width: 600px) {
    #category-posts { grid-template-columns: repeat(3, 1fr); gap: 5px; }
}
@media (max-width: 400px) {
    #category-posts { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* --- Genel buton + form mobil --- */
@media (max-width: 480px) {
    .btn.btn-s { font-size: 10px; padding: 5px 8px; }
}

/* --- Dz no video --- */
@media (max-width: 600px) {
    .dz-no-video { padding: 32px 16px; }
    .dz-no-video .dz-noep-icon { font-size: 36px; }
}

/* ============================================================
   #single-bolum — float clear (footer kaymasını önler)
   ============================================================ */
#single-bolum::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   ADMIN — Sezon tab button
   ============================================================ */
.af-sezon-tab { transition: all .15s; }
.af-sezon-tab.active { background: var(--af-accent,#ffd700) !important; color: #111 !important; border-color: var(--af-accent,#ffd700) !important; }

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--af-bg-2, #212426); }
::-webkit-scrollbar-thumb { background: #3a4042; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--af-accent, #ffd500); }
* { scrollbar-width: thin; scrollbar-color: #3a4042 var(--af-bg-2, #212426); }

/* ============================================================
   LANG BADGE (language flag fallback)
   ============================================================ */
.lang-badge {
    display: inline-block;
    background: rgba(255,213,0,.15);
    color: var(--af-accent);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,213,0,.3);
    letter-spacing: .5px;
    margin-top: 2px;
}

/* ============================================================
   PLAYER — Tasarım iyileştirmeleri
   ============================================================ */
#player-wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}
/* Sezon bölümleri listesi (#category-posts içinde) dz-ep-grid gibi davransın */
#category-posts.dz-ep-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    background: transparent !important;
}
/* Player yükleniyor — pVid boşken göster */
#pVid:empty {
    display: none;
}
/* Player kontrol barı (alt gradient) */
.player-area::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    z-index: 3;
    pointer-events: none;
}
/* DBX Pro player button style */
.bolum-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: var(--af-text);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.bolum-opt-btn:hover, .bolum-opt-btn.active {
    background: var(--af-accent);
    color: #111;
    border-color: var(--af-accent);
}
.bolum-opt-btn i, .bolum-opt-btn .fa {
    font-size: 13px;
}

/* active-episode highlight */
.dz-ep-card.active-episode {
    border-color: var(--af-accent) !important;
    box-shadow: 0 0 0 2px rgba(255,213,0,.35);
}

/* ============================================================
   MOBİL UI/UX — SIFIRDAN TAM YAZILMIŞ (v2)
   Breakpoints: 1024 / 768 / 480 / 360
   ============================================================ */

/* ---- Global overflow guard ---- */
html, body { overflow-x: hidden; max-width: 100%; }
.container, .content-wrapper, .full-width { max-width: 100%; box-sizing: border-box; }

/* ============================================================
   TABLET  (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .content-wrapper { padding: 14px; }
    .grid-six { width: calc(100% / 4 - 6px); }
    .grid-six:nth-child(5n), .grid-six:nth-child(6n) { margin-right: 6px; }
    .grid-six:nth-child(4n) { margin-right: 0; }
    #af-upcoming-list { gap: 14px; }
    .af-upcoming-circle { width: 74px; height: 74px; }
    .af-upcoming-item { width: 74px; }
}

/* ============================================================
   MOBILE LANDSCAPE / SMALL TABLET  (max 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Header --- */
    :root { --af-header-h: 48px; }
    #site-header {
        height: 48px;
        padding: 0 12px;
        gap: 10px;
    }
    #site-header .logo img  { max-height: 26px; }
    #site-header .logo-type { font-size: 16px; }
    #site-header .logo-desc { display: none; }
    #site-header #searchform {
        min-width: 90px;
        flex: 1;
        max-width: 220px;
        border-radius: 6px;
        padding: 0 10px;
        height: 34px;
    }
    #site-header #searchform input[type="text"] {
        font-size: 12px;
        padding: 0;
    }
    #site-header .user-dropdown-button {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
    }
    #top-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .sub-menu-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 5px 10px;
        scrollbar-width: none;
    }
    .sub-menu-bar::-webkit-scrollbar { display: none; }
    .sub-menu-bar li { display: inline-block; }

    /* --- General wrapper --- */
    .content-wrapper { padding: 10px 12px; }
    .dz-page.content-wrapper { padding: 0 !important; }

    /* --- Hero --- */
    #af-hero {
        min-height: 220px;
        margin-bottom: 16px;
    }
    .af-hero-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.8) 100%);
    }
    .af-hero-content {
        padding: 28px 18px;
        max-width: 100%;
    }
    .af-hero-title { font-size: 22px; margin-bottom: 8px; }
    .af-hero-subtitle { font-size: 13px; margin-bottom: 18px; }
    .af-hero-cta { padding: 9px 20px; font-size: 13px; }

    /* --- Story circles --- */
    #af-upcoming-list { gap: 12px; padding: 6px 4px 14px; }
    .af-upcoming-circle { width: 70px; height: 70px; }
    .af-upcoming-item { width: 70px; }
    .af-upcoming-title { font-size: 10px; max-width: 70px; }

    /* --- Section titles --- */
    .af-section-title { padding-bottom: 8px; margin-bottom: 12px; }
    .af-section-text { font-size: 12px; letter-spacing: 0; }
    .af-section-icon { width: 24px; height: 24px; font-size: 10px; }

    /* --- Episode grid (homepage cards) --- */
    .article-episode-card.grid-five {
        width: calc(50% - 5px) !important;
        margin-right: 5px !important;
    }
    .article-episode-card.grid-five:nth-child(2n) { margin-right: 0 !important; }

    /* --- Series poster grid --- */
    .grid-six { width: calc(33.333% - 4px) !important; }
    .grid-six:nth-child(2n) { margin-right: 4px !important; }
    .grid-six:nth-child(3n) { margin-right: 0 !important; }

    .grid-five { width: calc(33.333% - 5px); }
    .grid-five:nth-child(5n), .grid-five:nth-child(4n) { margin-right: 5px; }
    .grid-five:nth-child(3n) { margin-right: 0; }

    /* --- Season episode grid --- */
    #category-posts.dz-ep-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* --- Player page nav bar --- */
    #ep-nav-bar {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
        min-height: unset;
    }
    .ep-nav-info { font-size: 11px; order: 3; width: 100%; }
    .ep-nav-btns .btn { font-size: 11px; padding: 6px 10px; min-height: 36px; }
    .ep-series-btn { font-size: 11px; padding: 6px 10px; min-height: 36px; }

    /* --- Player --- */
    #player-wrapper { max-width: 100% !important; }

    /* --- Player actions --- */
    .player-actions { padding: 8px 12px; }
    .bolum-player-opts { flex-wrap: wrap; gap: 5px; }
    .bolum-opt-btn { font-size: 11px; padding: 6px 10px; min-height: 36px; }

    /* --- Series hero (single-dizi) --- */
    .dz-hero-inner { flex-direction: column; align-items: flex-start; padding: 16px 12px !important; gap: 12px; }
    .dz-hero-poster { width: 80px !important; height: auto !important; flex-shrink: 0; }
    .dz-hero-title { font-size: 18px !important; }
    .dz-hero-meta { flex-wrap: wrap; gap: 6px; }
    .dz-hero-btns { flex-wrap: wrap; gap: 6px; }
    .dz-hero-btns .dz-btn { padding: 7px 14px; font-size: 12px; min-height: 36px; }

    /* --- Dizi ep-card grid --- */
    .dz-ep-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }

    /* --- Season selector tabs --- */
    .dz-season-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .dz-season-tabs::-webkit-scrollbar { display: none; }
    .dz-season-tab { white-space: nowrap; }

    /* --- Header user area — login/register compact --- */
    .sign-up-link-button { font-size: 10px !important; padding: 5px 8px !important; }
    #btn-login { font-size: 10px !important; padding: 5px 8px !important; white-space: nowrap; }
    #btn-login strong { display: none; }
    #user-area { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }

    /* --- Homepage sidebar mini lists --- */
    .article-series-small-grid { width: 100%; padding: 0; margin-bottom: 8px; }

    /* --- Footer --- */
    #site-footer { flex-direction: column; gap: 12px; padding: 18px 14px; }
    .site-copyright { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }

    /* --- Recommended series scroll --- */
    #recommended_series > li { width: 100px; }
    #recommended_series .recommended_simg,
    #recommended_series img.afis { width: 100px; height: 145px; }

    /* --- Alphabetical list --- */
    .alphabetical-category-list { columns: 2 auto; }
}

/* ============================================================
   MOBILE PORTRAIT  (max 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* --- Header tighter --- */
    #site-header { padding: 0 10px; gap: 8px; }
    #site-header #searchform { max-width: 160px; height: 32px; }
    #site-header .user-dropdown-button { font-size: 10px; padding: 4px 8px; }

    /* --- General wrapper --- */
    .content-wrapper { padding: 8px 10px; }

    /* --- Hero --- */
    #af-hero { min-height: 180px; }
    .af-hero-content { padding: 22px 14px; }
    .af-hero-title { font-size: 18px; }
    .af-hero-subtitle { display: none; }

    /* --- Story circles --- */
    .af-upcoming-circle { width: 62px; height: 62px; }
    .af-upcoming-item { width: 62px; }
    .af-upcoming-title { font-size: 9px; max-width: 62px; }

    /* --- Episode cards (homepage) --- */
    .article-episode-card.grid-five {
        width: calc(50% - 4px) !important;
        margin-right: 4px !important;
    }
    .article-episode-card.grid-five:nth-child(2n) { margin-right: 0 !important; }

    /* --- Series poster grids --- */
    .grid-six { width: calc(33.333% - 4px) !important; }
    .grid-six:nth-child(2n) { margin-right: 4px !important; }
    .grid-six:nth-child(3n) { margin-right: 0 !important; }

    /* --- Header user area — login/register compact --- */
    .sign-up-link-button { font-size: 0 !important; padding: 6px 8px !important; min-width: 32px; }
    .sign-up-link-button i { font-size: 14px !important; }
    #btn-login { font-size: 10px !important; padding: 5px 8px !important; white-space: nowrap; }
    #btn-login strong { display: none; }
    #user-area { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
    .grid-five { width: calc(50% - 4px); }
    .grid-five:nth-child(2n) { margin-right: 0; }
    .grid-four { width: calc(50% - 4px); }
    .grid-four:nth-child(2n) { margin-right: 0; }

    /* --- Season episode grid (single-bolum) --- */
    #category-posts.dz-ep-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* --- Dizi ep-card grid (single-dizi) --- */
    .dz-ep-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }

    /* --- Player nav bar --- */
    .ep-series-btn span { display: none; }
    .ep-nav-info { font-size: 10px; }

    /* --- Player actions compact --- */
    .bolum-opt-btn { font-size: 10px; padding: 5px 8px; gap: 4px; }
    #af-cinema-btn span, .af-watchlist-btn span, .af-watched-btn span { display: none; }

    /* --- Player play button --- */
    .af-play-ring { width: 64px; height: 64px; }
    .af-play-btn-inner { width: 56px; height: 56px; font-size: 22px; }

    /* --- Series hero --- */
    .dz-hero-poster { width: 68px !important; }
    .dz-hero-title { font-size: 16px !important; }

    /* --- Season tabs --- */
    .dz-season-tab { font-size: 11px; padding: 5px 10px; }

    /* --- Sidebar mini list --- */
    section.pull-left[style*="width:50%"] {
        width: 100% !important;
        padding-right: 0 !important;
    }

    /* --- Recommended series --- */
    #recommended_series > li { width: 88px; }
    #recommended_series .recommended_simg,
    #recommended_series img.afis { width: 88px; height: 127px; }

    /* --- Alphabetical --- */
    .alphabetical-category-list { columns: 1 auto; }
    .modal { width: 95vw; min-width: unset; padding: 18px 14px; }
}

/* ============================================================
   VERY SMALL PHONES  (max 360px)
   ============================================================ */
@media (max-width: 360px) {
    #site-header { padding: 0 8px; gap: 6px; }
    #site-header #searchform { display: none; }
    .content-wrapper { padding: 6px 8px; }
    .af-upcoming-circle { width: 56px; height: 56px; }
    .af-upcoming-item { width: 56px; }
    .af-upcoming-title { font-size: 9px; max-width: 56px; }
    .article-episode-card.grid-five { width: calc(50% - 3px) !important; }
    .grid-six { width: calc(50% - 4px); }
    .grid-six:nth-child(3n) { margin-right: 4px; }
    .grid-six:nth-child(2n) { margin-right: 0; }
    #category-posts.dz-ep-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 5px !important; }
    .dz-ep-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 5px !important; }
}

/* ============================================================
   AD SYSTEM — Responsive Banner Slots
   ============================================================ */
.af-ad-area {
    width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}
.af-ad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    align-items: start;
}
.af-ad-grid.af-ad-grid-1 { grid-template-columns: 1fr; }
.af-ad-grid.af-ad-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* Slot wrapper — inline style yükseklik zaten var, CSS sadece güvenlik katmanı */
.af-ad-slot {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 4px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.04);
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
    width: 100% !important;
    align-self: start !important;
    flex-shrink: 0 !important;
}
.af-ad-slot--banner { height: 90px  !important; max-height: 90px  !important; }
.af-ad-slot--rect   { height: 250px !important; max-height: 250px !important; }
.af-ad-slot--square { height: 250px !important; max-height: 250px !important; }
.af-ad-slot a   { display: block !important; width: 100% !important; height: 100% !important; line-height: 0; }
.af-ad-slot img { width: 100% !important; height: 100% !important; display: block !important; object-fit: fill !important; }
.af-ad-slot video { width: 100% !important; height: 100% !important; display: block !important; object-fit: fill !important; }
.af-ad-full {
    width: 100%;
    margin: 4px 0;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    line-height: 0;
}

@media (max-width: 768px) {
    .af-ad-grid,
    .af-ad-grid.af-ad-grid-3 { grid-template-columns: 1fr !important; gap: 6px; }
    /* 2-col grid tek sütuna geç */
    .af-ad-2col-grid     { grid-template-columns: 1fr !important; gap: 6px !important; }
    /* Genel slot kuralları */
    .af-ad-slot                          { max-height: 25px !important; }
    .af-ad-slot--banner                  { height: 25px !important; max-height: 25px !important; }
    .af-ad-slot--rect                    { height: 100px !important; max-height: 100px !important; }
    .af-ad-slot--square                  { height: 100px !important; max-height: 100px !important; }
    /* 2-col içindeki slotlar — yüksek spesifite ile override */
    .af-ad-2col-grid .af-ad-slot--banner { height: 25px !important; max-height: 25px !important; }
    .af-ad-2col-grid .af-ad-slot--rect   { height: 100px !important; max-height: 100px !important; }
    .af-ad-2col-grid .af-ad-slot--square { height: 100px !important; max-height: 100px !important; }
}
@media (max-width: 480px) {
    .af-ad-slot--banner                  { height: 20px !important; max-height: 20px !important; }
    .af-ad-slot--rect                    { height: 80px !important;  max-height: 80px !important;  }
    .af-ad-slot--square                  { height: 80px !important;  max-height: 80px !important;  }
    /* 2-col içindeki slotlar — küçük mobil */
    .af-ad-2col-grid .af-ad-slot--banner { height: 20px !important; max-height: 20px !important; }
    .af-ad-2col-grid .af-ad-slot--rect   { height: 80px !important;  max-height: 80px !important;  }
    .af-ad-2col-grid .af-ad-slot--square { height: 80px !important;  max-height: 80px !important;  }
}

/* 2-Sütun reklam grid (yabancidizi.com stili) */
.af-ad-2col-wrap {
    width: 100%;
    padding: 4px 0;
}
.af-ad-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    align-items: start;
}
.af-ad-2col-grid:last-child { margin-bottom: 0; }
.af-ad-2col-empty { display: block; }
/* Slotlar 2-col içinde de aynı yükseklik kurallarına tabi */
.af-ad-2col-grid .af-ad-slot--banner { height: 90px  !important; max-height: 90px  !important; }
.af-ad-2col-grid .af-ad-slot--rect   { height: 250px !important; max-height: 250px !important; }
.af-ad-2col-grid .af-ad-slot--square { height: 250px !important; max-height: 250px !important; }

@media (max-width: 768px) {
    .af-ad-2col-grid { grid-template-columns: 1fr !important; gap: 6px; }
}

/* Pre-roll ad overlay */
#af-preroll-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 14px;
}
#af-preroll-overlay .af-preroll-skip {
    padding: 8px 20px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}
#af-preroll-overlay .af-preroll-skip:hover { background: rgba(255,255,255,.25); }
#af-preroll-overlay .af-preroll-timer {
    font-size: 12px; color: rgba(255,255,255,.5);
}
