
*{margin:0;padding:0;box-sizing:border-box;font-family:'Cairo',sans-serif}

body{
background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
color:white;
}

header{
display:flex;
align-items:center;
gap:15px;
padding:20px;
border-bottom:1px solid rgba(255,255,255,0.1);
}

header img{
width:60px;
height:60px;
border-radius:15px;
}

header a{
display:flex;
align-items:center;
gap:15px;
text-decoration:none;
color:white;
}

header h2{font-size:22px}
header p{font-size:14px;opacity:.8}

.container{
max-width:1000px;
margin:auto;
padding:20px;
text-align:center;
}

.featured-image{
width:220px;
height:220px;
object-fit:cover;
border-radius:20px;
margin:25px 0;
box-shadow:0 20px 40px rgba(0,0,0,.5);
}

.featured-image-main{
width:280px;
max-width:90%;
height:auto;
border-radius:20px;
margin:25px 0;

box-shadow:
0 20px 40px rgba(0,0,0,.6),
0 0 30px rgba(139,92,246,.35);
}

.button{
display:inline-block;
padding:12px 30px;
background:#8b5cf6;
color:white;
border-radius:40px;
text-decoration:none;
margin:10px;
font-weight:bold;
transition:.3s;
}

.button:hover{
background:#7c3aed;
transform:scale(1.05);
}

.description{
margin:25px 0;
line-height:1.8;
text-align:justify;
}

.scroll-container{
display:flex;
overflow-x:auto;
gap:15px;
padding:20px 0;
scroll-behavior:smooth;
}
.scroll-container::-webkit-scrollbar{
height:6px;
}

.scroll-container::-webkit-scrollbar-thumb{
background:#8b5cf6;
border-radius:10px;
}

.scroll-item{
width:180px;
text-align:center;
transition:transform .3s ease;
}
.scroll-item:hover{
transform:translateY(-8px);
}
.scroll-item img{
width:180px;
height:180px;
border-radius:15px;
object-fit:cover;
display:block;
}

.grid-container{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
gap:20px;
margin-top:30px;
}


.movie-rate{
font-size:18px;
color:#FFD700;
margin:5px 0;
font-weight:bold;
}
.poster-container{
position:relative;
    border-radius:15px;
    overflow:hidden;
  }

.movie-rating{
position:absolute;
top:6px;
left:6px;
background:rgba(0,0,0,0.8);
color:#FFD700;
padding:4px 8px;
font-size:16px;
font-weight:bold;
border-radius:6px;
}
.ad-box{
margin:20px auto;
text-align:center;
max-width:100%;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.pagination a {
  padding: 8px 12px;
  background: #7c3aed;
  color: white;
  border-radius: 5px;
  margin: 3px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.pagination a:hover {
  background: #8b5cf6;
  transform: scale(1.05);
}

.pagination a.active {
  background: #4c1d95;
  font-weight: bold;
}
.progress-bar {
    width: 80%;
    height: 25px;
    background: #222;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: #8b5cf6;
    transition: width 0.3s;
}
#finalButton {
    display: none;
}

.year-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    display:flex;
    align-items:center;
    justify-content:center;
}

.year-overlay span{
    color:#fff;
    font-size:52px;
    font-weight:900;
    letter-spacing:1px;

    background:none ;
    padding:0;

    text-shadow:
        0 0 20px rgba(0,0,0,0.9),
        0 0 35px rgba(0,0,0,0.9)
}

.nav-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:15px;
  margin:25px 0;
}

.nav-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:15px;
  padding:20px;

  text-decoration:none;
  color:white;

  transition:.3s;
}

.nav-card span{
  font-size:28px;
  margin-bottom:8px;
}

.nav-card p{
  font-size:14px;
  font-weight:600;
}

.nav-card:hover{
  transform:translateY(-5px);
  background:rgba(139,92,246,0.2);
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}