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

.hidden { display: none; }

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0,0,0,0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: #e50914;
  font-size: 22px;
  font-weight: bold;
}

input {
  padding: 10px;
  width: clamp(160px, 40vw, 260px);
  border: none;
  border-radius: 4px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 20px;
}

/* CARD */
.card {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  background: #222;
}

.card-info {
  padding: 8px;
}

/* HERO (BACKGROUND ORA QUI) */
.hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

/* OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 25%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0.1)
  );
  z-index: 1;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

.hero-info h1 {
  font-size: 34px;
}

.hero-info p {
  color: #ccc;
  max-width: 600px;
}

/* BUTTON */
.btn {
  margin-top: 10px;
  padding: 10px 14px;
  background: #e50914;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* EPISODI */
.hero-episodes {
  background: #141414;
  padding: 40px 24px;
}

.episodes-wrapper {
  position: relative;
  padding: 0 40px;
}

.episodes {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

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

/* EPISODE */
.episode {
  flex: 0 0 240px;
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
}

.episode img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  background: #222;
}

.episode h4 {
  font-size: 13px;
  margin: 6px 8px;
}

.episode-desc {
  font-size: 11px;
  color: #aaa;
  margin: 0 8px 10px;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 70px;
  cursor: pointer;
}

.arrow:hover {
  background: rgba(0,0,0,0.85);
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

/* EMBED CODE */
.embed-code {
  max-width: 600px;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.75);
  color: #9fe;
  font-size: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}
