/* Deck Featured Player — independent 16:9 editorial player */
.deck-featured {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.deck-featured,
.deck-featured *,
.deck-featured *::before,
.deck-featured *::after {
  box-sizing: border-box;
}

/* One-column editorial layout at every viewport size. */
.deck-featured-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.deck-featured-main,
.deck-featured-stage {
  width: 100%;
  min-width: 0;
}

.deck-featured-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080808;
  border-radius: 4px;
  isolation: isolate;
  overflow-anchor: none;
  cursor: pointer;
}

.deck-featured-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

.deck-featured-screen iframe,
.deck-featured-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

.deck-featured-screen iframe {
  z-index: 2;
}

.deck-featured-poster {
  z-index: 1;
  object-fit: cover;
}

/* Elegant floating play glyph — no square or circular background. */
.deck-featured-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, opacity .18s ease;
}

.deck-featured-play:hover,
.deck-featured-play:focus-visible {
  background: transparent;
  opacity: .88;
  transform: translate(-50%, -50%) scale(1.08);
}

.deck-featured-play:focus-visible,
.deck-featured-item:focus-visible {
  outline: 2px solid #b00000;
  outline-offset: 3px;
}

.deck-featured-play svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  margin-left: 4px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.85));
}

.deck-featured-details {
  min-width: 0;
  padding: 10px 0 0;
}

.deck-featured-title {
  margin: 0 0 5px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
}

.deck-featured-meta {
  color: #777;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.deck-featured-description {
  margin: 8px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* Playlist sits below the main feature and remains left-aligned. */
.deck-featured-playlist {
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  overflow: visible;
}

.deck-featured-playlist-heading {
  margin: 0 0 5px;
  padding: 0 0 8px;
  border-bottom: 1px solid #dedede;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .09em;
  text-align: left;
}

.deck-featured-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.deck-featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.deck-featured-item:first-child {
  padding-top: 7px;
}

.deck-featured-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.deck-featured-thumb {
  position: relative;
  display: block;
  flex: 0 0 180px;
  width: 180px;
  height: 101px;
  overflow: hidden;
  border-radius: 4px;
  background: #171717;
}

.deck-featured-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 4px;
}

.deck-featured-item-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.deck-featured-item-title {
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.deck-featured-item-meta {
  color: #888;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.deck-featured-message,
.deck-featured-empty {
  margin: 0;
  padding: 12px 0;
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

.deck-featured-credit-divider {
  width: 100%;
  height: 1px;
  margin: 12px 0 4px;
  background: #dedede;
}

.deck-featured-credit {
  padding: 0 0 4px;
  color: #888;
  font-size: 7pt;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .06em;
}

@media (max-width: 767px) {
  .deck-featured-title {
    font-size: 19px;
  }

  .deck-featured-meta {
    font-size: 10px;
  }

  .deck-featured-playlist {
    margin-top: 15px;
  }

  .deck-featured-thumb {
    flex-basis: 136px;
    width: 136px;
    height: 77px;
  }

  .deck-featured-item {
    gap: 10px;
    padding: 8px 0;
  }

  .deck-featured-item-title {
    font-size: 14px;
    line-height: 1.30;
    -webkit-line-clamp: 3;
  }

  .deck-featured-item-meta {
    font-size: 10px;
  }

  .deck-featured-play {
    width: 54px;
    height: 48px;
  }

  .deck-featured-play svg {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .deck-featured-thumb {
    flex-basis: 120px;
    width: 120px;
    height: 68px;
  }

  .deck-featured-title {
    font-size: 18px;
  }

  .deck-featured-item-title {
    font-size: 13px;
  }
}


/* Keep layout anchoring local and stable while an embedded player starts. */
.deck-featured,
.deck-featured-layout,
.deck-featured-main,
.deck-featured-stage,
.deck-featured-screen,
.deck-featured-playback-starting {
  overflow-anchor: none;
}

.deck-featured-audio-note {
  margin: 7px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.deck-featured-audio-note[hidden] {
  display: none !important;
}


/* Desktop overrides are intentionally last so base and mobile rules cannot shrink them. */
@media (min-width: 768px) {
  .deck-featured-item {
    align-items: flex-start;
    padding: 8px 0 3px;
  }

  .deck-featured-item:first-child {
    padding-top: 7px;
  }

  .deck-featured-thumb {
    flex: 0 0 315px;
    width: 315px;
    height: 177px;
  }

  .deck-featured-item-copy {
    align-self: flex-start;
    align-items: flex-start;
    padding-top: 0;
    text-align: left;
  }
}

/* Previous/next controls remain available over both poster and playing video. */
.deck-featured-stage {
  position: relative;
}

.deck-featured-nav {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 48px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: .82;
  transition: opacity .16s ease, background .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.deck-featured-nav:hover,
.deck-featured-nav:focus-visible {
  background: rgba(0, 0, 0, .82);
  opacity: 1;
}

.deck-featured-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.deck-featured-nav-prev { left: 10px; }
.deck-featured-nav-next { right: 10px; }

.deck-featured-nav[hidden] {
  display: none !important;
}


/* Deck 1.3.6 — three-column desktop editorial thumbnail grid. */
@media (min-width: 768px) {
  .deck-featured-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    width: 100%;
    padding: 3px 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .deck-featured-row:last-child {
    border-bottom: 0;
  }

  .deck-featured-item,
  .deck-featured-item:first-child,
  .deck-featured-item:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .deck-featured-thumb {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .deck-featured-item-copy {
    align-items: flex-start;
    align-self: stretch;
    gap: 4px;
    padding: 0;
    text-align: left;
  }

  .deck-featured-item-title {
    font-size: 15px;
    line-height: 1.32;
    -webkit-line-clamp: 3;
  }

  .deck-featured-item-meta {
    font-size: 10px;
    line-height: 1.3;
    color: #858585;
  }
}

@media (max-width: 767px) {
  /* Flatten row wrappers so the established mobile list remains unchanged. */
  .deck-featured-row {
    display: contents;
  }

  .deck-featured-row .deck-featured-item {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .deck-featured-row:first-child .deck-featured-item:first-child {
    padding-top: 7px;
  }

  .deck-featured-row:not(:first-child) .deck-featured-item:first-child {
    padding-top: 8px;
  }

  .deck-featured-row:last-child .deck-featured-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* Independent full-viewport Featured Player lightbox. */
.deck-featured-lightbox[hidden] {
  display: none !important;
}

.deck-featured-lightbox {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: rgba(0, 0, 25, .95);
  color: #fff;
  isolation: isolate;
}

.deck-featured-lightbox-frame {
  position: relative;
  flex: 0 0 auto;
  width: min(100vw, calc((100dvh - 96px) * 1.7778));
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100% - 64px);
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.deck-featured-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  touch-action: none;
}

.deck-featured-lightbox-close,
.deck-featured-lightbox-nav {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(35, 35, 35, .78);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.deck-featured-lightbox-close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  font: 300 32px/1 Arial, sans-serif;
}

.deck-featured-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 58px;
  transform: translateY(-50%);
  font: 300 42px/1 Arial, sans-serif;
  background: rgba(20, 20, 20, .72);
}

.deck-featured-lightbox-prev { left: max(12px, env(safe-area-inset-left)); }
.deck-featured-lightbox-next { right: max(12px, env(safe-area-inset-right)); }

.deck-featured-lightbox-close:hover,
.deck-featured-lightbox-nav:hover,
.deck-featured-lightbox-close:focus-visible,
.deck-featured-lightbox-nav:focus-visible {
  background: rgba(75, 75, 75, .92);
}

.deck-featured-lightbox-close:focus-visible,
.deck-featured-lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.deck-featured-lightbox-nav[hidden] {
  display: none !important;
}

.deck-featured-lightbox-info {
  width: min(100%, 960px);
  max-height: 18vh;
  overflow: hidden;
  text-align: center;
}

.deck-featured-lightbox-title {
  color: #fff;
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 650;
  line-height: 1.35;
}

.deck-featured-lightbox-meta {
  margin-top: 5px;
  color: #aaa;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

html.deck-featured-lightbox-open,
html.deck-featured-lightbox-open body {
  overscroll-behavior: none;
}

@media (max-width: 767px) {
  .deck-featured-lightbox {
    gap: 12px;
  }

  .deck-featured-lightbox-frame {
    width: min(100vw, calc((100dvh - 96px) * 1.7778));
  }

  .deck-featured-lightbox-nav {
    width: 38px;
    height: 50px;
    font-size: 36px;
  }

  .deck-featured-lightbox-prev { left: 4px; }
  .deck-featured-lightbox-next { right: 4px; }

  .deck-featured-lightbox-title {
    font-size: 14px;
  }

  .deck-featured-lightbox-info {
    max-height: 20vh;
    padding: 0 8px;
  }
}

.deck-featured-lightbox-hint {
  margin-top: 5px;
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
}

.deck-featured-lightbox-hint[hidden] {
  display: none !important;
}
