@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(145deg, #0c0d11, #181b23);
  color: #e0e0e0;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 50px 20px;
  backdrop-filter: blur(10px);
  background: rgba(20,20,25,0.85);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border-bottom: 1px solid #333;
}

.atomlogo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.atomlogo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: spin 3s linear infinite;
  transition: transform 0.3s ease;
}
.atomlogo:hover { transform: rotate(5deg) scale(1.05); }

@keyframes spin { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }

h1 {
  font-size: 2.8em;
  color: #5ac8fa;
}

h2 {
  font-weight: 400;
  font-size: 1.3em;
  color: #c0c0c0;
  min-height: 1.5em;
  position: relative;
}

#random-phrase::after {
  content: '|';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50%{opacity:0;} }

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  background: #16171b;
  padding: 14px;
  box-shadow: inset 0 -1px 0 #222;
}
nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
}
nav a:hover {
  background: #5ac8fa33;
  color: #5ac8fa;
  box-shadow: 0 0 12px #5ac8fa44;
}


@media(max-width:700px){
  h1{font-size:2.2em;}
  h2{font-size:1.1em;}
  .carousel-section{max-width:95%;}
}

#search-input {
  padding: 10px 14px;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #333;
  background: #1a1c22;
  color: #e0e0e0;
  outline: none;
  margin: 20px 10px 20px 0;
  transition: border 0.3s, box-shadow 0.3s;
}
#search-input:focus {
  border-color: #5ac8fa;
  box-shadow: 0 0 8px #5ac8fa55;
}


.filters button {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #16171b;
  border-style: solid;
  border-color: rgb(43, 43, 43);
  margin: 5px;
}
.filters button.active,
.filters button:hover {
  transform: scale(1.05);
  background: #5ac8fa33;
  color: #5ac8fa;
  box-shadow: 0 0 12px #5ac7fa34;
  border-color: #5ac8fa;
}

#movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
}


.movie {
  background: #1a1c22;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.movie:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  background: #272a33;
}

.movie img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.movie h3 {
  color: #5ac8fa;
  margin-bottom: 6px;
}

.movie .year {
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 8px;
}

.read-more-content {
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.read-more-content.expanded {
  max-height: 500px;
}

.read-more-toggle {
  display: block;
  font-size: 0.85em;
  color: #5ac8fa;
  cursor: pointer;
  margin-top: 5px;
}

.links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #16171b;
  border-style: solid;
  border-color: rgb(43, 43, 43);
  margin: 5px;
}
.links a:hover {
  background: #49b7d6;
  border-color: #317c91;
}

@media(max-width:700px){
  h1{font-size:2.2em;}
  h2{font-size:1.1em;}
  #movie-list{gap:14px;}
  .movie img{height:120px;}
}
