/* ============================================================
   WebcamClicks — Pro Camera CSS (pro-camera.css)
   Ultra-premium mobile cinema camera app interface.
   Designed for mobile devices with an interactive desktop simulator.
   ============================================================ */

:root {
  --pro-bg: #050608;
  --pro-surface: #0e1117;
  --pro-surface-2: #161a23;
  --pro-border: rgba(255, 255, 255, 0.12);
  --pro-border-glow: rgba(255, 77, 46, 0.35);
  --pro-text: #f8fafc;
  --pro-muted: #94a3b8;
  --pro-accent: #ff4d2e;
  --pro-accent-cyan: #06b6d4;
  --pro-amber: #f59e0b;
  --pro-rec-red: #ef4444;
  --pro-rec-glow: rgba(239, 68, 68, 0.55);
  --pro-font: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --pro-mono: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--pro-bg);
  color: var(--pro-text);
  font-family: var(--pro-font);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------------- Desktop Warning & Simulator Banner ---------------- */
.desktop-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(90deg, rgba(255, 77, 46, 0.18) 0%, rgba(14, 165, 233, 0.15) 100%);
  border-bottom: 1px solid var(--pro-border);
  color: #f1f5f9;
  font-size: 0.88rem;
  z-index: 999;
  position: relative;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 46, 0.25);
  border: 1px solid rgba(255, 77, 46, 0.4);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.banner-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.banner-btn.active {
  background: var(--pro-accent);
  border-color: var(--pro-accent);
}

.banner-close {
  background: transparent;
  border: none;
  color: var(--pro-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  display: flex;
  align-items: center;
}

.banner-close:hover {
  color: #ffffff;
}

/* On actual mobile devices / small screens: HIDE the banner completely ("otherwise hidden") */
@media (max-width: 768px) {
  .desktop-app-banner {
    display: none !important;
  }
}

/* ---------------- Desktop Shell & Phone Simulator ---------------- */
.pro-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 54px);
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 30%, #151922 0%, #050608 75%);
}

.phone-simulator-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 890px;
  max-height: 94vh;
  border-radius: 52px;
  background: #000000;
  padding: 12px;
  box-shadow: 
    0 0 0 4px #262a33,
    0 0 0 6px #12151c,
    0 25px 60px -10px rgba(0, 0, 0, 0.9),
    0 0 100px -20px rgba(255, 77, 46, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Speaker notch / dynamic island on simulator */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 999px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.phone-island::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Fullscreen Studio Mode on desktop */
.pro-page-wrapper.fullscreen-mode {
  padding: 0;
  min-height: 100vh;
}

.pro-page-wrapper.fullscreen-mode .phone-simulator-frame {
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.pro-page-wrapper.fullscreen-mode .phone-island {
  display: none;
}

/* Mobile Devices: Native borderless full screen */
@media (max-width: 768px) {
  html, body {
    overflow: hidden !important;
    height: 100dvh !important;
    width: 100vw !important;
    background: #000000 !important;
    position: fixed !important;
    inset: 0 !important;
  }
  .site-header, .site-footer, .cinema-guide-container, .desktop-app-banner {
    display: none !important;
  }
  .pro-page-wrapper {
    padding: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #000000 !important;
    min-height: 100dvh !important;
    z-index: 100;
  }
  .phone-simulator-frame {
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .phone-island {
    display: none !important;
  }
  .camera-app-viewport {
    border-radius: 0 !important;
    height: 100dvh !important;
    width: 100vw !important;
  }
  .camera-top-bar {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px !important;
  }
  .pro-telemetry-bar {
    top: calc(env(safe-area-inset-top, 0px) + 48px) !important;
  }
  .camera-mid-controls {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 120px) !important;
  }
  .camera-bottom-deck {
    padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    gap: 8px !important;
  }
}

/* ---------------- Native Camera App Interface (Inside Phone) ---------------- */
.camera-app-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Tap to Start Camera Overlay */
.pro-start-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(14, 18, 25, 0.95) 0%, rgba(5, 6, 8, 0.98) 100%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.pro-start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-card {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.start-icon {
  font-size: 3rem;
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.start-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.start-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.start-cta-btn {
  margin-top: 6px;
  background: var(--brand-grad);
  color: #ffffff;
  border: none;
  font-family: var(--pro-font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 77, 46, 0.4);
}

/* ---------------- Top Status & Pro Control Bar ---------------- */
.camera-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 75%, transparent 100%);
  pointer-events: auto;
}

.top-left-actions, .top-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 24, 33, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--pro-border);
  color: var(--pro-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.top-icon-btn:hover, .top-icon-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.top-icon-btn.active {
  background: var(--pro-accent);
  color: #ffffff;
  border-color: var(--pro-accent);
}

/* Aspect Ratio Pill (Center Top) */
.ratio-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--pro-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.ratio-selector-pill:hover, .ratio-selector-pill:active {
  background: rgba(255, 77, 46, 0.25);
  border-color: var(--pro-accent);
  transform: scale(1.03);
}

.ratio-selector-pill .pill-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Pro Status Indicators (FPS, Resolution, Audio VU) */
.pro-telemetry-bar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 68px);
  left: 14px;
  right: 14px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pro-mono);
  font-size: 0.72rem;
  color: var(--pro-muted);
  pointer-events: none;
}

.telemetry-left, .telemetry-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telem-chip {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.telem-chip.clickable {
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
  font-size: inherit;
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
  transition: all 0.2s ease;
}

.telem-chip.clickable:hover, .telem-chip.clickable:active {
  background: rgba(52, 211, 153, 0.25);
  transform: scale(1.04);
}

.telem-chip.accent {
  color: #38bdf8;
}

.telem-chip.rec {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  display: none;
}

/* Audio VU Meter */
.audio-vu-meter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 18px;
}

.vu-bar {
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.15);
  transition: height 0.05s ease, background 0.05s ease;
}

.vu-bar.green.lit { background: #10b981; }
.vu-bar.yellow.lit { background: #f59e0b; }
.vu-bar.red.lit { background: #ef4444; }

/* ---------------- Viewfinder & Stage ---------------- */
.camera-stage-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pro-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Aspect Ratio Letterbox / Pillarbox Matte Overlays */
.cine-matte {
  position: absolute;
  background: #000000;
  z-index: 30;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cine-matte.translucent {
  background: rgba(0, 0, 0, 0.65);
}

.cine-matte-top {
  top: 0; left: 0; right: 0;
  height: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.cine-matte-bottom {
  bottom: 0; left: 0; right: 0;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.cine-matte-left {
  top: 0; bottom: 0; left: 0;
  width: 0;
  border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

.cine-matte-right {
  top: 0; bottom: 0; right: 0;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Framing Grid Overlay (Thirds / Golden / Cross) */
.framing-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.framing-grid-overlay.active {
  opacity: 1;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
}

.grid-line.v1 { left: 33.333%; top: 0; bottom: 0; width: 1px; }
.grid-line.v2 { left: 66.666%; top: 0; bottom: 0; width: 1px; }
.grid-line.h1 { top: 33.333%; left: 0; right: 0; height: 1px; }
.grid-line.h2 { top: 66.666%; left: 0; right: 0; height: 1px; }

.grid-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
}
.grid-crosshair::before, .grid-crosshair::after {
  content: ''; position: absolute; background: rgba(255, 255, 255, 0.4);
}
.grid-crosshair::before { left: 11px; top: 0; width: 2px; height: 24px; }
.grid-crosshair::after { top: 11px; left: 0; height: 2px; width: 24px; }

/* Interactive Tap to Focus Reticle */
.focus-reticle {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1.5px solid var(--pro-amber);
  border-radius: 8px;
  pointer-events: none;
  z-index: 35;
  transform: translate(-50%, -50%) scale(1.4);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-reticle.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.focus-reticle::after {
  content: '☀️';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* Flash Screen Burst */
.screen-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

.screen-flash.fire {
  opacity: 1;
}

/* ---------------- Mid-Stage Floating HUD (Zoom & LUT) ---------------- */
.camera-mid-controls {
  position: absolute;
  bottom: 154px;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

/* Lens Focal Length Zoom Pills */
.zoom-dial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 18, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.zoom-pill {
  background: transparent;
  border: none;
  color: var(--pro-muted);
  font-family: var(--pro-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-pill.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* LUT / Color Profile Carousel */
.lut-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 90%;
  padding: 4px 8px;
  scrollbar-width: none;
  pointer-events: auto;
}

.lut-scroller::-webkit-scrollbar {
  display: none;
}

.lut-chip {
  flex-shrink: 0;
  background: rgba(14, 18, 25, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pro-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.lut-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.lut-chip.active {
  background: var(--pro-accent);
  border-color: var(--pro-accent);
  color: #ffffff;
}

/* ---------------- Bottom Mobile Camera Deck ---------------- */
.camera-bottom-deck {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Mode Switcher: PHOTO vs VIDEO */
.camera-mode-switcher {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mode-label {
  background: transparent;
  border: none;
  font-family: var(--pro-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pro-muted);
  cursor: pointer;
  padding: 4px 8px;
  position: relative;
  transition: all 0.15s ease;
}

.mode-label.active {
  color: var(--pro-amber);
}

.mode-label.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pro-amber);
}

/* Main Shutter Row */
.shutter-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left: Gallery Thumbnail Preview */
.deck-thumb-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e2430;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.deck-thumb-btn:hover, .deck-thumb-btn:active {
  transform: scale(1.08);
}

.deck-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-thumb-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--pro-accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1.5px solid #000000;
}

/* Center: Master Dual-Ring Shutter Button */
.master-shutter-btn {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.master-shutter-btn:active {
  transform: scale(0.93);
}

.shutter-inner-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shutter in Video Mode (Idle) */
.master-shutter-btn.video-mode .shutter-inner-disc {
  background: var(--pro-rec-red);
}

/* Shutter in Video Mode (Recording) */
.master-shutter-btn.is-recording {
  border-color: rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.5s infinite;
}

.master-shutter-btn.is-recording .shutter-inner-disc {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pro-rec-red);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Right: Flip Camera Button */
.deck-flip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 32, 44, 0.8);
  border: 1px solid var(--pro-border);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.deck-flip-btn:hover, .deck-flip-btn:active {
  transform: rotate(180deg) scale(1.06);
}

/* ---------------- Bottom Sheet Modals (Ratio Picker & Gallery) ---------------- */
.pro-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pro-sheet-backdrop.on {
  opacity: 1;
  pointer-events: auto;
}

.pro-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 82%;
  background: var(--pro-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  z-index: 95;
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8);
}

.pro-bottom-sheet.on {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--pro-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Aspect Ratio Card List */
.ratio-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 56vh;
  padding-right: 4px;
}

.ratio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pro-surface-2);
  border: 1px solid var(--pro-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ratio-card:hover {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.3);
}

.ratio-card.active {
  background: rgba(255, 77, 46, 0.15);
  border-color: var(--pro-accent);
}

.ratio-shape-preview {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.shape-box {
  background: var(--pro-accent);
  border-radius: 2px;
}

.ratio-card-info {
  flex: 1;
}

.ratio-card-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratio-card-desc {
  font-size: 0.78rem;
  color: var(--pro-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* Gallery Sheet Grid */
.gallery-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: 56vh;
  padding-right: 4px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--pro-border);
}

.gallery-card img, .gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: var(--pro-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.gallery-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.gallery-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
}

/* ---------------- SEO & Educational Cinema Guide Section ---------------- */
.cinema-guide-container {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
  color: #cbd5e1;
}

.cinema-guide-container h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.cinema-guide-container p {
  line-height: 1.7;
  color: #94a3b8;
}

.ratio-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.guide-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: 16px;
  padding: 20px;
}

.guide-card h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-badge {
  font-family: var(--pro-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 77, 46, 0.2);
  color: var(--pro-accent);
}

.guide-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  color: #94a3b8;
}
