:root{
--gold:#d4af37;
--dark:#0f1115;
--mid:#1b1e27;
--soft:#2a2e3a;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{min-height:100%}
body{
  background:var(--dark);
  color:#fff;
  font-family:system-ui,sans-serif;
}

/* NAVBAR */
.navbar{
  background:#14161e;
  padding:16px;
  position:sticky;
  top:0;
  z-index:100;
}

.nav-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{height:50px}

.search-wrapper{max-width:300px;width:100%}

#search-input{
  width:100%;
  padding:8px 14px;
  border-radius:20px;
  border:none;
  background:#222;
  color:#fff;
}

.hamburger{
  display:none;
  font-size:22px;
  background:none;
  border:none;
  color:var(--gold);
  cursor:pointer;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  margin-top:10px;
}

.mobile-menu a{
  color:var(--gold);
  text-decoration:none;
  margin:4px 0;
}

/* HERO */
.banner{
  height:28vh;
  min-height:220px;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:flex-end;
  padding:14px 18px;
  position:relative;
  cursor:pointer;
  overflow:hidden;
}

.banner::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:45%;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.4),
    transparent
  );
}

.banner-content{
  position:relative;
  max-width:520px;
  z-index:2;
}

.banner-content h1{
  font-size:18px;
  line-height:1.15;
  margin-bottom:4px;
}

.banner-content p{
  font-size:12px;
  max-height:2.2em;
  overflow:hidden;
}

/* ROW */
.row{margin:25px}

.box{
  background:linear-gradient(135deg,var(--mid),var(--soft));
  padding:16px;
  border-radius:18px;
}

.box h2{
  color:var(--gold);
  margin-bottom:12px;
}

/* LIST */
.list.two-rows{
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(2,auto);
  gap:14px;
  overflow-x:auto;
}

#recommended-list{
  display:flex;
  gap:12px;
  overflow-x:auto;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
  gap:10px;
}

/* CARD */
.card{
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.card img{
  width:150px;
  border-radius:12px;
  border:3px solid var(--gold);
}

.card-title{
  margin-top:6px;
  font-size:13px;
  text-align:center;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none;
  justify-content:center;
  align-items:center;
  opacity:0;
  transition:.3s;
  z-index:9999; /* ensure modal is always on top */
}

.modal.show{
  display:flex;
  opacity:1;
}

.modal-content{
  max-width:1100px;
  width:100%;
  padding:16px;
  background:var(--dark);
  border-radius:18px;
}

.player-wrapper{
  width:100%;
  aspect-ratio:16/9;
}

#modal-video{
  width:100%;
  height:100%;
  border-radius:14px;
  border:none;
}

/* INFO WRAPPER */
.info-wrapper{
  margin-top:16px;
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}

.info-wrapper::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(0,0,0,.95),
    rgba(0,0,0,.85),
    rgba(0,0,0,.75)
  );
  backdrop-filter:blur(6px);
}

.info-text{
  position:relative;
  padding:20px;
}

/* JUSTIFIED MOVIE INFO */
#modal-description{
  text-align:justify;
  text-justify:inter-word;
  line-height:1.55;
  margin-top:8px;
}

/* HIDE SERVER */
#server{display:none}

/* FOOTER */
.site-footer{
  position:relative;
  z-index:1;
  text-align:center;
  padding:20px;
  background:#111;
  color:#aaa;
}

.site-footer a{
  color:var(--gold);
  text-decoration:none;
}

/* MOBILE */
@media(max-width:768px){
  .hamburger{display:block}
}


