.mod-fliksee-mediahub {
  width: 100%;
}

.flk-mediahub__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flk-mediahub__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
}

.flk-mediahub__nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(35, 189, 245, 0.34);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  user-select: none;
}

.flk-mediahub__nav-button:hover,
.flk-mediahub__nav-button:focus {
  transform: translateY(-1px);
  border-color: rgba(135, 0, 165, 0.48);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.flk-mediahub--tabs .flk-mediahub__panel {
  display: none;
}

.flk-mediahub--stacked .flk-mediahub__panel + .flk-mediahub__panel {
  margin-top: 34px;
}

.flk-mediahub__section-head {
  margin: 0 0 16px;
}

.flk-mediahub__section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
  font-weight: 900;
}

.flk-mediahub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.flk-mediahub__card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flk-mediahub__thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.flk-mediahub__thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #131722 0%, #202a44 55%, #2d3f73 100%);
}

.flk-mediahub__thumb img,
.flk-mediahub__thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flk-mediahub__thumb img {
  object-fit: cover;
  transition: transform .25s ease;
}

.flk-mediahub__thumb-link:hover img,
.flk-mediahub__thumb-link:focus img {
  transform: scale(1.04);
}

.flk-mediahub__thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.16);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.flk-mediahub__play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.flk-mediahub__play-badge span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  font-size: .95rem;
}

.flk-mediahub__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.flk-mediahub__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 16px 16px 18px;
}

.flk-mediahub__title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  margin-bottom: 10px;
}

.flk-mediahub__title-row h3 {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flk-mediahub__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 1.25em;
  margin-bottom: 12px;
  color: #666;
  font-size: .86rem;
  line-height: 1.25;
}

.flk-mediahub__meta-row a {
  color: inherit;
  text-decoration: none;
}

.flk-mediahub__meta-row a:hover,
.flk-mediahub__meta-row a:focus {
  color: #23bdf5;
}

.flk-mediahub__description {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #555;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flk-mediahub__actions {
  margin-top: auto;
}

.flk-mediahub__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.flk-mediahub__empty {
  padding: 18px;
  color: #666;
}

@media (max-width: 640px) {
  .flk-mediahub__nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .flk-mediahub__nav-button {
    min-height: 38px;
    padding: 9px 14px;
    font-size: .92rem;
  }

  .flk-mediahub__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flk-mediahub__play-badge strong {
    display: none;
  }
}


/* 0.30.0 featured artist compact action polish */
.flk-mediahub__actions.flk-card-actions .flk-btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: .9rem;
}

/* 0.1.2 Media Hub optional lazy video modal preview. */
.flk-mediahub-modal {
  align-items: center;
  background: rgba(2, 6, 23, 0.78);
  box-sizing: border-box;
  display: none;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 24px;
  position: fixed !important;
  right: 0;
  top: 0;
  width: 100vw;
  z-index: 2147483000;
}
.flk-mediahub-modal.is-open {
  display: flex !important;
}
.flk-mediahub-modal__backdrop {
  inset: 0;
  position: absolute;
}
.flk-mediahub-modal__dialog {
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(7, 14, 33, 0.98), rgba(5, 8, 18, 0.98));
  border: 1px solid rgba(35, 189, 245, 0.34);
  border-radius: 22px;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.58), 0 0 44px rgba(135, 0, 165, 0.2);
  color: #fff;
  max-width: min(980px, 96vw);
  padding: 18px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.flk-mediahub-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 2;
}
.flk-mediahub-modal__close:hover,
.flk-mediahub-modal__close:focus-visible {
  background: linear-gradient(135deg, #23bdf5 0%, #8700A5 100%);
  outline: none;
}
.flk-mediahub-modal__title {
  color: #fff;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 850;
  margin: 0 48px 14px 0;
}
.flk-mediahub-modal__frame {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.flk-mediahub-modal__frame::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.flk-mediahub-modal__frame iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.flk-mediahub-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
body.flk-mediahub-modal-open {
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 680px) {
  .flk-mediahub-modal {
    align-items: center;
    padding: 10px;
  }
  .flk-mediahub-modal__dialog {
    border-radius: 18px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    max-width: 96vw;
    padding: 14px;
  }
  .flk-mediahub-modal__title {
    font-size: 1rem;
  }
  .flk-mediahub-modal__actions {
    justify-content: stretch;
  }
  .flk-mediahub-modal__actions .flk-btn {
    width: 100%;
  }
}

/* 0.1.2 DRAFT4 mobile modal hardening: inline JS now forces viewport overlay,
   these rules support the same behavior when CSS loads normally. */
html.flk-mediahub-modal-open,
body.flk-mediahub-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}
.flk-mediahub-modal[aria-hidden="true"] {
  display: none !important;
}
.flk-mediahub-modal.is-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2147483000 !important;
}
@media (max-width: 680px) {
  .flk-mediahub-modal.is-open {
    padding: 10px !important;
  }
  .flk-mediahub-modal__dialog {
    max-height: calc(100dvh - 20px) !important;
    overflow: auto !important;
  }
}


/* 0.1.2 DRAFT6 mobile modal restore: keep the working DRAFT4 centered
   modal behavior and make the close control unmistakable on small screens. */
@media (max-width: 680px) {
  .flk-mediahub-modal.is-open {
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
  }
  .flk-mediahub-modal__dialog {
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
    margin: auto !important;
  }
  .flk-mediahub-modal__close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 32px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #23bdf5 0%, #8700A5 100%) !important;
    border: 2px solid rgba(255,255,255,0.78) !important;
    box-shadow: 0 10px 32px rgba(0,0,0,0.62), 0 0 22px rgba(35,189,245,0.38) !important;
    z-index: 2147483001 !important;
  }
}
