.pod-player-shell,
.player-screen {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.pod-player-shell .plyr,
.player-screen .plyr {
  --plyr-color-main: var(--accent-2, #2aabee);
  --plyr-video-control-color: #e6f1f6;
  --plyr-video-control-color-hover: var(--line, #0a1f2a);
  --plyr-video-control-background-hover: var(--accent-2, #2aabee);
  --plyr-control-radius: 0;
  --plyr-menu-radius: 0;
  --plyr-tooltip-radius: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #04141d;
  color: #e6f1f6;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
  position: relative;
}

.pod-player-shell .live-pill,
.player-screen .player-badge {
  line-height: 1;
}

.pod-player-shell .plyr__video-wrapper,
.player-screen .plyr__video-wrapper {
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  padding-bottom: 0 !important;
  background: #04141d;
  overflow: hidden;
}

.pod-player-shell .plyr video,
.player-screen .plyr video,
.player-screen video[data-podpivo-player] {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #04141d;
}

.pod-player-shell .plyr__controls,
.player-screen .plyr__controls {
  border-top: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.62) 38%, rgba(5, 5, 5, 0.86));
  padding: 36px 14px 9px;
}

.pod-player-shell .plyr__control,
.player-screen .plyr__control {
  border: 2px solid transparent;
  font-weight: 800;
}

.pod-player-shell .plyr__control:hover,
.player-screen .plyr__control:hover {
  border-color: var(--line, #0a1f2a);
}

.pod-player-shell .plyr__progress input[type='range'],
.player-screen .plyr__progress input[type='range'],
.pod-player-shell .plyr__volume input[type='range'],
.player-screen .plyr__volume input[type='range'] {
  color: var(--accent-2, #2aabee);
}

.pod-player-shell .plyr__menu__container,
.player-screen .plyr__menu__container {
  border: 2px solid var(--line, #0a1f2a);
  box-shadow: 5px 5px 0 var(--line, #0a1f2a);
  background: var(--surface, #f8fbfd);
  color: var(--ink, #0a1f2a);
}

.pod-player-shell .plyr__poster,
.player-screen .plyr__poster {
  background-size: cover;
}

.bookmaker-overlay {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 8;
  width: min(310px, calc(100% - 128px));
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 36px 8px 8px;
  border: 2px solid var(--line, #0a1f2a);
  background: #04141d;
  color: #e6f1f6;
  box-shadow: 6px 6px 0 var(--line, #0a1f2a);
  line-height: 1;
}

.bookmaker-overlay.is-hidden {
  display: none;
}

.bookmaker-art {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid #f8fbfd;
  background:
    linear-gradient(135deg, #ef5f4b 0 35%, transparent 35%),
    linear-gradient(315deg, #ffcb05 0 36%, transparent 36%),
    #2aabee;
  color: #0a1f2a;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.bookmaker-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bookmaker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bookmaker-cta,
.bookmaker-close {
  min-height: 32px;
  border: 2px solid var(--line, #0a1f2a);
  background: var(--accent-2, #2aabee);
  color: #fffaf4;
  box-shadow: 3px 3px 0 var(--line, #0a1f2a);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bookmaker-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  text-decoration: none;
  white-space: nowrap;
}

.bookmaker-close {
  position: absolute;
  top: 7px;
  right: 8px;
  min-height: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e6f1f6;
  box-shadow: none;
  font-size: 14px;
  line-height: 1;
  opacity: 0.78;
  cursor: pointer;
  transition: color 0.14s ease, opacity 0.14s ease, transform 0.14s ease;
}

.bookmaker-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line, #0a1f2a);
}

.bookmaker-close:hover {
  color: var(--accent-2, #2aabee);
  opacity: 1;
  transform: scale(1.12);
}

.bookmaker-close:active {
  transform: scale(0.92);
}

.plyr--fullscreen-active .bookmaker-overlay,
.plyr:fullscreen .bookmaker-overlay,
.player-screen:fullscreen .bookmaker-overlay {
  width: min(380px, calc(100% - 36px));
  min-height: 76px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 42px 10px 10px;
  box-shadow: 7px 7px 0 var(--line, #0a1f2a);
}

.plyr--fullscreen-active .bookmaker-art,
.plyr:fullscreen .bookmaker-art,
.player-screen:fullscreen .bookmaker-art {
  width: 60px;
  height: 56px;
  font-size: 20px;
}

.plyr--fullscreen-active .bookmaker-title,
.plyr:fullscreen .bookmaker-title,
.player-screen:fullscreen .bookmaker-title {
  font-size: clamp(28px, 2.6vw, 36px);
}

.player-ad-popover {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 5, 0.32);
}

.player-ad-popover-card {
  position: relative;
  width: min(420px, 100%);
  border: 2px solid var(--line, #0a1f2a);
  background: var(--surface, #f8fbfd);
  color: var(--ink, #0a1f2a);
  box-shadow: 8px 8px 0 var(--line, #0a1f2a);
  padding: 18px;
}

.player-ad-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 12px;
}

.player-ad-popover-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 2px solid var(--line, #0a1f2a);
  background: var(--accent-2, #2aabee);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-ad-popover-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
}

.player-ad-popover-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ink, #0a1f2a);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  opacity: 0.72;
  transition: color 0.14s ease, opacity 0.14s ease, transform 0.14s ease;
}

.player-ad-popover-close:hover {
  color: var(--accent, #ef5f4b);
  opacity: 1;
  transform: scale(1.12);
}

.player-ad-popover-close:active {
  transform: scale(0.92);
}

.player-ad-popover-copy {
  color: var(--muted-text, #5b6e78);
  font-size: 14px;
  line-height: 1.45;
}

.player-ad-popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.player-ad-popover-premium,
.player-ad-popover-keep {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line, #0a1f2a);
  box-shadow: 4px 4px 0 var(--line, #0a1f2a);
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.player-ad-popover-premium {
  background: var(--accent-2, #2aabee);
  color: var(--line, #0a1f2a);
}

.player-ad-popover-keep {
  background: var(--surface, #f8fbfd);
  color: var(--ink, #0a1f2a);
}

.player-ad-popover-premium:hover,
.player-ad-popover-keep:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line, #0a1f2a);
}

.player-ad-popover-premium:active,
.player-ad-popover-keep:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--line, #0a1f2a);
}

html.theme-dark .bookmaker-overlay,
body.theme-ink .bookmaker-overlay {
  border-color: #02101a;
  box-shadow: 6px 6px 0 #02101a;
}

html.theme-dark .bookmaker-cta,
body.theme-ink .bookmaker-cta {
  background: #2aabee;
  color: #fffaf4;
  border-color: #02101a;
  box-shadow: 3px 3px 0 #02101a;
}

html.theme-dark .bookmaker-close,
body.theme-ink .bookmaker-close {
  background: transparent;
  color: #fffaf4;
  border: 0;
  box-shadow: none;
}

html.theme-dark .player-ad-popover-card,
body.theme-ink .player-ad-popover-card {
  background: #17222e;
  color: #e6f1f6;
  border-color: #02101a;
  box-shadow: 8px 8px 0 #02101a;
}

html.theme-dark .player-ad-popover-copy,
body.theme-ink .player-ad-popover-copy {
  color: #95a8b3;
}

html.theme-dark .player-ad-popover-close,
body.theme-ink .player-ad-popover-close {
  color: #e6f1f6;
}

html.theme-dark .player-ad-popover-close:hover,
body.theme-ink .player-ad-popover-close:hover {
  color: #ff7d68;
}

html.theme-dark .player-ad-popover-kicker,
html.theme-dark .player-ad-popover-premium,
body.theme-ink .player-ad-popover-kicker,
body.theme-ink .player-ad-popover-premium {
  background: #2aabee;
  color: #fffaf4;
  border-color: #02101a;
}

html.theme-dark .player-ad-popover-keep,
body.theme-ink .player-ad-popover-keep {
  background: #1f2d3a;
  color: #e6f1f6;
  border-color: #02101a;
}

@media (max-width: 760px) {
  .bookmaker-overlay {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    min-height: 74px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px;
    box-shadow: 4px 4px 0 var(--line, #0a1f2a);
  }

  .bookmaker-art {
    width: 54px;
    height: 54px;
    font-size: 16px;
  }

  .bookmaker-title {
    font-size: 18px;
  }

  .bookmaker-cta {
    display: none;
  }
}
