/*
Theme Name:   Legends Media
Theme URI:    https://www.legendsmedia.in/
Description:  Legends Media child theme. Change "Template" below to match your
              parent theme's exact folder name. Common ones: astra, hello-elementor,
              generatepress, twentytwentyfour, twentytwentythree
Template:     astra
Version:      1.0
Author:       Legends Media
*/

/* ============================================================
   DESIGN TOKENS — edit these to retheme the whole site
   ============================================================ */
:root {
  --bg:             #fdfbf7;
  --text:           #2d2724;
  --orange:         #e3662c;
  --card-bg:        #ffffff;
  --warm-tint:      #fdf6e2;
  --peach-footer:   #eddccb;

  --status-active:   #4caf50;
  --status-done:     #2196f3;
  --status-rip:      #9e9e9e;

  --border:          3px solid #2d2724;
  --shadow:          6px 6px 0px #2d2724;
  --shadow-lg:       8px 8px 0px #2d2724;
  --radius:          16px;
  --radius-sm:       10px;

  --font-display:    'Fredoka', sans-serif;
  --font-body:       'Lato', sans-serif;
  --font-code:       'Fira Code', 'Courier New', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  padding: 0 10px;
}

/* Hide default WP/theme header and footer — we draw our own */
.site-header,
.site-footer,
.ast-above-header,
.ast-below-header,
.footer-widget-area,
#ast-fixed-footer,
header.entry-header,
.wp-block-template-part[data-slug="header"],
.wp-block-template-part[data-slug="footer"] {
  display: none !important;
}

/* Kill default theme body padding / max-width constraints */
.ast-container,
.ast-page-builder-template .ast-content-area,
.site-content,
.content-area,
.entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-display) !important;
  font-weight: 600;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
#lm-nav nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

#lm-nav .logo          { display: flex; align-items: center; gap: 12px; }
#lm-nav .logo-icon     { height: 60px; padding: 5px; background: var(--text); border-radius: 50%; }
#lm-nav .logo-text     { font-family: var(--font-display); font-size: 22px; color: var(--text); }

#lm-nav .nav-link ul li              { list-style: none; display: inline-block; margin-left: 20px; }
#lm-nav .nav-link ul li a            { font-family: var(--font-display); font-size: 18px; color: var(--text); transition: color 0.2s; }
#lm-nav .nav-link ul li a:hover      { color: var(--orange); }
#lm-nav nav .fa                      { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.lm-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
}
.lm-hero h1           { font-size: 52px; line-height: 1.2; margin-bottom: 20px; }
.lm-hero p            { font-size: 22px; line-height: 1.6; margin-bottom: 35px; font-weight: 300; }
.lm-highlight         { color: var(--orange); }

/* ============================================================
   BUTTON
   ============================================================ */
.lm-btn {
  display: inline-block;
  background: #ffd166;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 15px 35px;
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.lm-btn:hover  { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); background: var(--orange); color: #fff; }
.lm-btn:active { transform: translate(4px,4px); box-shadow: 2px 2px 0 var(--text); }

/* ============================================================
   SECTIONS
   ============================================================ */
.lm-section {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 40px 20px;
}
.lm-section-title { font-size: 38px; text-align: center; margin-bottom: 10px; }
.lm-section-sub   { text-align: center; margin-bottom: 40px; color: #666; font-size: 17px; }

/* ============================================================
   ABOUT PANEL
   ============================================================ */
.lm-bio-panel {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.lm-bio-panel h3 { font-size: 28px; color: var(--orange); margin-bottom: 18px; }
.lm-bio-panel p  { font-size: 18px; line-height: 1.65; margin-bottom: 14px; }

/* ============================================================
   PROJECT / BLOG CARDS
   ============================================================ */
.lm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 40px;
}
.lm-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.lm-card:hover      { transform: translateY(-4px); }
.lm-card-icon       { font-size: 40px; margin-bottom: 15px; line-height: 1; }
.lm-card h3         { font-size: 24px; margin-bottom: 10px; }
.lm-card p          { font-size: 15px; line-height: 1.55; margin-bottom: 22px; color: #555; }
.lm-card-btn        { font-family: var(--font-display); color: var(--orange); font-weight: 600; font-size: 16px; }
.lm-card-btn:hover  { text-decoration: underline; }

.lm-badge {
  position: absolute;
  top: -15px; right: 20px;
  padding: 5px 14px;
  border: var(--border);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}
.lm-badge-active    { background: var(--status-active); }
.lm-badge-done      { background: var(--status-done); }
.lm-badge-rip       { background: var(--status-rip); }

/* ============================================================
   TIMELINE — CLEANED NEO-BRUTALIST ACCORDION
   ============================================================ */

/* Outer Container with Vertical Spine */
.lm-timeline-full {
  max-width: 860px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 20px;
}

.lm-timeline-full::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  background: var(--text);
  border-radius: 2px;
}

/* Era Card Base */
.lm-era-full {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              opacity 0.5s ease, translate 0.5s ease;
}

.lm-era-full:hover {
  transform: translateY(-2px);
}

/* Scroll-reveal state — toggled by the IntersectionObserver in components.js.
   Falls back to always-visible if JS doesn't run. */
.lm-era-full.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate eras get a subtle tint so a long list stays scannable */
.lm-era-full.lm-era-alt {
  background: var(--warm-tint);
}

/* "What's next" era — dashed border + accent glow to read as in-progress/future */
.lm-era-full.lm-era-next {
  border-style: dashed;
  border-color: var(--orange);
  box-shadow: 6px 6px 0px #e3662c55;
}

/* Era Header */
.lm-era-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.lm-era-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lm-era-emoji {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.lm-era-year {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.lm-era-header h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

/* Interactive Toggle Icon */
.lm-era-toggle-btn {
  background: var(--warm-tint);
  border: 2px solid var(--text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
}

.lm-era-full.is-open .lm-era-toggle-btn {
  transform: rotate(180deg);
  background: var(--orange);
  color: #fff;
}

/* Era Overview Text — this wraps the era's WYSIWYG content (the_content()) */
.lm-era-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #3a3530;
  margin-top: 18px;
}
.lm-era-summary p { margin-bottom: 14px; }
.lm-era-summary p:last-child { margin-bottom: 0; }
.lm-era-summary h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--orange);
  margin: 22px 0 8px;
}
.lm-era-summary h3:first-child { margin-top: 0; }
.lm-era-summary ul,
.lm-era-summary ol { margin: 0 0 14px 22px; }
.lm-era-summary li { margin-bottom: 6px; }
.lm-era-summary code {
  background: #f0ebe3;
  border: 1.5px solid #ccc;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-code);
  font-size: 14px;
}

/* Collapsible Content Wrapper */
.lm-era-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.lm-era-full.is-open .lm-era-details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
}

.lm-era-details-inner {
  overflow: hidden;
}

/* Pull Quote */
.lm-era-quote {
  border-left: 5px solid var(--orange);
  padding: 14px 20px;
  background: var(--warm-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* Sub-chapters */
.lm-era-subblock {
  padding: 20px 22px;
  background: #f7f3ed;
  border: 2px solid #e0d8cf;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.lm-era-subblock h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--orange);
  margin-bottom: 10px;
}

.lm-era-subblock p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.lm-era-subblock p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .lm-timeline-full {
    padding-left: 0;
  }
  .lm-timeline-full::before {
    display: none;
  }
  .lm-era-full {
    padding: 22px 20px;
  }
  .lm-era-emoji {
    font-size: 32px;
  }
  .lm-era-header h3 {
    font-size: 20px;
  }
}

/* ============================================================
   HORIZONTAL TIMELINE NODES + MICRO ANIMATIONS
   ============================================================ */
.lm-timeline-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 8px;
  margin: 18px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.lm-timeline-nav::-webkit-scrollbar { height: 8px; }
.lm-timeline-nav::-webkit-scrollbar-thumb { background: #ddd; border-radius: 8px; }

.lm-timeline-node {
  scroll-snap-align: center;
  flex: 0 0 auto;
  min-width: 160px;
  max-width: 260px;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.12s;
}
.lm-timeline-node:hover { transform: translateY(-4px); border-color: rgba(0,0,0,0.06); }
.lm-timeline-node:focus { outline: none; box-shadow: 0 0 0 4px rgba(227,102,44,0.12); }

.lm-timeline-node .node-year { font-family: var(--font-display); color: var(--orange); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.lm-timeline-node .node-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.lm-timeline-node .node-excerpt { font-size: 13px; color: #6a635d; line-height: 1.4; max-height: 3.2em; overflow: hidden; }

.lm-timeline-node.is-active {
  border-color: var(--orange);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 10px 10px 0px rgba(227,102,44,0.08);
}

/* Horizontal timeline spine and circular markers */
.lm-timeline-nav { position: relative; }
.lm-timeline-nav::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 4px;
  background: #f4efe6;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}
.lm-timeline-node { position: relative; z-index: 1; }
.lm-timeline-node::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid #eee;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.lm-timeline-node.is-active::after {
  background: var(--orange);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 0 rgba(0,0,0,0.06);
}
.lm-timeline-node:focus { outline: none; box-shadow: 0 0 0 6px rgba(227,102,44,0.12); }

/* hide old accordion toggle if present */
.lm-era-toggle-btn { display: none !important; }

/* Panels: show only selected era when using nodes */
.lm-timeline-full .lm-era-full { display: none; opacity: 0; transform: translateY(12px); transition: opacity 0.36s ease, transform 0.36s ease; }
.lm-timeline-full .lm-era-full.is-selected { display: block; opacity: 1; transform: translateY(0); }

/* small pop animation for micro delight */
@keyframes popIn { 0% { transform: scale(0.98); opacity: 0.0; } 60% { transform: scale(1.02); opacity: 1 } 100% { transform: scale(1); } }
.lm-era-full.anim-pop { animation: popIn 420ms cubic-bezier(.2,.8,.2,1); }

/* ensure accessibility of hidden panels for non-JS fallback */
.no-js .lm-timeline-full .lm-era-full { display: block; opacity: 1; transform: none; }

/* ============================================================
   MUSIC
   ============================================================ */
.lm-soundcloud {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.lm-music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.lm-track-card {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform 0.2s;
}
.lm-track-card:hover { transform: translateY(-3px); }
.lm-track-card iframe { display: block; width: 100%; }

/* ============================================================
   EMBED PAGES  (itch.io / games / tools)
   ============================================================ */
.lm-embed-wrap,
.lm-embed-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px); /* 110px ≈ nav height */
}

/* Header / control bar for embed pages */
.lm-embed-header,
.lm-embed-bar {
  max-width: 1100px;
  margin: 16px auto 12px;
  width: 100%;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  box-sizing: border-box;
}
.lm-embed-header h1,
.embed-title { font-size: 30px; margin: 0; }
.lm-embed-header .lm-badge,
.embed-bar-left .lm-badge { position: static; }

.lm-back-link,
.lm-back-btn { /* small back link */
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  transition: color 0.2s;
}
.lm-back-link:hover,
.lm-back-btn:hover { color: var(--orange); }

/* Frame container used by the embed template */
.lm-embed-frame,
.lm-embed-frame-wrapper { /* match both naming conventions */
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

.lm-embed-frame iframe,
.lm-embed-frame-wrapper iframe,
.lm-embed-frame-wrapper > iframe {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 520px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* small helpers used in the embed header */
.embed-title-icon { height: 36px; margin-right: 10px; }
.embed-title-emoji { font-size: 28px; margin-right: 8px; }
.lm-external-btn { font-family: var(--font-display); color: var(--text); border: 2px solid transparent; padding: 8px 12px; border-radius: 8px; background: var(--card-bg); transition: all 0.12s; }
.lm-external-btn:hover { color: var(--orange); transform: translateY(-2px); }

@media (max-width: 768px) {
  .lm-embed-frame iframe,
  .lm-embed-frame-wrapper iframe { height: calc(100vh - 220px); }
  .embed-title { font-size: 20px; }
}

/* ============================================================
   BLOG / DEVLOG PAGES
   ============================================================ */
.lm-blog-wrap {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.lm-blog-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: var(--border);
}
.lm-blog-header .lm-badge { position: static; display: inline-block; margin-bottom: 16px; }
.lm-blog-header h1         { font-size: 44px; line-height: 1.2; margin-bottom: 12px; }
.lm-blog-header .lm-sub    { font-size: 18px; color: #666; }

.lm-blog-body h2   { font-size: 28px; margin: 48px 0 14px; }
.lm-blog-body h3   { font-size: 22px; margin: 36px 0 10px; color: var(--orange); }
.lm-blog-body p    { font-size: 17px; line-height: 1.75; margin-bottom: 20px; color: #3a3530; }
.lm-blog-body ul,
.lm-blog-body ol   { margin: 0 0 20px 28px; }
.lm-blog-body li   { font-size: 17px; line-height: 1.7; margin-bottom: 6px; }
.lm-blog-body code {
  background: #f0ebe3;
  border: 1.5px solid #ccc;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-code);
  font-size: 15px;
}
.lm-blog-body pre {
  background: #2d2724;
  color: #fdf6e2;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: var(--border);
  overflow-x: auto;
  margin-bottom: 24px;
}
.lm-blog-body pre code     { background: none; border: none; color: inherit; font-size: 14px; }
.lm-blog-body img          { width: 100%; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 10px 0 24px; }
.lm-blog-body blockquote   {
  border-left: 5px solid var(--orange);
  padding: 14px 20px;
  background: var(--warm-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-style: italic;
  font-size: 18px;
}
.lm-tech-tags              { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.lm-tech-tags li {
  background: #e3662c1a;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
}

/* ============================================================
   FOOTER
   ============================================================ */
#lm-footer footer {
  text-align: center;
  padding: 60px 20px;
  background: var(--peach-footer);
  border-top: var(--border);
  margin-top: 100px;
}
#lm-footer footer h2    { font-size: 28px; margin-bottom: 6px; }
#lm-footer .lm-socials  { margin: 20px 0; }
#lm-footer .lm-socials a {
  font-size: 35px;
  color: var(--text);
  margin: 0 15px;
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}
#lm-footer .lm-socials a:hover { color: var(--orange); transform: scale(1.15); }
#lm-footer .lm-credit  { font-size: 16px; opacity: 0.7; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .lm-hero h1  { font-size: 36px; }
  .lm-hero p   { font-size: 18px; }

  #lm-nav nav .fa { display: block; font-size: 24px; cursor: pointer; }

  #lm-nav .nav-link {
    position: fixed;
    background: var(--bg);
    border-left: var(--border);
    height: 100vh;
    width: 250px;
    top: 0; right: -300px;
    z-index: 9999;
    padding: 40px;
    transition: right 0.3s ease;
  }
  #lm-nav .nav-link ul li    { display: block; margin: 25px 0; }
  #lm-nav .nav-link .fa-times { position: absolute; top: 25px; right: 25px; cursor: pointer; }

  .lm-embed-frame iframe { min-height: 400px; }
}
/* --- Full-Screen Embed Page Reset --- */
body.lm-embed-page-body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents outer page scrolling */
    background-color: #111;
    height: 100dvh;
}

/* Hide global components JS might try to inject */
body.lm-embed-page-body #lm-nav,
body.lm-embed-page-body #lm-footer {
    display: none !important;
}

.lm-embed-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100vw;
}

/* --- Slim Control Bar --- */
.lm-embed-bar {
    height: 52px;
    background-color: #fdfbf7;
    border-bottom: 3px solid #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
    flex-shrink: 0;
}

.embed-bar-left, 
.embed-bar-center, 
.embed-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lm-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #fff;
    border: 2px solid #111;
    box-shadow: 2px 2px 0px #111;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #111;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.lm-back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #111;
}

.embed-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: #111;
}

.embed-title-icon {
    height: 22px;
    width: auto;
}

.embed-title-emoji {
    font-size: 1.2rem;
}

.lm-external-btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #111;
    text-decoration: underline;
    font-weight: bold;
}

/* --- Maximize Frame Space --- */
.lm-embed-frame-wrapper {
    flex: 1;
    width: 100%;
    height: calc(100dvh - 52px);
    background-color: #111;
    position: relative;
}

.lm-embed-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .lm-embed-bar {
        padding: 0 10px;
        height: 48px;
    }

    .embed-title {
        font-size: 0.95rem;
        /* Truncate long titles on narrow screens */
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lm-external-btn {
        display: none; /* Hide non-critical button on tiny mobile screens */
    }

    .lm-embed-frame-wrapper {
        height: calc(100dvh - 48px);
    }
}