/* =====================
   THEME VARIABLES
===================== */
:root{
    --bg:#0f172a;
    --card:#111827;
    --header:#020617;
    --text:#ffffff;
    --muted:#94a3b8;
    --border:#1e293b;
    --primary:#2563eb;
}

body.light{
    --bg:#f5f6fa;
    --card:#ffffff;
    --header:#ffffff;
    --text:#111111;
    --muted:#555555;
    --border:#e5e7eb;
    --primary:#2563eb;
}

/* =====================
   GLOBAL
===================== */
body{
    margin:0;
    font-family:system-ui;
    background:var(--bg);
    color:var(--text);
    transition:background .2s,color .2s;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    max-width:1100px;
    margin:auto;
    padding:15px;
}

/* =====================
   HEADER
===================== */
.header{
    position:sticky;
    top:0;
    z-index:999;
    background:var(--header);
    border-bottom:1px solid var(--border);
}

.header-inner{
    max-width:1200px;
    margin:auto;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:22px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:6px;
}
.logo span{
    color:var(--primary);
}

.menu{
    display:flex;
    gap:25px;
}
.menu a{
    color:var(--muted);
    font-weight:500;
}
.menu a:hover{
    color:var(--text);
}

.theme-btn{
    background:none;
    border:1px solid var(--border);
    color:var(--text);
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

/* =====================
   GRID / CARDS
===================== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:15px;
}

.card{
    background:var(--card);
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--border);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card span{
    display:block;
    padding:10px;
}

/* =====================
   D力Z力 SAYFASI
===================== */
.dizi-box{
    display:flex;
    gap:15px;
}

.dizi-box img{
    width:160px;
    border-radius:12px;
}

.bolumler{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:10px;
    margin:15px 0;
}

.bolumler a{
    background:var(--card);
    border:1px solid var(--border);
    padding:12px;
    text-align:center;
    border-radius:8px;
}

/* =====================
   PLAYER
===================== */
.player iframe{
    width:100%;
    height:240px;
    border-radius:12px;
}

@media(min-width:768px){
    .player iframe{
        height:480px;
    }
}

@media(max-width:768px){
    .player iframe {
        height:320px; /* önce 240px idi, şimdi biraz daha uzun */
    }
}


/* =====================
   FORM / YORUM
===================== */
form input,
form textarea{
    width:95%;
    margin:8px 0;
    padding:10px 12px;
    background:var(--card);
    border:1px solid var(--border);
    color:var(--text);
    border-radius:10px;
    font-size:14px;
}

form textarea{
    min-height:90px;
    resize:vertical;
}

form input::placeholder,
form textarea::placeholder{
    color:var(--muted);
}

button{
    padding:10px 16px;
    background:var(--primary);
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:.2s;
}

button:hover{
    opacity:.9;
    transform:translateY(-1px);
}

.yorum{
    background:#215858;
    border:1px solid var(--border);
    padding:12px;
    border-radius:10px;
    margin:10px 0;
    font-size:14px;
    line-height:1.5;
}


/* =====================
   FOOTER
===================== */
.footer{
    text-align:center;
    padding:15px;
    color:var(--muted);
}

/* =====================
   MOBILE
===================== */
@media(max-width:768px){
    .menu{
        display:none;
    }
}

/* ===============================
   MENU - DESKTOP
================================ */
.menu {
    display: flex;        /* desktop için yatay menü */
    gap: 20px;
}

/* ===============================
   MOBILE
================================ */
@media(max-width:768px){
    .menu {
        display: flex;            /* mobilde dikey menü */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100%;
        padding: 60px 20px;
        gap: 15px;
        background: var(--card);
        transition: left 0.3s ease;
        z-index: 2000;
        box-shadow: 3px 0 15px rgba(0,0,0,0.3);
    }

    .menu.show {
        left: 0;
    }

    .menu a {
        font-size: 18px;
    }

    /* overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
    }

    .menu.show + .menu-overlay {
        display: block;
    }

    /* header buttons */
    .menu-btn {
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text);
        z-index: 2100;
    }

    .theme-btn {
        font-size: 20px;
        z-index: 2100;
    }
}
@media(max-width:768px){
    .menu {
        position: fixed;
        top: 0;
        left: -100%;  /* <-- önce tamamen dışarıda başlasın */
        width: 260px;
        height: 100%;
        flex-direction: column;
        padding: 60px 20px;
        gap: 15px;
        background: var(--card);
        transition: left 0.3s ease;
        z-index: 2000;
        box-shadow: 3px 0 15px rgba(0,0,0,0.3);
    }

    .menu.show {
        left: 0;  /* açılınca soldan kayarak gelir */
    }

    /* overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
    }

    .menu.show + .menu-overlay {
        display: block;
    }
}

a {
    text-decoration: none;
}
.menu a {
    text-decoration: none !important;
}