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

body {
  background: #141414;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* HEADER STYLES - Trasparente con blur */
.oblivion-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.oblivion-header.scrolled {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #00bfff; /* Celeste */
  font-weight: 900;
  font-size: 32px;
  font-family: 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
  margin-right: 30px;
  transition: all 0.3s;
}

.logo:hover {
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
  transform: scale(1.02);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-left nav {
  display: flex;
  gap: 20px;
}

.nav-left nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-left nav a:hover {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.1);
}

.nav-left nav a.active {
  font-weight: 700;
  color: #00bfff;
  background: rgba(0, 191, 255, 0.15);
}

.nav-right {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
}

#searchInput {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 15px;
  width: 250px;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#searchInput:focus {
  outline: none;
  border-color: #00bfff;
  width: 300px;
  background: rgba(0,0,0,0.8);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
}

.search-btn {
  background: transparent;
  border: none;
  color: #00bfff;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: -45px;
  font-size: 18px;
  transition: transform 0.3s;
}

.search-btn:hover {
  transform: scale(1.1);
}

/* HERO SECTION */
.hero {
  height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 68px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #141414 10%, transparent 60%);
}

.hero-content {
  position: absolute;
  bottom: 25%;
  left: 60px;
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 52px;
  margin: 0 0 20px;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  color: #fff;
}

.hero p {
  color: #e5e5e5;
  line-height: 1.5;
  font-size: 22px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  min-width: 160px;
  justify-content: center;
}

.btn-play {
  background: #00bfff;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn-play:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.btn-info {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-info:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ROWS CONTAINER */
.rows {
  padding: 0 0 80px;
  position: relative;
  z-index: 1;
  margin-top: -150px;
}

.row {
  margin-bottom: 60px;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 60px 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.row h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.row-indicators {
  display: flex;
  align-items: center;
  gap: 15px;
}

.row-counter {
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Scroller Container con frecce */
.scroller-container {
  position: relative;
  padding: 0 60px;
  display: flex;
  align-items: center;
}

.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0;
  flex: 1;
}

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

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.scroll-btn:hover {
  background: rgba(0, 191, 255, 0.8);
  border-color: #00bfff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.scroll-left {
  left: 20px;
}

.scroll-right {
  right: 20px;
}

/* Poster Styles */
.movie-card {
  position: relative;
  transition: transform 0.4s ease;
  cursor: pointer;
  flex-shrink: 0;
  width: 240px;
}

.movie-card:hover {
  transform: scale(1.08);
  z-index: 10;
}

.poster-container {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.1);
}

.movie-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 70%);
  padding: 25px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(10px);
}

.movie-card:hover .movie-overlay {
  opacity: 1;
  transform: translateY(0);
}

.movie-info h4 {
  margin: 0 0 8px;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 15px;
}

.movie-rating {
  color: #00bfff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-view-btn {
  background: rgba(0, 191, 255, 0.9);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-view-btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  margin: 40px auto;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  position: relative;
  animation: modalFadeIn 0.3s;
  border: 1px solid rgba(0, 191, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.close:hover {
  background: #e50914;
  transform: rotate(90deg);
}

.movie-detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.detail-poster {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.detail-info {
  flex: 1;
}

.detail-info h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.2;
}

.movie-tagline {
  font-style: italic;
  color: #00bfff;
  margin: 10px 0 20px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 15px;
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 20px;
}

.genres {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.genre {
  background: rgba(0, 191, 255, 0.15);
  color: #00bfff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.original-title {
  margin-top: 15px;
  color: #aaa;
  font-size: 15px;
}

.movie-detail-body {
  margin-top: 30px;
}

.movie-detail-body h3 {
  margin-bottom: 15px;
  font-size: 26px;
  color: #fff;
}

.overview {
  line-height: 1.7;
  color: #e5e5e5;
  margin-bottom: 30px;
  font-size: 17px;
}

.actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.watch-btn {
  background: #00bfff;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  min-width: 140px;
  justify-content: center;
}

.watch-btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.watch-btn.play-btn {
  background: #00bfff;
}

.watch-btn:not(.play-btn) {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.watch-btn:not(.play-btn):hover {
  background: rgba(255,255,255,0.2);
}

.trailer-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.trailer-btn:hover {
  background: rgba(0, 191, 255, 0.2);
  border-color: #00bfff;
  transform: translateY(-2px);
}

.trailer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trailer-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
}

.close-trailer-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.close-trailer-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.trailer-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 70px;
  text-align: center;
  margin-bottom: 20px;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: #00bfff;
  border-radius: 100%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}

.loading-overlay p {
  color: #00bfff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ERROR MESSAGE */
.error-message {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #e50914, #ff4757);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* NO MOVIES */
.no-movies {
  text-align: center;
  padding: 60px 40px;
  color: #666;
  width: 100%;
}

.no-movies i {
  font-size: 64px;
  margin-bottom: 15px;
  display: block;
  color: #00bfff;
}

.no-movies p {
  font-size: 18px;
  color: #aaa;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .header-content {
    padding: 0 20px;
  }
  
  .hero-content {
    left: 20px;
    max-width: 500px;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .row-header {
    margin: 0 20px 20px;
  }
  
  .scroller-container {
    padding: 0 20px;
  }
  
  .scroll-left {
    left: 10px;
  }
  
  .scroll-right {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 24px;
  }
  
  .nav-left nav {
    display: none;
  }
  
  #searchInput {
    width: 180px;
  }
  
  #searchInput:focus {
    width: 200px;
  }
  
  .hero-content {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    bottom: 15%;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .modal-content {
    margin: 20px auto;
    padding: 20px;
    width: 95%;
  }
  
  .movie-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .detail-poster {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  
  .detail-info h2 {
    font-size: 28px;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .watch-btn, .trailer-btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .movie-card {
    width: 180px;
  }
  
  .poster-container {
    height: 270px;
  }
  
  .row h2 {
    font-size: 22px;
  }
  
  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
/* Tema scuro/chiaro */
.dark-theme {
  background-color: #141414;
  color: #ffffff;
}

.dark-theme .netflix-header {
  background-color: rgba(20, 20, 20, 0.95);
}

/* Ad-block warning */
.adblock-warning {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 10px 20px;
  z-index: 9999;
  animation: slideDown 0.3s ease-out;
}

.warning-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.warning-content i {
  font-size: 24px;
  margin-right: 15px;
}

.warning-content p {
  flex-grow: 1;
  margin: 0;
  font-size: 14px;
}

/* Badge beta */
.beta-badge {
  background: linear-gradient(45deg, #ff0080, #ff8c00);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: super;
}

/* Hero migliorato */
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -2;
  transition: filter 0.3s ease;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  z-index: -1;
}

.hero-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 14px;
  opacity: 0.9;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(45deg, #e50914, #b81d24);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-features {
  display: flex;
  gap: 25px;
  margin-top: 25px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.feature i {
  color: #e50914;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.hero-scroll:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) scale(1.1);
}

/* Filtri */
.filters-bar {
  background: rgba(20, 20, 20, 0.95);
  padding: 15px 4%;
  margin: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filters-title {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  min-width: 150px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #e50914;
  border-color: #e50914;
}

.view-controls {
  display: flex;
  gap: 5px;
}

.view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active {
  background: #e50914;
  border-color: #e50914;
}

/* Row header migliorato */
.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 4%;
}

.row-more {
  color: #e50914;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.row-more:hover {
  color: #ff6b6b;
}

/* Modal migliorato */
.movie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow-y: auto;
}

.movie-content {
  background: #141414;
  margin: 50px auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.movie-modal-body {
  display: flex;
  min-height: 600px;
}

.movie-modal-left {
  flex: 0 0 300px;
  background: #000;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.movie-modal-poster {
  width: 250px;
  height: 375px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.movie-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
  width: 100%;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.modal-btn.play-btn {
  background: #e50914;
  border-color: #e50914;
  grid-column: span 2;
}

.movie-modal-right {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  max-height: 600px;
}

/* Footer */
.site-footer {
  background: #141414;
  padding: 50px 4% 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #e50914;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e50914;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Notifications */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.notification {
  background: #333;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 10px;
  min-width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out;
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.info {
  border-left: 4px solid #2196F3;
}

/* Animazioni */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .movie-modal-body {
    flex-direction: column;
  }
  
  .movie-modal-left {
    flex: 0 0 auto;
    padding: 20px;
  }
  
  .filters-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-features {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .warning-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
/* ===== StreamingUnity-ish Header polish ===== */
:root{
  --bg: #0b0f14;
  --panel: rgba(15, 18, 24, .72);
  --panel2: rgba(15, 18, 24, .88);
  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: #00c2ff; /* puoi cambiarlo */
}

body.dark-theme{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0,194,255,.14), transparent 55%),
              radial-gradient(900px 500px at 80% 0%, rgba(229,9,20,.12), transparent 60%),
              var(--bg);
  color: var(--text);
}

.dark-theme .netflix-header{
  background: linear-gradient(to bottom, var(--panel2), var(--panel));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.logo{
  letter-spacing: 2px;
  font-weight: 800;
}
.logo-icon{ opacity: .9; }

.main-nav a{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.main-nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  transform: translateY(-1px);
}
.main-nav a.active{
  background: rgba(0,194,255,.14);
  color: var(--text);
  border: 1px solid rgba(0,194,255,.22);
}

.search-box input{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
}
.search-box input:focus{
  outline: none;
  border-color: rgba(0,194,255,.35);
  box-shadow: 0 0 0 4px rgba(0,194,255,.10);
}

.theme-toggle, .user-btn{
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}
.theme-toggle:hover, .user-btn:hover{
  border-color: var(--stroke2);
  background: rgba(255,255,255,.09);
}
/* ===== Hero: contrasto + tipografia ===== */
.hero{
  min-height: 72vh;
}

.hero-backdrop{
  filter: brightness(0.35) saturate(1.1);
  transform: scale(1.02);
}

.hero-gradient{
  background:
    radial-gradient(800px 500px at 25% 35%, rgba(0,194,255,.15), transparent 60%),
    linear-gradient(to right, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.12) 100%);
}

.hero-content{
  max-width: 980px;
}

#heroTitle{
  font-size: clamp(38px, 4.2vw, 72px);
  line-height: 1.02;
  text-shadow: 0 12px 40px rgba(0,0,0,.55);
}

.hero-meta span{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
}

.btn{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: var(--stroke2);
}

.btn-play{
  background: linear-gradient(135deg, rgba(0,194,255,.95), rgba(0,194,255,.55));
  border-color: rgba(0,194,255,.45);
  color: #061018;
  font-weight: 800;
}
.btn-play:hover{ filter: brightness(1.05); }

.btn-info{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
/* ===== Poster cards: look & hover ===== */
.scroller{
  padding: 0 4%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 4%;
}

.scroller > *{
  scroll-snap-align: start;
}

/* se le tue card hanno una classe tipo .movie-card / .card / .item,
   aggiungi anche quelle qui sotto duplicandole */
.movie-card, .card, .item{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.movie-card:hover, .card:hover, .item:hover{
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0,194,255,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* overlay scuro in basso (tipo portali streaming) */
.movie-card::after, .card::after, .item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 55%);
  opacity: .0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.movie-card:hover::after, .card:hover::after, .item:hover::after{
  opacity: 1;
}
/* ===== Scrollbar più elegante ===== */
.scroller::-webkit-scrollbar{
  height: 10px;
}
.scroller::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.25);
}
.scroller::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.22);
}
.scroller::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}
