/* ===== HERO ===== */

.movie-hero,
.tv-hero{
display:flex;
gap:20px;
margin-bottom:18px;
}

.movie-poster,
.tv-poster{
flex:0 0 185px;
}

.movie-poster img,
.tv-poster img{
width:100%;
border-radius:12px;
display:block;
box-shadow:0 10px 30px rgba(0,0,0,.75);
}

.movie-main,
.tv-main{
flex:1;
min-width:0;
}

.movie-title,
.tv-title{
font-size:24px;
font-weight:800;
margin-bottom:6px;
line-height:1.25;
}

.movie-tagline,
.tv-tagline{
font-size:14px;
color:var(--muted);
margin-bottom:6px;
}

.movie-meta-row,
.tv-meta-row{
font-size:13px;
color:var(--muted);
margin-bottom:12px;
}

.movie-meta-row span+span::before,
.tv-meta-row span+span::before{
content:"•";
margin:0 6px;
opacity:.7;
}

/* ===== QUICK ANSWER ===== */

.quick-answer{
margin:0 0 18px;
border-radius:14px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.10);
padding:14px;
}

.qa-title{
font-size:14px;
font-weight:800;
margin-bottom:6px;
letter-spacing:.2px;
}

.qa-text{
font-size:13px;
color:var(--muted);
line-height:1.6;
margin-bottom:10px;
}

/* FIX TRAILER + GALLERY LAYOUT */

.qa-grid{
display:grid;
grid-template-columns:340px 1fr;
gap:18px;
align-items:start;
}

.qa-box{
background:rgba(0,0,0,.25);
border-radius:12px;
padding:12px;
border:1px solid rgba(255,255,255,.08);
}

.qa-box h3{
font-size:12px;
text-transform:uppercase;
letter-spacing:.12em;
color:var(--muted);
margin-bottom:8px;
}

.qa-actions{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:10px;
}

/* ===== TABS ===== */

.tabs{
margin-top:18px;
border-bottom:1px solid rgba(255,255,255,.12);
}

.tab-buttons{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.tab-btn{
padding:8px 16px;
font-size:13px;
border-radius:6px 6px 0 0;
background:transparent;
border:none;
cursor:pointer;
color:var(--muted);
}

.tab-btn.active{
background:var(--accent);
color:#000;
font-weight:700;
}

.tab-panels{
padding-top:18px;
}

.tab-panel{
display:none;
}

.tab-panel.active{
display:block;
}

/* ===== GALLERY ===== */

.backdrop-strip{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:12px;
margin-top:10px;
}

.backdrop-strip img{
width:100%;
height:140px;
border-radius:10px;
object-fit:cover;
transition:transform .25s ease;
cursor:pointer;
}

.backdrop-strip img:hover{
transform:scale(1.05);
}

.gallery-box .backdrop-strip{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:12px;
margin-top:10px;
}

.gallery-box img{
width:100%;
height:140px;
border-radius:10px;
object-fit:cover;
transition:transform .25s ease;
cursor:pointer;
}

.gallery-box img:hover{
transform:scale(1.05);
}

/* ===== CAST ===== */

.cast-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
gap:14px;
}

.cast-card{
display:flex;
gap:8px;
background:rgba(0,0,0,.35);
border-radius:10px;
padding:6px 8px;
}

.cast-img{
flex:0 0 60px;
}

.cast-img img{
width:60px;
height:60px;
border-radius:8px;
object-fit:cover;
}

.cast-info{
font-size:12px;
}

.cast-name{
font-weight:600;
margin-bottom:2px;
}

.cast-role{
color:var(--muted);
}

/* ===== SYNOPSIS ===== */

.section-subtitle{
font-size:16px;
margin-bottom:8px;
}

.synopsis-text{
font-size:14px;
line-height:1.7;
color:var(--muted);
margin-bottom:14px;
}

/* ===== TRAILER ===== */

.trailer-wrapper{
position:relative;
width:100%;
aspect-ratio:16/9;
border-radius:10px;
overflow:hidden;
background:#000;
}

.trailer-wrapper iframe{
width:100%;
height:100%;
border:0;
}

/* ===== IMAGE MODAL ===== */

.image-modal{
display:none;
position:fixed;
z-index:9999;
inset:0;
background:rgba(0,0,0,.92);
backdrop-filter:blur(4px);
animation:fadeIn .25s ease;
}

.image-modal.show{
display:flex;
align-items:center;
justify-content:center;
}

.image-modal img{
max-width:90%;
max-height:85vh;
border-radius:14px;
box-shadow:0 20px 60px rgba(0,0,0,.7);
animation:zoomIn .25s ease;
}

.close-modal{
position:absolute;
top:20px;
right:35px;
color:#fff;
font-size:38px;
cursor:pointer;
opacity:.8;
transition:.2s;
}

.close-modal:hover{
opacity:1;
transform:scale(1.1);
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn{
from{opacity:0;}
to{opacity:1;}
}

@keyframes zoomIn{
from{transform:scale(.85);}
to{transform:scale(1);}
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){

.qa-grid{
grid-template-columns:1fr;
}

}

@media(max-width:768px){

.movie-hero{
flex-direction:column;
}

.movie-poster{
flex:0 0 auto;
max-width:200px;
}

.gallery-box img{
height:110px;
}

}
