/* ── Hero ── */
    .ep-hero {
      background: var(--ink);
      padding: 80px 24px 56px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .ep-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--gradient);
      opacity: .12;
    }
    .ep-hero-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: rgba(255,255,255,.5);
      margin-bottom: 14px;
      position: relative;
    }
    .ep-hero-title {
      font-family: var(--font-d);
      font-size: clamp(1.8rem,4vw,3rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      position: relative;
    }
    .ep-hero-sub {
      font-size: 14px;
      color: rgba(255,255,255,.55);
      margin-top: 12px;
      position: relative;
    }

    /* ── Viewer section ── */
    .ep-section {
      padding: 64px 0 80px;
      background: var(--ground);
    }
    .ep-viewer {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* ── Loading ── */
    .ep-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 80px 20px;
      color: var(--muted);
      font-size: 15px;
    }
    .ep-spinner {
      width: 44px;
      height: 44px;
      border: 3px solid var(--border);
      border-top-color: var(--blue);
      border-radius: 50%;
      animation: epSpin .8s linear infinite;
    }
    @keyframes epSpin { to { transform: rotate(360deg); } }
    .ep-progress {
      font-size: 13px;
      color: var(--muted2);
    }

    /* ── Flipbook wrap ── */
    #epWrap {
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    #flipbook {
      box-shadow: 0 20px 60px rgba(0,0,0,.18);
    }

    /* ── Controls ── */
    .ep-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-top: 28px;
      flex-wrap: wrap;
    }
    .ep-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 22px;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity .2s;
    }
    .ep-btn:disabled { opacity: .35; cursor: default; }
    .ep-btn:hover:not(:disabled) { opacity: .85; }
    .ep-page-info {
      font-size: 13px;
      color: var(--muted);
      min-width: 110px;
      text-align: center;
    }
    .ep-download {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 22px;
      color: var(--blue);
      border: 1.5px solid var(--blue);
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      background: transparent;
      transition: all .2s;
    }
    .ep-download:hover { background: var(--blue); color: #fff; }

    @media (max-width: 768px) {
      .ep-section { padding: 40px 0 56px; }
      .ep-controls { gap: 10px; }
      .ep-btn, .ep-download { padding: 9px 16px; font-size: 13px; }
    }