/* =========================================================================
   Faragiri - Blog redesign (listing + single)
   Scoped to: body.blog (posts page), body.archive (cat/tag/date/author),
   body.search, body.single-post. Dark theme, RTL.
   Selectors are body-prefixed on purpose so they win over the older
   Customizer "Additional CSS" !important rules without a specificity war.
   Brand tokens: surface #1a2030 / #161b27, border #262d3f, accent #24baef,
   text #e7eaf2, muted #9aa3b8, gradient #8D65E9→#5391E4→#6BCD94.
   ========================================================================= */

/* ----------------------------------------------------------------------
   1. LISTING - card grid (blog index, archives, search)
   ---------------------------------------------------------------------- */
body.blog .articles,
body.archive .articles,
body.search .articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 640px) {
  body.blog .articles,
  body.archive .articles,
  body.search .articles { grid-template-columns: 1fr; gap: 22px; }
}

/* card */
body.blog .articles .article,
body.archive .articles .article,
body.search .articles .article {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #262d3f !important;
  border-radius: 16px;
  background: #1a2030;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.blog .articles .article:hover,
body.archive .articles .article:hover,
body.search .articles .article:hover {
  transform: translateY(-4px);
  border-color: #3a4760 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}

/* card image */
body.blog .article .article__attachment,
body.archive .article .article__attachment,
body.search .article .article__attachment {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
body.blog .article .article__attachment--thumbnail,
body.archive .article .article__attachment--thumbnail,
body.search .article .article__attachment--thumbnail {
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
}
body.blog .article .article__attachment--thumbnail a,
body.archive .article .article__attachment--thumbnail a,
body.search .article .article__attachment--thumbnail a { display: block; height: 100%; }

body.blog .article .article__attachment img,
body.archive .article .article__attachment img,
body.search .article .article__attachment img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  transition: transform .45s ease;
}
body.blog .article:hover .article__attachment img,
body.archive .article:hover .article__attachment img,
body.search .article:hover .article__attachment img { transform: scale(1.05); }

/* card body */
body.blog .article .article__summary,
body.archive .article .article__summary,
body.search .article .article__summary {
  flex: 1 1 auto !important;
  max-width: none !important;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px !important;
}
body.blog .article .article__header,
body.archive .article .article__header,
body.search .article .article__header { margin: 0 !important; text-align: right !important; padding: 0 !important; }

/* category chip (above title) */
.fgri-cat { margin: 0 0 11px; line-height: 1; }
.fgri-cat-chip {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: #6fd0f5 !important;
  background: rgba(36, 186, 239, .12);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.fgri-cat-chip:hover { background: rgba(36, 186, 239, .22); color: #8ddcfa !important; }

/* card title (H2) */
body.blog .article .article__title,
body.archive .article .article__title,
body.search .article .article__title {
  font-size: 18px !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
body.blog .article .article__title a,
body.archive .article .article__title a,
body.search .article .article__title a { color: #eef0f6 !important; text-decoration: none; transition: color .2s ease; }
body.blog .article .article__title a:hover,
body.archive .article .article__title a:hover,
body.search .article .article__title a:hover { color: #24baef !important; }

/* card excerpt (clamped) */
body.blog .article .article__excerpt,
body.archive .article .article__excerpt,
body.search .article .article__excerpt {
  font-size: 13.5px !important;
  line-height: 1.95 !important;
  color: #9aa3b8 !important;
  margin: 0 0 16px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.blog .article .article__excerpt p,
body.archive .article .article__excerpt p,
body.search .article .article__excerpt p { margin: 0 !important; }

/* card meta footer */
.fgri-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #79839a;
  padding-top: 14px;
  border-top: 1px solid #232a3a;
}
.fgri-meta__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fgri-meta__item svg { width: 14px; height: 14px; opacity: .85; flex: 0 0 auto; }
.fgri-meta a { color: inherit; text-decoration: none; }
.fgri-meta a:hover { color: #24baef; }

/* ----------------------------------------------------------------------
   2. LISTING HEADER (blog posts page) + ARCHIVE HEADER
   ---------------------------------------------------------------------- */
.fgri-blog-hero {
  text-align: center;
  max-width: 760px;
  margin: 8px auto 38px;
  padding: 8px 16px 0;
}
.fgri-blog-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #6fd0f5;
  background: rgba(36, 186, 239, .10);
  border: 1px solid rgba(36, 186, 239, .22);
  padding: 5px 14px; border-radius: 30px; margin-bottom: 16px;
}
.fgri-blog-hero h1 {
  font-size: 32px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; padding: 0;
  background: linear-gradient(90deg, #8D65E9 0%, #5391E4 47%, #6BCD94 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; display: inline-block;
}
.fgri-blog-hero__sub { font-size: 15px; line-height: 1.9; color: #9aa3b8; margin: 0 auto; max-width: 620px; }
@media (max-width: 640px) { .fgri-blog-hero h1 { font-size: 25px; } }

/* native archive header (categories / tags) - keep theme's full-width wrap */
body.archive .archive__header,
body.archive .page__header {
  background: transparent !important;
  text-align: center;
  padding: 24px 0 0 !important;
  margin-bottom: 30px !important;
  border: 0 !important;
}
body.archive .archive__header .page__title,
body.archive .page__header .page__title,
body.archive h1.page-title {
  font-size: 30px !important; font-weight: 600 !important; line-height: 1.45 !important;
  display: inline-block !important; margin: 0 0 10px !important;
  background: linear-gradient(90deg, #8D65E9 0%, #5391E4 47%, #6BCD94 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.archive .taxonomy-description,
body.archive .page__subtitle {
  font-size: 15px !important; line-height: 1.9 !important; color: #9aa3b8 !important;
  max-width: 620px; margin: 6px auto 0 !important;
}

/* ----------------------------------------------------------------------
   3. PAGINATION
   ---------------------------------------------------------------------- */
body.blog .pagination,
body.archive .pagination,
body.search .pagination,
.navigation.pagination { margin-top: 40px; }
.navigation.pagination .nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
}
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid #2a3142; background: #1a2030;
  color: #b9c0d0 !important; font-size: 14px; text-decoration: none !important;
  transition: all .2s ease;
}
.navigation.pagination .page-numbers:hover { border-color: #24baef; color: #24baef !important; }
.navigation.pagination .page-numbers.current {
  background: #24baef; border-color: #24baef; color: #06222e !important; font-weight: 600;
}
.navigation.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ----------------------------------------------------------------------
   4. BREADCRUMB (blog / archive / single post)
   ---------------------------------------------------------------------- */
body.blog nav.masvideos-breadcrumb,
body.archive nav.masvideos-breadcrumb,
body.single-post nav.masvideos-breadcrumb {
  max-width: 760px;
  margin: 0 auto 4px !important;
  padding: 14px 4px 0 !important;
  line-height: 2 !important;
  font-size: 13px !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
}
body.blog nav.masvideos-breadcrumb a,
body.archive nav.masvideos-breadcrumb a,
body.single-post nav.masvideos-breadcrumb a { color: #79839a !important; text-decoration: none; transition: color .2s; }
body.blog nav.masvideos-breadcrumb a:hover,
body.archive nav.masvideos-breadcrumb a:hover,
body.single-post nav.masvideos-breadcrumb a:hover { color: #24baef !important; }
body.single-post nav.masvideos-breadcrumb .delimiter { opacity: .5; padding: 0 6px; }
body.single-post nav.masvideos-breadcrumb .delimiter path { fill: #79839a !important; }

/* ----------------------------------------------------------------------
   5. SINGLE POST - layout + header + meta
   ---------------------------------------------------------------------- */
body.single-post .single-article {
  max-width: 768px !important;
  margin: 0 auto !important;
  padding: 0 16px;
}
body.single-post .single-article__inner { padding: 0 !important; }

/* header (centered) */
body.single-post .single-article header.article__header {
  text-align: center !important;
  padding-top: 10px !important;
  margin-bottom: 22px !important;
}
body.single-post .single-article h1.article__title.entry-title {
  font-size: 33px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  display: inline-block;
  background: linear-gradient(90deg, #8D65E9 0%, #5391E4 47%, #6BCD94 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
@media (max-width: 640px) { body.single-post .single-article h1.article__title.entry-title { font-size: 26px !important; } }

/* meta bar */
body.single-post .fgri-single-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px; color: #9aa3b8;
  background: #161b27; border: 1px solid #262d3f; border-radius: 12px;
  padding: 11px 16px; margin: 0 auto;
  max-width: 100%;
}
body.single-post .fgri-single-meta .fgri-meta__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.single-post .fgri-single-meta svg { width: 15px; height: 15px; opacity: .85; }
body.single-post .fgri-single-meta a { color: #cfd4e0 !important; text-decoration: none; }
body.single-post .fgri-single-meta a:hover { color: #24baef !important; }
body.single-post .fgri-single-meta .fgri-sep { width: 1px; height: 13px; background: #333c4f; }
body.single-post .fgri-single-meta__author { display: inline-flex; align-items: center; gap: 7px; }
body.single-post .fgri-single-meta__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: #24baef; color: #06222e; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; overflow: hidden;
}
body.single-post .fgri-single-meta__avatar img { width: 100%; height: 100%; border-radius: 50% !important; border: 0 !important; }
body.single-post .fgri-single-meta__cat { color: #6fd0f5 !important; }

/* featured image - full column width (beats Customizer figure{max-width:600px}) */
body.single-post .single-article .fgri-featured {
  width: 100% !important;
  max-width: 100% !important;
  margin: 26px 0 8px !important;
  padding: 0 !important;
  display: block !important;
  text-align: center;
}
body.single-post .single-article .fgri-featured img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  border: 1px solid #2a3956 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32) !important;
  margin: 0 !important;
}

/* ----------------------------------------------------------------------
   6. SINGLE POST - content typography refinements
   ---------------------------------------------------------------------- */
body.single-post .article__content.entry-content {
  color: #d4d9e4 !important;
  font-size: 17px !important;
  line-height: 2.1 !important;
}
body.single-post .article__content.entry-content p { margin: 0 0 20px !important; }
body.single-post .article__content.entry-content > h2,
body.single-post .article__content.entry-content h2.wp-block-heading {
  font-size: 23px !important; line-height: 1.6 !important; color: #eef1f7;
  margin: 42px 0 18px !important;
}
body.single-post .article__content.entry-content h3,
body.single-post .article__content.entry-content h3.wp-block-heading {
  font-size: 19px !important; line-height: 1.6 !important; color: #cfe9f6 !important;
  font-weight: 600 !important; margin: 32px 0 12px !important; padding-right: 0 !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
body.single-post .article__content.entry-content h4 { font-size: 17px !important; color: #cdd3e0 !important; margin: 26px 0 10px !important; }
body.single-post .article__content.entry-content ul,
body.single-post .article__content.entry-content ol { margin: 0 0 20px !important; padding-right: 1.4em !important; }
body.single-post .article__content.entry-content li { margin-bottom: 9px !important; line-height: 2 !important; }
body.single-post .article__content.entry-content ul li::marker { color: #24baef; }
body.single-post .article__content.entry-content ol li::marker { color: #24baef; font-weight: 600; }

/* blockquote */
body.single-post .article__content.entry-content blockquote {
  background: #161b27 !important;
  border: 1px solid #262d3f !important;
  border-right: 3px solid #24baef !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 26px 0 !important;
  padding: 16px 20px !important;
  color: #c4cad8 !important;
  font-size: 16px !important;
}
body.single-post .article__content.entry-content blockquote p:last-child { margin-bottom: 0 !important; }

/* code */
body.single-post .article__content.entry-content code,
body.single-post .article__content.entry-content kbd {
  background: #11151f; border: 1px solid #262d3f; border-radius: 6px;
  padding: 2px 7px; font-size: .88em; color: #9fe6c0;
  direction: ltr; unicode-bidi: embed;
}
body.single-post .article__content.entry-content pre {
  background: #0d1019 !important; border: 1px solid #262d3f; border-radius: 12px;
  padding: 16px 18px !important; overflow: auto; direction: ltr; text-align: left;
}
body.single-post .article__content.entry-content pre code { background: none; border: 0; padding: 0; color: #d4d9e4; }

/* in-content figures / images (keep centered, refined frame) */
body.single-post .single-article .article__content figure.wp-block-image { margin: 24px auto !important; }
body.single-post .single-article .article__content .wp-block-image img,
body.single-post .single-article .article__content figure img {
  border-radius: 14px !important;
  border: 1px solid #2a3956 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}
body.single-post .article__content.entry-content figcaption {
  text-align: center; font-size: 13px; color: #79839a; margin-top: 8px;
}

/* tables - clean, professional, horizontally scrollable on small screens.
   Overrides the old Customizer rules (2px border, hover-lift, and the mobile
   "stack every row into a column" transform that broke multi-column tables). */
body.single-post .article__content figure.wp-block-table {
  margin: 26px auto !important;
  max-width: 100% !important;
  overflow-x: auto;
  border: 1px solid #262d3f;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  -webkit-overflow-scrolling: touch;
}
body.single-post .article__content table {
  width: 100% !important;
  min-width: 480px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  box-shadow: none !important;
  background: #12141a;
  font-size: 14.5px;
}
body.single-post .article__content table tbody { border-top: 0 !important; }
body.single-post .article__content table td,
body.single-post .article__content table th {
  padding: 12px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #232a3a !important;
  text-align: right;
  vertical-align: top;
  line-height: 1.85;
  color: #c4cad8 !important;
}
/* Header styling for a real <thead>, and as a fallback for tables written
   without one. tbody:first-child only matches when no thead precedes it, so a
   table that already has a header row no longer gets a second one. */
body.single-post .article__content table thead th,
body.single-post .article__content table > tbody:first-child > tr:first-child > td {
  background: #1a2030 !important;
  color: #eef1f7 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #2f3a50 !important;
}
body.single-post .article__content table > tbody > tr:nth-child(even) > td { background: rgba(255, 255, 255, .018); }
body.single-post .article__content table tbody tr:last-child td { border-bottom: 0 !important; }
body.single-post .article__content table tbody tr:hover { transform: none !important; }
body.single-post .article__content table tbody tr:hover > td { background: rgba(36, 186, 239, .06); }

@media (max-width: 768px) {
  body.single-post .article__content table { display: table !important; }
  body.single-post .article__content table thead { display: table-header-group !important; }
  body.single-post .article__content table tbody { display: table-row-group !important; }
  body.single-post .article__content table tbody tr { display: table-row !important; flex-direction: row !important; overflow: visible !important; }
  body.single-post .article__content table td,
  body.single-post .article__content table th { display: table-cell !important; }
  body.single-post .article__content table tbody td:first-child { text-align: right !important; color: #c4cad8 !important; }
  body.single-post .article__content table > tbody:first-child > tr:first-child > td { color: #eef1f7 !important; }
}

/* ----------------------------------------------------------------------
   7. SHARE ROW
   ---------------------------------------------------------------------- */
.fgri-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 6px; padding: 16px 0; border-top: 1px solid #262d3f; border-bottom: 1px solid #262d3f;
}
.fgri-share__label { font-size: 14px; color: #9aa3b8; margin-left: 4px; font-weight: 500; }
.fgri-share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid #2a3142; background: #161b27; color: #b9c0d0;
  cursor: pointer; transition: all .2s ease; text-decoration: none !important; padding: 0;
}
.fgri-share__btn svg { width: 19px; height: 19px; fill: currentColor; }
.fgri-share__btn:hover { transform: translateY(-2px); color: #fff; }
.fgri-share__btn--tg:hover { background: #2aabee; border-color: #2aabee; }
.fgri-share__btn--wa:hover { background: #25d366; border-color: #25d366; color: #06281a; }
.fgri-share__btn--x:hover { background: #1a1f2b; border-color: #4a5570; }
.fgri-share__btn--copy:hover { background: #24baef; border-color: #24baef; color: #06222e; }
.fgri-share__btn.is-copied { background: #25d366; border-color: #25d366; color: #06281a; }

/* ----------------------------------------------------------------------
   8. AUTHOR BOX
   ---------------------------------------------------------------------- */
.fgri-author {
  display: flex; align-items: center; gap: 16px;
  background: #161b27; border: 1px solid #262d3f; border-radius: 16px;
  padding: 18px 20px; margin: 26px 0 8px;
}
.fgri-author__avatar {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #8D65E9, #5391E4 55%, #6BCD94);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 600;
}
.fgri-author__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; }
.fgri-author__label { font-size: 12px; color: #79839a; display: block; margin-bottom: 2px; }
.fgri-author__name { font-size: 17px !important; font-weight: 600 !important; margin: 0 0 4px !important; color: #eef1f7 !important; line-height: 1.4 !important; }
.fgri-author__name a { color: #eef1f7 !important; text-decoration: none; }
.fgri-author__name a:hover { color: #24baef !important; }
.fgri-author__bio { font-size: 13.5px !important; line-height: 1.9 !important; color: #9aa3b8 !important; margin: 0 !important; }
@media (max-width: 480px) { .fgri-author { flex-direction: column; text-align: center; } }

/* ----------------------------------------------------------------------
   9. RELATED POSTS
   ---------------------------------------------------------------------- */
.fgri-related { margin: 40px 0 10px; }
.fgri-related__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fgri-related__title {
  font-size: 19px; font-weight: 600; color: #e7eaf2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.fgri-related__title svg { width: 19px; height: 19px; color: #6fd0f5; }
.fgri-related__head::after { content: ""; flex: 1 1 auto; height: 1px; background: #262d3f; }
.fgri-related__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.fgri-related__card {
  background: #1a2030; border: 1px solid #262d3f; border-radius: 13px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.fgri-related__card:hover { transform: translateY(-3px); border-color: #3a4760; }
.fgri-related__card a { text-decoration: none; display: block; }
.fgri-related__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #222a3d; }
.fgri-related__thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; transition: transform .4s ease; }
.fgri-related__card:hover .fgri-related__thumb img { transform: scale(1.06); }
.fgri-related__name { font-size: 14px !important; line-height: 1.7 !important; color: #dfe3ee !important; margin: 0 !important; padding: 11px 13px 13px !important; font-weight: 500 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fgri-related__card:hover .fgri-related__name { color: #6fd0f5 !important; }

/* ----------------------------------------------------------------------
   10. POST NAV (prev / next) - tidy in dark theme
   ---------------------------------------------------------------------- */
body.single-post .post-navigation {
  border-top: 1px solid #262d3f; margin-top: 30px; padding-top: 22px;
}
body.single-post .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next { flex: 1 1 45%; }
body.single-post .post-navigation a {
  display: block; background: #161b27; border: 1px solid #262d3f; border-radius: 12px;
  padding: 13px 16px; transition: border-color .2s ease;
}
body.single-post .post-navigation a:hover { border-color: #3a4760; }
body.single-post .post-nav__title { display: block; font-size: 12px; color: #79839a; margin-bottom: 5px; }
body.single-post .post-nav__article--title { display: block; font-size: 14px; color: #dfe3ee; line-height: 1.6; }

/* ----------------------------------------------------------------------
   11. COMMENTS - list + form (dark, professional)
   ---------------------------------------------------------------------- */
:is(body.single-post,body.single-movie) .comments-area { margin: 38px 0 0; }

:is(body.single-post,body.single-movie) .comments-title {
  font-size: 21px !important;
  font-weight: 600 !important;
  color: #e7eaf2 !important;
  margin: 0 0 22px !important;
  padding: 0 0 14px !important;
  overflow: visible !important;
  border-bottom: 1px solid #262d3f;
}
:is(body.single-post,body.single-movie) .comments-title::after { display: none !important; }

/* list */
:is(body.single-post,body.single-movie) .comment-list,
:is(body.single-post,body.single-movie) .comment-list .children { list-style: none !important; margin: 0 !important; padding: 0 !important; }
:is(body.single-post,body.single-movie) .comment-list .children { padding-right: 22px; margin-top: 16px; }
@media (max-width: 480px) { :is(body.single-post,body.single-movie) .comment-list .children { padding-right: 12px; } }
:is(body.single-post,body.single-movie) .comment-list .comment { margin: 0 0 16px !important; }

:is(body.single-post,body.single-movie) .comment-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #161b27;
  border: 1px solid #262d3f;
  border-radius: 14px;
  padding: 16px 18px;
}
:is(body.single-post,body.single-movie) .comment.bypostauthor > .comment-body { border-color: rgba(36, 186, 239, .35); }

:is(body.single-post,body.single-movie) .comment-author-gravatar { flex: 0 0 auto; }
:is(body.single-post,body.single-movie) .comment-author-gravatar img.avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  border: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
:is(body.single-post,body.single-movie) .comment-meta-and-content { flex: 1 1 auto; min-width: 0; }
:is(body.single-post,body.single-movie) .comment-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 9px;
}
:is(body.single-post,body.single-movie) .comment-author.vcard { display: inline-flex; align-items: center; }
:is(body.single-post,body.single-movie) .comment-author-name.fn,
:is(body.single-post,body.single-movie) .comment-author .fn {
  font-style: normal !important;
  font-weight: 600 !important;
  color: #eef1f7 !important;
  font-size: 15px;
}
:is(body.single-post,body.single-movie) .comment-date {
  font-size: 12px !important; color: #79839a !important; text-decoration: none !important;
}
:is(body.single-post,body.single-movie) .comment-date:hover { color: #24baef !important; }
:is(body.single-post,body.single-movie) .comment-awaiting-moderation { display: block; color: #e0a93b; font-size: 12px; font-style: italic; margin-bottom: 6px; }

:is(body.single-post,body.single-movie) .comment-content { margin: 0; }
:is(body.single-post,body.single-movie) .comment-text { color: #c4cad8; font-size: 14.5px; line-height: 1.95; }
:is(body.single-post,body.single-movie) .comment-text p { margin: 0 0 8px !important; }
:is(body.single-post,body.single-movie) .comment-text p:last-child { margin-bottom: 0 !important; }

:is(body.single-post,body.single-movie) .reply { margin-top: 10px; }
:is(body.single-post,body.single-movie) .comment-reply-link,
:is(body.single-post,body.single-movie) .reply a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px;
  color: #6fd0f5 !important;
  background: rgba(36, 186, 239, .10);
  border: 1px solid rgba(36, 186, 239, .20);
  padding: 4px 13px; border-radius: 20px;
  text-decoration: none !important; transition: background .2s ease, color .2s ease;
}
:is(body.single-post,body.single-movie) .comment-reply-link:hover,
:is(body.single-post,body.single-movie) .reply a:hover { background: rgba(36, 186, 239, .22); color: #8ddcfa !important; }

/* comment navigation (older/newer) */
:is(body.single-post,body.single-movie) .comment-navigation { margin: 8px 0 20px; font-size: 13px; }
:is(body.single-post,body.single-movie) .comment-navigation a { color: #6fd0f5; text-decoration: none; }

:is(body.single-post,body.single-movie) .no-comments {
  background: #161b27 !important; border: 1px solid #262d3f !important; color: #9aa3b8 !important;
  border-radius: 12px; padding: 14px 18px;
}

/* respond / form */
:is(body.single-post,body.single-movie) .comment-respond {
  background: #161b27;
  border: 1px solid #262d3f;
  border-radius: 16px;
  padding: 22px 22px 24px;
  margin-top: 26px;
}
:is(body.single-post,body.single-movie) .comment-respond .comment-reply-title,
:is(body.single-post,body.single-movie) #reply-title {
  font-size: 18px !important; font-weight: 600 !important; color: #e7eaf2 !important;
  margin: 0 0 4px !important; padding: 0 !important; overflow: visible !important;
}
:is(body.single-post,body.single-movie) .comment-reply-title::after { display: none !important; }
:is(body.single-post,body.single-movie) .comment-reply-title small { font-size: 13px; margin-right: 8px; }
:is(body.single-post,body.single-movie) .comment-reply-title small a { color: #e2606a !important; }

:is(body.single-post,body.single-movie) .comment-notes,
:is(body.single-post,body.single-movie) .comment-form-cookies-consent label {
  font-size: 12.5px !important; color: #79839a !important; line-height: 1.8 !important;
}
:is(body.single-post,body.single-movie) .comment-notes .required,
:is(body.single-post,body.single-movie) .comment-form .required { color: #e2606a; }

:is(body.single-post,body.single-movie) .comment-form { margin-top: 16px; }
:is(body.single-post,body.single-movie) .comment-form p { margin: 0 0 14px; }
:is(body.single-post,body.single-movie) .comment-form label { display: block; font-size: 13px; color: #aeb6c8; margin-bottom: 7px; }

/* fields - #commentform anchor out-specifies the old "#content input" / "input#submit" rules */
:is(body.single-post,body.single-movie) #commentform input[type="text"],
:is(body.single-post,body.single-movie) #commentform input[type="email"],
:is(body.single-post,body.single-movie) #commentform input[type="url"],
:is(body.single-post,body.single-movie) #commentform textarea {
  width: 100% !important;
  background: #0f1320 !important;
  border: 1px solid #2a3142 !important;
  border-radius: 10px !important;
  color: #e7eaf2 !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  line-height: 1.8 !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
:is(body.single-post,body.single-movie) #commentform textarea { min-height: 130px !important; resize: vertical; }
:is(body.single-post,body.single-movie) #commentform input[type="text"]:focus,
:is(body.single-post,body.single-movie) #commentform input[type="email"]:focus,
:is(body.single-post,body.single-movie) #commentform input[type="url"]:focus,
:is(body.single-post,body.single-movie) #commentform textarea:focus {
  border-color: #24baef !important;
  box-shadow: 0 0 0 3px rgba(36, 186, 239, .15) !important;
  outline: none !important;
}
:is(body.single-post,body.single-movie) #commentform input::placeholder,
:is(body.single-post,body.single-movie) #commentform textarea::placeholder { color: #5c667d; }

:is(body.single-post,body.single-movie) .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
:is(body.single-post,body.single-movie) #commentform .comment-form-cookies-consent input[type="checkbox"] {
  width: auto !important; margin: 3px 0 0 !important; opacity: 1 !important;
}

:is(body.single-post,body.single-movie) .itsec-cf-turnstile { margin: 0 0 14px !important; }

:is(body.single-post,body.single-movie) .form-submit { margin: 4px 0 0 !important; text-align: right; }
:is(body.single-post,body.single-movie) #commentform .form-submit input#submit,
:is(body.single-post,body.single-movie) .form-submit input#submit,
:is(body.single-post,body.single-movie) .form-submit input[type="submit"] {
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  background: #24baef !important;
  color: #06222e !important;
  border: 0 !important;
  border-radius: 11px !important;
  padding: 12px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  opacity: 1 !important;
  transition: background .2s ease, transform .15s ease;
}
:is(body.single-post,body.single-movie) #commentform .form-submit input#submit:hover,
:is(body.single-post,body.single-movie) .form-submit input#submit:hover,
:is(body.single-post,body.single-movie) .form-submit input[type="submit"]:hover {
  background: #4cc8f2 !important; transform: translateY(-1px); color: #06222e !important;
}
@media (max-width: 480px) {
  :is(body.single-post,body.single-movie) .comment-body { flex-direction: column; gap: 10px; }
  :is(body.single-post,body.single-movie) .form-submit { text-align: stretch; }
  :is(body.single-post,body.single-movie) .form-submit input#submit { width: 100% !important; }
}

/* ----------------------------------------------------------------------
   12. MEDIA CARDS - Gutenberg video/audio blocks, professionally framed
   ---------------------------------------------------------------------- */
body.single-post .article__content .fgri-media {
  margin: 30px 0 !important;
  border: 1px solid #262d3f;
  border-radius: 16px;
  overflow: hidden;
  background: #11151f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
body.single-post .article__content .fgri-media__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: #1a2030;
  border-bottom: 1px solid #262d3f;
  font-size: 14px;
  font-weight: 600;
  color: #cfe9f6;
}
body.single-post .article__content .fgri-media__head svg { width: 18px; height: 18px; color: #6fd0f5; flex: 0 0 auto; }
body.single-post .article__content .fgri-media__body { padding: 0; }

/* reset the inner Gutenberg figure (the card provides the frame now) */
body.single-post .article__content .fgri-media .wp-block-video,
body.single-post .article__content .fgri-media .wp-block-audio {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

/* video: fill width, keep its aspect ratio, sit on black */
body.single-post .article__content .fgri-media--video .wp-block-video video,
body.single-post .article__content .fgri-media--video video {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #000;
}

/* audio: custom dark player (built by blog.js). The native white player is the
   no-JS fallback and is hidden once the custom UI is in place. */
body.single-post .article__content .fgri-media--audio .fgri-media__body { padding: 0; }
body.single-post .article__content .fgri-media--audio audio { display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; }
body.single-post .fgri-media--audio[data-fgri-enhanced] figure.wp-block-audio { display: none !important; }

.fgri-audio { direction: ltr; display: flex; align-items: center; gap: 13px; padding: 15px 16px; }
.fgri-audio__play {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: #24baef; color: #06222e;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.fgri-audio__play:hover { background: #4cc8f2; transform: scale(1.06); }
.fgri-audio__play svg { width: 20px; height: 20px; fill: currentColor; }
.fgri-audio__play .fgri-i-play { display: inline-flex; }
.fgri-audio__play .fgri-i-pause { display: none; }
.fgri-media--audio.is-playing .fgri-audio__play .fgri-i-play { display: none; }
.fgri-media--audio.is-playing .fgri-audio__play .fgri-i-pause { display: inline-flex; }
.fgri-audio__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fgri-audio__bar { position: relative; height: 6px; border-radius: 6px; background: #2a3142; cursor: pointer; }
.fgri-audio__bar:hover { background: #333d52; }
.fgri-audio__progress { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 6px; background: #24baef; pointer-events: none; }
.fgri-audio__progress::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%; background: #24baef; box-shadow: 0 0 0 3px rgba(36, 186, 239, .22);
}
.fgri-audio__time { display: flex; justify-content: space-between; font-size: 11.5px; color: #79839a; }
.fgri-audio__dl {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #79839a; border: 1px solid #2a3142; text-decoration: none; transition: all .2s ease;
}
.fgri-audio__dl:hover { color: #24baef; border-color: #24baef; }
.fgri-audio__dl svg { width: 17px; height: 17px; }
body.single-post .article__content .fgri-media figcaption {
  text-align: center;
  font-size: 13px;
  color: #79839a;
  padding: 10px 14px 14px;
  margin: 0;
}

/* standalone blocks (if any slip the wrapper) + responsive embeds (YouTube/Aparat) */
body.single-post .article__content > figure.wp-block-video,
body.single-post .article__content > figure.wp-block-audio {
  margin: 28px auto !important;
  max-width: 100% !important;
  width: 100% !important;
}
body.single-post .article__content .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
}
body.single-post .article__content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* =========================================================================
   PREMIUM LISTING ENHANCEMENTS - 2026-06-21
   "Next level" eye-catching upgrade for the blog index / archives / search.
   Appended last so equal-specificity rules win over section 1 above.
   ========================================================================= */

/* --- 1. HERO: aurora glow + animated gradient title ------------------- */
.fgri-blog-hero { position: relative; }
.fgri-blog-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -40px;
  width: 520px; height: 260px;
  transform: translateX(-50%);
  background:
    radial-gradient(60% 60% at 30% 40%, rgba(141, 101, 233, .30), transparent 70%),
    radial-gradient(55% 55% at 70% 50%, rgba(36, 186, 239, .26), transparent 70%),
    radial-gradient(50% 50% at 50% 70%, rgba(107, 205, 148, .22), transparent 70%);
  filter: blur(38px);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
  animation: fgri-aurora 9s ease-in-out infinite alternate;
}
@keyframes fgri-aurora {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: .75; }
  100% { transform: translateX(-50%) translateY(10px) scale(1.08); opacity: 1; }
}
.fgri-blog-hero__eyebrow {
  position: relative;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(36, 186, 239, .10), 0 6px 18px rgba(36, 186, 239, .12);
}
.fgri-blog-hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #24baef;
  box-shadow: 0 0 0 0 rgba(36, 186, 239, .55);
  animation: fgri-ping 2s ease-out infinite;
}
@keyframes fgri-ping {
  0%   { box-shadow: 0 0 0 0 rgba(36, 186, 239, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(36, 186, 239, 0); }
}
.fgri-blog-hero h1 {
  background: linear-gradient(90deg, #8D65E9 0%, #5391E4 35%, #6BCD94 65%, #5391E4 85%, #8D65E9 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fgri-shimmer 7s linear infinite;
}
@keyframes fgri-shimmer { to { background-position: 220% center; } }

/* --- 2. CARDS: glass surface, accent bar, sheen sweep, brand glow ----- */
body.blog .articles .article,
body.archive .articles .article,
body.search .articles .article {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(31, 38, 56, .96) 0%, rgba(20, 25, 38, .96) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1),
              border-color .35s ease, box-shadow .35s ease;
}
/* top gradient accent line - grows from the right (RTL) on hover */
body.blog .articles .article::before,
body.archive .articles .article::before,
body.search .articles .article::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #8D65E9, #5391E4 50%, #6BCD94);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  z-index: 3;
}
body.blog .articles .article:hover::before,
body.archive .articles .article:hover::before,
body.search .articles .article:hover::before { transform: scaleX(1); }
/* diagonal sheen sweep across the card on hover */
body.blog .articles .article::after,
body.archive .articles .article::after,
body.search .articles .article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
  z-index: 4;
}
body.blog .articles .article:hover::after,
body.archive .articles .article:hover::after,
body.search .articles .article:hover::after { transform: translateX(120%); }
body.blog .articles .article:hover,
body.archive .articles .article:hover,
body.search .articles .article:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 145, 228, .55) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45),
              0 0 0 1px rgba(83, 145, 228, .12),
              0 12px 36px rgba(83, 145, 228, .20);
}

/* image scrim for depth + crisper zoom */
body.blog .article .article__attachment::after,
body.archive .article .article__attachment::after,
body.search .article .article__attachment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(16, 20, 30, .55) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: .85;
  transition: opacity .35s ease;
}
body.blog .article .article__attachment,
body.archive .article .article__attachment,
body.search .article .article__attachment { position: relative; }
body.blog .article:hover .article__attachment::after,
body.archive .article:hover .article__attachment::after,
body.search .article:hover .article__attachment::after { opacity: 1; }
body.blog .article:hover .article__attachment img,
body.archive .article:hover .article__attachment img,
body.search .article:hover .article__attachment img { transform: scale(1.07); }

/* card body sits above sheen/scrim */
body.blog .article .article__summary,
body.archive .article .article__summary,
body.search .article .article__summary { position: relative; z-index: 5; }

/* glassy category chip */
.fgri-cat-chip {
  background: linear-gradient(135deg, rgba(36, 186, 239, .16), rgba(141, 101, 233, .14)) !important;
  border: 1px solid rgba(36, 186, 239, .25);
  backdrop-filter: blur(4px);
  letter-spacing: .2px;
}

/* title: subtle gradient reveal on card hover */
body.blog .article:hover .article__title a,
body.archive .article:hover .article__title a,
body.search .article:hover .article__title a {
  background: linear-gradient(90deg, #8ddcfa, #a98bff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8ddcfa !important;
}

/* meta footer: animated gradient hairline */
.fgri-meta {
  border-top: 0 !important;
  position: relative;
}
.fgri-meta::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2d3650 20%, #2d3650 80%, transparent);
}
.fgri-meta__item svg { transition: opacity .2s ease, color .2s ease; }
.fgri-meta__item:hover svg { opacity: 1; color: #24baef; }

@media (prefers-reduced-motion: reduce) {
  .fgri-blog-hero::before,
  .fgri-blog-hero h1,
  .fgri-blog-hero__eyebrow::before { animation: none !important; }
  body.blog .articles .article,
  body.archive .articles .article,
  body.search .articles .article,
  body.blog .articles .article::after,
  body.archive .articles .article::after,
  body.search .articles .article::after { transition: none !important; }
}
