/* ===== HERO ===== */
.contenuti-hero {
  position: relative;
  background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.5)),
    url('../img/hero-film.jpg') center/cover no-repeat;
  color: #fff;
  padding: 160px 20px 100px;
  text-align: center;
}

.contenuti-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contenuti-hero p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== GRID ===== */
.contenuti-grid {
  background: #000;
  padding: 80px 30px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
  justify-items: center;
}

/* ===== CARD ===== */
.content-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #1b1b1b;
}

.content-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.video-thumb {
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-info {
  padding: 15px;
  color: #fff;
  text-align: center;
}

.content-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.content-info p {
  font-size: 0.9rem;
  color: #aaa;
}

.btn-watch, .btn-info {
  display: inline-block;
  margin: 8px 4px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-watch {
  background: #e50914;
  color: #fff;
}

.btn-watch:hover {
  background: #b00610;
}

.btn-info {
  background: #222;
  color: #fff;
}

.btn-info:hover {
  background: #333;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.96);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  width: 100%;
  max-width: 950px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 70%);
}

.modal-title {
  position: absolute;
  bottom: 20px;
  left: 40px;
}

.modal-title h2 {
  font-size: 2rem;
}

.modal-title p {
  color: #ccc;
  margin-top: 5px;
}

.modal-body {
  padding: 30px 40px;
}

#closeModal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}

#closeModal:hover {
  color: #e50914;
}

/* ===== EPISODI SECTION ===== */
.episodi-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

#episodiList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.episodio-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.3s ease;
}

.episodio-item:hover {
  transform: scale(1.02);
  background: #1c1c1c;
}

.episodio-left {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  flex: 1;
}

.episodio-left img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.episodio-left span {
  color: #fff;
  font-size: 1.1rem;
}

.episodio-right {
  padding-right: 25px;
}

.btn-watch-small {
  background: #e50914;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-watch-small:hover {
  background: #b00610;
}

/* ===== Animazioni ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ===== BANNER RINNOVO ===== */
.renew-banner {
  background: linear-gradient(90deg, #e50914, #b00610);
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #000;
  animation: slideIn 0.6s ease;
}

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