/* ===== Genel ===== */
* {
    box-sizing: border-box;
  }
  :root {
    --bg-main: #0f1220;
    --bg-card: #111;
    --bg-header: #151a2e;
  
    --border-color: #2b335a;
    --text-main: #ffffff;
    --accent: #f5c518; /* IMDb sarısı */
  }
  
  
  body {
    margin: 0;
    font-family: system-ui, Arial;
    background: var(--bg-main);
    color: var(--text-main);
}
  
  /* ===== Header ===== */
  .header {
    padding: 16px;
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  
  .controls {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 140px 160px auto auto;
    margin-top: 12px;
  }
  
  .controls input,
  .controls select,
  .controls button {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2b335a;
    background: #0f1220;
    color: #fff;
  }
  
  .controls button {
    cursor: pointer;
  }
  
  .controls .secondary {
    opacity: 0.85;
  }
  
  /* ===== Main ===== */
  .main {
    padding: 16px;
  }
  
  /* ===== Grid ===== */
    .grid {
        display: grid;
        gap: 12px; /* 14 → 12 */
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* 180 → 160 */
      }
      

  
  /* ===== Kart ===== */
  .card {
    background: #111;
    border: 1px solid #2b335a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease;
  }
  
  .card:hover {
    transform: translateY(-2px);
  }
  
  /* ===== Kart Posteri ===== */
  .card img {
    width: 100%;
    height: 260px;          /* 🔥 NET TEK YÜKSEKLİK */
    object-fit: cover;
    display: block;
  }
  
  /* ===== Kart İçerik ===== */
  .card .pad {
    padding: 10px;
  }
  
  .badge {
    font-size: 12px;
    opacity: 0.85;
  }
  
  .title {
    font-weight: 700;
    margin: 6px 0;
  }
  
  .row {
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
    font-size: 13px;
  }
  
  /* ===== Modal ===== */
  .hidden {
    display: none;
  }
  
  .modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal.hidden {
    display: none;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .modal-content {
    position: relative;
    background: #151a2e;
    border-radius: 16px;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    border: 1px solid #2b335a;
  }
  
  .modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #2b335a;
    background: #0f1220;
    color: #fff;
    cursor: pointer;
  }
  
  /* ===== Modal Detay ===== */
  .detail-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  
  .detail-poster {
    width: 220px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .detail-info {
    flex: 1;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 800px) {
    .controls {
      grid-template-columns: 1fr;
    }
  
    .detail-layout {
      flex-direction: column;
    }
  
    .detail-poster {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
    }
  
    .card img {
      height: 280px;
    }
    .card {
        position: relative;
      }
      
      .card-fav {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        background: rgba(0,0,0,0.6);
        border-radius: 50%;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        transition: transform 0.15s ease;
      }
      
      .card-fav:hover {
        transform: scale(1.1);
      }
      
  }
  