/* === Shared 2-column watch layout (clips + video) ================= */

/* Only clip page locks body scroll; video stays normal */
body.clips-mode {
  overflow: hidden;
}

/* Root sections */
.page-clips-show,
.page-show--video {
  max-width: 920px;;
  background: #05050a;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
}

/* 0.66fr media | 0.33fr details */
.clips-layout,
.show-layout--two-col {
  flex: 1;

  gap: 16px;
  padding: 6px;
  height: 100%;
  position: relative; /* for overlay nav on clips */
}

/* === LEFT: media (non-scrollable) ================================= */

.clips-layout__media,
.show-layout__media {
  position: relative;
  background: #000;
  overflow: hidden;               /* media column itself doesn't scroll */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fit the actual player into the column */
.clips-layout__media video,
.clips-layout__media .video-player,
.clips-layout__media .player-wrapper,
.show-layout__media video,
.show-layout__media .video-player,
.show-layout__media .player-wrapper {
  height: 100%;
  max-width: 100%;
  max-height: 100%;
    width: auto;

  object-fit: contain;
}

/* === RIGHT: details column (scrollable) =========================== */

.clips-layout__details,
.show-layout__details {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow-y: auto;   /* only details scroll */
  overflow-x: hidden;
}

/* Hide scrollbar but keep scroll behavior */
.clips-layout__details::-webkit-scrollbar,
.show-layout__details::-webkit-scrollbar {
  width: 0;
}

/* === Clip up/down buttons (keep next/prev only for CLIPS) ========= */

.page-clips-show .clips-layout__nav {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: auto;
}

/* Button look (same as you had before) */
.clips-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 30% 0%, #4c1d95, #020617);
  color: #f9fafb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out;
}

.clips-nav-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.clips-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  border-color: #a855f7;
}

.clips-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

/* === Responsive ==================================================== */

@media (max-width: 1024px) {
  .page-clips-show,
  .page-show--video {
    height: auto; /* normal page scroll on tablet / phone */
  }

  .clips-layout,
  .show-layout--two-col {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
  }

  .clips-layout__media,
  .show-layout__media {
    height: 55vh;
  }

  .clips-layout__details,
  .show-layout__details {
    max-height: 45vh; /* details scroll area */
  }

  .page-clips-show .clips-layout__nav {
    right: 10px;
    bottom: 16px;
    top: auto;
    transform: none;
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .clips-layout,
  .show-layout--two-col {
    padding: 8px;
    gap: 8px;
  }

  .clips-nav-btn {
    width: 38px;
    height: 38px;
  }
}
/* === Blog show layout ===================================================== */

.page-show--blog {
  padding: 16px 12px 24px;
  background: #05050a;
  color: #e5e7eb;
  /* lock blog section to viewport minus header so columns can scroll */
  height: calc(100vh - 60px); /* adjust 60px if header height changes */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.show-layout--blog {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  height: 100%;
}

/* Make both columns scroll independently */
.page-show--blog .show-main,
.page-show--blog .show-side {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;

  /* hide scrollbar but keep scroll behavior */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}

.page-show--blog .show-main::-webkit-scrollbar,
.page-show--blog .show-side::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Main article card */
.blog-article {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 16px 18px;
}

.blog-article__intro {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #e5e7eb;
}

.blog-article__blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Blocks */

.blog-block {
  padding-top: 12px;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
}

.blog-block:first-child {
  border-top: none;
  padding-top: 0;
}

/* Text block */

.blog-block--text .blog-block__text {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Child post blocks (media etc.) */

.blog-block__child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.blog-block__child-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.blog-block__child-category {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.blog-block__child-dot {
  opacity: 0.7;
}

.blog-block__child-owner {
  color: #e5e7eb;
  text-decoration: none;
}

.blog-block__child-owner:hover {
  text-decoration: underline;
}

.blog-block__child-date {
  color: #9ca3af;
}

.blog-block__child-open {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.8);
  color: #e5e7eb;
  text-decoration: none;
}

.blog-block__child-open:hover {
  background: rgba(129, 140, 248, 0.2);
}

/* Child body */

.blog-block__child-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Inline players */

.blog-block__player {
  border-radius: 12px;
  overflow: hidden;
}

/* Image blocks */

.blog-block__figure {
  margin: 0;
}

.blog-block__image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.blog-block__caption {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* Generic card for non-existing_post fallback */

.blog-block__card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.blog-block__card-media {
  flex: 0 0 96px;
}

.blog-block__card-image {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-block__card-body {
  flex: 1;
}

.blog-block__card-title {
  font-size: 14px;
  margin: 0 0 4px 0;
}

.blog-block__card-title a {
  color: #e5e7eb;
  text-decoration: none;
}

.blog-block__card-title a:hover {
  text-decoration: underline;
}

.blog-block__card-excerpt {
  font-size: 12px;
  color: #9ca3af;
}

/* Inline caption under child media */

.blog-block__child-caption {
  font-size: 12px;
  color: #e5e7eb;
}

/* Countdown */

.blog-countdown {
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(129, 140, 248, 0.6);
}

.blog-countdown__title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
}

.blog-countdown__meta {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* Sidebar / series */

.blog-series {
  margin-top: 12px;
}

.blog-series__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.blog-series__item + .blog-series__item {
  margin-top: 4px;
}

.blog-series__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #e5e7eb;
}

.blog-series__link--active {
  font-weight: 600;
  color: #a855f7;
}

.blog-series__current-dot {
  font-size: 10px;
}

/* Responsive */

@media (max-width: 1024px) {
  .page-show--blog {
    height: auto;
  }

  .show-layout--blog {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .page-show--blog .show-main,
  .page-show--blog .show-side {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .page-show--blog {
    padding: 12px 8px 20px;
  }

  .blog-article {
    padding: 12px 12px 14px;
  }
}
