.posemech-demo-section {
  padding: 48px 0;
  background: #0b0f14;
  color: #e8eef6;
}
.demo-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.demo-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.demo-header p {
  margin: 0 0 16px;
  opacity: 0.9;
  line-height: 1.5;
}

.demo-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.demo-btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef6;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
}

.panel-title {
  padding: 10px 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: #000;
}

.plot-title-row {
  align-items: flex-start;
}
.plot-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plot-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef6;
  cursor: pointer;
  font-size: 13px;
}
.plot-btn.active {
  background: rgba(255, 255, 255, 0.16);
}
.plot-area {
  width: 100%;
  height: 360px;
}

.posemech-pubs,
.posemech-block {
  padding: 42px 0;
  background: #ffffff;
  color: #0b0f14;
}
.pub-list {
  line-height: 1.6;
}
.block-img {
  width: 100%;
  max-width: 980px;
  border-radius: 12px;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet - 768px */
@media (max-width: 768px) {
  .demo-wrap {
    padding: 0 15px;
  }

  .demo-header h1 {
    font-size: 24px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-iframe {
    min-height: 280px;
  }

  .plot-area {
    height: 280px;
  }

  .posemech-pubs,
  .posemech-block {
    padding: 30px 15px;
  }
}

/* Mobile - 576px */
@media (max-width: 576px) {
  .posemech-demo-section {
    padding: 30px 0;
  }

  .demo-header h1 {
    font-size: 22px;
  }

  .demo-header p {
    font-size: 14px;
  }

  .demo-btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  .panel-title {
    font-size: 14px;
    padding: 8px 10px;
  }

  .demo-iframe {
    min-height: 240px;
  }

  .plot-area {
    height: 240px;
  }

  .plot-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* Tablet breakpoint already exists */
@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* 2K Screens - 1920px */
@media (min-width: 1920px) {
  .demo-wrap {
    max-width: 1600px;
  }

  .demo-header h1 {
    font-size: 36px;
  }

  .demo-header p {
    font-size: 18px;
  }

  .demo-panel {
    min-height: 420px;
  }

  .demo-iframe {
    min-height: 480px;
  }

  .plot-area {
    height: 480px;
  }

  .panel-title {
    font-size: 18px;
    padding: 14px 16px;
  }
}

/* 4K Screens - 2560px */
@media (min-width: 2560px) {
  .demo-wrap {
    max-width: 2000px;
  }

  .demo-header h1 {
    font-size: 42px;
  }

  .demo-header p {
    font-size: 20px;
  }

  .demo-panel {
    min-height: 560px;
  }

  .demo-iframe {
    min-height: 640px;
  }

  .plot-area {
    height: 640px;
  }
}
