/**
 * SANSAT Player — Mobile Vertical EPG Guide Styles (epg-movil-vertical.css)
 * Exact 1:1 implementation of epg.html from sansat-mobile.zip.
 * Strictly scoped to html[data-device="mobile"] .mv-epg.
 */

html[data-device="mobile"] .mv-epg .chips {
  padding-top: 16px;
}

html[data-device="mobile"] .mv-epg .wrap {
  position: relative;
  margin: 16px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html[data-device="mobile"] .mv-epg .wrap::-webkit-scrollbar {
  display: none;
}

html[data-device="mobile"] .mv-epg .in {
  position: relative;
  min-width: 100%;
}

html[data-device="mobile"] .mv-epg .hd {
  position: relative;
  height: 34px;
  margin-left: 92px;
  border-bottom: 1px solid var(--line);
}

html[data-device="mobile"] .mv-epg .h {
  position: absolute;
  top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mut);
  padding-left: 6px;
  border-left: 1px solid var(--line);
  height: 26px;
}

html[data-device="mobile"] .mv-epg .row {
  position: relative;
  display: flex;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

html[data-device="mobile"] .mv-epg .cn {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 92px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(90deg, #060607 80%, rgba(6, 6, 7, .92));
  border-right: 1px solid var(--line);
  cursor: pointer;
}

html[data-device="mobile"] .mv-epg .cn img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #232327;
  object-fit: cover;
}

html[data-device="mobile"] .mv-epg .cn span {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-device="mobile"] .mv-epg .tl {
  position: relative;
  flex: 1;
}

html[data-device="mobile"] .mv-epg .b {
  position: absolute;
  top: 7px;
  height: 56px;
  border-radius: 14px;
  padding: 9px 0;
  overflow: clip;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

html[data-device="mobile"] .mv-epg .b:active {
  transform: scale(0.98);
}

html[data-device="mobile"] .mv-epg .b b,
html[data-device="mobile"] .mv-epg .b small {
  position: sticky;
  left: 104px;
  display: block;
  width: max-content;
  max-width: calc(100% - 22px);
  margin-left: 11px;
  margin-right: 11px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

html[data-device="mobile"] .mv-epg .b small {
  margin-top: 3px;
  font-size: 11px;
  color: var(--mut);
}

html[data-device="mobile"] .mv-epg .b.now {
  background: linear-gradient(160deg, #ff2a36, #a50d16);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 10px 22px -10px rgba(229, 9, 20, .9);
}

html[data-device="mobile"] .mv-epg .b.now small {
  color: rgba(255, 255, 255, .85);
}

html[data-device="mobile"] .mv-epg .b.sel {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

html[data-device="mobile"] .mv-epg .nl {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red2);
  z-index: 3;
  box-shadow: 0 0 10px var(--red2);
  pointer-events: none;
}

html[data-device="mobile"] .mv-epg .nl::before {
  content: attr(data-now-label);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

html[data-device="mobile"] .mv-epg .dt {
  margin: 20px 20px 0;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
}

html[data-device="mobile"] .mv-epg .dt .t {
  display: flex;
  align-items: center;
  gap: 14px;
}

html[data-device="mobile"] .mv-epg .dt img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #232327;
  object-fit: cover;
  flex: none;
}

html[data-device="mobile"] .mv-epg .dt h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

html[data-device="mobile"] .mv-epg .dt small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--mut);
}

html[data-device="mobile"] .mv-epg .dt p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

html[data-device="mobile"] .mv-epg .bt {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

html[data-device="mobile"] .mv-epg .bn {
  flex: 1;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease;
}

html[data-device="mobile"] .mv-epg .bn:active {
  transform: scale(0.96);
}

html[data-device="mobile"] .mv-epg .bn svg {
  width: 18px;
  height: 18px;
}

html[data-device="mobile"] .mv-epg .bn.p {
  background: linear-gradient(180deg, #ff2a36, #c40710);
  box-shadow: 0 10px 22px -8px rgba(229, 9, 20, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}

html[data-device="mobile"] .mv-epg .bn.p svg {
  fill: #fff;
  stroke: none;
}

html[data-device="mobile"] .mv-epg .bn.s {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
}
