/* =========================================================
   BASE FEED CARD / HEADER / FOOTER
   Required for all layouts
   ========================================================= */

.bks-feed-card {
  background: linear-gradient(145deg, #141516, #101112);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  color: #f5f7fb;
}

.bks-feed-card-body {
  padding: 1.55rem;
  cursor: pointer;
}

.bks-post-media-shell,
.bks-post-media-shell *,
.bks-post-footer,
.bks-post-footer *,
.bks-post-header-actions,
.bks-post-header-actions *,
.bks-quote-card,
.bks-quote-card * {
  cursor: auto;
}

.bks-feed-card[data-feed-event-type="repost"] {
  border: #4db3ff;
  box-shadow:
    0 0 0 1px rgba(77,179,255,.35),
    0 18px 45px rgba(0,0,0,.22);
}

.bks-feed-card[data-feed-event-type="repost"] .bks-post-header {
  border-bottom-color: rgba(77,179,255,.28);
}

.bks-repost-banner {
  color: #4db3ff;
  letter-spacing: .01em;
}

.bks-feed-card[data-feed-event-type="quote"] {
  border: #35d07f;
  box-shadow:
    0 0 0 1px rgba(53,208,127,.35),
    0 18px 45px rgba(0,0,0,.22);
}

.bks-feed-card[data-feed-event-type="quote"] .bks-post-header {
  border-bottom-color: rgba(53,208,127,.28);
}

.bks-quote-banner {
  color: #35d07f;
  letter-spacing: .01em;
}

.bks-post-header {
  background: linear-gradient(
    180deg,
    rgb(32, 36, 41),
    rgba(255,255,255,.01)
  );
  margin: -1.55rem -1.55rem 0;
  padding: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);

  /* Only round the top corners */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}


.bks-post-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: linear-gradient(
    180deg,
    rgb(32, 36, 41),
    rgba(255,255,255,.01)
  );
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.bks-post-name {
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
}

.bks-post-time {
  color: rgba(255,255,255,.68);
  font-size: .72rem;
}

.bks-author-link {
  color: inherit;
  text-decoration: none;
}

.bks-author-link:hover {
  color: #4db3ff;
  text-decoration: none;
}

.bks-author-link .bks-post-avatar,
.bks-author-link img {
  cursor: pointer;
}

.bks-post-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bks-btn-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(-1px);
}

.bks-pill-btn,
.bks-footer-btn {
  width: auto;
  min-height: 22px;
  padding: .2rem 1rem;
  border-radius: 10px;
  font-size: .72rem;
  border: 1px solid rgba(255,255,255,.18);
  background: #1f1d1d;
  color: #f2f4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  transition: all .18s ease;
}

.bks-pill-btn:hover,
.bks-footer-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.bks-pill-btn-danger {
  border-color: rgba(230,182,186,.75);
  color: #e4696f;
}

.bks-pill-btn-primary {
  border-color: rgba(142,176,214,.85);
  color: #2d8fff;
}

.bks-pill-btn-following {
  border-color: rgba(126,217,87,.75);
  color: #8ee66b;
}

.bks-post-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
  padding: .5rem;
  background: rgb(40, 45, 52);

  border-top: 1px solid rgba(255,255,255,.06);

  border-radius: 0 0 12px 12px;
}

.bks-footer-more-wrap {
  position: relative;
  margin-left: .15rem;
}

.bks-footer-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + .45rem);
  min-width: 165px;
  padding: .35rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #111113;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  z-index: 50;
}

.bks-footer-more-menu[hidden] {
  display: none;
}

.bks-footer-more-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  text-align: left;
  padding: .55rem .7rem;
  border-radius: 9px;
  font-size: .78rem;
}

.bks-footer-more-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.bks-quote-card {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 1rem;
}

.bks-quote-author {
  color: #fff;
  font-weight: 600;
  font-size: .86rem;
}

.bks-quote-time {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
}


/* =========================================================
   QUOTED POST MEDIA SAFETY
   Keeps quoted images/videos inside the quote card
   ========================================================= */
.bks-quote-card {
  max-width: 100%;
  overflow: hidden;
}

.bks-quote-content {
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  line-height: 1.45;
  margin-top: .55rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =========================================================
   QUOTED POST INLINE CONTENT SAFETY
   Controls images/videos pasted directly into quoted post text.
   Do not force iframe height here because it can break YouTube/Spotify.
   ========================================================= */

.bks-quote-content img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: .75rem auto;
  border-radius: 12px;
}

.bks-quote-content video {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: .75rem auto;
  border-radius: 12px;
}

.bks-quote-content iframe {
  max-width: 100% !important;
}

/* =========================================================
   QUOTED POST ATTACHED MEDIA SAFETY
   Controls media rendered through post_media_bootstrap.html.
   ========================================================= */

.bks-quote-card .bks-post-media-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.bks-quote-card .bks-post-media {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bks-quote-card .bks-media-image,
.bks-quote-card .bks-media-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.bks-quote-card .bks-media-vertical {
  width: min(260px, 100%);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  margin: .75rem auto 0;
}

.bks-quote-card .bks-media-vertical video,
.bks-quote-card .bks-media-vertical iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   QUOTED POST EMBED CARDS
   Keeps YouTube, Spotify, and external cards proportional.
   ========================================================= */

.bks-quote-card .bks-youtube-card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #050505;
}

.bks-quote-card .bks-youtube-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bks-quote-card .bks-spotify-card {
  width: 100%;
  max-width: 100%;
  min-height: 152px;
  border-radius: 14px;
  background: #050505;
}

.bks-quote-card .bks-media-youtube {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.bks-quote-card .bks-media-youtube iframe {
  width: 100% !important;
  height: 100% !important;
}

.bks-quote-card .bks-media-spotify iframe {
  width: 100% !important;
  min-height: 152px;
  height: 152px !important;
}

.bks-quote-card .bks-external-media-card {
  width: 100%;
  max-width: 100%;
}

.bks-youtube-autoplay-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.bks-youtube-autoplay-shell .bks-youtube-thumb,
.bks-youtube-autoplay-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bks-youtube-autoplay-shell .bks-youtube-thumb {
  object-fit: cover;
  z-index: 1;
}

.bks-youtube-autoplay-shell iframe {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.bks-youtube-autoplay-shell.is-playing iframe {
  opacity: 1;
  pointer-events: auto;
}


@media (max-width: 900px) {
  .bks-post-header {
    align-items: flex-start !important;
  }

  .bks-post-header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

.bks-instagram-fallback-card {
  min-height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1.25rem;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 128, .28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 174, 0, .22), transparent 35%),
    #050505;
}

.bks-instagram-fallback-card:hover {
  color: #fff;
  text-decoration: none;
}

.bks-instagram-fallback-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 1.4rem;
}

.bks-instagram-fallback-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.bks-instagram-fallback-url {
  max-width: 90%;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bks-feed-blog-copy,
.bks-feed-blog-copy * {
  color: #f4f4f6 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.bks-feed-blog-divider {
  width: 472px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,.06)
  );
  margin: .95rem 0 1.1rem;
  border-radius: 999px;
}

.bks-layout-classic-hero .bks-feed-blog-divider,
.bks-layout-magazine-stack .bks-feed-blog-divider,
.bks-layout-vertical-showcase .bks-feed-blog-divider,
.bks-layout-portrait-spotlight .bks-feed-blog-divider,
.bks-layout-pull-quote .bks-feed-blog-divider {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   SHARED BLOG TEXT ONLY
   ========================================================= */

.bks-feed-blog-preview {
  width: 100%;
  margin-top: 1.25rem;
}

.bks-feed-blog-title {
  font-size: 1.6rem;
  line-height: 1.12;
  margin: 0 0 .45rem;
  color: #fff;
}

.bks-feed-blog-meta {
  color: rgba(255,255,255,.62);
  font-size: .85rem;
  margin-bottom: .85rem;
}

.bks-feed-blog-copy {
  color: #f4f4f6;
  font-size: 1rem;
  line-height: 1.65;
  word-break: break-word;
}

.bks-feed-blog-copy p {
  margin: 0 0 1.35rem;
}

.bks-feed-blog-copy h1,
.bks-feed-blog-copy h2,
.bks-feed-blog-copy h3 {
  margin: 0 0 .65rem;
  line-height: 1.15;
}

.bks-feed-blog-copy p:has(br:only-child) {
  display: none;
}

.bks-feed-blog-copy img {
  display: block;
  max-width: min(100%, 420px);
  width: auto;
  height: auto;
  margin: 1rem auto;
  border-radius: 14px;
}

.bks-feed-blog-copy p img {
  max-width: min(100%, 420px);
}

.bks-feed-blog-excerpt {
  overflow: hidden;
  position: relative;
}

.bks-feed-blog-excerpt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(
    180deg,
    rgba(17,17,18,0),
    rgba(17,17,18,1)
  );
  pointer-events: none;
}

.bks-read-more-link {
  display: inline-flex;
  margin-top: .7rem;
  color: #4db3ff;
  font-weight: 700;
  text-decoration: none;
}

.bks-read-more-link:hover {
  text-decoration: underline;
}

/* =========================================================
   SHARED MEDIA BASE
   Only basic safety. Do not size layouts here.
   ========================================================= */

.bks-post-media-shell {
  overflow: hidden;
}

.bks-post-media {
  width: 100%;
  max-width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: transparent;
}

.bks-media-image,
.bks-media-video {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 320px;

  object-fit: contain;
}

.bks-media-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.bks-media-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bks-media-vertical iframe,
.bks-media-vertical video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bks-media-spotify iframe {
  width: 100%;
  min-height: 152px;
  border: 0;
  display: block;
}

/* =========================================================
   LAYOUTS THAT MATCH THE PICKER
   ========================================================= */

.bks-feed-blog-subtitle {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 .8rem;
}

/* 1. Plain Post: Title, paragraph */
.bks-layout-plain .bks-feed-blog-title,
.bks-layout-plain .bks-feed-blog-copy {
  text-align: left;
}

/* 2. Classic Hero: Title, subtitle, media, paragraph */
.bks-layout-classic-hero {
  text-align: center;
}

.bks-layout-classic-hero .bks-feed-blog-title,
.bks-layout-classic-hero .bks-feed-blog-subtitle {
  text-align: center;
}

.bks-layout-classic-hero .bks-feed-blog-subtitle {
  max-width: 720px;
  margin: 0 auto .9rem;
}

.bks-layout-classic-hero .bks-post-media-shell {
  width: 100%;
  margin: 0 0 1.25rem;
  border-radius: 16px;
}

.bks-layout-classic-hero .bks-feed-blog-copy {
  text-align: left;
  max-height: 12rem;
}

/* 3. Magazine Stack: media, title, subtitle, paragraph */
.bks-layout-magazine-stack .bks-post-media-shell {
  width: 100%;
  margin-bottom: 1.35rem;
  border-radius: 18px;
}

.bks-layout-magazine-stack .bks-feed-blog-title,
.bks-layout-magazine-stack .bks-feed-blog-subtitle {
  text-align: center;
}

.bks-layout-magazine-stack .bks-feed-blog-subtitle {
  max-width: 720px;
  margin: 0 auto .9rem;
}

.bks-layout-magazine-stack .bks-feed-blog-copy {
  text-align: left;
  max-height: 12rem;
}

/* 4. Split Feature Right: title, subtitle, media right, paragraph wraps */
.bks-layout-split-feature,
.bks-layout-split-feature-left {
  display: block;
}

.bks-layout-split-feature::after,
.bks-layout-split-feature-left::after {
  content: "";
  display: block;
  clear: both;
}

.bks-layout-split-feature .bks-layout-float-media {
  float: right;
  width: 300px;
  max-width: 38%;
  margin: 0 0 1rem 1.5rem;
}

.bks-layout-split-feature-left .bks-layout-float-media {
  float: left;
  width: 300px;
  max-width: 38%;
  margin: 0 1.5rem 1rem 0;
}

.bks-layout-split-feature .bks-feed-blog-title,
.bks-layout-split-feature .bks-feed-blog-subtitle,
.bks-layout-split-feature-left .bks-feed-blog-title,
.bks-layout-split-feature-left .bks-feed-blog-subtitle {
  text-align: left;
}

.bks-layout-split-feature .bks-post-media-shell,
.bks-layout-split-feature-left .bks-post-media-shell {
  width: 100%;
  border-radius: 16px;
}

.bks-split-copy-mask {
  max-height: 20rem;
  overflow: hidden;
  position: relative;
}

.bks-split-copy-mask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(180deg, rgba(17,17,18,0), rgba(17,17,18,1));
  pointer-events: none;
}

/* 5. Vertical Showcase: title, subtitle, vertical media, paragraph */
.bks-layout-vertical-showcase .bks-feed-blog-title,
.bks-layout-vertical-showcase .bks-feed-blog-subtitle {
  text-align: center;
}

.bks-layout-vertical-showcase .bks-feed-blog-subtitle {
  max-width: 720px;
  margin: 0 auto .9rem;
}

.bks-layout-vertical-showcase .bks-post-media-shell {
  width: min(420px, 100%);
  margin: 1.25rem auto 1.35rem;
  border-radius: 18px;
}

.bks-layout-vertical-showcase .bks-media-vertical {
  width: 100%;
  aspect-ratio: 9 / 16;
}

.bks-layout-vertical-showcase .bks-feed-blog-copy {
  text-align: left;
  max-height: 5rem;
}

/* 6. Portrait Spotlight: portrait media, title, subtitle, paragraph */
.bks-layout-portrait-spotlight .bks-post-media-shell {
  width: min(420px, 100%);
  margin: 0 auto 1.25rem;
  border-radius: 18px;
}

.bks-layout-portrait-spotlight .bks-feed-blog-title,
.bks-layout-portrait-spotlight .bks-feed-blog-subtitle {
  text-align: center;
}

.bks-layout-portrait-spotlight .bks-feed-blog-subtitle {
  max-width: 720px;
  margin: 0 auto .9rem;
}

.bks-layout-portrait-spotlight .bks-media-image,
.bks-layout-portrait-spotlight .bks-media-video {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  max-height: 320px;
}

.bks-layout-portrait-spotlight .bks-feed-blog-copy {
  text-align: left;
  max-height: 12rem;
}

/* 7. Pull Quote: title, subtitle, quote, paragraph */
.bks-layout-pull-quote .bks-feed-blog-title,
.bks-layout-pull-quote .bks-feed-blog-subtitle,
.bks-layout-pull-quote .bks-feed-blog-pull-quote {
  text-align: center;
}

.bks-layout-pull-quote .bks-feed-blog-subtitle {
  max-width: 720px;
  margin: 0 auto .9rem;
}

.bks-feed-blog-pull-quote {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
  margin: 1rem auto 1.25rem;
  padding: 1rem;
  max-width: 760px;
  border-top: 2px solid rgba(255,255,255,.45);
  border-bottom: 2px solid rgba(255,255,255,.45);
}

.bks-layout-pull-quote .bks-feed-blog-copy {
  text-align: left;
  max-height: 12rem;
}


@media (max-width: 900px) {

  .bks-layout-split-feature .bks-layout-float-media,
  .bks-layout-split-feature-left .bks-layout-float-media {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }

  /*
   * On mobile the split image stacks above the text.
   * Do not let the desktop excerpt mask clip everything
   * underneath the image.
   */
  .bks-layout-split-feature .bks-split-copy-mask,
  .bks-layout-split-feature-left .bks-split-copy-mask {
    max-height: none;
    overflow: visible;
  }

  .bks-layout-split-feature .bks-split-copy-mask::after,
  .bks-layout-split-feature-left .bks-split-copy-mask::after {
    display: none;
  }
}

/* =========================================================
   MOBILE
   Each layout collapses independently.
   ========================================================= */

@media (max-width: 900px) {
  .bks-layout-split-feature .bks-layout-float-media {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }

  .bks-layout-media-left .bks-post-media-shell {
    width: 100%;
    max-width: 100%;
  }

  .bks-layout-media-right .bks-post-media-shell {
    width: 100%;
    max-width: 100%;
    order: -1;
  }


  .bks-layout-compact-media .bks-post-media-shell {
    width: 100%;
    max-width: 100%;
  }  
}

/* =========================================================
   BOOK REVIEW POSTS
   ========================================================= */

.bks-feed-card.bks-feed-card-review {
  border: 1px solid rgba(216, 189, 148, .42);
  box-shadow:
    0 0 0 1px rgba(216, 189, 148, .08),
    0 18px 45px rgba(0, 0, 0, .22);
}

.bks-feed-card.bks-feed-card-review .bks-post-header {
  border-bottom-color: rgba(216, 189, 148, .22);
}


/* Review label + rating */

.bks-feed-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  margin: 0 0 .85rem;
  padding-bottom: .7rem;

  border-bottom: 1px solid rgba(216, 189, 148, .18);
}

.bks-feed-review-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;

  color: #d8bd94;

  font-size: .72rem;
  font-weight: 800;
  line-height: 1;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.bks-feed-review-label i {
  font-size: .9rem;
}


/* Star rating */

.bks-feed-review-rating {
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  white-space: nowrap;
}

.bks-feed-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;

  font-size: 1rem;
  line-height: 1;
}

.bks-feed-review-stars span {
  color: rgba(255, 255, 255, .18);
}

.bks-feed-review-stars span.is-filled {
  color: #d8bd94;
}

.bks-feed-review-score {
  color: rgba(255, 255, 255, .65);

  font-size: .72rem;
  font-weight: 700;
}


/* Mobile */

@media (max-width: 576px) {

  .bks-feed-review-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

}

/* Auto-review posts should not clip rating/description content */
.bks-feed-card[data-post-type="auto_review"] .bks-split-copy-mask {
    max-height: 18rem;   /* control card preview height here */
    overflow: hidden;
    position: relative;
}

.bks-feed-card[data-post-type="auto_review"] .bks-split-copy-mask::after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;        /* control fade height here */
    background: linear-gradient(
        180deg,
        rgba(17, 17, 18, 0),
        rgba(17, 17, 18, 1)
    );
    pointer-events: none;
}




.bks-feed-blog-copy.bks-excerpt-full,
.bks-feed-blog-excerpt.bks-excerpt-full,
.bks-excerpt-full,
.bks-excerpt-full * {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  color: rgba(255,255,255,.9) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.bks-feed-blog-copy.bks-excerpt-medium,
.bks-feed-blog-excerpt.bks-excerpt-medium {
  max-height: 12rem !important;
  overflow: hidden !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.bks-feed-blog-copy.bks-excerpt-tall,
.bks-feed-blog-excerpt.bks-excerpt-tall {
  max-height: 18rem !important;
  overflow: hidden !important;
}

.bks-feed-blog-copy.bks-excerpt-fade,
.bks-feed-blog-excerpt.bks-excerpt-fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%) !important;
}

.bks-feed-blog-excerpt.bks-excerpt-full::after,
.bks-excerpt-full::after {
  display: none !important;
  content: none !important;
}


.bks-feed-restoring #bks-post-feed,
.bks-feed-restoring #bks-feed-sentinel {
  opacity: 0;
  pointer-events: none;
}

#bks-feed-restore-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(21, 21, 21, .92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}

.bks-feed-restoring #bks-feed-restore-overlay {
  display: flex;
}

.bks-feed-restore-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: #4db3ff;
  border-radius: 999px;
  animation: bksFeedSpin .8s linear infinite;
}

@keyframes bksFeedSpin {
  to { transform: rotate(360deg); }
}

.bks-user-badge i,
.bks-profile-user-badge i {
  font-size: .9em;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  vertical-align: -0.08em;
}

.bks-feed-spoiler-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(251, 113, 133, .36);
  border-radius: 14px;
  padding: 13px 15px;
  background:
    linear-gradient(
      135deg,
      rgba(251, 113, 133, .12),
      rgba(251, 113, 133, .045)
    );
}

.bks-feed-spoiler-warning.is-minor {
  border-color: rgba(250, 204, 21, .32);
  background:
    linear-gradient(
      135deg,
      rgba(250, 204, 21, .1),
      rgba(250, 204, 21, .035)
    );
}

.bks-feed-spoiler-warning-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 113, 133, .14);
  color: #d8bd94;
  font-size: 1rem;
}

.bks-feed-spoiler-warning.is-minor
.bks-feed-spoiler-warning-icon {
  background: rgba(250, 204, 21, .12);
  color: #fde047;
}

.bks-feed-spoiler-warning-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bks-feed-spoiler-warning-copy strong {
  color: #fecdd3;
  font-size: .83rem;
  font-weight: 850;
}

.bks-feed-spoiler-warning.is-minor
.bks-feed-spoiler-warning-copy strong {
  color: #fde68a;
}

.bks-feed-spoiler-warning-copy span {
  color: rgba(255, 255, 255, .65);
  font-size: .77rem;
  line-height: 1.4;
}

.bks-feed-spoiler {
  margin-bottom: 4px;
  border: 1px solid rgba(251, 113, 133, .27);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(251, 113, 133, .035);
}

.bks-feed-spoiler > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  color: #fda4af;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bks-feed-spoiler > summary::-webkit-details-marker {
  display: none;
}

.bks-feed-spoiler > summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bks-feed-spoiler > summary:hover {
  background: rgba(251, 113, 133, .08);
}

.bks-feed-spoiler[open] > summary {
  border-bottom: 1px solid rgba(251, 113, 133, .18);
}

.bks-feed-spoiler[open] > summary span {
  font-size: 0;
}

.bks-feed-spoiler[open] > summary span::after {
  content: "Hide spoiler post";
  font-size: .82rem;
}

.bks-feed-spoiler-content {
  padding: 0 16px 16px;
}

/* =========================================================
   COMMENT COMPOSER ACTIONS
   ========================================================= */

.bks-comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.bks-comment-form-tools,
.bks-comment-form-submit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bks-comment-action-btn,
.bks-comment-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 36px;
  padding: 7px 13px;

  border-radius: 999px;

  font-size: .8rem;
  font-weight: 750;
  line-height: 1;

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.bks-comment-action-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
}

.bks-comment-action-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.bks-comment-cancel {
  background: transparent;
  color: rgba(255,255,255,.62);
}

.bks-comment-submit-btn {
  border: 1px solid #6094bb;
  background: #6094bb;
  color: #fff;
}

.bks-comment-submit-btn:hover {
  border-color: #72a5ca;
  background: #72a5ca;
  color: #fff;
}

@media (max-width: 576px) {
  .bks-comment-form-actions {
    align-items: stretch;
  }

  .bks-comment-form-tools,
  .bks-comment-form-submit-actions {
    width: 100%;
  }

  .bks-comment-form-submit-actions {
    justify-content: flex-end;
  }
}

