/* Base */
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Poppins',sans-serif;
  background:#0d0d0d;
  color:#fff;
}
a{color:inherit;text-decoration:none;}

/* Header */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:#111;
  flex-wrap:wrap;
  border-bottom:1px solid #222;
}
header h1{color:#f5c518;font-size:1.8rem;}
header .admin-btn, .back-btn{
  background:#f5c518;color:#000;padding:0.6rem 1rem;border-radius:8px;font-weight:600;
}
#isTV{
  
    color: #fff;
}
/* Slider */
.slider{
  position:relative;
  overflow:hidden;
  margin:1.5rem 0;
}
.slides{
  display:flex;
  transition:0.5s ease-in-out;
}
.slide{
  min-width:100%;
  position:relative;
}
.slide img{
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:cover;
  border-radius:12px;
}
.slide h3{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:1rem;
  background:rgba(0,0,0,0.5);
  text-align:center;
  font-size:1.5rem;
}

/* Sections */
section{
  margin-bottom:2rem;
}
section h2{
  margin-left:2rem;
  color:#f5c518;
  margin-bottom:0.8rem;
  font-size:1.5rem;
}

/* Movie Grid Rows */
.grid{
  display:flex;
  overflow-x:auto;
  padding:0.5rem 2rem;
  gap:1rem;
  scroll-behavior:smooth;
  flex-wrap:nowrap;
}
.grid::-webkit-scrollbar{display:none;}
.movie-card{
  flex:0 0 auto;
  min-width:120px;
  max-width:220px;
  background:#1a1a1a;
  border-radius:8px;
  text-align:center;
  transition:0.3s;
}
.movie-card:hover{transform:scale(1.05);}
.movie-card img{
  width:100%;
  height:auto;
  border-radius:6px;
}
.movie-card h3{
  margin:0.3rem 0;
  font-size:1rem;
}
.movie-card p{
  color:#ccc;
  font-size:0.8rem;
  margin-bottom:0.3rem;
}
.movie-card button{
  background:#f5c518;
  border:none;
  padding:0.4rem 0.6rem;
  border-radius:4px;
  cursor:pointer;
  font-size:0.8rem;
  font-weight:bold;
  margin-bottom:0.5rem;
}
.movie-card button:hover{background:#fff;color:#000;}

/* Admin Panel */
.admin-container{
  width:95%;
  max-width:900px;
  margin:2rem auto;
  background:#1a1a1a;
  padding:2rem;
  border-radius:12px;
  text-align:center;
}
.admin-container input, .admin-container select{
  width:100%;
  padding:0.6rem;
  margin:0.5rem 0;
  border:none;
  border-radius:6px;
}
.admin-container button{
  background:#f5c518;
  border:none;
  padding:0.6rem 1.2rem;
  border-radius:6px;
  cursor:pointer;
  font-weight:bold;
  margin-top:0.5rem;
  transition:0.3s;
}
.admin-container button:hover{background:#fff;color:#000;}

/* Tables */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:1rem;
  font-size:0.85rem;
}
table th, table td{
  border:1px solid #333;
  padding:0.4rem;
  text-align:center;
  color:#fff;
}
table th{background:#111;}
table td img{border-radius:6px;}
.editable{
  background:#111;
  color:#fff;
  padding:0.4rem;
  border-radius:4px;
  min-width:50px;
  outline:none;
}
.editable:focus{background:#222;border:1px solid #f5c518;}

/* Responsive Breakpoints */
@media(max-width:480px){
  header{flex-direction:column;gap:0.5rem;}
  .slide img{max-height:200px;}
  .movie-card{min-width:120px;}
  .movie-card h3{font-size:0.75rem;}
  .movie-card button{font-size:0.65rem;padding:0.2rem 0.4rem;}
  section h2{font-size:1rem;margin-left:1rem;}
  .grid{padding-left:0.5rem;gap:0.5rem;}
}
@media(min-width:481px) and (max-width:768px){
  .movie-card{min-width:140px;}
  .slide img{max-height:250px;}
  section h2{font-size:1.2rem;}
}
@media(min-width:769px) and (max-width:1200px){
  .movie-card{min-width:160px;}
  .slide img{max-height:350px;}
  section h2{font-size:1.3rem;}
}
@media(min-width:1201px) and (max-width:1600px){
  .movie-card{min-width:180px;}
  .slide img{max-height:400px;}
  section h2{font-size:1.5rem;}
}
@media(min-width:1601px){
  .movie-card{min-width:220px;}
  .slide img{max-height:500px;}
  section h2{font-size:2rem;}
}

.movie-card a:focus {
  outline: 3px solid #f5c518;
  border-radius: 8px;
}
