@charset "UTF-8";
/* Short Drama hub — top banner (uses global .main-banner slick styles).
   Duplicate selectors use .sd-banner-section .main-banner.sd-main-banner so fixes apply in legacy installs
   where the banner sits outside .sd-shorts-page (otherwise theme min-height:100vh leaves a black void). */
/* Flush under site header (home .banner-section uses padding-top only on the section, not the page wrapper) */
section.sd-banner-section.banner-section {
  margin: 0 0 1.25rem;
  padding-top: 0;
}

.sd-shorts-page .sd-banner-section {
  margin: 0 0 1.25rem;
  padding-top: 0;
}

/* Override theme .main-banner .slick-item { min-height: 100vh } — avoids a tall empty band under the hero */
.sd-shorts-page .sd-banner-section .main-banner.slick-banner .slick-item.sd-banner-slide,
.sd-banner-section .main-banner.sd-main-banner.slick-banner .slick-item.sd-banner-slide {
  min-height: 0;
  height: clamp(400px, 52vw, 720px);
}

.sd-shorts-page .sd-banner-section .main-banner .slick-item .movie-content.sd-banner-content,
.sd-banner-section .main-banner.sd-main-banner .slick-item .movie-content.sd-banner-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 0 !important;
  height: 100%;
  /* Extra bottom padding reserves space above .slick-dots so Play isn’t cramped against dots */
  padding: 1.25rem 0 3rem !important;
}

@media (min-width: 1200px) {
  .sd-shorts-page .sd-banner-section .main-banner .slick-item .movie-content.sd-banner-content,
  .sd-banner-section .main-banner.sd-main-banner .slick-item .movie-content.sd-banner-content {
    padding: 1.5rem 0 3.5rem !important;
  }
}
@media (max-width: 1199.98px) {
  .sd-shorts-page .sd-banner-section .main-banner.slick-banner .slick-item.sd-banner-slide,
  .sd-banner-section .main-banner.sd-main-banner.slick-banner .slick-item.sd-banner-slide {
    height: clamp(380px, 54vw, 640px);
  }
  .sd-shorts-page .sd-banner-section .main-banner .slick-item .movie-content.sd-banner-content,
  .sd-banner-section .main-banner.sd-main-banner .slick-item .movie-content.sd-banner-content {
    padding: 1.25rem 0 2.75rem !important;
  }
}
@media (max-width: 767.98px) {
  /* Wide web-only art on phones (no mobile upload) */
  .sd-shorts-page .sd-banner-section .main-banner.slick-banner .slick-item.sd-banner-slide:not(.sd-banner-slide--has-mobile),
  .sd-banner-section .main-banner.sd-main-banner.slick-banner .slick-item.sd-banner-slide:not(.sd-banner-slide--has-mobile) {
    height: clamp(320px, 56vw, 480px);
  }
  .sd-shorts-page .sd-banner-section .main-banner .slick-item .movie-content.sd-banner-content,
  .sd-banner-section .main-banner.sd-main-banner .slick-item .movie-content.sd-banner-content {
    /* Horizontal inset so text never rides under the viewport edge when rows / fluid padding interact oddly */
    padding: 1rem max(1rem, env(safe-area-inset-inline-start, env(safe-area-inset-left, 0px))) 2.5rem max(1rem, env(safe-area-inset-inline-end, env(safe-area-inset-right, 0px))) !important;
  }
  /* Wide web-only art on phones: show lower portion (built-in title art is often at the bottom) */
  .sd-shorts-page .sd-banner-slide:not(.sd-banner-slide--has-mobile) .sd-banner-bg,
  .sd-banner-section .sd-banner-slide:not(.sd-banner-slide--has-mobile) .sd-banner-bg {
    -o-object-position: center bottom;
       object-position: center bottom;
  }
  /* Hide desktop asset on phones when a mobile file exists */
  .sd-shorts-page .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-bg--desktop-only,
  .sd-banner-section .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-bg--desktop-only {
    display: none !important;
  }
  /*
   * Mobile banner assets (896×1216): height from portrait aspect ratio; contain = no crop of title art.
   */
  .sd-shorts-page .sd-banner-section .main-banner.slick-banner .slick-item.sd-banner-slide.sd-banner-slide--has-mobile,
  .sd-banner-section .main-banner.sd-main-banner.slick-banner .slick-item.sd-banner-slide.sd-banner-slide--has-mobile {
    width: 100%;
    height: auto;
    aspect-ratio: 896/1216;
    overflow: hidden;
    background: var(--bs-body-bg, #000);
  }
  .sd-shorts-page .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-bg--mobile-only,
  .sd-banner-section .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-bg--mobile-only {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 896/1216;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: top center;
       object-position: top center;
    inset: auto;
  }
  .sd-shorts-page .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-scrim,
  .sd-banner-section .sd-banner-slide.sd-banner-slide--has-mobile .sd-banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 28%, transparent 52%);
  }
  .sd-shorts-page .sd-banner-slide.sd-banner-slide--has-mobile .movie-content.sd-banner-content,
  .sd-banner-section .sd-banner-slide.sd-banner-slide--has-mobile .movie-content.sd-banner-content {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0 !important;
  }
  /* Slick: track height must follow portrait slides (not a fixed wide crop height) */
  .sd-shorts-page .sd-banner-section .main-banner.sd-main-banner.slick-initialized .slick-list,
  .sd-banner-section .main-banner.sd-main-banner.slick-initialized .slick-list,
  .sd-shorts-page .sd-banner-section .main-banner.sd-main-banner.slick-initialized .slick-track,
  .sd-banner-section .main-banner.sd-main-banner.slick-initialized .slick-track {
    height: auto !important;
  }
  .sd-shorts-page .sd-banner-section .main-banner.sd-main-banner .slick-slide,
  .sd-banner-section .main-banner.sd-main-banner .slick-slide,
  .sd-shorts-page .sd-banner-section .main-banner.sd-main-banner .slick-slide > div,
  .sd-banner-section .main-banner.sd-main-banner .slick-slide > div {
    height: auto !important;
  }
  .sd-shorts-page .sd-banner-section .sd-banner-content .row,
  .sd-banner-section .sd-banner-content .row {
    --bs-gutter-x: 1rem;
  }
  .sd-shorts-page .sd-banner-section .sd-banner-info .movie-title,
  .sd-banner-section .sd-banner-info .movie-title {
    font-size: clamp(1.125rem, 0.92rem + 2.8vw, 1.85rem);
    line-height: 1.15;
  }
}
/* Dots: match Streamit .container-fluid horizontal padding (custom/pages/_custom-class.scss), not --bs-gutter-x */
.sd-shorts-page .sd-banner-section .main-banner .slick-dots,
.sd-banner-section .main-banner.sd-main-banner .slick-dots {
  inset-inline-end: auto;
  margin-inline: 0;
  text-align: start;
  width: auto;
  transform: none;
  inset-inline-start: max(env(safe-area-inset-inline-start, env(safe-area-inset-left, 0px)), 6.25em);
  bottom: 0.875rem;
}

@media (max-width: 1399.98px) {
  .sd-shorts-page .sd-banner-section .main-banner .slick-dots,
  .sd-banner-section .main-banner.sd-main-banner .slick-dots {
    inset-inline-start: max(env(safe-area-inset-inline-start, env(safe-area-inset-left, 0px)), 2rem);
  }
}
@media (max-width: 767.98px) {
  .sd-shorts-page .sd-banner-section .main-banner .slick-dots,
  .sd-banner-section .main-banner.sd-main-banner .slick-dots {
    inset-inline-start: max(env(safe-area-inset-inline-start, env(safe-area-inset-left, 0px)), 1rem);
  }
}
@media (min-width: 1200px) {
  .sd-shorts-page .sd-banner-section .main-banner .slick-dots,
  .sd-banner-section .main-banner.sd-main-banner .slick-dots {
    bottom: 1rem;
  }
}
.sd-shorts-page .sd-banner-section .movie-tag-list li .tag,
.sd-banner-section .movie-tag-list li .tag {
  color: rgba(255, 255, 255, 0.92);
}

.sd-shorts-page .sd-banner-section .movie-tag-list li::after,
.sd-banner-section .movie-tag-list li::after {
  background-color: rgba(255, 255, 255, 0.45);
}

.sd-shorts-page .sd-banner-slide,
.sd-banner-section .sd-banner-slide {
  position: relative;
  overflow: hidden;
}

/* Full-bleed art via <img> (same URL resolution as admin preview; avoids fragile CSS url() in HTML) */
.sd-shorts-page .sd-banner-slide .sd-banner-bg,
.sd-banner-section .sd-banner-slide .sd-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .sd-shorts-page .sd-banner-slide .sd-banner-bg--mobile-only,
  .sd-banner-section .sd-banner-slide .sd-banner-bg--mobile-only {
    display: none !important;
  }
  .sd-shorts-page .sd-banner-slide .sd-banner-bg--desktop-only,
  .sd-banner-section .sd-banner-slide .sd-banner-bg--desktop-only {
    display: block;
  }
}
.sd-shorts-page .sd-banner-slide .sd-banner-scrim,
.sd-banner-section .sd-banner-slide .sd-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Bottom-left fade only — keeps poster art visible (especially center/right) */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 30%, transparent 56%), linear-gradient(to right, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.14) 26%, transparent 44%);
}

.sd-shorts-page .sd-banner-slide .movie-content,
.sd-banner-section .sd-banner-slide .movie-content {
  position: relative;
  z-index: 2;
}

/* Global home banner adds a heavy ::after scrim — disable; Short Drama uses .sd-banner-scrim + <img> */
.sd-shorts-page .main-banner.slick-banner .slick-item.sd-banner-slide::after,
.sd-banner-section .main-banner.sd-main-banner.slick-banner .slick-item.sd-banner-slide::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.sd-shorts-page .sd-page-inner--with-banner {
  padding-top: 0;
}

/* Space between hero banner and first hub block (Continue Watching / catalog) */
.sd-shorts-page > .sd-banner-section + .sd-page-inner.sd-page-inner--with-banner {
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .sd-shorts-page > .sd-banner-section + .sd-page-inner.sd-page-inner--with-banner {
    padding-top: 1.75rem;
  }
}
.sd-shorts-page .sd-banner-desc,
.sd-banner-section .sd-banner-desc {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sd-shorts-page .sd-banner-section .sd-banner-desc img,
.sd-shorts-page .sd-banner-section .sd-banner-desc video,
.sd-shorts-page .sd-banner-section .sd-banner-desc svg,
.sd-banner-section .sd-banner-desc img,
.sd-banner-section .sd-banner-desc video,
.sd-banner-section .sd-banner-desc svg {
  max-width: 100%;
  height: auto;
}

.sd-shorts-page .sd-banner-section .sd-banner-content .container-fluid,
.sd-banner-section .sd-banner-content .container-fluid {
  max-width: 100%;
  min-width: 0;
}

.sd-shorts-page .sd-banner-section .sd-banner-content .row,
.sd-banner-section .sd-banner-content .row {
  min-width: 0;
}

.sd-shorts-page .sd-banner-section .sd-banner-content [class*=col-],
.sd-banner-section .sd-banner-content [class*=col-] {
  min-width: 0;
}

.sd-shorts-page .sd-banner-section .sd-banner-info,
.sd-banner-section .sd-banner-info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sd-shorts-page .sd-banner-section .sd-banner-info .movie-title,
.sd-banner-section .sd-banner-info .movie-title {
  margin: 0;
  max-width: 100%;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* Caps theme / template heading sizes so long titles don’t clip under .sd-banner-slide { overflow: hidden } */
  font-size: clamp(1.35rem, 1.1rem + 2.1vw, 2.75rem);
}

.sd-shorts-page .sd-banner-section .sd-banner-info .movie-title,
.sd-banner-section .sd-banner-info .movie-title,
.sd-shorts-page .sd-banner-section .sd-banner-desc,
.sd-banner-section .sd-banner-desc,
.sd-shorts-page .sd-banner-section .movie-tag-list li .tag,
.sd-banner-section .movie-tag-list li .tag {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Shorts hub — hero Figma; rails 266.67×330 on tablet+; compact rail only ≤575px */
.sd-shorts-page {
  --sd-section-gap: 1.5rem; /* Shorts title → first row */
  --sd-rail-to-grid-gap: 1.5rem; /* Continue rail → hero grid */
  --sd-grid-to-best-gap: 2.25rem; /* mosaic → horizontal rail */
  --sd-best-to-grid-gap: 2.25rem; /* horizontal rail → mosaic below */
  --sd-heading-to-content: 0.75rem; /* section label → rail / cards */
  /* Rails only (Continue / Best of) — do not use on hero */
  --sd-rail-card-w: 266.67px;
  --sd-gutter: 12px;
  /* Discover / hero mosaic only */
  --sd-hero-card-max-w: 406px;
  --sd-hero-card-ratio-w: 406;
  --sd-hero-card-ratio-h: 566.88;
  --sd-mosaic-gap: 20px;
  --sd-mosaic-row-gap: 26px;
  background: var(--bs-body-bg);
  color: var(--bs-white);
  min-height: 70vh;
  padding: 0 0 56px;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
}

.sd-shorts-page .sd-page-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 calc(var(--bs-gutter-x, 1rem) * 2);
}

.sd-shorts-page .sd-page-inner:not(.sd-page-inner--with-banner) {
  padding-top: 12px;
}

@media (min-width: 992px) {
  .sd-shorts-page {
    --sd-mosaic-gap: 32px;
    --sd-mosaic-row-gap: 38px;
  }
}
@media (max-width: 575.98px) {
  .sd-shorts-page {
    --sd-mosaic-gap: 18px;
    --sd-mosaic-row-gap: 24px;
    padding: 0 0 48px;
  }
  .sd-shorts-page .sd-page-inner:not(.sd-page-inner--with-banner) {
    padding-top: 10px;
  }
  .sd-shorts-page .sd-page-inner {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .sd-shorts-h1 {
    margin-bottom: 1.25rem;
  }
}
.sd-shorts-h1 {
  font-size: clamp(1.625rem, 2vw + 1rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sd-section-gap);
  color: var(--bs-white);
  padding-top: 0.25rem;
}

.sd-shorts-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sd-heading-to-content);
  color: var(--bs-white);
  line-height: 1.25;
}

.sd-shorts-rail-block {
  margin-bottom: 0;
}

.sd-shorts-discover-block {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

/* Space main grid under page title when there is no Continue row */
.sd-shorts-discover-block--spaced-from-page-title {
  margin-top: var(--sd-section-gap);
}

/* Tight step from Continue rail into hero grid (Figma: no “Discover” label) */
.sd-shorts-discover-block--after-rail {
  margin-top: var(--sd-rail-to-grid-gap);
}

.sd-shorts-best-block {
  margin-top: var(--sd-grid-to-best-gap);
}

/* Explicit separation between stacked card sections */
.sd-shorts-discover-block + .sd-shorts-best-block {
  margin-top: var(--sd-grid-to-best-gap) !important;
}

.sd-shorts-best-block + .sd-shorts-discover-block {
  margin-top: var(--sd-best-to-grid-gap) !important;
}

.sd-shorts-discover-block + .sd-shorts-discover-block,
.sd-shorts-best-block + .sd-shorts-best-block {
  margin-top: 1.35rem !important;
}

/* ── Horizontal rails (Swiper; no native scrollbar) ── */
.sd-shorts-rail-swiper-wrap {
  position: relative;
  padding: 0;
  margin: 0;
}

.sd-shorts-rail-swiper {
  overflow: hidden;
  padding: 0;
  touch-action: pan-y pinch-zoom;
}

.sd-shorts-rail-swiper .swiper-slide {
  width: var(--sd-rail-card-w);
  max-width: min(var(--sd-rail-card-w), 100%);
  height: auto;
  box-sizing: border-box;
}

/* Phones only: compact rail slides (Swiper 2.2 + tight gap); tablet/desktop use fixed 266.67px slides */
@media (max-width: 575.98px) {
  .sd-shorts-rail-swiper .swiper-slide {
    width: auto;
    max-width: none;
    height: auto;
    box-sizing: border-box;
  }
  .sd-rail-card,
  .sd-cw-wrap {
    width: 100%;
    max-width: none;
  }
  .sd-rail-card-img,
  .sd-cw-img {
    aspect-ratio: 2/3;
    border-radius: 10px;
  }
  .sd-rail-card-play,
  .sd-cw-play {
    left: 6px;
    bottom: 10px;
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }
  .sd-cw-meta {
    left: 28px;
    right: 6px;
    bottom: 9px;
    font-size: 10px;
  }
  .sd-cw-progress-track {
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
  .sd-cw-dismiss {
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    font-size: 12px;
    border-radius: 5px;
  }
}
.sd-shorts-rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(var(--bs-black-rgb), 0.65);
  color: var(--bs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(var(--bs-black-rgb), 0.35);
}

@media (min-width: 576px) {
  .sd-shorts-rail-nav:not(.swiper-button-disabled) {
    opacity: 0.5;
    pointer-events: auto;
  }
  .sd-shorts-rail-swiper-wrap:hover .sd-shorts-rail-nav:not(.swiper-button-disabled) {
    opacity: 1;
  }
}
.sd-shorts-rail-nav:hover:not(.swiper-button-disabled) {
  background: rgba(var(--bs-black-rgb), 0.85);
}

.sd-shorts-rail-nav.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.sd-shorts-rail-nav--prev {
  left: 0;
}

.sd-shorts-rail-nav--next {
  right: 0;
}

@media (max-width: 575.98px) {
  .sd-shorts-rail-nav {
    display: none;
  }
}
.sd-rail-card {
  width: 100%;
  max-width: var(--sd-rail-card-w);
}

.sd-rail-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 266.67/330;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bs-dark) 72%, var(--bs-black));
  isolation: isolate;
}

.sd-rail-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.sd-rail-card-link:hover .sd-rail-card-img img {
  transform: scale(1.04);
}

.sd-rail-card-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--bs-black-rgb), 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-white);
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.sd-cw-wrap {
  width: 100%;
  max-width: var(--sd-rail-card-w);
  position: relative;
}

.sd-cw-wrap.is-removing {
  opacity: 0.45;
  pointer-events: none;
}

.sd-cw-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sd-cw-img {
  position: relative;
  width: 100%;
  aspect-ratio: 266.67/330;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bs-dark) 72%, var(--bs-black));
  isolation: isolate;
}

.sd-cw-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 1;
  background: linear-gradient(to top, rgba(var(--bs-black-rgb), 0.78) 0%, rgba(var(--bs-black-rgb), 0.42) 48%, rgba(var(--bs-black-rgb), 0) 100%);
  pointer-events: none;
}

.sd-cw-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.sd-cw-link:hover .sd-cw-img img {
  transform: scale(1.04);
}

.sd-cw-play {
  position: absolute;
  left: 8px;
  bottom: 12px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--bs-black-rgb), 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-white);
  font-size: 0.72rem;
  backdrop-filter: blur(4px);
}

.sd-cw-meta {
  position: absolute;
  left: 32px;
  right: 8px;
  bottom: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--bs-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(var(--bs-black-rgb), 0.55);
  pointer-events: none;
}

.sd-cw-ep {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-cw-progress-track {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(var(--bs-white-rgb), 0.22);
  overflow: hidden;
}

.sd-cw-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--bs-primary);
  box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.5);
}

.sd-cw-dismiss {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--bs-primary);
  color: var(--bs-white);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--bs-black-rgb), 0.4);
}

.sd-cw-dismiss:hover:not(:disabled) {
  filter: brightness(1.1);
}

.sd-cw-dismiss:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* Hero grid (Discover): portrait strips; one column on phones (ref), more cols on larger */
.sd-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  -moz-column-gap: var(--sd-mosaic-gap);
       column-gap: var(--sd-mosaic-gap);
  row-gap: var(--sd-mosaic-row-gap, var(--sd-mosaic-gap));
  margin-bottom: 0;
  align-items: start;
  justify-items: stretch;
}

/* Hero: phone 1 col; tablet uses min track ~slider width (272px) so tiles aren’t smaller than rails; desktop 4-col */
@media (min-width: 576px) and (max-width: 991.98px) {
  .sd-mosaic-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
    justify-items: stretch;
  }
  .sd-tile-lg {
    max-width: none;
  }
}
@media (min-width: 992px) {
  .sd-mosaic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
  }
  .sd-mosaic-grid .sd-tile-lg {
    max-width: none;
  }
}
.sd-tile-lg {
  display: block;
  color: var(--bs-white);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: var(--sd-hero-card-max-w);
  min-width: 0;
}

@media (max-width: 575.98px) {
  .sd-tile-lg {
    max-width: none;
    border-radius: 14px;
  }
}
/* Strict Figma ratio; image absolutely positioned so intrinsic pixels cannot blow up size */
.sd-tile-lg-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sd-hero-card-ratio-w)/var(--sd-hero-card-ratio-h);
  background: color-mix(in srgb, var(--bs-dark) 55%, var(--bs-black));
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 575.98px) {
  .sd-tile-lg-frame {
    border-radius: 14px;
  }
}
.sd-tile-lg-poster,
.sd-tile-lg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
}

.sd-tile-lg-poster {
  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 0;
}

.sd-tile-lg-video {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.sd-tile-lg--previewing .sd-tile-lg-poster {
  opacity: 0;
}

.sd-tile-lg--previewing .sd-tile-lg-video {
  opacity: 1;
}

.sd-tile-lg:hover:not(.sd-tile-lg--previewing) .sd-tile-lg-poster {
  transform: scale(1.03);
}

.sd-tile-lg-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sd-tile-lg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px 18px;
  pointer-events: none;
}

.sd-tile-lg-mute {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(var(--bs-black-rgb), 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(var(--bs-white-rgb), 0.95);
  backdrop-filter: blur(6px);
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
}

.sd-tile-lg-mute:focus-visible {
  outline: 2px solid var(--bs-white);
  outline-offset: 2px;
}

.sd-tile-lg-copy {
  padding-right: 52px;
}

.sd-tile-lg-title {
  font-size: clamp(0.9375rem, 0.5vw + 0.85rem, 1.0625rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(var(--bs-black-rgb), 0.55);
}

.sd-tile-lg-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(var(--bs-white-rgb), 0.9);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(var(--bs-black-rgb), 0.55);
}

.sd-tile-lg-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bs-white);
  color: var(--bs-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 0;
}

.sd-tile-lg-play i {
  display: block;
  line-height: 1;
}

@media (max-width: 575.98px) {
  /* Ref mobile: frosted dark circle + white play icon */
  .sd-tile-lg-mute {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    background: rgba(22, 22, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
  .sd-tile-lg-overlay {
    padding: 14px 14px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.35) 100%);
  }
  .sd-tile-lg-copy {
    padding-right: 58px;
  }
  .sd-tile-lg-title {
    font-size: 1.1875rem;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .sd-tile-lg-meta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
  }
  .sd-tile-lg-play {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
    padding: 0;
    background: rgba(22, 22, 26, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--bs-white);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.38), 0 10px 28px rgba(0, 0, 0, 0.22);
  }
  .sd-tile-lg-play i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  }
}
.sd-shorts-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255, 255, 255, 0.45);
}

.container {
  max-width: 1525px;
}

.sd-all-page {
  min-height: 100vh;
  background: var(--bs-body-bg);
  padding: 12px 0 56px;
  --sd-rail-card-w: 266.67px;
}

.sd-all-inner {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: 0 calc(var(--bs-gutter-x, 1rem) * 2);
}

.sd-all-title {
  color: var(--bs-white);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.sd-all-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
}

.sd-all-grid .sd-rail-card {
  max-width: none;
  width: 100%;
}

.sd-all-grid .sd-rail-card-link {
  display: block;
}

.sd-all-grid .sd-rail-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 266.67/330;
}

.sd-all-empty {
  color: rgba(var(--bs-white-rgb), 0.75);
  text-align: center;
  padding: 48px 16px;
}

@media (max-width: 575.98px) {
  .sd-all-page {
    padding: 10px 0 48px;
  }
  .sd-all-inner {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .sd-all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .sd-all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ═══ Full-screen shell (scoped — must not apply on index/all pages sharing style.css) ═══ */
body:has(.sd-shell) header,
body:has(.sd-shell) .iq-top-navbar,
body:has(.sd-shell) nav.navbar,
body:has(.sd-shell) footer,
body:has(.sd-shell) .footer,
body:has(.sd-shell) #footer,
body:has(.sd-shell) .iq-breadcrumb,
body:has(.sd-shell) .breadcrumb-wrap {
  display: none !important;
}

html:has(.sd-shell),
body:has(.sd-shell) {
  overflow: hidden;
  background: var(--bs-body-bg);
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

body:has(.sd-shell) #main-content,
body:has(.sd-shell) .content-page,
body:has(.sd-shell) main {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

:root {
  --sd-accent: var(--bs-primary);
  --sd-accent-glow: rgba(var(--bs-primary-rgb), 0.45);
  --sd-progress-track: rgba(var(--bs-white-rgb), 0.26);
  --sd-progress-track-strong: rgba(var(--bs-white-rgb), 0.34);
  --sd-player-controls-inset: 14px;
}

.sd-shell {
  position: fixed;
  inset: 0;
  background: var(--bs-body-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
}

/* Groups blurred backdrop + centered stage (card + episode nav) */
.sd-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 22px);
  width: 100%;
  max-width: min(100vw - 24px, 534px);
  flex: 0 0 auto;
  min-height: 0;
  pointer-events: none;
}

.sd-stage > * {
  pointer-events: auto;
}

/* Episode nav + action rail (outside card on desktop, overlay on mobile) */
.sd-side-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 50;
  pointer-events: none;
}

.sd-side-dock > * {
  pointer-events: auto;
}

.sd-backdrop {
  position: absolute;
  inset: -32px;
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(1.05) brightness(0.55);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.sd-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bs-body-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  z-index: 2;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.sd-card--dragging {
  transition: none !important;
}

.sd-card--animating {
  transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.22, 1), opacity 0.26s ease !important;
}

@media (min-width: 600px) {
  .sd-shell {
    background: var(--bs-body-bg);
  }
  .sd-stage {
    max-width: min(100vw - 48px, 534px);
    gap: 16px;
    align-items: stretch;
  }
  .sd-card {
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.75), 0 8px 32px rgba(0, 0, 0, 0.45);
    flex: 0 1 auto;
    width: 430px;
    max-width: 430px;
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
  }
  .sd-side-dock {
    width: 80px;
    align-self: stretch;
    justify-content: flex-end;
    gap: 0;
    padding: 0 0 var(--sd-player-controls-inset);
  }
  .sd-side-dock .sd-nav-outer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }
  .sd-side-dock .sd-rail {
    position: static;
    right: auto;
    bottom: auto;
    width: 80px;
    margin-top: 56px;
    gap: 14px;
    padding-bottom: 0;
    opacity: 1;
    pointer-events: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .sd-player-bottom-text {
    padding-right: 16px;
  }
}
@media (max-width: 599px) {
  .sd-shell {
    align-items: stretch;
    justify-content: flex-start;
  }
  .sd-stage {
    max-width: 100%;
    gap: 0;
    flex: 1 1 auto;
    align-self: stretch;
    align-items: stretch;
    width: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    height: auto;
    --sd-player-controls-inset: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .sd-card {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .sd-backdrop {
    inset: 0;
  }
  .sd-topbar {
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .sd-stage {
    position: relative;
  }
  .sd-side-dock {
    position: absolute;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(52px, var(--sd-player-controls-inset) + 44px);
    width: 56px;
    gap: 0;
    justify-content: flex-end;
    align-items: center;
    z-index: 60;
  }
  .sd-side-dock .sd-nav-outer {
    display: none;
  }
  .sd-side-dock .sd-rail {
    position: static;
    right: auto;
    bottom: auto;
    width: 56px;
    gap: 14px;
    padding-bottom: 0;
    opacity: 1;
    pointer-events: auto;
  }
  .sd-side-dock .sd-rail-btn,
  .sd-rail .sd-rail-btn {
    gap: 6px;
  }
  .sd-side-dock .sd-rail-btn .sd-rail-icon,
  .sd-rail .sd-rail-btn .sd-rail-icon {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .sd-side-dock .sd-rail-btn:hover .sd-rail-icon,
  .sd-rail .sd-rail-btn:hover .sd-rail-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.06);
  }
  .sd-side-dock .sd-rail-btn i,
  .sd-rail .sd-rail-btn i {
    font-size: 1.45rem;
    color: #fff;
    font-weight: 400;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
  }
  .sd-side-dock .sd-rail-label,
  .sd-rail .sd-rail-label {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: capitalize;
  }
  .sd-player-bottom {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .sd-player-bottom-text {
    padding-right: 64px;
  }
}
#sd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Full frame visible in portrait; letterboxing for landscape sources (cover over-crops). */
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center center;
     object-position: center center;
  z-index: 1;
  cursor: pointer;
}

.sd-tap-zone {
  display: none !important;
}

.sd-grad-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(var(--bs-black-rgb), 0.82), transparent);
  pointer-events: none;
  z-index: 20;
}

.sd-grad-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(to top, rgba(var(--bs-black-rgb), 0.9), transparent);
  pointer-events: none;
  z-index: 20;
}

/* ── Top bar: back + rating + settings ── */
.sd-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 14px 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.sd-topbar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sd-top-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Frosted circular controls (Figma: back / settings) */
.sd-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sd-pill-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.sd-back.sd-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-white);
  text-decoration: none;
}

.sd-settings-btn.sd-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-white);
}

.sd-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-top: 0;
  background: rgba(var(--bs-black-rgb), 0.48);
  border: 1px solid rgba(var(--bs-white-rgb), 0.14);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(var(--bs-black-rgb), 0.35);
}

.sd-age-badge-bar {
  width: 3px;
  min-height: 14px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.55));
  border-radius: 2px;
  flex-shrink: 0;
}

.sd-age-badge-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--bs-white);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: none;
}

.sd-settings-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--bs-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sd-topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  height: 42px;
  align-self: flex-start;
}

.sd-topbar-drama-title {
  color: var(--bs-white);
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.sd-topbar-right {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Prevent global theme button styles from breaking the player chrome */
.sd-shell .sd-rail-btn,
.sd-shell .sd-play-main,
.sd-shell .sd-nav-arrow,
.sd-shell .sd-settings-btn,
.sd-shell .sd-fs-btn,
.sd-shell .sd-error-retry {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.sd-settings-in-sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Settings sheet tabs (horizontal) */
.sd-settings-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0;
  padding: 0 8px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sd-settings-tab {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 10px 11px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.sd-settings-tab.sd-tab-visible {
  display: block;
}

.sd-settings-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sd-settings-tab.active {
  color: var(--sd-accent);
}

.sd-settings-tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--sd-accent);
  border-radius: 2px 2px 0 0;
}

.sd-settings-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.sd-settings-panel.active {
  display: block;
}

.sd-settings-section {
  padding: 6px 0 8px;
}

.sd-settings-section h6 {
  margin: 0 0 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.sd-settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin: 0 8px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s;
  border: none;
  width: calc(100% - 16px);
  box-sizing: border-box;
  background: none;
  text-align: left;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sd-settings-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sd-settings-item.active {
  color: #fff;
}

.sd-settings-empty {
  padding: 10px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Radio control (Audio / Subtitles) */
.sd-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.sd-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}

.sd-settings-item.active .sd-radio {
  border-color: var(--sd-accent);
}

.sd-settings-item.active .sd-radio-dot {
  background: var(--sd-accent);
}

/* ── Center play cluster ── */
.sd-center-cluster {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.sd-center-cluster.visible {
  opacity: 1;
  pointer-events: auto;
}

.sd-skip-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(6px);
}

.sd-skip-btn i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.sd-play-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--sd-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4);
  animation: sd-pulse 2s infinite;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sd-play-main:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

@keyframes sd-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(var(--bs-primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
  }
}
/* ── Right rail: frosted circular action buttons ── */
.sd-rail {
  position: absolute;
  right: 10px;
  bottom: max(100px, 18vh);
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 50;
  padding-bottom: 4px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.sd-rail.visible {
  opacity: 1;
  pointer-events: auto;
}

.sd-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.sd-rail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sd-rail-btn:hover .sd-rail-icon {
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.sd-rail-btn i {
  font-size: 1.35rem;
  margin: 0;
  color: #fff;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.sd-rail-label {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
  text-align: center;
  max-width: 64px;
  text-transform: capitalize;
}

/* ── Bottom stack: title, meta, description ── */
.sd-player-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px var(--sd-player-controls-inset);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-player-bottom.visible {
  opacity: 1;
  pointer-events: auto;
}

.sd-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sd-progress-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sd-progress-track .sd-progress,
.sd-progress-row .sd-progress {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* Smart seek hover preview (above scrubber, centered on playhead) */
.sd-smart-seek-preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  transform: translateX(-50%);
  max-width: min(92vw, 200px);
}

.sd-smart-seek-preview.is-visible {
  opacity: 1;
  visibility: visible;
}

.sd-smart-seek-thumb {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.sd-smart-seek-time {
  display: block;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sd-fs-only-controls {
  display: none;
  flex: 0 0 auto;
}

.sd-shell.sd-is-fs .sd-fs-only-controls {
  display: flex;
  align-items: center;
}

.sd-fs-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, transform 0.15s;
}

.sd-fs-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.sd-player-bottom-text {
  position: relative;
  width: 100%;
  padding-right: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 600px) {
  .sd-player-bottom-text {
    padding-right: 16px;
    max-width: 80%;
  }
}
@media (min-width: 1200px) {
  .sd-player-bottom-text {
    max-width: 600px;
  }
}
.sd-drama-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bs-white);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.sd-meta-line {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--bs-white-rgb), 0.65);
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sd-meta-genres {
  display: inline;
  /* Cancel .sd-meta-line uppercase so genresLabel() ucfirst (e.g. Action) shows as intended */
  text-transform: none;
}

.sd-meta-ep-group {
  display: inline;
}

.sd-meta-sep {
  opacity: 0.5;
}

.sd-meta-ep {
  white-space: nowrap;
}

.sd-episode-desc-container {
  position: relative;
  width: 100%;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.sd-episode-desc {
  font-size: 14px;
  font-weight: 400;
  color: rgba(var(--bs-white-rgb), 0.85);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex: 1;
  min-width: 0; /* allows flex child to shrink below content size */
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.sd-episode-desc p {
  margin: 0;
  display: inline;
}

.sd-episode-desc-container.truncated .sd-episode-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-episode-desc-container.expanded {
  display: block; /* Switch to block to allow natural inline wrapping */
}

.sd-episode-desc-container.expanded .sd-episode-desc {
  display: inline; /* Let text wrap normally */
  white-space: normal;
  overflow: visible;
}

/* More / Less buttons */
.sd-desc-less-btn {
  display: none;
  background: none;
  border: none;
  color: var(--sd-accent, #e50914);
  font-size: 15px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-left: 0;
  vertical-align: baseline;
}

.sd-episode-desc-container.expanded .sd-desc-less-btn {
  display: inline-block;
}

.sd-desc-more-btn, .sd-desc-less-btn {
  transition: color 0.2s;
}

.sd-desc-more-btn:hover, .sd-desc-less-btn:hover {
  color: #fff;
}

.sd-desc-more-btn {
  display: none;
  background: none;
  border: none;
  color: var(--sd-accent, #e50914);
  font-size: 15px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-left: 0;
}

.sd-episode-desc-container.truncated .sd-desc-more-btn {
  display: inline-block;
}

@media (max-width: 599px) {
  .sd-drama-title {
    font-size: 1rem;
  }
  .sd-meta-line {
    font-size: 11px;
  }
  /* Let desc and buttons inherit 14px from base */
  .sd-player-bottom {
    padding: 0 14px 12px;
    gap: 6px;
  }
}
/* ── Scrubber & Time ── */
.sd-time-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: -2px;
  font-variant-numeric: tabular-nums;
}

.sd-time-cur {
  color: #fff;
}

.sd-time-dur {
  color: rgba(255, 255, 255, 0.4);
}

.sd-progress {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  outline: none;
  transition: height 0.2s;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.sd-progress:hover {
  height: 5px;
}

.sd-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  border: 2px solid var(--sd-accent);
  margin-top: -4.5px;
  -webkit-transition: transform 0.2s;
  transition: transform 0.2s;
}

.sd-progress:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.sd-progress::-webkit-slider-runnable-track {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, var(--sd-accent) var(--sd-fill-pct, 0%), transparent var(--sd-fill-pct, 0%));
}

/* ── Progress Fallbacks ── */
/* Center flash */
.sd-center-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
}

.sd-center-icon {
  width: 70px;
  height: 70px;
  background: rgba(var(--bs-black-rgb), 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bs-white);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.sd-center-icon.pop {
  opacity: 1;
  transform: scale(1);
}

.sd-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-black-rgb), 0.5);
  pointer-events: none;
  z-index: 50;
}

.sd-spinner.on {
  display: flex;
}

.sd-nav-outer {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 200;
}

.sd-nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.5);
  color: var(--bs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.sd-nav-arrow:hover {
  background: rgba(40, 40, 40, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--bs-white);
}

.sd-nav-arrow.off {
  opacity: 0.28;
  pointer-events: none;
}

/* Sheets */
.sd-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--bs-black-rgb), 0.55);
  /* Above .sd-shell (9000) so episodes/settings sheets are visible */
  z-index: 10040;
  display: none;
  backdrop-filter: blur(2px);
}

.sd-sheet-overlay.open {
  display: block;
}

.sd-sheet {
  position: fixed;
  bottom: -100%;
  left: var(--sd-sheet-center-x, 50%);
  transform: translateX(-50%);
  width: var(--sd-sheet-width, 100%);
  max-width: var(--sd-sheet-width, 430px);
  /* Theme-derived deep card tone (Figma-like #0D1619) without hardcoding */
  background: color-mix(in srgb, var(--bs-body-bg) 72%, var(--bs-dark) 28%);
  border-radius: 18px 18px 0 0;
  z-index: 10050;
  transition: bottom 0.35s cubic-bezier(0.32, 1, 0.28, 1);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.sd-sheet#sdSettingsSheet {
  width: var(--sd-sheet-width, 100%);
  max-width: var(--sd-sheet-width, 430px);
}

.sd-sheet.open {
  bottom: 0;
  height: min(72vh, 100dvh - env(safe-area-inset-bottom, 0px) - 8px);
}

.sd-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sd-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 12px;
  flex-shrink: 0;
}

.sd-sheet-head h6 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.sd-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-sheet-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sd-end-sheet {
  width: var(--sd-sheet-width, 100%);
  max-width: var(--sd-sheet-width, 430px);
  border-radius: 20px 20px 0 0;
  background: #121212;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: none;
}

.sd-end-sheet.open {
  height: auto;
  max-height: min(88vh, 100dvh - env(safe-area-inset-bottom, 0px) - 8px);
}

.sd-end-body {
  padding: 8px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.sd-end-art {
  width: min(100%, 280px);
  max-height: 200px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center bottom;
     object-position: center bottom;
  margin: 0 auto 4px;
  display: block;
}

.sd-end-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(15px, 4.1vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}

.sd-end-copy {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  max-width: 34ch;
}

.sd-end-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--sd-accent);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 10px 24px var(--sd-accent-glow);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.sd-end-view-all:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .sd-end-body {
    padding: 4px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .sd-end-art {
    width: min(100%, 260px);
    max-height: 180px;
  }
  .sd-end-title {
    font-size: clamp(14px, 4.1vw, 22px);
    margin-bottom: 12px;
  }
  .sd-end-copy {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .sd-end-view-all {
    min-height: 52px;
    font-size: 16px;
    border-radius: 12px;
  }
}
.sd-season-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.sd-season-tab {
  flex: 0 0 auto;
  padding: 12px 14px 11px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.sd-season-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sd-season-tab.active {
  color: var(--sd-accent);
}

.sd-season-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--sd-accent);
  border-radius: 2px 2px 0 0;
}

.sd-ep-scroll {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  /* Hide scrollbar (grid still scrolls on touch / wheel) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sd-ep-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sd-ep-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 14px 22px;
}

.sd-ep-grid.active {
  display: grid;
}

.sd-ep-tile {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 3/4;
  background: #222;
}

.sd-ep-tile:focus-visible {
  outline: 2px solid var(--sd-accent);
  outline-offset: 2px;
}

.sd-ep-tile-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}

.sd-ep-tile:hover .sd-ep-tile-thumb {
  transform: scale(1.04);
}

.sd-ep-tile.now {
  outline: 2px solid var(--sd-accent);
  outline-offset: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.sd-ep-tile-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sd-ep-progress-track {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  z-index: 2;
}

.sd-ep-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sd-accent);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.sd-ep-tile-badge + .sd-ep-progress-track {
  bottom: 6px;
}

.sd-no-stream {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  gap: 12px;
  text-align: center;
  padding: 24px;
}

/* Share sheet (Figma-style grid + squircle brand tiles) */
#sdShareSheet {
  background: #0b0e11;
}

#sdShareSheet .sd-sheet-close {
  background: #2f3540;
  color: #fff;
}

#sdShareSheet .sd-sheet-close:hover {
  background: #3a424d;
}

.sd-share-body {
  padding: 4px 20px max(28px, 16px + env(safe-area-inset-bottom, 0px));
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.sd-share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}

.sd-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  box-shadow: none;
  outline: none;
}

.sd-share-item:hover {
  color: #fff !important;
}

.sd-share-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: #fff;
  background: #2f3540;
  border: none;
  flex-shrink: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sd-share-item:hover .sd-share-icon {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.sd-share-icon.fb {
  background: #1877f2;
}

.sd-share-icon.tw {
  background: #000;
}

.sd-share-icon.wa {
  background: #25d366;
}

.sd-share-icon.tg {
  background: #2aabee;
}

.sd-share-icon.link {
  background: #2f3540;
}

.sd-share-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  letter-spacing: 0.01em;
}

.sd-copy-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: #fff;
  color: #111;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10120;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.sd-copy-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

#sdShareSheet.open {
  height: auto;
  max-height: min(52vh, 100dvh - env(safe-area-inset-bottom, 0px) - 8px);
}

/* Fullscreen mode tweaks */
.sd-shell.sd-is-fs .sd-side-dock,
.sd-shell.sd-is-fs .sd-backdrop {
  display: none !important;
}

.sd-shell.sd-is-fs .sd-stage {
  max-width: 100vw;
  width: 100%;
  height: 100%;
  padding: 0;
}

.sd-shell.sd-is-fs .sd-card {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}

.sd-shell.sd-is-fs .sd-player-bottom-text {
  padding-right: 56px;
  max-width: 100%;
}

/* Isolate sheets from global theme link/button styles */
.sd-sheet a,
.sd-sheet button {
  font-family: inherit;
}

.sd-sheet .sd-settings-item,
.sd-sheet .sd-share-item,
.sd-sheet .sd-sheet-close,
.sd-sheet .sd-season-tab,
.sd-sheet .sd-settings-tab {
  box-sizing: border-box;
}

#sd-video::cue {
  color: transparent;
  text-shadow: none;
  background: transparent;
}

#sd-video::-webkit-media-text-track-container {
  display: none !important;
}

#sd-video::-webkit-media-text-track-display {
  display: none !important;
}

#sd-ext-audio {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.sd-subtitle-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 170px;
  /* Place subtitles above player controls but below sheets/overlays */
  z-index: 10045;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  padding: 0 16px;
}

.sd-subtitle-line {
  display: inline-block;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  padding: 4px 12px;
  border-radius: 4px;
  max-width: 92%;
  text-align: center;
  word-break: break-word;
}

@media (min-width: 600px) {
  .sd-subtitle-line {
    font-size: 16px;
  }
}
.sd-conn-err-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  animation: sd-fade-in 0.3s ease;
}

.sd-conn-err-overlay.visible {
  display: flex;
}

.sd-error-body {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sd-error-icon {
  font-size: 64px;
  color: var(--sd-accent);
  filter: drop-shadow(0 0 15px var(--sd-accent-glow));
}

.sd-error-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.sd-error-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.sd-error-retry {
  background: var(--sd-accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--sd-accent-glow);
  transition: transform 0.2s;
  margin-top: 8px;
}

.sd-error-retry:hover {
  transform: scale(1.05);
}

@keyframes sd-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Home / Shorts hub — phones: above banner; tablet: header center; desktop xl: main nav */
.sd-mobile-hub-tabs {
  display: none;
}

body.sd-has-mobile-hub {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
}

body.sd-has-mobile-hub > main.main--sd-hub {
  flex: 0 0 auto !important;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

.sd-mobile-hub-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sd-mobile-hub-header-wrap {
  display: none;
}

/* ── Phone: tabs in page stack (above banner) ── */
@media (max-width: 767.98px) {
  .sd-mobile-hub-tabs--in-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    margin: 0;
    box-sizing: border-box;
    background: var(--bs-body-bg, #000);
    flex-shrink: 0;
  }
  .sd-mobile-hub-tabs--in-stack.sd-mobile-hub-tabs--above-banner {
    position: static;
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto 10px;
    padding: 5px;
    gap: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1;
  }
  body.sd-has-mobile-hub.sd-mobile-hub-home .sd-mobile-hub-stack > .sd-mobile-hub-tabs--above-banner {
    margin-top: var(--sd-site-header-height, 4.25rem);
  }
  .sd-mobile-hub-stack .sd-banner-section,
  .sd-mobile-hub-stack > .banner-section {
    margin-top: 0;
    padding-top: 0;
  }
}
/* ── Tablet / small laptop: tabs centered in header ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .landing-header {
    position: relative;
    flex-wrap: nowrap;
  }
  .sd-header-start {
    flex: 0 0 auto;
    z-index: 2;
  }
  .sd-mobile-hub-header-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(420px, 100% - 200px);
    margin: 0;
    padding: 0;
    z-index: 3;
    pointer-events: none;
  }
  .sd-mobile-hub-header-wrap .sd-mobile-hub-tabs {
    pointer-events: auto;
  }
  .landing-header .right-panel {
    flex: 0 0 auto;
    margin-inline-start: auto;
    z-index: 2;
  }
  .sd-mobile-hub-tabs--in-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 4px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  .sd-mobile-hub-tabs--in-header .sd-mobile-hub-tabs__btn {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 250px;
    padding: 10px 18px;
    min-height: 42px;
    font-size: 15px;
  }
}
/* Shared button chrome (stack + header) */
@media (max-width: 1199.98px) {
  body.sd-has-mobile-hub header .navbar .button-shorts {
    display: none !important;
  }
  .sd-mobile-hub-tabs__btn {
    flex: 1 1 0;
    min-width: 100px;
    max-width: none;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .sd-mobile-hub-tabs__btn:active {
    transform: scale(0.98);
  }
  .sd-mobile-hub-tabs--above-banner .sd-mobile-hub-tabs__btn {
    flex: 1 1 0;
    min-width: 120px;
    max-width: none;
    padding: 12px 20px;
    min-height: 52px;
    font-size: 17px;
  }
  .sd-mobile-hub-tabs__btn--home.is-active {
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: none;
    font-weight: 600;
  }
  .sd-mobile-hub-tabs__btn--shorts.is-active,
  .sd-mobile-hub-tabs__btn.sd-mobile-hub-tabs__btn--shorts {
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    background: radial-gradient(113.79% 113.79% at 46.67% 34.48%, rgba(var(--bs-primary-rgb), 0.8) 0%, rgba(255, 115, 115, 0.008) 53.85%, rgba(var(--bs-primary-rgb), 0.8) 100%), radial-gradient(75% 938.17% at 81.88% 31.9%, rgba(237, 93, 93, 0.12) 0%, rgba(237, 93, 93, 0.15) 50%, rgba(237, 93, 93, 0.05) 100%), radial-gradient(41.87% 717% at 22.71% 50%, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(var(--bs-primary-rgb), 0) 56.25%, rgba(221, 100, 100, 0.05) 100%);
    box-shadow: 0 -4px 14px 0 rgba(255, 255, 255, 0.12) inset;
  }
  .sd-mobile-hub-tabs__btn--shorts i {
    font-size: 0.95rem;
    margin: 0;
    color: inherit;
  }
  .sd-mobile-hub-tabs__icon-img {
    width: 18px;
    height: 18px;
    -o-object-fit: contain;
       object-fit: contain;
    flex-shrink: 0;
  }
  body.sd-has-mobile-hub .sd-shorts-page {
    padding-top: 0;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}
/* Desktop xl: hub hidden; Shorts lives in horizontal nav */
@media (min-width: 1200px) {
  .sd-mobile-hub-header-wrap {
    display: none !important;
  }
}
