/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
}

/* LOGO */
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #1db954, #1ed760);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: text-shadow 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 10px #1db954;
}

/* NAV */
.home-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  padding: 6px 10px;
  transition: color 0.3s;
}

.home-link:hover {
  color: #1db954;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1db954;
}

.search-bar {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  outline: none;
}

/* LIST / ROWS */
.row {
  margin: 20px 0;
}

.row h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.list-container {
  position: relative;
}

.list {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  overflow-x: auto;
  scroll-behavior: smooth;

  scrollbar-width: thin;
  scrollbar-color: #1db954 rgba(255,255,255,0.1);
}

/* Scrollbar WebKit */
.list::-webkit-scrollbar {
  height: 8px;
}

.list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.list::-webkit-scrollbar-thumb {
  background: #1db954;
  border-radius: 4px;
}

.list::-webkit-scrollbar-thumb:hover {
  background: #1ed760;
}

/* SCROLL NAVIGATOR */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(40, 40, 40, 0.85);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

/* LEFT (INACTIVE LOOK) */
.scroll-left {
  left: 10px;
  opacity: 0.7;
}

/* RIGHT (ACTIVE LOOK WITH RING) */
.scroll-right {
  right: 10px;
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 0 2px #fff;
}

/* HOVER */
.scroll-btn:hover {
  background: rgba(60, 60, 60, 0.95);
  transform: translateY(-50%) scale(1.08);
}

/* DISABLED STATE */
.scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}


/* LIST IMAGES */
.list img {
  width: 150px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.list img:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
  box-shadow: 0 8px 20px rgba(0,255,0,0.3);
  z-index: 2;
}

/* BANNER */
.banner {
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 20px;
}

.banner h1 {
  background: rgba(0,0,0,0.7);
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 2rem;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background: #222;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
}

.modal-body {
  display: flex;
  gap: 20px;
}

.modal-body img {
  width: 30%;
  border-radius: 5px;
}

.modal-text {
  flex: 1;
  text-align: left;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
}

.stars {
  color: gold;
}

/* SEARCH MODAL */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

.search-modal input {
  width: 300px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-bottom: 20px;
}

.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-modal img {
  width: 120px;
  border-radius: 5px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: #222;
  color: #ccc;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: red;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
  .banner {
    height: 30vh;
  }

  .list img {
    width: 120px;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 20px;
    padding: 5px;
  }

  .row h2 {
    font-size: 18px;
  }

  .modal-content {
    width: 95%;
  }
}
