
/* =========================
   GLOBAL
========================= */

body{
    margin:0;
    background:#0b0f19;
    color:white;
    font-family:Arial;
}

/* =========================
   HERO
========================= */

.hero{
    padding:50px;
    text-align:center;
}

.hero h1{
    font-size:60px;
    margin-bottom:30px;
}

/* =========================
   INPUT
========================= */

input{
    width:700px;
    max-width:90%;
    padding:20px;
    border:none;
    border-radius:20px;
    background:#111827;
    color:white;
    font-size:20px;
}

/* =========================
   GRID
========================= */

#results{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:25px;
    padding:30px;
}

/* =========================
   CARD
========================= */

.card{
    background:#111827;
    border-radius:20px;
    overflow:hidden;
    cursor:pointer;
    transition:0.3s;
}

.card:hover{
    transform:scale(1.03);
}

.card img{
    width:100%;
    height:360px;
    object-fit:cover;
}

.card-content{
    padding:15px;
}

/* =========================
   MODAL
========================= */

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:9999;
}

.modal.show{
    display:flex;
}

.modal-content{
    width:90%;
    max-width:1000px;
    max-height:90vh;
    overflow-y:auto;

    background:#111827;
    border-radius:20px;
    padding:30px;
}

/* =========================
   CLOSE
========================= */

#close{
    float:right;
    font-size:30px;
    cursor:pointer;
}

/* =========================
   LINKS
========================= */

.link{
    background:#1f2937;
    padding:15px;
    border-radius:15px;
    margin-top:10px;
}

/* =========================
   SEASON / EPISODE BUTTONS
========================= */

.season-btn,
.episode-btn{
    background:#1f2937;
    color:white;
    border:none;
    padding:10px 15px;
    margin:5px;
    border-radius:10px;
    cursor:pointer;
    transition:0.2s;
}

.season-btn:hover,
.episode-btn:hover{
    background:#374151;
}