/* style.css - simple modern dark theme */
:root{
  --bg:#050506;
  --card:#0d0f12;
  --muted:#9aa0a6;
  --accent:#1593ff;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Arial;background:var(--bg);color:#fff}
.wrap{max-width:1100px;margin:0 auto;padding:16px}
.site-header{background:transparent;padding:10px 0}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between}
.logo{font-weight:800;font-size:20px}
.search-form{display:flex;gap:8px}
.search-form input{background:#0f1113;border:1px solid rgba(255,255,255,0.03);padding:8px 12px;border-radius:8px;color:#fff;min-width:220px}
.search-form button{background:var(--accent);border:0;padding:8px 12px;border-radius:8px;color:#fff;font-weight:700}
.controls{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.tabs a{margin-right:8px;padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--muted);background:transparent}
.tabs a.active{background:rgba(255,255,255,0.04);color:#fff}
.filters select{background:#0f1113;color:#fff;padding:8px;border-radius:8px;border:0}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px;padding:10px 0}
.card{background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,0.6);transition:transform .18s}
.card a{color:inherit;text-decoration:none}
.card:hover{transform:translateY(-6px)}
.poster{width:100%;padding-top:150%;background-size:cover;background-position:center}
.card-body{padding:12px}
.card-body h3{margin:0 0 8px 0;font-size:16px}
.meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}

/* pager */
.pager{display:flex;gap:8px;align-items:center;padding:12px 0;flex-wrap:wrap}
.pager a{background:#0f1113;padding:8px 10px;border-radius:8px;color:var(--muted);text-decoration:none}
.pager a.active{background:var(--accent);color:#021025;font-weight:700}

/* detail */
.detail-page .detail{display:flex;gap:24px;align-items:flex-start;padding:20px 0}
.detail-poster{width:300px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
.right-col{flex:1}
.year{color:var(--muted);font-weight:400;font-size:16px}
.rating{background:rgba(255,255,255,0.04);padding:6px 10px;border-radius:8px;display:inline-block;margin:10px 0}
.overview{color:#ddd}
.btn-primary{display:inline-block;background:var(--accent);color:#021025;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700;margin-right:8px}
.btn-secondary{display:inline-block;background:rgba(255,255,255,0.08);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none}

/* cast / recs */
.cast{display:flex;gap:8px;flex-wrap:wrap}
.cast-item{background:rgba(255,255,255,0.03);padding:8px;border-radius:8px;font-size:13px}
.recs{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.rec-item{display:block;width:120px;text-decoration:none;color:#fff}
.rec-item img{width:100%;border-radius:8px}
.rec-item span{display:block;margin-top:6px;font-size:13px;color:var(--muted)}

/* player */
.player-wrap{padding:20px}
.video-container{position:relative;padding-top:56.25%}
.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}

/* footer */
.footer{padding:20px 0;color:var(--muted);font-size:13px}

/* responsive */
@media(max-width:800px){
  .detail-page .detail{flex-direction:column}
  .detail-poster{width:100%}
}