/* ============================================================================
   SANSAT PLAYER — Mobile Vertical VOD / Películas Styles (vod-movil-vertical.css)
   Strictly scoped to html[data-device="mobile"]
   1:1 match with sansat-mobile/movies.html & movie-detail.html
   ============================================================================ */

/* --- MOVIES CATALOG (movies.html) --- */
html[data-device="mobile"] .mv-vod-page .count {
  margin: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--mut);
}

html[data-device="mobile"] .mv-vod-page .count b {
  color: #fff;
  font-weight: 700;
}

html[data-device="mobile"] .mv-vod-page .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  padding: 14px 20px 0;
}

html[data-device="mobile"] .mv-vod-page .p {
  color: #fff;
  text-decoration: none;
  display: block;
  cursor: pointer;
  min-width: 0;
}

html[data-device="mobile"] .mv-vod-page .p:active .th {
  transform: scale(0.97);
}

html[data-device="mobile"] .mv-vod-page .p .th {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141418;
  transition: transform 0.14s ease;
}

html[data-device="mobile"] .mv-vod-page .p .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-device="mobile"] .mv-vod-page .p .th::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, .55));
  pointer-events: none;
}

html[data-device="mobile"] .mv-vod-page .p .heart {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

html[data-device="mobile"][dir="rtl"] .mv-vod-page .p .heart {
  right: auto;
  left: 10px;
}

html[data-device="mobile"] .mv-vod-page .p .heart svg {
  width: 16px;
  height: 16px;
}

html[data-device="mobile"] .mv-vod-page .p .heart.is-fav {
  background: rgba(229, 9, 20, .35);
  border-color: rgba(255, 59, 71, .7);
  color: #ff3b47;
}

html[data-device="mobile"] .mv-vod-page .p .heart.is-fav svg {
  fill: currentColor;
}

html[data-device="mobile"] .mv-vod-page .p b {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-device="mobile"] .mv-vod-page .p .th .new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ff2a36, #c40710);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}

html[data-device="mobile"][dir="rtl"] .mv-vod-page .p .th .new {
  left: auto;
  right: 10px;
}

/* --- MOVIE DETAIL (movie-detail.html) --- */
html[data-device="mobile"] .mv-movie-detail-page.mv-app::before {
  display: none;
}

html[data-device="mobile"] .mv-movie-detail-page .bd {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 520px;
  overflow: hidden;
  z-index: 0;
}

html[data-device="mobile"] .mv-movie-detail-page .bd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  filter: blur(2px) brightness(.62);
  transform: scale(1.08);
}

html[data-device="mobile"] .mv-movie-detail-page .bd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 7, .55) 0%, rgba(6, 6, 7, .1) 30%, rgba(6, 6, 7, .8) 78%, #060607 100%),
              radial-gradient(closest-side at 50% 100%, rgba(229, 9, 20, .28), rgba(229, 9, 20, 0));
}

html[data-device="mobile"] .mv-movie-detail-page > header {
  justify-content: space-between;
}

html[data-device="mobile"] .mv-movie-detail-page .tools {
  display: flex;
  gap: 10px;
}

html[data-device="mobile"] .mv-movie-detail-page .ib.rate {
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  width: 46px;
  border-radius: 16px;
  height: 46px;
}

html[data-device="mobile"] .mv-movie-detail-page .ib.rate svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

html[data-device="mobile"] .mv-movie-detail-page .ib.is-fav {
  background: rgba(229, 9, 20, .28);
  border-color: rgba(255, 59, 71, .7);
  color: #ff3b47;
}

html[data-device="mobile"] .mv-movie-detail-page .ib.is-fav svg {
  fill: currentColor;
}

html[data-device="mobile"] .mv-movie-detail-page .main {
  position: relative;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

html[data-device="mobile"] .mv-movie-detail-page .poster {
  width: 176px;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(229, 9, 20, .5);
  background: #141418;
}

html[data-device="mobile"] .mv-movie-detail-page .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-device="mobile"] .mv-movie-detail-page .main h1 {
  margin-top: 22px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.15;
}

html[data-device="mobile"] .mv-movie-detail-page .meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .75);
}

html[data-device="mobile"] .mv-movie-detail-page .meta em {
  font-style: normal;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 11.5px;
  color: #fff;
}

html[data-device="mobile"] .mv-movie-detail-page .meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}

html[data-device="mobile"] .mv-movie-detail-page .btns {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[data-device="mobile"] .mv-movie-detail-page .btn {
  height: 54px;
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.14s ease;
}

html[data-device="mobile"] .mv-movie-detail-page .btn:active {
  transform: scale(0.98);
}

html[data-device="mobile"] .mv-movie-detail-page .btn svg {
  width: 19px;
  height: 19px;
}

html[data-device="mobile"] .mv-movie-detail-page .btn.play {
  background: linear-gradient(180deg, #ff2a36, #c40710);
  box-shadow: 0 12px 26px -8px rgba(229, 9, 20, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}

html[data-device="mobile"] .mv-movie-detail-page .btn.play svg {
  fill: #fff;
  stroke: none;
}

html[data-device="mobile"] .mv-movie-detail-page .btn.dl {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-device="mobile"] .mv-movie-detail-page .syn {
  position: relative;
  margin: 26px 20px 0;
}

html[data-device="mobile"] .mv-movie-detail-page .syn h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 10px;
}

html[data-device="mobile"] .mv-movie-detail-page .syn p {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .78);
}

/* Landscape Mode: 4 posters across per row (100% responsive) */
@media screen and (orientation: landscape) {
  html[data-device="mobile"] .mv-vod-page .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px 12px !important;
    padding: 14px 20px 0 !important;
  }
}
