/* EN PROGRAM — PC grid + mobile coverflow (m.krakenice.com/en/ipStar/) */
body.lang-en .page-ipstar-en .seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* PC: banner flush against OUR PROGRAMS (no white strip) */
body.lang-en .page-ipstar-en #ipstar-con.ipstar-hero {
  margin: 0;
  background: #ededed;
}

body.lang-en .page-ipstar-en #ipstar-con .ipstar-content {
  margin: 0;
  background: #ededed;
}

body.lang-en .page-ipstar-en #ipstar-con .ipstar-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc {
  margin-top: 0;
}

/* —— PC programs —— */
body.lang-en .page-ipstar-en .ipstar-programs-pc .title-label {
  margin: 0 auto 30px;
  text-align: center;
  line-height: 1.8;
  color: #424245;
  max-width: 1100px;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .ourTba-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .ourTba {
  padding: 5px 14px;
  background-color: #292829;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .ourTba-active {
  background-color: #c7f6fb;
  color: #333;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .programs-grid-wrap {
  margin-top: 40px;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc #swiperList {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .one-slide {
  width: 375px;
  margin-right: 20px;
  height: 500px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 18px;
  background: #e8e8e8;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .one-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
  transition: transform 0.35s ease;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .one-slide:hover img {
  transform: scale(1.04);
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .programs-inner {
  width: 1366px;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 24px 80px;
  box-sizing: border-box;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .bigtitle {
  text-align: center;
  font-size: 40px;
  margin: 0 0 28px;
  font-weight: 600;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc.main-bc,
body.lang-en .page-ipstar-en .ipstar-programs-m.main-bc {
  background: #ededed;
}

body.lang-en .page-ipstar-en .ipstar-programs-m {
  display: none;
}

body.lang-en .page-ipstar-en .ipstar-programs-pc .bigtitle::after,
body.lang-en .page-ipstar-en .ipstar-programs-m .bigtitle::after {
  display: none !important;
}

@media (max-width: 767px) {
  body.lang-en .page-ipstar-en .ipstar-programs-pc {
    display: none !important;
  }

  body.lang-en .page-ipstar-en .ipstar-programs-m {
    display: block;
    /* padding（非 margin）拉开与 banner 的距离，避免外边距塌陷露出白底 */
    padding: 6vw 0 12vw !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: #ededed !important;
  }

  /* EN mobile banner: taller marquee strip, flush against OUR PROGRAMS */
  body.lang-en .page-ipstar-en #ipstar-con.ipstar-hero {
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: #ededed;
    box-shadow: none;
  }

  body.lang-en .page-ipstar-en #ipstar-con .ipstar-content {
    height: clamp(200px, 52vw, 280px) !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100%;
    margin: 0;
    background: #ededed;
  }

  body.lang-en .page-ipstar-en #ipstar-con .ipstar-content .swiper-wrapper {
    height: 100% !important;
    align-items: stretch;
  }

  body.lang-en .page-ipstar-en #ipstar-con .ipstar-content .swiper-slide {
    width: auto !important;
    height: 100% !important;
  }

  body.lang-en .page-ipstar-en #ipstar-con .ipstar-content .swiper-slide img {
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  body.lang-en .page-ipstar-en .ipstar-programs-m .bigtitle {
    text-align: center;
    font-size: 6vw;
    font-weight: 700;
    margin: 0;
    padding: 0 0 2vw;
    letter-spacing: 0.02em;
  }

  body.lang-en .page-ipstar-en .ipstar-programs-m .title-label {
    padding: 4vw 5vw;
    text-align: justify;
    font-size: 3.35vw;
    line-height: 1.7;
    color: #424245;
    margin: 0;
  }

  body.lang-en .page-ipstar-en .ipxq-dy {
    margin-top: 3vw;
    margin-bottom: 10vw;
  }

  body.lang-en .page-ipstar-en .ipxq-dy ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body.lang-en .page-ipstar-en .ipxq-dy li {
    padding: 1vw 2vw;
    background-color: #dedede;
    margin-right: 5vw;
    cursor: pointer;
    border-radius: 3vw;
    font-weight: 700;
    font-size: 3.6vw;
    line-height: 1.4;
    user-select: none;
  }

  body.lang-en .page-ipstar-en .ipxq-dy li:last-child {
    margin-right: 0;
  }

  body.lang-en .page-ipstar-en .ipxq-dy li.active {
    background-color: #ffa924;
  }

  body.lang-en .page-ipstar-en .en-certify {
    position: relative;
    width: 100vw;
    margin: 0 auto;
    overflow: hidden;
  }

  body.lang-en .page-ipstar-en .en-certify .swiper-container {
    position: relative;
    z-index: 1;
    padding-bottom: 8vw;
  }

  body.lang-en .page-ipstar-en .en-certify .swiper-slide {
    width: 78vw;
    height: 110vw; /* ~3:4 poster, unified size */
    overflow: hidden;
    border-radius: 5.5vw;
    background: #e8e8e8;
    box-sizing: border-box;
  }

  body.lang-en .page-ipstar-en .en-certify .swiper-slide > a {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  body.lang-en .page-ipstar-en .en-certify .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5.5vw;
    pointer-events: none;
  }

  /* Override ipstar.css mobile rule that hides all .arrow-left/.arrow-right */
  body.lang-en .page-ipstar-en .en-certify .arrow-left,
  body.lang-en .page-ipstar-en .en-certify .arrow-right {
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 11vw;
    height: 11vw;
    max-width: 48px;
    max-height: 48px;
    /* above coverflow slides (z-index up to 999) */
    z-index: 10050;
    border: 0;
    padding: 0;
    margin: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  body.lang-en .page-ipstar-en .en-certify .arrow-left {
    left: 2vw;
    background-image: url(/skin/mobile_en/images/icon1.png);
  }

  body.lang-en .page-ipstar-en .en-certify .arrow-right {
    right: 2vw;
    background-image: url(/skin/mobile_en/images/icon2.png);
  }
}
