@import url('https://solargentinotv.com.ar/assets/fonts/NetflixSans/netflixsans.css');

/* ===============================
   BASE / TOKENS
================================ */
:root {
  --bg: #141414;
  --panel: #242424;
  --card: #242424;
  --stroke: #4d4d4d;
  --text: #f2f2f2;
  --muted: #b5b5b5;

  --radius: .3em;
  --container: 1200px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;

  --header-blur: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Agregado: clase .web-app para body */
body.web-app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Netflix Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.35;
}

/* Media responsive by default */
body.web-app img,
body.web-app video,
body.web-app svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inline icons override if needed */
body.web-app svg {
  width: 1em;
  height: 1em;
}

/* Optional text helpers */
body.web-app p.synopsis {
  margin-top: 1.5em;
  font-size: 15px;
}

/* ===============================
   LAYOUT CONTAINER
================================ */
body.web-app .wrap,
body.web-app main {
  width: min(100%, calc(var(--container) + 36px));
  margin-inline: auto;
  padding-inline: 18px;
}

/* ===============================
   HEADER
================================ */
body.web-app header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, .90);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid var(--stroke);
}

body.web-app .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

body.web-app .logo {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

body.web-app .nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

body.web-app .nav span {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
}

body.web-app span.nav-link {
  cursor: pointer;
}

body.web-app .nav span:hover {
  color: var(--text);
}

body.web-app .nav .nav-link.active {
  color: #fff;
}

body.web-app .search {
  flex: 1;
  position: relative;
  min-width: 190px;
}

body.web-app #searchInput {
  width: 100%;
  padding: 10px 14px;
  padding-right: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
}

body.web-app #searchInput::placeholder {
  color: #fff;
  opacity: .85;
}

body.web-app #searchInput:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

body.web-app .searchTab {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

body.web-app .search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color .3s ease;
}

body.web-app #searchInput:focus+.searchTab .search-icon {
  color: #fff;
}

/* ===============================
   MAIN
================================ */
body.web-app main {
  padding-block: 18px;
}

/* ===============================
   HERO (IMAGE + TEXT)
================================ */
body.web-app .hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0px;
  background: #000;
}

body.web-app .hero-bg {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}

body.web-app .hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, #181818 0%, rgba(24, 24, 24, .70) 30%, rgba(24, 24, 24, 0) 80%);
  pointer-events: none;
  top: 16.85em;
}

body.web-app .hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
}

body.web-app .hero-title {
  margin: 0 0 .4em;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: #fff;
}

body.web-app .hero-film-type {
  font-size: clamp(.95rem, 1.8vw, 1.13rem);
  font-weight: 600;
  color: #f2f2f2;
  margin-bottom: .5em;
  margin-top: -0.6em !important;
}

body.web-app .hero-synopsis {
  max-width: 32rem;
  font-size: clamp(.95rem, 1.7vw, 1.06rem);
  line-height: 1.25;
  margin: 0 0 1em;
  color: #fff;
}

body.web-app p {
  font-weight: 300;
}

body.web-app .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===============================
   BUTTONS
================================ */
body.web-app .btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

body.web-app .btn.secondary {
  pointer-events: none !important;
}

body.web-app .btn.primary {
  background: #fff;
  color: #000;
  font-weight: 700;
}

body.web-app .btn.secondary[disabled],
body.web-app .btn.secondary:disabled {
  background: #6d6d6e66 !important;
  cursor: default;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

/* ===============================
   FILTERS
================================ */
body.web-app .filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  margin-top: 2em;
}

body.web-app .filters button {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

body.web-app .filters .active {
  background: #fff;
  color: #000;
}

/* ===============================
   GRID + CARDS
================================ */
body.web-app .grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

body.web-app .card {
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s;
  position: relative;
  will-change: transform;
}

body.web-app .card:hover {
  transform: scale(1.06);
  z-index: 10;
}

body.web-app .media {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

body.web-app .media img,
body.web-app .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease-in-out;
}

body.web-app .media video {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

body.web-app .card .media img {
  opacity: 1;
  pointer-events: none;
}

body.web-app .card:hover .media img {
  opacity: 0;
}

body.web-app .card:hover .media video {
  opacity: 1;
  pointer-events: auto;
}

body.web-app .sound-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  z-index: 3;
  opacity: 0;
  cursor: pointer;
  border-radius: 50%;
  background-color: rgb(42 42 42 / 60%) !important;
  border: 2px solid #fff !important;
  transition: opacity .2s;
  display: grid;
  place-items: center;
}

body.web-app .card:hover .sound-btn {
  opacity: .4 !important;
}

body.web-app .sound-btn:hover {
  opacity: 1 !important;
}

body.web-app .sound-btn img {
  width: 27px;
  height: 27px;
  filter: brightness(0) saturate(100%) invert(97%) sepia(98%) saturate(40%) hue-rotate(99deg) brightness(108%) contrast(100%);
}

body.web-app .meta {
  padding: 14px;
}

body.web-app .meta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

body.web-app .meta span {
  font-size: .75rem;
  color: var(--muted);
}

body.web-app span.film-type {
  position: relative;
  font-size: 0.9em;
  color: var(--text);
  display: block;
  margin-bottom: -1.2em;
  margin-top: -0.21em;
  font-weight: 500;
}

/* ===============================
   BMT MUTE BUTTON
================================ */
body.web-app .bmt-mute-btn {
  position: absolute;
  bottom: .84em;
  right: .9em;
  background: rgba(0, 0, 0, .6) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  padding: 8px !important;
  z-index: 3;
  cursor: pointer !important;
  transition: opacity .2s !important;
  opacity: .4 !important;
  width: 40px;
  height: 40px;
  display: none !important;
}

body.web-app .bmt-mute-btn:hover {
  opacity: 1 !important;
}

body.web-app .bmt-mute-btn.mute-visible {
  display: grid !important;
  place-items: center;
}

body.web-app #bmtMuteIcon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(269deg) brightness(105%) contrast(102%) !important;
  width: 1.5em;
  height: 1.5em;
}

/* ===============================
   LIVE / VIVO BUTTON
================================ */
body.web-app .vivo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 2px solid #f00;
  color: #f00;
  font-weight: 600;
  transition: all .3s ease;
}

body.web-app .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

body.web-app .vivo-btn:hover {
  background: #f00;
  color: #fff;
}

body.web-app .vivo-btn:hover .dot {
  background: #fff;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 900px) {
  body.web-app .wrap {
    gap: 12px;
  }

  body.web-app .search {
    min-width: 160px;
  }

  body.web-app .grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  body.web-app .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 10px;
  }

  body.web-app .logo {
    text-align: center;
    font-size: 1.25rem;
  }

  body.web-app .nav {
    justify-content: center;
    gap: 12px;
  }

  body.web-app .search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.web-app #searchInput {
    padding: 10px 12px;
    padding-right: 44px;
    font-size: 1rem;
  }

  /* HERO: text below image */
  body.web-app .hero::before {
    height: 0;
  }

  body.web-app .hero-info {
    position: relative;
    background: #181818;
    padding: 18px;
  }

  body.web-app img,
  body.web-app video {
    border-radius: 0 !important;
  }

  body.web-app .hero-media {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  body.web-app .bmt-mute-btn {
    z-index: 5 !important;
  }

  body.web-app .hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(to top, #ff0000 0%, rgba(24, 24, 24, .70) 30%, rgba(24, 24, 24, 0) 80%);
    pointer-events: none;
    top: 37em;
  }

  body.web-app .hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 100%;
    background: linear-gradient(to top, #181818 0%, rgba(24, 24, 24, .70) 30%, rgba(24, 24, 24, 0) 80%);
    pointer-events: none;
    top: em;
  }

  body.web-app .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  body.web-app .hero-actions .btn {
    width: 100%;
    font-size: 1rem;
  }

  /* Avoid hover scale on touch */
  body.web-app .card:hover {
    transform: none;
  }
}

@media (max-width: 420px) {

  body.web-app .wrap,
  body.web-app main {
    padding-inline: 14px;
  }

  body.web-app .nav span {
    font-size: .82rem;
  }

  body.web-app .grid {
    grid-template-columns: 1fr;
  }

  body.web-app .meta h3 {
    font-size: 16px;
  }
}

@media (max-height: 600px) and (max-width: 900px) {
  body.web-app .hero-info {
    padding: 16px;
  }

  body.web-app .hero-synopsis {
    max-width: 100%;
  }
}

/* Shadow y media */
body.web-app .media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* IMAGEN */
body.web-app .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity .3s;
}

/* VIDEO */
body.web-app .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .3s;
}

/* Sombra en overlay de video */
body.web-app .card-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #242424, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 3;
  pointer-events: none;
}

/* Activos en hover */
body.web-app .card-video.active {
  opacity: 1;
}

body.web-app .card-video.active::after {
  opacity: 1;
}

/* Proximamente card */
body.web-app .proximamente-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #f00;
  padding: 10px 0;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 5;
}

/* ===============================
   PROXIMAMENTE (CARD FOOTER)
================================ */
body.web-app .card {
  position: relative;
  overflow: hidden;
  /* evita que el hover rompa el badge */
}

/* Contenedor */
body.web-app .proximamente-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #f00;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 6;
}

/* Texto */
body.web-app .proximamente-span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

/* Sombra suave para leer sobre video/imagen */
body.web-app .proximamente-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #181818cc, rgba(0, 0, 0, .15));
  z-index: -1;
}

/* Responsive */
@media (max-width: 480px) {
  body.web-app .proximamente-span {
    font-size: 0.85rem;
  }

  body.web-app .proximamente-card {
    padding: 8px;
  }
}