/* ============ Grid view ============ */
.grid-view .section {
  color: #5B9BD5; font-size: 13px; font-weight: 700;
  margin: 28px 0 14px;
  font-family: monospace; letter-spacing: .08em; text-transform: uppercase;
}
.grid-view .section:first-child { margin-top: 0; }
.grid-view .row {
  display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap;
}
.grid-view .card {
  position: relative;
  width: 384px;
}
.grid-view .card-thumb {
  cursor: pointer;
  transition: transform .15s;
  position: relative;
}
.grid-view .card-thumb:hover { transform: scale(1.03); }
.grid-view .card iframe {
  width: 384px; height: 216px;
  border: none; pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
  display: block;
}
.grid-view .card-label {
  color: #F5F2ED; font-size: 12px; margin-top: 8px;
  font-family: monospace; letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.grid-view .card-label .num { color: rgba(245, 242, 237, .4); margin-right: 8px; }

/* ============ Scroll view ============ */
.scroll-view { padding: 40px 60px 80px; }
.scroll-view .slide-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 80px auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.scroll-view .slide-container:last-child { margin-bottom: 0; }
.scroll-view .slide-main { position: relative; }
.scroll-view .slide-label {
  position: absolute;
  top: -32px; left: 0;
  color: rgba(245, 242, 237, .6);
  font-family: monospace;
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 700;
}
.scroll-view .slide-label .num { color: #5B9BD5; margin-right: 12px; }
.scroll-view .slide-frame-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s;
  cursor: pointer;
}
.scroll-view .slide-container:hover .slide-frame-wrapper {
  transform: scale(1.01);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.scroll-view .slide-frame {
  width: 100%; height: 100%; border: none;
  pointer-events: none; background: #000; display: block;
}
.scroll-view .section-divider {
  grid-column: 1 / -1;
  max-width: 1600px;
  margin: 0 auto 40px auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #5B9BD5;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Copy mode: iframes become interactive so text inside can be selected */
body.copy-mode .scroll-view .slide-frame,
body.copy-mode .grid-view .card iframe {
  pointer-events: auto;
}
body.copy-mode .scroll-view .slide-frame-wrapper { cursor: text; }
body.copy-mode .scroll-view .slide-frame-wrapper:hover {
  transform: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
body.copy-mode .grid-view .card-thumb:hover { transform: none; }
body.copy-mode .grid-view .card-thumb { cursor: text; }

/* ============ Fullscreen view ============ */
.fullscreen-view {
  position: fixed; inset: 0;
  background: #000; z-index: 200;
  display: none; flex-direction: column;
}
.fullscreen-view.active { display: flex; }
.fs-topbar {
  padding: 14px 32px;
  background: rgba(20, 20, 20, .92);
  backdrop-filter: blur(12px);
  color: #F5F2ED;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}
.fs-title { font-family: monospace; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.fs-counter { color: rgba(245, 242, 237, .4); margin-left: 16px; font-weight: 400; }
.fs-controls { display: flex; gap: 8px; }
.fs-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #F5F2ED;
  cursor: pointer; border-radius: 7px;
  font-family: monospace; font-size: 12px;
  font-weight: 700; letter-spacing: .04em;
  transition: all .15s;
}
.fs-btn:hover { background: rgba(255, 255, 255, .18); }
.fs-btn:disabled { opacity: .3; cursor: not-allowed; }
.fs-btn.close { background: rgba(201, 86, 60, .2); border-color: rgba(201, 86, 60, .4); }
.fs-btn.close:hover { background: rgba(201, 86, 60, .35); }

.fs-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
}
.fs-stage {
  display: flex; align-items: center; justify-content: center;
  padding: 32px; overflow: hidden;
}
.fs-iframe {
  width: 100%; height: 100%;
  max-width: calc((100vh - 140px) * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  aspect-ratio: 16/9;
  border: none;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .9);
  border-radius: 2px;
  background: #000;
}
.fs-comment-panel {
  background: rgba(20, 20, 20, .6);
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.fs-comment-panel .panel-title {
  font-family: monospace;
  font-size: 13px;
  color: #5B9BD5;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.fs-comment-panel textarea {
  flex: 1;
  width: 100%;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #F5F2ED;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px;
  resize: none;
  outline: none;
  transition: border-color .15s;
}
.fs-comment-panel textarea:focus { border-color: rgba(91, 155, 213, .6); }

/* ============ Laser pointer (neon overlay + drag-to-draw) ============ */
.fs-stage { position: relative; }
.fs-laser-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none; pointer-events: none;
  overflow: hidden;
}
.fullscreen-view.laser-on .fs-laser-overlay {
  display: block; pointer-events: auto; cursor: none;
  background: radial-gradient(circle at center, transparent 55%, rgba(52, 20, 52, .18) 100%);
}
.fullscreen-view.laser-on .fs-iframe { pointer-events: none; }
.fs-laser-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.fs-laser-svg path {
  fill: none;
  stroke: #FFC371;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 4px #FFD194)
    drop-shadow(0 0 10px rgba(255, 126, 107, .85))
    drop-shadow(0 0 22px rgba(255, 77, 138, .45));
  opacity: 1;
  transition: opacity 1.6s ease-out;
}
.fs-laser-svg path.fading { opacity: 0; }
.fs-laser-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle,
    #FFFBEF 0%,
    #FFE6B8 20%,
    #FFB88C 48%,
    rgba(255, 126, 107, .85) 72%,
    rgba(255, 77, 138, 0) 100%);
  box-shadow:
    0 0 6px 1px #FFFBEF,
    0 0 16px 4px rgba(255, 185, 130, .9),
    0 0 36px 10px rgba(255, 126, 107, .55),
    0 0 64px 20px rgba(255, 77, 138, .28);
  left: -100px; top: -100px;
  will-change: left, top;
}
.fs-laser-dot::before,
.fs-laser-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 185, 130, .75);
  pointer-events: none;
}
.fs-laser-dot::before {
  width: 34px; height: 34px;
  animation: laserPulse 1.8s cubic-bezier(.2,.8,.3,1) infinite;
}
.fs-laser-dot::after {
  width: 34px; height: 34px;
  animation: laserPulse 1.8s cubic-bezier(.2,.8,.3,1) infinite .9s;
  border-color: rgba(255, 77, 138, .5);
}
@keyframes laserPulse {
  0%   { width: 14px; height: 14px; opacity: .95; }
  100% { width: 56px; height: 56px; opacity: 0; }
}
.fs-laser-hud {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255, 209, 148, .85);
  background: rgba(40, 18, 48, .55);
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(255, 185, 130, .35);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.fullscreen-view.laser-on .fs-laser-hud { opacity: 1; }
.fullscreen-view.laser-on .fs-laser-hud.dim { opacity: .25; }
.fs-btn.active {
  background: linear-gradient(180deg, rgba(255, 185, 130, .32), rgba(255, 77, 138, .2));
  border-color: rgba(255, 185, 130, .6);
  color: #FFF3D4;
  box-shadow: 0 0 10px rgba(255, 126, 107, .45), inset 0 0 8px rgba(255, 185, 130, .18);
}

/* ============ Present mode (comment panel hidden) ============ */
.fullscreen-view.present-mode .fs-body { grid-template-columns: 1fr; }
.fullscreen-view.present-mode .fs-comment-panel { display: none; }
.fullscreen-view.present-mode .fs-stage { padding: 16px; }
.fullscreen-view.present-mode .fs-iframe {
  max-width: calc((100vh - 90px) * 16 / 9);
  max-height: calc(100vw * 9 / 16);
}

/* OS fullscreen: hide topbar until mouse moves to top */
.fullscreen-view.os-fullscreen .fs-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .25s, transform .25s;
}
.fullscreen-view.os-fullscreen:hover .fs-topbar,
.fullscreen-view.os-fullscreen .fs-topbar:hover,
.fullscreen-view.os-fullscreen.topbar-peek .fs-topbar {
  opacity: 1; transform: translateY(0);
}
.fullscreen-view.os-fullscreen .fs-body { padding-top: 0; }
.fullscreen-view.os-fullscreen .fs-stage { padding: 0; }
.fullscreen-view.os-fullscreen .fs-iframe {
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  box-shadow: none; border-radius: 0;
}
