* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body {
background: #000;
color: white;
font-family: Arial, sans-serif;
}

/* NAV */
.navbar {
display: flex;
align-items: center;
padding: 15px;
}

.home-icon {
width: 40px;
cursor: pointer;
}

/* HERO TOP BAR */
.hero-top {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
padding: 20px;
}

.hero-logo {
height: 50px;
object-fit: contain;
}

#searchInput {
padding: 10px;
width: 400px;
border-radius: 25px;
border: none;
background: #1f1f1f;
color: white;
}

/* RESULTS */
.row-posters {
display: flex;
gap: 12px;
overflow-x: auto;
padding: 20px;
}

.poster {
width: 150px;
height: 225px;
border-radius: 10px;
object-fit: cover;
cursor: pointer;
}

/* AUTH */
.splash {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.logo-img {
width: 80vw;
max-width: 800px;
margin-bottom: 30px;
}

.auth-box {
display: flex;
flex-direction: column;
gap: 10px;
width: 300px;
}

.auth-box input {
padding: 10px;
border-radius: 8px;
border: none;
}

.auth-box button {
background: #007ACC;
color: white;
padding: 10px;
border-radius: 8px;
border: none;
}

.auth-box .secondary {
background: transparent;
border: 1px solid #007ACC;
color: #007ACC;
}

/* MOVIE */
#player iframe {
width: 100%;
height: 400px;
border: none;
}

#info {
padding: 20px;
}

.meta {
color: #aaa;
}
/* SPLASH PAGE ONLY */
body.splash {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* BIG LOGO */
body.splash .logo-img {
  width: 85vw;
  max-width: 1100px;
  margin-bottom: 40px;
}

/* AUTH BOX */
body.splash .auth-box {
  background: rgba(20, 20, 20, 0.95);
  padding: 30px;
  border-radius: 16px;
  width: 320px;
}

/* BLUE BUTTON OVERRIDE */
body.splash button {
  background: #007ACC;
}

body.splash button:hover {
  background: #0094ff;
}

body.splash .secondary {
  background: transparent;
  border: 1px solid #007ACC;
  color: #007ACC;
}body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f0f0f;
  color: white;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #111;
}

.home-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.header-logo {
  height: 35px;
  margin-right: auto;
  margin-left: auto;
}

#search {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: white;
}

.section {
  padding: 10px;
}

.row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
}

.row::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 120px;
  cursor: pointer;
}

.card img {
  width: 100%;
  border-radius: 8px;
}

.card p {
  font-size: 12px;
  margin: 5px 0;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

button {
  background: #e50914;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 8px;
  border-radius: 6px;
  font-size: 16px;
  width: 200px;
}

button:hover {
  background: #b20710;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  border: 1px solid #555;
}

button.secondary:hover {
  background: #2a2a2a;
}

#movies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

.movie {
  cursor: pointer;
}

.movie img {
  width: 100%;
  border-radius: 8px;
}

.movie p {
  font-size: 14px;
  margin: 5px 0;
}

.auth-box {
  background: #181818;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  border: none;
  background: #2a2a2a;
  color: white;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  background: #3a3a3a;
}

.logo-img {
  width: 60%;
  max-width: 260px;
  margin-bottom: 20px;
}
body.splash .auth-box {
  background: rgba(20, 20, 20, 0.95);
  padding: 30px;
  border-radius: 16px;
  width: 320px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  align-items: center;     /* 🔥 centers everything horizontally */
  text-align: center;      /* centers placeholder/text */
}
body.splash .auth-box input,
body.splash .auth-box button {
  width: 100%;
}
/* APP PAGE */
body.app-page {
  background: #000;
  color: white;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  padding: 0 20px;

  z-index: 1000;
}

/* HOME ICON */
.home-btn img {
  width: 38px;
  transition: 0.2s;
}

.home-btn img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #007ACC);
}

/* HERO SECTION */
.hero {
  margin-top: 80px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  transition: all 0.3s ease;
}

/* BIG LOGO */
.hero-logo {
  width: 70vw;
  max-width: 900px;
  transition: all 0.3s ease;

  filter: drop-shadow(0 0 25px rgba(0, 122, 204, 0.3));
}

/* SEARCH BAR */
#searchInput {
  width: 400px;
  max-width: 80%;

  padding: 12px;
  border-radius: 30px;
  border: none;

  background: #1f1f1f;
  color: white;
  text-align: center;

  outline: none;
  transition: 0.2s;
}

#searchInput:focus {
  box-shadow: 0 0 10px #007ACC;
}

/* SHRINK EFFECT */
.hero.shrink .hero-logo {
  width: 300px;
}

.hero.shrink {
  gap: 10px;
}

/* CONTENT AREA */
.content {
  margin-top: 40px;
  padding: 20px;
}

/* ROW */
.row {
  margin-bottom: 30px;
}

.row h2 {
  margin-bottom: 10px;
}

/* NETFLIX STYLE ROW */
.row-posters {
  display: flex;
  overflow-x: auto;
  gap: 12px;
}

/* POSTERS */
.poster {
  min-width: 150px;
  height: 225px;

  border-radius: 10px;
  object-fit: cover;

  transition: 0.2s;
}

.poster:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.6);
}

/* SCROLLBAR HIDE */
.row-posters::-webkit-scrollbar {
  display: none;
}
/* NAV */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.home-icon {
  width: 40px;
  cursor: pointer;
}

.home-icon:hover {
  transform: scale(1.1);
}

/* HERO */
.hero {
  margin-top: 80px;
  text-align: center;
}

.hero-logo {
  width: 70vw;
  max-width: 900px;
  transition: 0.3s;
}

.hero.shrink .hero-logo {
  width: 300px;
}

/* SEARCH */
#searchInput {
  margin-top: 20px;
  padding: 12px;
  width: 400px;
  max-width: 80%;
  border-radius: 30px;
  border: none;
  background: #1f1f1f;
  color: white;
  text-align: center;
}

/* ROW */
.row-posters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

/* POSTER */
.poster {
  width: 150px;
  height: 225px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.2s;
}

.poster:hover {
  transform: scale(1.08);
}

/* MOVIE PAGE */
#player iframe {
  width: 100%;
  height: 400px;
  border: none;
}

#info {
  padding: 20px;
}

.meta {
  color: #aaa;
  margin-bottom: 10px;
}

.plot {
  color: #ccc;
}

#trailer {
  padding: 20px;
}
