/* Novela layout styles (extracted from novela-*.html)
   Centralized to avoid inline CSS in layouts.
*/

/* Novela-specific styles - warm, dramatic aesthetic */
body.novela-page {
  min-height: 100vh;
}

/* La Startup - warm cream background */
body.novela-page.la-startup {
  background: linear-gradient(135deg, #fdf6e3 0%, #fff8e7 50%, #fdf6e3 100%);
}

/* Código del Destino - cool lavender background */
body.novela-page.codigo-del-destino {
  background: linear-gradient(135deg, #f0e6f5 0%, #f5eefa 50%, #f0e6f5 100%);
}

/* Código de Fuego y Estrellas - deep space sci-fi theme */
body.novela-page.codigo-fuego-estrellas {
  background: linear-gradient(135deg, #0a0a1a 0%, #1b2838 50%, #0a0a1a 100%);
}

/* Código y Corazón - Medellín "Eternal Spring" teal & coral theme */
body.novela-page.codigo-y-corazon {
  background: linear-gradient(135deg, #e8f5f2 0%, #f0faf8 50%, #e8f5f2 100%);
}

body.novela-page.codigo-y-corazon .novela-entry {
  color: #2d3b3a;
}

body.novela-page.codigo-y-corazon .novela-entry h1 {
  color: #0d7377;
}

body.novela-page.codigo-y-corazon .novela-entry h2 {
  color: #0d7377;
  border-bottom-color: #14919b;
}

body.novela-page.codigo-y-corazon .novela-entry h3 {
  color: #14919b;
}

body.novela-page.codigo-y-corazon .episode-header {
  border-bottom-color: #14919b;
}

body.novela-page.codigo-y-corazon .episode-number {
  color: #e85a5a;
}

body.novela-page.codigo-y-corazon .episode-tagline {
  color: #d94848;
}

body.novela-page.codigo-y-corazon .synopsis-box {
  background: rgba(13, 115, 119, 0.08);
  border-left-color: #14919b;
}

body.novela-page.codigo-y-corazon .synopsis-box p {
  color: #2d3b3a;
}

body.novela-page.codigo-y-corazon .novela-entry p {
  color: #2d3b3a;
}

body.novela-page.codigo-y-corazon .novela-entry em {
  color: #d94848;
}

body.novela-page.codigo-y-corazon .novela-entry strong {
  color: #0d7377;
}

body.novela-page.codigo-y-corazon .novela-entry a {
  color: #0d7377;
}

body.novela-page.codigo-y-corazon .novela-entry a:hover {
  color: #e85a5a;
}

body.novela-page.codigo-y-corazon .novela-entry blockquote {
  border-left-color: #14919b;
  background: rgba(13, 115, 119, 0.08);
  color: #2d3b3a;
}

body.novela-page.codigo-y-corazon .episode-synopsis {
  background: linear-gradient(135deg, #e0f2f0 0%, #d6edea 100%);
  border-left-color: #14919b;
  color: #2d3b3a;
}

body.novela-page.codigo-y-corazon .previous-episode {
  background: linear-gradient(135deg, #1a2625 0%, #243230 100%);
  color: #c8dbd9;
  border-left-color: #14919b;
}

body.novela-page.codigo-y-corazon .previous-episode strong {
  color: #14919b;
}

body.novela-page.codigo-y-corazon .previous-episode a {
  color: #5bc0be;
}

body.novela-page.codigo-y-corazon .previous-episode a:hover {
  color: #14919b;
}

body.novela-page.codigo-y-corazon .next-episode {
  background: linear-gradient(135deg, #0d7377 0%, #0a5c5f 100%);
  color: #f0faf8;
}

body.novela-page.codigo-y-corazon .next-episode strong {
  color: #ffd6d6;
}

body.novela-page.codigo-y-corazon .next-episode strong a {
  color: #ffd6d6;
}

body.novela-page.codigo-y-corazon .next-episode strong a:hover {
  color: #ffffff;
}

body.novela-page.codigo-y-corazon .next-episode em {
  color: #c8e6e4;
}

body.novela-page.codigo-y-corazon .series-nav a {
  background: linear-gradient(135deg, #0d7377 0%, #0a5c5f 100%);
  color: #ffffff;
  border-color: #e85a5a;
  box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.novela-page.codigo-y-corazon .series-nav a:hover {
  background: linear-gradient(135deg, #14919b 0%, #0d7377 100%);
  color: #ffffff;
  border-color: #f07070;
  box-shadow: 0 8px 25px rgba(13, 115, 119, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.novela-page.codigo-y-corazon .novela-footer {
  color: #5a7370;
  border-top-color: #14919b;
}

body.novela-page.codigo-y-corazon .novela-entry hr {
  background: linear-gradient(90deg, transparent, #14919b, transparent);
}

body.novela-page.codigo-y-corazon .novela-lightbox-close:hover {
  color: #14919b;
}

/* Samba Dos Números - São Paulo carnival, vibrant gold & green & pink */
body.novela-page.samba-dos-numeros {
  background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 50%, #fff9e6 100%);
}

body.novela-page.samba-dos-numeros .novela-entry {
  color: #3d2914;
}

body.novela-page.samba-dos-numeros .novela-entry h1 {
  color: #1a5f3c;
}

body.novela-page.samba-dos-numeros .novela-entry h2 {
  color: #1a5f3c;
  border-bottom: none;
  position: relative;
  padding-bottom: 3.5rem;
  margin-bottom: 1.5rem;
}

/* Kente-inspired scene header dividers - PNG borders randomly assigned via JS */
body.novela-page.samba-dos-numeros .novela-entry h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

body.novela-page.samba-dos-numeros .novela-entry h3 {
  color: #1a5f3c;
}

body.novela-page.samba-dos-numeros .episode-header {
  border-bottom-color: #e6a800;
}

body.novela-page.samba-dos-numeros .episode-number {
  color: #d4145a;
}

body.novela-page.samba-dos-numeros .episode-tagline {
  color: #d4145a;
}

body.novela-page.samba-dos-numeros .synopsis-box {
  background: rgba(230, 168, 0, 0.1);
  border-left-color: #e6a800;
}

body.novela-page.samba-dos-numeros .synopsis-box p {
  color: #3d2914;
}

body.novela-page.samba-dos-numeros .novela-entry p {
  color: #3d2914;
}

body.novela-page.samba-dos-numeros .novela-entry em {
  color: #d4145a;
}

body.novela-page.samba-dos-numeros .novela-entry strong {
  color: #1a5f3c;
}

body.novela-page.samba-dos-numeros .novela-entry a {
  color: #1a5f3c;
}

body.novela-page.samba-dos-numeros .novela-entry a:hover {
  color: #d4145a;
}

body.novela-page.samba-dos-numeros .novela-entry blockquote {
  border-left-color: #e6a800;
  background: rgba(230, 168, 0, 0.1);
  color: #3d2914;
}

body.novela-page.samba-dos-numeros .episode-synopsis {
  background: linear-gradient(135deg, #fff8e0 0%, #fff3cc 100%);
  border-left-color: #e6a800;
  color: #3d2914;
}

body.novela-page.samba-dos-numeros .previous-episode {
  background: linear-gradient(135deg, #2a1f10 0%, #3d2914 100%);
  color: #f5e6c8;
  border-left-color: #e6a800;
}

body.novela-page.samba-dos-numeros .previous-episode strong {
  color: #e6a800;
}

body.novela-page.samba-dos-numeros .previous-episode a {
  color: #f5d67a;
}

body.novela-page.samba-dos-numeros .previous-episode a:hover {
  color: #e6a800;
}

body.novela-page.samba-dos-numeros .next-episode {
  background: linear-gradient(135deg, #1a5f3c 0%, #145230 100%);
  color: #f0fff5;
}

body.novela-page.samba-dos-numeros .next-episode strong {
  color: #ffd6e0;
}

body.novela-page.samba-dos-numeros .next-episode strong a {
  color: #ffd6e0;
}

body.novela-page.samba-dos-numeros .next-episode strong a:hover {
  color: #ffffff;
}

body.novela-page.samba-dos-numeros .next-episode em {
  color: #c8f5d8;
}

body.novela-page.samba-dos-numeros .series-nav a {
  background: linear-gradient(135deg, #1a5f3c 0%, #145230 100%);
  color: #ffffff;
  border-color: #e6a800;
  box-shadow: 0 4px 15px rgba(26, 95, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.novela-page.samba-dos-numeros .series-nav a:hover {
  background: linear-gradient(135deg, #d4145a 0%, #b81150 100%);
  color: #ffffff;
  border-color: #e6a800;
  box-shadow: 0 8px 25px rgba(212, 20, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.novela-page.samba-dos-numeros .novela-footer {
  color: #6b5a3a;
  border-top-color: #e6a800;
}

body.novela-page.samba-dos-numeros .novela-entry hr {
  background: linear-gradient(90deg, transparent, #e6a800, #d4145a, #1a5f3c, transparent);
}

body.novela-page.samba-dos-numeros .novela-lightbox-close:hover {
  color: #e6a800;
}

body.novela-page.samba-dos-numeros figure figcaption {
  color: #6b5a3a;
}

body.novela-page.codigo-fuego-estrellas .novela-entry {
  color: #e0e6ed;
}

body.novela-page.codigo-fuego-estrellas .novela-entry h1 {
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

body.novela-page.codigo-fuego-estrellas .novela-entry h2 {
  color: #da70d6;
  border-bottom-color: #da70d6;
  text-shadow: 0 0 10px rgba(218, 112, 214, 0.3);
}

body.novela-page.codigo-fuego-estrellas .novela-entry h3 {
  color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .episode-header {
  border-bottom-color: #da70d6;
}

body.novela-page.codigo-fuego-estrellas .episode-number {
  color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .episode-tagline {
  color: #da70d6;
}

body.novela-page.codigo-fuego-estrellas .synopsis-box {
  background: rgba(0, 212, 255, 0.1);
  border-left-color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .synopsis-box p {
  color: #c0c8d0;
}

body.novela-page.codigo-fuego-estrellas .novela-entry p {
  color: #c0c8d0;
}

body.novela-page.codigo-fuego-estrellas .novela-entry em {
  color: #da70d6;
}

body.novela-page.codigo-fuego-estrellas .novela-entry strong {
  color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .novela-entry a {
  color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .novela-entry a:hover {
  color: #da70d6;
  text-shadow: 0 0 10px rgba(218, 112, 214, 0.5);
}

body.novela-page.codigo-fuego-estrellas .novela-entry blockquote {
  border-left-color: #da70d6;
  background: rgba(218, 112, 214, 0.1);
  color: #e0e6ed;
}

body.novela-page.codigo-fuego-estrellas .next-episode {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .next-episode strong {
  color: #00d4ff;
}

body.novela-page.codigo-fuego-estrellas .novela-footer {
  color: #666;
  border-top-color: #333;
}

body.novela-page.codigo-fuego-estrellas figure figcaption {
  color: #888 !important;
}

.novela-container {
  background: transparent;
}

.novela-container .two-columns {
  border: none;
}

.novela-entry {
  background: transparent;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
}

.novela-entry h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  color: #2c1810;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.novela-entry h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #5a3825;
  border-bottom: 2px solid #d4a574;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.novela-entry h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #6b4423;
}

/* Episode header styling */
.episode-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d4a574;
}

.episode-number {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8b6914;
  margin-bottom: 0.25rem;
}

.episode-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #6b4423;
  margin-top: 1rem;
}

/* Hero and Synopsis container */
.hero-synopsis-container {
  margin: 1.5rem 0 2rem 0;
}

/* Side by side layout only for Código del Destino */
.hero-synopsis-container.codigo-del-destino {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.hero-synopsis-container .hero-image {
  flex-shrink: 0;
  margin: 0 auto 2rem auto;
}

/* Series-specific poster sizes */
.hero-synopsis-container.la-startup .hero-image {
  max-width: 350px;
}

.hero-synopsis-container.codigo-del-destino .hero-image {
  width: 250px;
  margin: 0;
}

.hero-synopsis-container .hero-image img {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Synopsis box */
.episode-synopsis {
  padding: 1.5rem 2rem;
  flex: 1;
  margin: 0;
  border-radius: 0 8px 8px 0;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* La Startup - warm yellow synopsis */
.la-startup .episode-synopsis {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
  border-left: 4px solid #c9a227;
  color: #3d2914;
}

/* Código del Destino - cool purple synopsis */
.codigo-del-destino .episode-synopsis {
  background: linear-gradient(135deg, #f3e8f8 0%, #e8d9f0 100%);
  border-left: 4px solid #6b3d7a;
  color: #3d2033;
}

.episode-synopsis p {
  margin: 0;
}

@media (max-width: 768px) {
  .hero-synopsis-container {
    flex-direction: column;
  }

  .hero-synopsis-container .hero-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Scene images */
.novela-entry figure {
  margin: 2rem auto;
  max-width: 800px;
}

.novela-entry figure img {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.novela-entry figcaption {
  font-family: Georgia, serif;
  font-style: italic;
  color: #6b4423;
  text-align: center;
  margin-top: 0.75rem;
}

/* Scene breaks */
.novela-entry hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  margin: 2.5rem auto;
  max-width: 200px;
}

/* Dialogue styling */
.novela-entry blockquote {
  background: #fffef5;
  border-left: 3px solid #8b6914;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-family: Georgia, serif;
}

.novela-entry blockquote strong {
  color: #5a3825;
}

/* Slack/Chat styling */
.slack-chat {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  max-width: 650px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.slack-chat p {
  margin: 0 0 1rem 0;
  color: #1d1c1d;
  position: relative;
  padding-left: 48px;
  min-height: 38px;
}

.slack-chat p:last-child {
  margin-bottom: 0;
}

/* Simulated Avatars */
.slack-chat p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e01e5a, #4a154b);
}

.slack-chat p:nth-child(2n)::before {
  background: linear-gradient(135deg, #36c5f0, #2eb67d);
}

.slack-chat p:nth-child(3n)::before {
  background: linear-gradient(135deg, #ecb22e, #e01e5a);
}

.slack-chat strong {
  color: #1d1c1d;
  font-weight: 900;
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

/* Dramatic emphasis */
.novela-entry em {
  color: #6b4423;
}

/* Link to series page */
.series-nav {
  text-align: center;
  margin: 2rem 0;
}

.series-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8b1538 0%, #6b1029 100%);
  color: #fdf6e3;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
  border: 2px solid #c9a227;
  box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.series-nav a::before {
  content: "📺";
  font-style: normal;
}

.series-nav a:hover {
  background: linear-gradient(135deg, #a01845 0%, #8b1538 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 21, 56, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: #d4b84a;
}

/* Previous episode link */
.previous-episode {
  background: linear-gradient(135deg, #1a1410 0%, #2a1e14 100%);
  color: #e8d5b5;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
  border-left: 4px solid #c9a227;
}

.previous-episode strong {
  color: #c9a227;
  margin-right: 0.5rem;
}

.previous-episode a {
  color: #d4a574;
  text-decoration: none;
  font-weight: bold;
}

.previous-episode a:hover {
  color: #c9a227;
  text-decoration: underline;
}

/* Next episode teaser */
.next-episode {
  background: linear-gradient(135deg, #2c1810 0%, #3d2914 100%);
  color: #fdf6e3;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.next-episode strong {
  color: #c9a227;
  display: block;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.next-episode strong a {
  color: #c9a227;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-episode strong a:hover {
  color: #fdf6e3;
  text-decoration: underline;
}

.next-episode em {
  color: #e8d5b5;
}

/* Series landing page link */
.series-landing-link {
  background: linear-gradient(135deg, #1a1410 0%, #2a1e14 100%);
  color: #e8d5b5;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid #c9a227;
  font-size: 0.95rem;
  text-align: center;
  font-family: Georgia, serif;
}

.series-landing-link a {
  color: #c9a227;
  text-decoration: none;
}

.series-landing-link a:hover {
  color: #d4a574;
  text-decoration: underline;
}

.series-landing-link strong {
  color: #d4a574;
}

/* Footer note */
.novela-footer {
  text-align: center;
  font-style: italic;
  color: #8b7355;
  font-size: 0.85rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d4a574;
}

/* Sidebar adjustments for novela */
.novela-container .sidebar {
  background: transparent;
  border-left: none;
  padding: 1.5rem;
}

/* Instagram Feed Sidebar */
.instagram-feed {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0d5c8;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.instagram-feed h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d4a574;
  color: #5a4a3a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.instagram-feed h3::before {
  content: "📸";
}

.instagram-posts-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 1rem;
}

.instagram-post {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  flex-shrink: 0;
}

.instagram-post-header {
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #262626;
  border-bottom: 1px solid #efefef;
  background: #fafafa;
}

.instagram-post img {
  width: 100%;
  display: block;
  cursor: pointer;
}

.instagram-post-caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #262626;
  line-height: 1.4;
}

.instagram-post-caption strong {
  color: #262626;
}

/* Samba Dos Números Instagram theme */
body.novela-page.samba-dos-numeros .instagram-feed {
  border-top-color: #e6a800;
}

body.novela-page.samba-dos-numeros .instagram-post {
  border: 1px solid #e6a800;
}

body.novela-page.samba-dos-numeros .instagram-post-header {
  background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
  color: #1a5f3c;
}

/* Código del Destino Instagram theme */
body.novela-page.codigo-del-destino .instagram-feed {
  border-top-color: #c7915d;
}

body.novela-page.codigo-del-destino .instagram-post {
  border: 1px solid #c7915d;
}

body.novela-page.codigo-del-destino .instagram-post-header {
  background: linear-gradient(135deg, #fef9f3 0%, #fffcf7 100%);
  color: #5a4a3a;
}

/* Código de Fuego y Estrellas Instagram theme */
body.novela-page.codigo-fuego-estrellas .instagram-feed {
  border-top-color: #e94b9b;
}

body.novela-page.codigo-fuego-estrellas .instagram-post {
  border: 1px solid #e94b9b;
}

body.novela-page.codigo-fuego-estrellas .instagram-post-header {
  background: linear-gradient(135deg, #1a0033 0%, #2d1b47 100%);
  color: #d4af37;
}

/* Instagram Post Component Styles (inlined from _includes/instagram-post-styles.css) */

.instagram-post {
  background: #fff;
  border-radius: 8px;
  max-width: 468px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Header with profile info */
.instagram-post .post-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #efefef;
}

.instagram-post .profile-pic {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 3px;
  margin-right: 12px;
}

.instagram-post .profile-pic img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  display: block;
}

.instagram-post .user-info {
  flex-grow: 1;
  min-width: 0;
}

.instagram-post .username-row {
  display: flex;
  align-items: center;
}

.instagram-post .username {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.instagram-post .verified-badge {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.instagram-post .location {
  font-size: 12px;
  color: #262626;
  font-weight: 400;
  margin-top: 2px;
}

.instagram-post .more-options {
  font-size: 16px;
  color: #262626;
  cursor: pointer;
  padding: 8px;
}

/* Main image */
.instagram-post .post-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.instagram-post .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Action buttons */
.instagram-post .post-actions {
  display: flex;
  padding: 8px 16px;
  justify-content: space-between;
}

.instagram-post .action-buttons-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.instagram-post .action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-post .action-btn:hover {
  transform: scale(1.1);
}

.instagram-post .action-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.1s ease;
}

.instagram-post .action-btn.liked svg {
  fill: #ed4956;
}

.instagram-post .action-count {
  font-size: 14px;
  font-weight: 400;
  color: #262626;
  margin-right: 12px;
}

/* Caption */
.instagram-post .caption {
  padding: 0 16px 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #262626;
}

.instagram-post .caption .username {
  font-weight: 600;
  margin-right: 4px;
}

/* Comments preview */
.instagram-post .comments-preview {
  padding: 0 16px 8px;
  font-size: 14px;
  color: #8e8e8e;
  cursor: pointer;
}

/* Timestamp */
.instagram-post .timestamp {
  padding: 0 16px 16px;
  font-size: 10px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Add comment input */
.instagram-post .add-comment {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #efefef;
}

.instagram-post .add-comment input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #262626;
  background: transparent;
}

.instagram-post .add-comment input::placeholder {
  color: #8e8e8e;
}

.instagram-post .post-btn {
  background: none;
  border: none;
  color: #0095f6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.3;
}

.instagram-post .post-btn.active {
  opacity: 1;
}

/* Lightbox trigger */
.instagram-post .instagram-lightbox-trigger {
  cursor: pointer;
}

.instagram-post .instagram-lightbox-trigger img {
  transition: transform 0.2s ease;
}

.instagram-post .instagram-lightbox-trigger:hover img {
  transform: scale(1.02);
}

/* Instagram Lightbox Overlay */
.instagram-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.instagram-lightbox.active {
  display: flex;
}

.instagram-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.instagram-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.instagram-lightbox-close:hover {
  color: #3897f0;
}

/* Legacy fallback for series without data file */
.instagram-post-legacy {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Sidebar Instagram post adjustments */
.instagram-feed .instagram-post {
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {

  /* Reset all nested container margins/padding */
  .novela-container.blog-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  .novela-container .two-columns {
    display: block !important;
    gap: 0 !important;
  }

  .novela-container .blog-entry,
  .novela-entry {
    margin: 0 !important;
    padding: 0.5rem !important;
    max-width: 100% !important;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .novela-entry p {
    margin-bottom: 1rem;
  }

  .novela-entry h1 {
    font-size: 1.7rem;
  }

  .novela-entry h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }

  .episode-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .episode-synopsis {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 1rem;
  }

  .series-nav {
    margin: 1rem 0;
  }

  .series-nav a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .novela-entry figure {
    margin: 1rem 0;
  }

  .novela-entry hr {
    margin: 1.5rem auto;
  }

  .novela-entry blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
  }

  .novela-container .sidebar {
    display: none;
  }
}

/* Lightbox for scene images */
.novela-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.novela-lightbox.active {
  display: flex;
}

.novela-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.novela-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.novela-lightbox-close:hover {
  color: #c9a227;
}

.novela-entry figure img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.novela-entry figure img:hover {
  transform: scale(1.02);
}

/* Apply the random border via CSS custom property */
body.novela-page.samba-dos-numeros .novela-entry h2::after {
  background-image: var(--border-image);
}