*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* ─── Layakari Studio — Decluttered layout ─── */

.layakari-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
}

/* ─── Slim header ─── */
.lk-header {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

.lk-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lk-brand {
  color: var(--accent-primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lk-header-sep {
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.4;
}

.lk-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lk-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lk-inline-select {
  padding: 5px 24px 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(232, 168, 56, 0.16);
  background: var(--bg-glass, rgba(255,255,255,0.04));
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  border-radius: 100px !important;
}

/* ─── Toolbar Layout ─── */
.lk-action-layout {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lk-toolbar-card {
  padding: 12px 18px;
  border: 1px solid rgba(232, 168, 56, 0.15);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lk-actions-card {
  margin-left: auto;
}

.lk-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lk-toolbar-select {
  min-width: 160px;
  padding: 6px 28px 6px 10px !important;
  font-size: 0.84rem !important;
  border-radius: 8px !important;
}

/* Secondary Button Overrides for Toolbar */
.lk-actions-card .btn:disabled {
  opacity: 0.7;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: not-allowed;
}

[data-theme="light"] .lk-actions-card .btn:disabled {
  border-color: rgba(0, 0, 0, 0.1);
}

.lk-actions-card .btn-primary {
  opacity: 1 !important;
}

/* ─── Info strip ─── */
.lk-info-strip {
  max-width: 1200px;
  width: 100%;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.lk-status {
  color: var(--text-secondary);
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-status[data-tone="error"] {
  color: #e05050;
}

.lk-status[data-tone="success"] {
  color: #40b880;
}

.lk-status[data-tone="warning"] {
  color: #e0a040;
}

.lk-meta-pills {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lk-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid rgba(232, 168, 56, 0.12);
  background: rgba(232, 168, 56, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.lk-pill.has-data {
  border-color: rgba(232, 168, 56, 0.22);
  color: var(--text-primary);
}

.lk-pill-output.has-data {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.12), rgba(232, 168, 56, 0.06));
}

/* ─── Main content (full width) ─── */
.lk-main {
  max-width: 1200px;
  width: 100%;
  margin: 14px auto 0;
  flex: 1;
}

.lk-preview-area {
  border: 1px solid rgba(232, 168, 56, 0.1);
  border-radius: 18px;
  background: var(--bg-elevated);
  padding: 18px;
  min-height: 400px;
}

/* ─── Floating Explain Button (FAB) ─── */
.lk-explain-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c47832, #a05a20);
  color: #fff;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(180, 110, 40, 0.35),
    0 0 0 0 rgba(232, 168, 56, 0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.lk-explain-fab:disabled {
  opacity: 0.35;
  pointer-events: none;
  transform: translateY(8px);
}

.lk-explain-fab:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(180, 110, 40, 0.45),
    0 0 0 4px rgba(232, 168, 56, 0.15);
}

.lk-explain-fab:not(:disabled):active {
  transform: translateY(0);
}

/* Pulse animation when results are ready */
.lk-explain-fab.has-results {
  animation: fab-pulse 2.5s ease-in-out 1;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(180, 110, 40, 0.35), 0 0 0 0 rgba(232, 168, 56, 0); }
  30% { box-shadow: 0 4px 16px rgba(180, 110, 40, 0.35), 0 0 0 10px rgba(232, 168, 56, 0.25); }
  60% { box-shadow: 0 4px 16px rgba(180, 110, 40, 0.35), 0 0 0 0 rgba(232, 168, 56, 0); }
}

/* Override jump-to-top button position specifically for this page so it doesn't overlap the FAB */
#jump-to-top-btn {
  bottom: 90px !important;
  right: 28px !important;
}

@media (max-width: 768px) {
  #jump-to-top-btn {
    bottom: 84px !important;
    right: 28px !important;
  }
}

.lk-fab-label {
  white-space: nowrap;
}

/* ─── Explain Drawer (Sidebar) ─── */
.lk-explain-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lk-explain-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lk-explain-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(640px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface, #faf8f4);
  border-left: 1px solid rgba(232, 168, 56, 0.12);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

[data-theme="dark"] .lk-explain-drawer {
  background: var(--bg-surface, #141a2e);
}

.lk-explain-drawer.is-open {
  transform: translateX(0);
}

.lk-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(232, 168, 56, 0.1);
  flex-shrink: 0;
}

.lk-drawer-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.lk-drawer-title svg {
  color: var(--accent-primary, #c47832);
  flex-shrink: 0;
}

.lk-drawer-close {
  display: grid;
  place-items: center;
  max-width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lk-drawer-close:hover {
  background: rgba(232, 168, 56, 0.1);
  color: var(--text-primary);
}

.lk-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

/* ─── Footer hint ─── */
.lk-footer-hint {
  max-width: 1200px;
  width: 100%;
  margin: 16px auto 0;
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* ─── Keep existing component styles ─── */
.layakari-empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 14px;
  border: 1px dashed rgba(232, 168, 56, 0.16);
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
  font-size: 0.94rem;
}

.layakari-empty-state[hidden],
.layakari-explain-empty[hidden],
.layakari-explain-content[hidden] {
  display: none !important;
}

.layakari-explain-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 14px;
  border: 1px dashed rgba(232, 168, 56, 0.16);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  font-size: 0.92rem;
}

/* ─── Sample Preview Card ─── */
.lk-sample-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 32px;
  border-radius: 14px;
  border: 1px dashed rgba(232, 168, 56, 0.2);
  background: var(--bg-card);
}

.lk-sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 24px;
}

.lk-sample-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}

.lk-sample-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

[data-theme="light"] .lk-sample-badge {
  background: rgba(0, 0, 0, 0.05);
}

.lk-sample-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.lk-intro-slot-container.is-static {
  opacity: 1;
}

.lk-intro-slot-container.is-static .lk-intro-slot {
  opacity: 1;
}

.lk-intro-slot-container.is-static .lk-intro-slot.is-bol {
  width: auto;
  min-width: 28px;
  padding: 0 6px;
}

.lk-sample-card[hidden] {
  display: none !important;
}

#layakari-preview {
  display: none;
}

#layakari-preview.is-visible {
  display: block;
}

.layakari-explain-content {
  display: grid;
  gap: 14px;
}

.layakari-explain-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layakari-explain-chip {
  border: 1px solid rgba(232, 168, 56, 0.16);
  background: rgba(232, 168, 56, 0.08);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layakari-explain-chip:hover {
  border-color: rgba(232, 168, 56, 0.32);
  color: var(--text-primary);
}

.layakari-explain-chip.is-active {
  background: linear-gradient(135deg, #c47832, #a05a20);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(180, 110, 40, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.layakari-explain-card {
  display: grid;
  gap: 14px;
}

.layakari-explain-topline {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.layakari-explain-heading {
  display: grid;
  gap: 4px;
}

.layakari-explain-heading h3 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.layakari-explain-speed {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.layakari-explain-summary {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.92rem;
}

.layakari-explain-block {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(232, 168, 56, 0.15);
  background: rgba(232, 168, 56, 0.04);
}

[data-theme="light"] .layakari-explain-block {
  background: rgba(232, 168, 56, 0.06);
}

.layakari-explain-block-label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.layakari-explain-block p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.layakari-bol-count-note {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
  white-space: nowrap;
}

.layakari-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layakari-rule-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 56, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .layakari-rule-card {
  background: rgba(255, 255, 255, 0.78);
}

.layakari-rule-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.layakari-rule-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.layakari-example-block,
.layakari-practice-block {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 168, 56, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .layakari-example-block,
[data-theme="light"] .layakari-practice-block {
  background: rgba(255, 255, 255, 0.78);
}

.layakari-example-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.layakari-example-header h4,
.layakari-practice-block h4 {
  font-size: 0.94rem;
  font-weight: 700;
}

.layakari-example-header p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.layakari-example-table {
  width: 100%;
  border-collapse: collapse;
}

.layakari-example-table th,
.layakari-example-table td {
  padding: 8px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(232, 168, 56, 0.1);
}

.layakari-example-table thead th {
  border-top: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

.layakari-example-index {
  color: var(--accent-primary);
  font-weight: 700;
  padding-right: 12px;
  white-space: nowrap;
}

.layakari-example-source-ref {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-bottom: 2px;
}

.layakari-example-notation {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.4;
}

.layakari-example-result {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.layakari-separator {
  color: var(--text-muted);
  margin: 0 4px;
}

.layakari-practice-block p {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* ─── Preview readonly overrides ─── */
.preview-readonly .section-header-right,
.preview-readonly .btn-add-avartan,
.preview-readonly .add-section-bar,
.preview-readonly .btn-remove-section,
.preview-readonly .btn-duplicate-avartan,
.preview-readonly .btn-clear-avartan,
.preview-readonly .btn-remove-avartan,
.preview-readonly .layakari-generator-group {
  display: none !important;
}

.preview-readonly .notation-section {
  margin-bottom: 18px;
}

.preview-readonly .section-header {
  margin-bottom: 10px;
}

.preview-readonly .section-label-input {
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.preview-readonly .matra-cell,
.preview-readonly .symbol-cell,
.preview-readonly .marker-cell {
  pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .layakari-shell {
    padding: 0 12px 24px;
  }

  .lk-header {
    flex-wrap: wrap;
  }

  .lk-toolbar {
    padding: 10px 14px;
  }

  .lk-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .lk-info-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .lk-status {
    white-space: normal;
  }

  .layakari-rule-grid {
    grid-template-columns: 1fr;
  }

  .lk-explain-fab {
    bottom: 18px;
    right: 18px;
    padding: 10px 18px;
    font-size: 0.84rem;
  }
}

/* ─── Intro Screen Overlay ─── */
.lk-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lk-intro-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lk-intro-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.lk-intro-card {
  background: var(--bg-surface);
  border: 1px solid rgba(232, 168, 56, 0.15);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.5));
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lk-intro-layout {
  display: flex;
  gap: 40px;
}

.lk-intro-left {
  flex: 1;
  min-width: 0;
}

.lk-intro-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .lk-intro-layout {
    flex-direction: column;
    gap: 16px;
  }
}

.lk-intro-overlay.is-open .lk-intro-card {
  transform: translateY(0);
}

[data-theme="light"] .lk-intro-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.lk-intro-title {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-primary);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 24px;
}

.lk-intro-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.lk-intro-text p {
  margin-bottom: 16px;
}

.lk-intro-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.lk-intro-text ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.lk-intro-text li {
  margin-bottom: 8px;
}

.lk-intro-ratio-list {
  background: rgba(232, 168, 56, 0.05);
  padding: 16px 16px 16px 32px !important;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(232, 168, 56, 0.1);
}

[data-theme="light"] .lk-intro-ratio-list {
  background: rgba(232, 168, 56, 0.08);
}

.lk-intro-interactive {
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .lk-intro-interactive {
  background: #fdfcfa;
  border: 1px solid #e5e7eb;
}

@media (max-width: 860px) {
  .lk-intro-interactive {
    margin-top: 16px;
  }
}

.lk-intro-ratio-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.lk-intro-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast, 0.15s ease);
}

.lk-intro-tab:hover {
  background: rgba(232, 168, 56, 0.05);
  color: var(--text-primary);
}

.lk-intro-tab.is-active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(232, 168, 56, 0.25);
}

.lk-intro-grid-container {
  position: relative;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 32px;
}

.lk-intro-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  position: relative;
}

.lk-intro-slot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  opacity: 0;
  transition: opacity 0.2s;
}

.lk-intro-slot-container.is-visible {
  opacity: 1;
}

.lk-intro-slot {
  width: 10px;
  height: 10px;
  background: var(--border-color);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
}

.lk-intro-slot.is-bol {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-primary);
  box-shadow: 0 2px 6px rgba(232, 168, 56, 0.3);
}

.lk-intro-divider-container {
  position: relative;
  height: 100%;
}

.lk-intro-divider {
  position: absolute;
  top: -10px;
  bottom: -30px;
  right: 0;
  width: 2px;
  background: var(--text-muted);
  opacity: 0.5;
}

.lk-intro-beat-label {
  position: absolute;
  bottom: -24px;
  right: 0;
  transform: translateX(50%);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.lk-intro-playhead {
  position: absolute;
  top: 0;
  bottom: 24px;
  left: 0;
  width: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  z-index: 10;
  pointer-events: none;
}

.lk-intro-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.lk-header-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast, 0.15s ease);
}

.lk-header-link:hover {
  color: var(--accent-primary);
  background: rgba(232, 168, 56, 0.05);
}

@keyframes introSlotIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes introBolPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes introPlayheadSweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.lk-intro-slot.is-flashing {
  animation: introPulse 0.4s ease-out;
}

@keyframes introPulse {
  0% { transform: scale(1); box-shadow: 0 2px 6px rgba(232, 168, 56, 0.3); background: var(--accent-primary); }
  30% { transform: scale(1.3); box-shadow: 0 0 15px var(--accent-primary); background: #ff9838; }
  100% { transform: scale(1); box-shadow: 0 2px 6px rgba(232, 168, 56, 0.3); background: var(--accent-primary); }
}
