.h5-study-ad {
  box-sizing: border-box;
  font:
    14px/1.4 system-ui,
    sans-serif;
  color: #30343b;
}
.h5-study-label {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  color: #69717b;
}
#h5-study-banner,
#h5-study-banner-content_secondary {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 20px auto;
}
.game-grid > [data-study-slot-host] {
  grid-column: 1 / -1;
}
.h5-study-creative {
  display: block;
  max-width: 100%;
  line-height: 0;
}
.h5-study-media {
  display: block;
  max-width: 100%;
  height: auto;
}
#h5-study-interstitial {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(0 0 0 / 82%);
  outline: none;
}
.h5-study-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: min(100%, 336px);
  max-height: calc(100dvh - 24px);
  padding: 8px;
  gap: 8px;
  background: #fff;
  border-radius: 4px;
}
.h5-study-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 12px;
}
#h5-study-interstitial .h5-study-media {
  width: auto;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}
.h5-study-ad button,
#h5-study-show-ad {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #bcc1c8;
  background: white;
  color: #30343b;
  font:
    13px system-ui,
    sans-serif;
}
.h5-study-ad button:disabled {
  cursor: default;
  opacity: 0.6;
}
#h5-study-show-ad {
  display: block;
  margin: 12px auto;
}
#h5-study-landing {
  box-sizing: border-box;
  max-width: 660px;
  margin: 10vh auto;
  padding: 32px;
  font:
    18px/1.6 system-ui,
    sans-serif;
  color: #142038;
  background: #eef4ff;
  border-radius: 18px;
}
.h5-study-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  background: #234dc8;
  font-weight: 700;
  text-decoration: none;
}

#h5-study-banner[data-ad-media-type="video"],
#h5-study-banner-content_secondary[data-ad-media-type="video"] {
  width: min(640px, calc(100% - 24px));
}
#h5-study-banner[data-ad-media-type="video"] > .h5-study-label,
#h5-study-banner-content_secondary[data-ad-media-type="video"] > .h5-study-label {
  margin: 0 0 6px 2px;
}
.h5-study-video-player {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  color: #f8fafc;
  background: #10131b;
  color-scheme: dark;
}
.h5-study-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.h5-study-video-stage video,
#h5-study-interstitial[data-ad-media-type="video"] video.h5-study-media {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  cursor: pointer;
}
.h5-study-video-state {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(10 13 20 / 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.h5-study-video-state svg {
  width: 30px;
  height: 30px;
}
.h5-study-video-player[data-playback-state="paused"] .h5-study-video-state,
.h5-study-video-player[data-playback-state="ended"] .h5-study-video-state {
  display: grid;
}
.h5-study-video-controls {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 6px;
  background: linear-gradient(transparent, rgb(0 0 0 / 80%));
}
.h5-study-video-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.h5-study-video-toolbar button {
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  transition: background 120ms ease;
}
.h5-study-video-toolbar button:hover {
  background: rgb(255 255 255 / 14%);
}
.h5-study-video-toolbar button:focus-visible,
.h5-study-video-cta:focus-visible,
.h5-study-video-controls input:focus-visible,
#h5-study-interstitial[data-ad-media-type="video"]
  [data-study-close]:focus-visible {
  outline: 2px solid #c4adff;
  outline-offset: 2px;
}
.h5-study-video-toolbar button svg {
  width: 20px;
  height: 20px;
}
.h5-study-video-toolbar [data-video-fullscreen] {
  margin-left: auto;
}
.h5-study-video-controls input {
  display: block;
  min-width: 0;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  accent-color: #c4adff;
  cursor: pointer;
}
.h5-study-video-controls [data-video-seek] {
  width: 100%;
}
.h5-study-video-controls [data-video-volume] {
  flex: 0 1 64px;
  width: 64px;
}
.h5-study-video-controls input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #c4adff var(--video-progress, 0%),
    rgb(255 255 255 / 30%) var(--video-progress, 0%)
  );
}
.h5-study-video-controls input::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgb(255 255 255 / 30%);
}
.h5-study-video-controls input::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: #c4adff;
}
.h5-study-video-controls input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #fff;
}
.h5-study-video-controls input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.h5-study-video-controls input:disabled {
  cursor: default;
  opacity: 0.45;
}
.h5-study-video-clock {
  flex: 0 0 auto;
  margin: 0 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h5-study-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 10px 14px;
  border-top: 1px solid rgb(255 255 255 / 7%);
}
.h5-study-video-caption {
  color: #a7adbd;
  font-size: 12px;
}
.h5-study-video-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  color: #20172f !important;
  background: #c4adff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.h5-study-video-cta:hover {
  background: #d4c4ff;
}
.h5-study-video-cta svg {
  width: 16px;
  height: 16px;
}
#h5-study-interstitial[data-ad-media-type="video"] {
  background: rgb(6 8 14 / 88%);
}
#h5-study-interstitial[data-ad-media-type="video"] .h5-study-card {
  width: min(100%, 720px);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  color: #fff;
  background: #10131b;
  box-shadow: 0 24px 100px rgb(0 0 0 / 50%);
}
#h5-study-interstitial[data-ad-media-type="video"] .h5-study-topline {
  box-sizing: border-box;
  min-height: 52px;
  padding: 8px 14px;
}
#h5-study-interstitial[data-ad-media-type="video"] .h5-study-label {
  padding: 4px 6px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 5px;
  color: #b7becd;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#h5-study-interstitial[data-ad-media-type="video"] [data-study-close] {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  color: #e0e4ed;
  background: rgb(255 255 255 / 5%);
  font-size: 11px;
}
#h5-study-interstitial[data-ad-media-type="video"] .h5-study-video-player {
  border-radius: 0;
}
#h5-study-interstitial[data-ad-media-type="video"] .h5-study-video-stage {
  max-height: max(96px, calc(100dvh - 156px));
}
.h5-study-video-player:fullscreen {
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
}
.h5-study-video-player:fullscreen .h5-study-video-stage {
  flex: 1;
  min-height: 0;
  max-height: none !important;
  aspect-ratio: auto;
}
@media (max-width: 380px) {
  .h5-study-video-controls [data-video-volume] {
    display: none;
  }
  .h5-study-video-footer {
    gap: 8px;
    padding-inline: 10px;
  }
  .h5-study-video-caption {
    font-size: 11px;
  }
}
@media (pointer: coarse) {
  .h5-study-video-toolbar button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h5-study-video-toolbar button {
    transition: none;
  }
}

/* h5-study/6 placement formats */
.h5-study-host-relative {
  position: relative;
}
.h5-study-ad .h5-study-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #bcc1c8;
  background: #fff;
  color: #30343b;
}
.h5-study-ad .h5-study-chevron svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.h5-study-label-corner {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  padding: 0 4px;
  border-radius: 3px;
  background: rgb(255 255 255 / 85%);
  pointer-events: none;
}
.h5-study-fixed-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
}
#h5-study-anchor {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2147482000;
  display: flex;
  justify-content: center;
  padding: 4px 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1px 6px rgb(0 0 0 / 18%);
}
#h5-study-anchor[data-position="top"] {
  top: 0;
}
#h5-study-anchor[data-position="bottom"] {
  bottom: 0;
}
#h5-study-anchor .h5-study-fixed-card {
  box-shadow: none;
  gap: 8px;
  padding: 0 36px 0 0;
}
#h5-study-anchor .h5-study-media {
  max-width: min(728px, calc(100vw - 48px));
}
#h5-study-anchor .h5-study-chevron {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}
#h5-study-side_rail-left,
#h5-study-side_rail-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2147481000;
}
#h5-study-side_rail-left {
  left: 8px;
}
#h5-study-side_rail-right {
  right: 8px;
}
#h5-study-side_rail-left .h5-study-fixed-card,
#h5-study-side_rail-right .h5-study-fixed-card {
  flex-direction: column;
  padding-bottom: 32px;
}
#h5-study-side_rail-left .h5-study-chevron,
#h5-study-side_rail-right .h5-study-chevron {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}
#h5-study-floating_video {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147481500;
  width: min(320px, 60vw);
  max-width: calc(100vw - 24px);
}
.h5-study-floating-card {
  width: 100%;
  padding: 6px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 30%);
}
.h5-study-floating-card .h5-study-video-player {
  border-radius: 8px;
}
.h5-study-player #h5-study-preroll,
#h5-study-preroll,
#h5-study-in_game_video,
#h5-study-rewarded,
#h5-study-pause_overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgb(10 12 20 / 92%);
  outline: none;
}
#h5-study-preroll .h5-study-card,
#h5-study-in_game_video .h5-study-card,
#h5-study-rewarded .h5-study-card {
  width: min(100%, 640px);
  max-height: 100%;
}
#h5-study-pause_overlay .h5-study-card {
  width: min(100%, 324px);
}
#h5-study-pause_overlay .h5-study-media {
  width: 100%;
  height: auto;
}
.h5-study-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px auto;
  padding: 10px 14px;
  max-width: 940px;
  background: #fff7e0;
  border: 1px solid #f0d890;
  border-radius: 8px;
}
.h5-study-offer p {
  margin: 0;
  flex: 1 1 240px;
}
.h5-study-offer-actions {
  display: flex;
  gap: 8px;
}
#h5-study-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px auto;
  font:
    13px system-ui,
    sans-serif;
}
#h5-study-controls select {
  padding: 4px 6px;
}
@media (max-width: 480px) {
  #h5-study-floating_video {
    width: 60vw;
  }
}
