﻿@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --font-main: 'Prompt', 'Sarabun', system-ui, -apple-system, sans-serif;
  --wine-primary: #a31223;
  --wine-dark: #820b19;
  --wine-light: #fbebee;
  --wine-border: #f0cacf;
  --wine-text: #6b0713;
  --text-dark: #1f1b1c;
  --text-muted: #736b6d;
  --bg-page: radial-gradient(circle at 50% 15%, #ffffff 0%, #f6f8fa 55%, #eaeef3 100%);
  --bg-card: #ffffff;
  --border-card: rgba(220, 226, 235, 0.7);
  --shadow-card: 0 10px 32px rgba(22, 28, 36, 0.06), 0 2px 6px rgba(22, 28, 36, 0.03);
  font-family: var(--font-main);
  color: var(--text-dark);
  font-size: 15px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* =========================================================================
   1. TOP SITE HEADER
   ========================================================================= */
header#siteHeader {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 230, 238, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--wine-border);
  box-shadow: 0 2px 8px rgba(163, 18, 35, 0.15);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--wine-primary);
  display: block;
  letter-spacing: -0.3px;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

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

#status {
  font-size: 12px;
  color: var(--wine-primary);
  font-weight: 600;
  background: var(--wine-light);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--wine-border);
}

.btn-menu {
  background: #f4f6f9;
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  transition: all 0.15s ease;
}

.btn-menu:hover {
  background: #e9ecf2;
  border-color: #cbd0dc;
}

/* =========================================================================
   2. MAIN APPLICATION CANVAS & CARDS STACK
   ========================================================================= */
main#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 90px;
}

.user-canvas {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 2.1 Collapsible Setup Drawer */
.setup-drawer {
  background: #ffffff;
  border: 1px solid var(--wine-border);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.25s ease-out;
  margin-bottom: 8px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0edf0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.drawer-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--wine-primary);
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.drawer-card {
  background: #faf8f8;
  border: 1px solid #eedede;
  border-radius: 14px;
  padding: 14px 18px;
}

.drawer-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.drawer-wide {
  grid-column: 1 / -1;
  background: #fff;
  border-color: var(--wine-border);
}

/* 2.2 The 2 Core Cards (Matching User Sketch Exactly) */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mockup-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mockup-card-header {
  padding: 20px 26px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

/* Clean, Airy Thai Typography for Titles "สคริปต์" & "สไลด์" */
.section-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.4px;
}

/* Inline Script Controls */
.script-inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: #f4f6fa;
  border: 1px solid #dce2ed;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #2b3545;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: #e9eff8;
  border-color: #c4d1e6;
}

.subtle-pill {
  background: transparent;
  border-color: transparent;
  color: #6c788c;
}

.subtle-pill:hover {
  background: #f0f2f7;
}

.speed-pill, .zoom-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f6fa;
  border: 1px solid #dce2ed;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
}

.speed-pill input[type=range] {
  width: 75px;
  accent-color: var(--wine-primary);
}

.pill-label {
  font-size: 11px;
  color: #667085;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 6px;
  color: #344054;
  border-radius: 6px;
}

.icon-btn:hover {
  background: #e4e7ec;
}

.zoom-text {
  font-weight: 600;
  min-width: 38px;
  text-align: center;
}

/* Top Card: Script Box for Presenter */
.card-script {
  min-height: 380px;
  height: 52vh;
  flex: 1.4;
}

.scriptbox {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 24px 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.pages {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.pages img {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.scriptbox .empty, .stage .empty {
  padding: 60px 20px;
  text-align: center;
  color: #98a2b3;
}

.scriptbox .empty b, .stage .empty b {
  display: block;
  font-size: 18px;
  color: var(--wine-primary);
  margin-bottom: 6px;
}

/* Bottom Card: Slide Mirror for Presenter (Restored for iPad/Laptop cockpit) */
.card-slide {
  min-height: 230px;
  height: 32vh;
  flex: 1;
}

.slide-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475467;
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 12px;
}

.counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine-primary);
  background: var(--wine-light);
  padding: 4px 10px;
  border-radius: 12px;
}

.stage {
  flex: 1;
  background: #0f0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Touchpad for Remote on Phone */
.touchpad {
  flex: 1;
  background: radial-gradient(circle at center, #231215 0%, #15090b 100%);
  border-top: 1px solid #4a1d23;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
  color: #ffffff;
  padding: 24px;
}

.touchpad.active {
  cursor: grabbing;
  background: radial-gradient(circle at center, #38151b 0%, #1a0a0d 100%);
  box-shadow: inset 0 0 30px rgba(196, 24, 45, 0.3);
}

.touchpad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.swipe-arrow {
  color: #ff4d61;
  font-size: 18px;
  animation: pulseVert 2s infinite ease-in-out;
}

@keyframes pulseVert {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.touchpad-icon-wrap {
  background: rgba(163, 18, 35, 0.2);
  border: 1px solid rgba(255, 77, 97, 0.4);
  padding: 14px;
  border-radius: 50%;
  color: #ff6b7d;
}

.touchpad-content strong {
  font-size: 16px;
  color: #f7dcdb;
}

.touchpad-content span {
  font-size: 12px;
  color: #ab7f84;
}

/* =========================================================================
   3. BOTTOM NAVIGATION BAR (Black Triangle Arrows on Corners)
   ========================================================================= */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 28px calc(env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  pointer-events: none;
  z-index: 99;
}

/* Black Triangle Arrow Buttons Matching User Sketch */
.nav-arrow {
  pointer-events: auto;
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.nav-arrow:hover {
  transform: scale(1.1);
}

.nav-arrow:active {
  transform: scale(0.92);
}

.arrow-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.arrow-svg polygon {
  fill: #000000;
}

.nav-center-status {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 226, 235, 0.9);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.church-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--wine-primary);
  letter-spacing: 0.3px;
}

/* =========================================================================
   4. BUTTONS, FORMS & UTILITIES
   ========================================================================= */
button, .button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 9px 16px;
  background: #ffffff;
  color: #344054;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

button:hover, .button:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}

.primary {
  background: var(--wine-primary);
  color: #ffffff;
  border-color: var(--wine-primary);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(163, 18, 35, 0.25);
}

.primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.btn-black {
  background: #1f1416;
  color: #ffffff;
  border-color: #1f1416;
}

.btn-black:hover {
  background: #000000;
}

.subtle {
  font-size: 12px;
  padding: 7px 12px;
}

input[type=file] {
  display: none;
}

#toast {
  display: none;
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1416;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000;
  max-width: 90%;
  text-align: center;
}

/* =========================================================================
   5. AUDIENCE DISPLAY (TV / Projector 16:9 Fullscreen)
   ========================================================================= */
.audience {
  background: #000000;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.audience header#siteHeader, .audience .bottom-nav-bar {
  display: none !important;
}

.audience main#app {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
}

.audience .stage {
  width: 100vw;
  height: 100vh;
  background: #000000;
}

.audience .fullscreen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0.5;
  background: rgba(30, 30, 30, 0.85);
  color: #ffffff;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px 16px;
  z-index: 100;
}

.audience .fullscreen:hover {
  opacity: 1;
}

/* =========================================================================
   6. RESPONSIVE BREAKPOINTS (Mobile & iPad)
   ========================================================================= */
@media (max-width: 768px) {
  header#siteHeader {
    padding: 0 16px;
    height: 56px;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand small {
    display: none;
  }
  main#app {
    padding: 12px 14px 84px;
  }
  .mockup-card-header {
    padding: 16px 18px 10px;
  }
  .section-title {
    font-size: 22px;
  }
  .card-script {
    height: 48vh;
    min-height: 280px;
  }
  .card-slide {
    height: 30vh;
    min-height: 180px;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav-bar {
    padding: 0 16px env(safe-area-inset-bottom, 8px);
    height: 68px;
  }
  .nav-arrow {
    width: 54px;
    height: 54px;
  }
}

/* =========================================================================
   7. MINIMALIST FULLSCREEN MOBILE REMOTE (No Slide Preview, Maximum Touchpad)
   ========================================================================= */
body.remote {
  background: #0f0709;
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: fixed;
  inset: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

body.remote header#siteHeader,
body.remote .bottom-nav-bar {
  display: none !important;
}

body.remote main#app {
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 10px));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.remote-minimal-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  justify-content: space-between;
}

/* 7.1 Minimal Remote Top Bar */
.remote-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: #1c0e12;
  border: 1px solid #3d1b22;
  border-radius: 14px;
  height: 48px;
  flex-shrink: 0;
}

.remote-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.church-icon {
  font-size: 16px;
}

.church-name {
  font-size: 14px;
  font-weight: 700;
  color: #f7dcdb;
  letter-spacing: 0.2px;
}

.live-dot-pulse {
  font-size: 11px;
  color: #4ade80;
  margin-left: 2px;
  font-weight: 600;
}

.remote-slide-counter {
  font-size: 13.5px;
  font-weight: 800;
  color: #ff94a2;
  background: #2b1218;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid #57202b;
  letter-spacing: 0.3px;
}

/* 7.2 Giant Fullscreen Touchpad */
.remote-touchpad-fullscreen {
  flex: 1;
  background: radial-gradient(circle at center, #261216 0%, #17090c 70%, #0d0406 100%);
  border: 2px dashed #59222b;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: grab;
  padding: 24px 20px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.remote-touchpad-fullscreen.active {
  cursor: grabbing;
  border-color: #c4182d;
  background: radial-gradient(circle at center, #3d171e 0%, #220b10 70%, #120407 100%);
  box-shadow: inset 0 0 40px rgba(196, 24, 45, 0.35), 0 0 24px rgba(196, 24, 45, 0.2);
}

.touchpad-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 85%;
  width: 100%;
  pointer-events: none;
}

.hud-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8c3b45;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.hud-arrow svg {
  stroke: #ff475e;
  animation: pulseArrow 2s infinite ease-in-out;
}

.hud-arrow-down svg {
  animation-delay: 1s;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.remote-touchpad-fullscreen.active .hud-arrow {
  color: #f7dcdb;
}

.hud-center-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hud-fingerprint {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(163, 18, 35, 0.2);
  border: 1.5px solid rgba(255, 71, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b7e;
  box-shadow: 0 0 24px rgba(163, 18, 35, 0.25);
}

.hud-center-icon strong {
  font-size: 17px;
  color: #f5d4d7;
  font-weight: 700;
}

.hud-center-icon p {
  font-size: 12.5px;
  color: #9c6c74;
  margin: 0;
  max-width: 250px;
}

/* 7.3 Bottom Ergonomic Slide Buttons with Black Arrow Icons */
.remote-bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  height: 74px;
  flex-shrink: 0;
}

.remote-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}

.remote-nav-btn:active {
  transform: scale(0.96);
}

.remote-nav-btn .btn-arrow-icon {
  width: 20px;
  height: 20px;
}

.remote-nav-btn.btn-prev {
  background: #241417;
  color: #d8c2c4;
  border: 1px solid #482329;
}

.remote-nav-btn.btn-prev .btn-arrow-icon polygon {
  fill: #d8c2c4;
}

.remote-nav-btn.btn-prev:active {
  background: #351c21;
}

.remote-nav-btn.btn-next {
  background: linear-gradient(135deg, #a31223 0%, #c4182d 100%);
  color: #ffffff;
  border: 1px solid #e6394e;
  box-shadow: 0 4px 18px rgba(196, 24, 45, 0.45);
}

.remote-nav-btn.btn-next .btn-arrow-icon polygon {
  fill: #ffffff;
}

/* =========================================================================
   8. PRESENTER COCKPIT: SINGLE-VIEWPORT 100VH LAYOUT (SCRIPT + SLIDE TOGETHER)
   ========================================================================= */
body.presenter {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.presenter header#siteHeader {
  height: 52px;
  padding: 0 18px;
  flex-shrink: 0;
}

body.presenter .brand-logo {
  width: 34px;
  height: 34px;
}

body.presenter .brand-title {
  font-size: 16px;
}

body.presenter .brand small {
  display: none;
}

body.presenter main#app {
  flex: 1;
  min-height: 0;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px 54px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

body.presenter .user-canvas {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

/* Default: Stacked View (บน-ล่าง) for Portrait */
body.presenter .cards-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* Split View: Side-by-Side (2 ฝั่ง ซ้าย-ขวา) on Wide Screens or when .layout-split is active */
body.presenter .cards-stack.layout-split {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 16px !important;
  height: 100% !important;
}

body.presenter .cards-stack.layout-split .card-script,
body.presenter .cards-stack.layout-split .card-slide {
  flex: none !important;
  max-height: 100% !important;
  height: 100% !important;
}

/* 8.1 Card 1: สคริปต์ (100% Scale, Never Squished, Clear Typography) */
body.presenter .card-script {
  flex: 1.25;
  min-height: 0;
  max-height: 56%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

body.presenter .card-script .mockup-card-header {
  padding: 10px 20px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2eff1;
  background: #ffffff;
}

body.presenter .card-script .section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}

body.presenter .scriptbox {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 12px 20px 24px;
  background: #ffffff;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

/* Visible Custom Scrollbar for Preacher (เลื่อนแถบเอา) */
body.presenter .scriptbox::-webkit-scrollbar {
  width: 10px;
}
body.presenter .scriptbox::-webkit-scrollbar-track {
  background: #fdf5f6;
  border-radius: 6px;
}
body.presenter .scriptbox::-webkit-scrollbar-thumb {
  background: var(--wine-primary);
  border-radius: 6px;
  border: 2px solid #fdf5f6;
}
body.presenter .scriptbox::-webkit-scrollbar-thumb:hover {
  background: var(--wine-dark);
}

body.presenter .pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* 100% Full Scale Script: Never Squished or Compressed */
body.presenter .pages img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
}

/* 8.2 Card 2: สไลด์ (True 16:9 Presentation Proportion, 100% Uncompressed) */
body.presenter .card-slide {
  flex: 1;
  min-height: 0;
  max-height: 44%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

body.presenter .card-slide .mockup-card-header {
  padding: 10px 20px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2eff1;
  background: #ffffff;
}

body.presenter .card-slide .section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}

body.presenter .card-slide .stage {
  flex: 1;
  min-height: 0;
  height: 100%;
  background: #0f0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  position: relative;
  padding: 8px;
}

body.presenter .card-slide .stage img {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* 8.3 Bottom Nav Bar on Presenter - Fixed, ergonomic Black Triangle Arrows */
body.presenter .bottom-nav-bar {
  height: 48px;
  padding: 0 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  pointer-events: none;
  z-index: 99;
}

body.presenter .nav-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

body.presenter .nav-arrow:active {
  transform: scale(0.9);
}

body.presenter .arrow-svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}