/* ==========================================================================
   CALM WEB — CONTENT-ADAPTED SPREAD LAYOUTS (VISUALS, VIDEO, PDF, PODCASTS, COMICS)
   ========================================================================== */

    /* =====================================================
       CONTENT-ADAPTED PAGE LAYOUTS (Video, PDF, Books)
       ===================================================== */
    /* 1. Video / YouTube Player Page */
    .video-page-canvas {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      position: relative;
    }
    .video-player-frame-wrap {
      width: 100%;
      position: relative;
      aspect-ratio: 16 / 9;
      max-height: 48%;
      min-height: 190px;
      border-radius: 6px;
      overflow: hidden;
      background: var(--paper-warm, #ece7dc);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
      flex-shrink: 0;
      border: 1px solid var(--rule-strong);
    }
    .video-player-iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      display: block;
      opacity: 0;
      transition: opacity 0.35s ease;
    }
    .video-details-scroll-pane {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 14px 4px 8px;
      scrollbar-width: thin;
      scrollbar-color: var(--rule-strong) transparent;
    }
    .video-details-scroll-pane::-webkit-scrollbar {
      width: 5px;
    }
    .video-details-scroll-pane::-webkit-scrollbar-thumb {
      background: var(--rule-strong);
      border-radius: 3px;
    }
    .video-meta-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }
    .video-kicker-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-sans);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-crimson);
    }
    .video-channel-tag {
      background: rgba(186, 24, 27, 0.08);
      color: var(--accent-crimson);
      padding: 2px 7px;
      border-radius: 3px;
      font-weight: 600;
      font-size: 9.5px;
      letter-spacing: 0.04em;
    }
    body[data-paper="evening"] .video-channel-tag {
      background: rgba(239, 68, 68, 0.16);
      color: #f87171;
    }
    .video-action-links {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .video-external-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      font-weight: 600;
      color: var(--ink-secondary);
      background: var(--paper-bg-alt);
      border: 1px solid var(--rule-strong);
      padding: 4px 10px;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.15s ease;
      cursor: pointer;
    }
    .video-external-pill.is-primary {
      background: var(--ink-primary);
      color: var(--paper-bg);
      border-color: var(--ink-primary);
    }
    .video-external-pill.is-primary:hover {
      opacity: 0.88;
    }
    .video-external-pill:hover {
      background: var(--ink-primary);
      color: var(--paper-bg);
      border-color: var(--ink-primary);
    }
    .video-page-headline {
      font-family: var(--font-serif-headline);
      font-size: 22px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--ink-primary);
      margin: 0 0 8px;
      letter-spacing: -0.01em;
    }
    .video-byline-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-sans);
      font-size: 11.5px;
      color: var(--ink-secondary);
      padding-bottom: 8px;
      margin-bottom: 12px;
      border-bottom: 1px solid var(--rule-hairline);
    }
    .video-byline-bar strong {
      color: var(--ink-primary);
      font-weight: 600;
    }
    .video-description-body {
      font-family: var(--font-serif-body);
      font-size: 14px;
      line-height: 1.6;
      color: var(--ink-secondary);
    }
    .video-description-body p {
      margin: 0 0 10px;
    }

    /* 2. PDF Archival Document Page */
    .pdf-page-canvas {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      position: relative;
    }
    .pdf-page-header {
      flex-shrink: 0;
      margin-bottom: 6px;
    }
    .pdf-kicker-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 4px;
    }
    .pdf-kicker-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-sans);
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-crimson);
    }
    .pdf-page-headline {
      font-family: var(--font-serif-headline);
      font-size: 20px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--ink-primary);
      margin: 0 0 4px;
      letter-spacing: -0.01em;
    }
    .pdf-byline-row {
      font-family: var(--font-sans);
      font-size: 11.5px;
      color: var(--ink-secondary);
    }
    .pdf-toolbar-pills {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      padding: 6px 0;
      margin-bottom: 8px;
      border-top: 1px solid var(--rule-hairline);
      border-bottom: 1px solid var(--rule-hairline);
      flex-shrink: 0;
    }
    .pdf-flip-group {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--paper-bg-alt);
      border: 1px solid var(--rule-strong);
      border-radius: 4px;
      padding: 2px 4px;
    }
    .pdf-flip-btn {
      background: transparent;
      border: none;
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      color: var(--ink-primary);
      cursor: pointer;
      padding: 3px 6px;
      border-radius: 2px;
      transition: background 0.15s ease;
    }
    .pdf-flip-btn:hover {
      background: rgba(0, 0, 0, 0.08);
    }
    body[data-paper="evening"] .pdf-flip-btn:hover {
      background: rgba(255, 255, 255, 0.12);
    }
    .pdf-page-indicator {
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 700;
      color: var(--ink-primary);
      padding: 0 4px;
      min-width: 48px;
      text-align: center;
    }
    .pdf-action-pills {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .pdf-action-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      font-weight: 600;
      color: var(--ink-primary);
      background: var(--paper-bg-alt);
      border: 1px solid var(--rule-strong);
      padding: 4px 9px;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.15s ease;
      cursor: pointer;
    }
    .pdf-action-pill.is-primary {
      background: var(--ink-primary);
      color: var(--paper-bg);
      border-color: var(--ink-primary);
    }
    .pdf-action-pill:hover {
      opacity: 0.88;
    }
    .pdf-viewer-frame-container {
      flex: 1;
      min-height: 0;
      position: relative;
      border: 1px solid var(--rule-strong);
      border-radius: 4px;
      overflow: hidden;
      background: var(--paper-warm, #ece7dc);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .pdf-preview-iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      display: block;
      background: #ffffff;
      opacity: 0;
      transition: opacity 0.35s ease;
    }
    .pdf-snippet-footer {
      display: none;
    }

    /* Centered Embed Loading Spinner for Video and PDF */
    .embed-loading-state {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: var(--paper-warm, rgba(244, 240, 230, 0.96));
      z-index: 2;
      transition: opacity 0.35s ease;
      pointer-events: none;
    }
    body[data-paper="evening"] .embed-loading-state {
      background: rgba(23, 22, 20, 0.96);
    }
    .embed-spinner {
      width: 24px;
      height: 24px;
      border: 2px solid var(--rule-subtle, rgba(0, 0, 0, 0.12));
      border-top-color: var(--accent-crimson, #b33927);
      border-radius: 50%;
      animation: embedSpin 0.75s linear infinite;
    }
    @keyframes embedSpin {
      to { transform: rotate(360deg); }
    }
    .embed-loading-text {
      font-family: var(--font-sans, system-ui);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--ink-muted, #76746f);
    }

    /* 4. Data Visuals Feature Spread Layout */
    .data-visual-page-canvas {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: 16px 8px 12px;
      gap: 10px;
      overflow: hidden;
      justify-content: space-between;
    }
    .data-visual-header {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
    }
    .data-visual-kicker-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-bottom: 2px;
    }
    .data-visual-kicker-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-crimson, #8b261d);
    }
    .data-visual-plate-wrap {
      flex: 1 1 60%;
      min-height: 200px;
      max-height: 64%;
      display: flex;
      flex-direction: column;
      position: relative;
      border-radius: 4px;
      border: 1px solid var(--rule-soft, rgba(0, 0, 0, 0.14));
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
      overflow: hidden;
    }
    .data-visual-plate-inner {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
      overflow: hidden;
      background: #ffffff;
      padding: 6px;
      box-sizing: border-box;
    }
    .data-visual-plate-img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      display: block;
      margin: auto;
      transition: transform 0.25s ease;
      background: #ffffff;
    }
    .data-visual-plate-inner:hover .data-visual-plate-img {
      transform: scale(1.01);
    }
    .data-visual-fallback-plate {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--ink-muted, #7c776e);
      font-family: var(--font-serif-body, 'Newsreader', Georgia, serif);
      font-size: 13px;
    }
    .data-visual-plate-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 6px 12px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.25) 60%, transparent);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #ffffff;
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.05em;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .data-visual-plate-inner:hover .data-visual-plate-overlay {
      opacity: 1;
    }
    .data-visual-plate-zoom {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      text-transform: uppercase;
      font-size: 9.5px;
      letter-spacing: 0.08em;
    }
    .data-visual-plate-credit {
      font-weight: 500;
      opacity: 0.95;
    }
    .data-visual-content-wrap {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-top: 2px;
    }
    .data-visual-headline {
      font-family: var(--font-serif-display, 'Fraunces', Georgia, serif);
      font-size: 18.5px;
      font-weight: 600;
      line-height: 1.24;
      letter-spacing: -0.01em;
      color: var(--ink-primary, #191816);
      margin: 0;
      cursor: pointer;
      transition: color 0.15s ease;
    }
    .data-visual-headline:hover {
      color: var(--accent-crimson, #8b261d);
    }
    .data-visual-byline-row {
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 10px;
      font-weight: 500;
      color: var(--ink-muted, #7c776e);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .data-visual-text-body {
      font-family: var(--font-serif-body, 'Newsreader', Georgia, serif);
      font-size: 13px;
      line-height: 1.45;
      color: var(--ink-secondary, #3a3834);
      display: flex;
      flex-direction: column;
      gap: 5px;
      max-height: 95px;
      overflow-y: auto;
    }
    .data-visual-paragraph {
      margin: 0;
    }
    .data-visual-action-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 6px;
      margin-top: 2px;
      border-top: 1px dashed var(--rule-soft, rgba(0, 0, 0, 0.12));
    }
    .data-visual-source-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 14px;
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.03em;
      color: var(--ink-primary, #191816);
      background: var(--paper-bg-alt, rgba(0, 0, 0, 0.035));
      border: 1px solid var(--rule-mid, rgba(0, 0, 0, 0.2));
      border-radius: 4px;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.15s ease;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .data-visual-source-btn:hover {
      background: var(--accent-crimson, #8b261d);
      color: #ffffff;
      border-color: var(--accent-crimson, #8b261d);
      box-shadow: 0 2px 6px rgba(139, 38, 29, 0.25);
    }
    .data-visual-source-btn svg {
      transition: transform 0.15s ease;
    }
    .data-visual-source-btn:hover svg {
      transform: translate(1px, -1px);
    }
    .data-visual-domain-label {
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 10px;
      font-weight: 500;
      color: var(--ink-muted, #7c776e);
      letter-spacing: 0.02em;
    }

    /* 2B. Photography & Gallery Monograph Spread (Single Column, Full-Bleed Plate) */
    .photo-page-canvas {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: 12px 6px 12px;
      overflow: hidden;
      justify-content: space-between;
    }
    .photo-plate-wrap {
      width: 100%;
      position: relative;
      overflow: hidden;
      border-radius: 3px;
      background: rgba(0, 0, 0, 0.04);
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
    }
    .photo-plate-inner {
      width: 100%;
      height: 100%;
      cursor: pointer;
      position: relative;
    }
    .photo-plate-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }
    .photo-plate-inner:hover .photo-plate-img {
      transform: scale(1.02);
    }
    .photo-caption-wrap {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 12px 4px 4px;
      min-width: 0;
    }
    .photo-meta-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
    }
    .photo-source-badge {
      font-family: var(--font-display, sans-serif);
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-crimson, #8b261d);
    }
    .photo-headline {
      font-family: var(--font-serif-display, 'Fraunces', Georgia, serif);
      font-size: 19px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--ink-primary, #191816);
      margin: 0 0 5px 0;
      cursor: pointer;
    }
    .photo-headline:hover {
      color: var(--accent-crimson, #8b261d);
    }
    .photo-credit-row {
      font-family: var(--font-sans, system-ui, sans-serif);
      font-size: 11px;
      color: var(--ink-muted, #7c776e);
      margin-bottom: 6px;
    }
    .photo-standfirst {
      font-family: var(--font-serif-body, 'Newsreader', Georgia, serif);
      font-size: 13.5px;
      line-height: 1.45;
      color: var(--ink-secondary, #3a3834);
      margin: 0 0 8px 0;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .photo-footer-row {
      margin-top: auto;
      display: flex;
      justify-content: flex-start;
    }

    /* 3. Books & Volumes Compact Showcase */
    .book-page-canvas {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      box-sizing: border-box;
      padding: 32px 4px 10px;
      position: relative;
    }
    .book-showcase-split {
      display: grid;
      grid-template-columns: minmax(160px, 40%) 1fr;
      gap: 24px;
      align-items: flex-start;
      width: 100%;
      max-height: 100%;
    }
    @media (max-width: 600px) {
      .book-showcase-split {
        grid-template-columns: 1fr;
        gap: 14px;
        overflow-y: auto;
      }
    }
    .book-cover-plate-wrap {
      perspective: 900px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }
    .book-cover-plate {
      position: relative;
      width: 100%;
      max-width: 220px;
      aspect-ratio: 2 / 3;
      max-height: 330px;
      border-radius: 2px 6px 6px 2px;
      box-shadow: 
        -4px 0 8px -2px rgba(0, 0, 0, 0.3),
        4px 8px 24px rgba(0, 0, 0, 0.22),
        0 1px 3px rgba(0, 0, 0, 0.15);
      overflow: hidden;
      background: #252220;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
    }
    .book-cover-plate:hover {
      transform: translateY(-3px) rotateY(-2deg);
      box-shadow: 
        -5px 0 10px -2px rgba(0, 0, 0, 0.35),
        6px 12px 28px rgba(0, 0, 0, 0.28);
    }
    .book-cover-plate::before {
      content: '';
      position: absolute;
      top: 0; bottom: 0; left: 0; width: 14px;
      background: linear-gradient(to right, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.12) 40%, rgba(0, 0, 0, 0.15) 80%, transparent);
      z-index: 3;
      pointer-events: none;
    }
    .book-cover-img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
      margin: auto;
    }
    .book-cloth-cover {
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 30% 30%, #303742, #181d24);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 20px 16px;
      box-sizing: border-box;
      text-align: center;
      color: #e6c875;
      border: 1px solid rgba(230, 200, 117, 0.25);
    }
    .book-cloth-border {
      border: 1.5px solid rgba(230, 200, 117, 0.4);
      padding: 16px 12px;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
    }
    .book-cloth-ornament {
      font-size: 16px;
      letter-spacing: 0.15em;
    }
    .book-cloth-title {
      font-family: var(--font-serif-headline);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
      color: #fdf6e2;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin: 8px 0;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
    }
    .book-cloth-author {
      font-family: var(--font-sans);
      font-size: 10.5px;
      letter-spacing: 0.08em;
      color: #d1b46a;
      text-transform: uppercase;
    }
    .book-details-column {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      min-height: 0;
      overflow-y: auto;
      max-height: 100%;
      padding-top: 4px;
      padding-bottom: 8px;
      padding-right: 4px;
    }
    .book-page-headline {
      font-family: var(--font-display);
      font-size: 26px;
      font-weight: 700;
      line-height: 1.2;
      color: var(--ink-primary);
      margin: 0 0 6px;
      letter-spacing: -0.012em;
      cursor: pointer;
      transition: color 0.15s ease;
    }
    .book-page-headline:hover {
      color: var(--accent-crimson);
    }
    .book-author-byline {
      font-family: var(--font-sans);
      font-size: 13px;
      color: var(--ink-secondary);
      margin-bottom: 16px;
      letter-spacing: 0.01em;
    }
    .book-author-byline strong {
      color: var(--ink-primary);
      font-weight: 600;
    }
    .book-meta-chips {
      display: none;
    }
    .book-synopsis-body {
      font-family: var(--font-serif);
      font-size: var(--prose-size, 14px);
      line-height: var(--prose-lh, 20px);
      color: var(--ink-primary);
      margin-bottom: 0;
    }
    .book-synopsis-body p {
      font-family: var(--font-serif);
      font-size: var(--prose-size, 14px);
      line-height: var(--prose-lh, 20px);
      color: var(--ink-primary);
      margin: 0 0 10px;
      text-align: left;
    }
    .book-synopsis-body p:last-child {
      margin-bottom: 0;
    }
    .book-action-pills {
      display: none;
    }
    .book-action-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      color: var(--ink-primary);
      background: var(--paper-bg-alt);
      border: 1px solid var(--rule-strong);
      padding: 5px 12px;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.15s ease;
      cursor: pointer;
    }
    .book-action-pill.is-primary {
      background: var(--ink-primary);
      color: var(--paper-bg);
      border-color: var(--ink-primary);
    }
    .book-action-pill:hover {
      opacity: 0.88;
    }

    .podcast-pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #22c55e;
      box-shadow: 0 0 8px #22c55e;
      display: inline-block;
      animation: podcast-pulse 2s infinite ease-in-out;
    }
    @keyframes podcast-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(0.85); }
    }

    /* =====================================================
       COMPACT PODCAST LISTING PAGE (Left / Right Pages)
       ===================================================== */
    .podcast-leaf-page {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box;
      padding: 4px 8px 8px;
      gap: 0;
    }

    .podcast-compact-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      padding: 10px 0;
      border-bottom: 1px solid var(--rule-hairline);
      flex-shrink: 0;
    }

    .podcast-compact-item:first-child {
      padding-top: 2px;
    }

    .podcast-compact-item:last-child {
      border-bottom: none;
    }

    .podcast-leaf-artwork-box {
      width: 90px;
      height: 90px;
      flex-shrink: 0;
      border-radius: 6px;
      overflow: hidden;
      background: var(--paper-bg-alt);
      box-shadow: 0 2px 6px rgba(0,0,0,0.12);
      border: 1px solid rgba(0,0,0,0.08);
      cursor: pointer;
      transition: transform 0.15s ease;
    }

    .podcast-leaf-artwork-box:hover {
      transform: scale(1.03);
    }

    .podcast-leaf-artwork {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .podcast-leaf-headline-col {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 90px;
    }

    .podcast-leaf-headline {
      font-family: var(--font-serif);
      font-size: 15.5px;
      font-weight: 700;
      line-height: 1.24;
      color: var(--ink-primary);
      margin: 0 0 4px 0;
      cursor: pointer;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color 0.15s ease;
    }

    .podcast-leaf-headline:hover {
      color: var(--accent-crimson);
    }

    .podcast-leaf-meta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px 8px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      color: var(--ink-muted);
      margin-bottom: 6px;
    }

    .podcast-leaf-byline {
      font-weight: 600;
      color: var(--ink-secondary);
    }

    .podcast-leaf-duration-tag {
      background: rgba(139, 38, 29, 0.08);
      color: var(--accent-crimson);
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 3px;
      font-size: 10px;
    }

    .podcast-leaf-listen-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-top: auto;
    }

    .podcast-listen-btn {
      font-family: var(--font-sans);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #ffffff;
      background: var(--accent-crimson, #8f2424);
      border: 1px solid var(--accent-crimson, #8f2424);
      padding: 4px 12px;
      border-radius: 3px;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.15s ease;
      line-height: 1.2;
    }

    .podcast-listen-btn:hover {
      background: #731c1c;
      border-color: #731c1c;
    }

    .podcast-listen-btn.is-playing {
      background: var(--ink-primary);
      border-color: var(--ink-primary);
      color: var(--paper-bg);
    }

    .podcast-standfirst {
      font-family: var(--font-serif-headline);
      font-size: 17px;
      font-style: italic;
      line-height: 1.5;
      color: var(--ink-secondary);
      margin-bottom: 16px;
      border-left: 3px solid var(--accent-crimson);
      padding-left: 12px;
    }

    /* In-Place Audio Player Box */
    .podcast-player-card {
      background: var(--paper-bg-alt, #f7f4ec);
      border: 1px solid var(--rule-strong, #c8c2b5);
      border-radius: 6px;
      padding: 12px 16px;
      margin-bottom: 18px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
      display: flex;
      flex-direction: column;
      gap: 8px;
      box-sizing: border-box;
    }
    .podcast-player-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .podcast-player-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-crimson);
    }
    .podcast-player-time {
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      color: var(--ink-muted);
    }
    .podcast-audio-player {
      width: 100%;
      height: 38px;
      border-radius: 6px;
      outline: none;
    }
    .podcast-player-sub-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 4px;
      border-top: 1px dashed var(--rule-light);
    }
    .podcast-speed-controls {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .podcast-speed-label {
      font-family: var(--font-sans);
      font-size: 10px;
      font-weight: 600;
      color: var(--ink-muted);
      margin-right: 2px;
      text-transform: uppercase;
    }
    .podcast-speed-btn {
      background: none;
      border: 1px solid var(--rule-light);
      border-radius: 3px;
      padding: 2px 6px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      font-weight: 600;
      color: var(--ink-secondary);
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .podcast-speed-btn:hover,
    .podcast-speed-btn.active {
      background: var(--ink-primary);
      color: var(--paper-bg);
      border-color: var(--ink-primary);
    }
    .podcast-stream-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-family: var(--font-sans);
      font-size: 10.5px;
      font-weight: 600;
      color: var(--ink-muted);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .podcast-stream-btn:hover {
      color: var(--accent-crimson);
    }

    /* Platform Embedded Players & Dispatch Cards (Spotify, Apple, YouTube) */
    .podcast-platform-tag {
      font-size: 9.5px;
      padding: 2px 7px;
      border-radius: 3px;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.06em;
      margin-left: 6px;
    }
    .podcast-platform-tag.is-spotify {
      background: rgba(30, 215, 96, 0.15);
      color: #128c3e;
      border: 1px solid rgba(30, 215, 96, 0.3);
    }
    .podcast-platform-tag.is-apple {
      background: rgba(168, 85, 247, 0.12);
      color: #7e22ce;
      border: 1px solid rgba(168, 85, 247, 0.25);
    }
    .podcast-platform-tag.is-youtube {
      background: rgba(239, 68, 68, 0.12);
      color: #b91c1c;
      border: 1px solid rgba(239, 68, 68, 0.25);
    }
    .podcast-platform-link {
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      text-decoration: none;
      color: var(--ink-secondary);
      transition: color 0.15s ease;
    }
    .podcast-platform-link:hover {
      color: var(--accent-crimson);
    }
    .podcast-platform-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 4px;
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.15s ease;
      border: 1px solid var(--rule-light);
      background: var(--paper-bg);
      color: var(--ink-primary);
    }
    .podcast-platform-btn.is-spotify {
      background: #1ed760;
      color: #000000;
      border-color: #1ed760;
    }
    .podcast-platform-btn.is-spotify:hover {
      background: #1abc54;
    }
    .podcast-platform-btn.is-apple {
      background: #8b5cf6;
      color: #ffffff;
      border-color: #8b5cf6;
    }
    .podcast-platform-btn.is-apple:hover {
      background: #7c3aed;
    }
    .podcast-platform-btn.is-youtube {
      background: #ef4444;
      color: #ffffff;
      border-color: #ef4444;
    }
    .podcast-platform-btn.is-youtube:hover {
      background: #dc2626;
    }
    .podcast-platform-btn.is-web:hover {
      background: var(--ink-primary);
      color: var(--paper-bg);
    }
    .podcast-platform-card {
      border-left: 3px solid var(--rule-strong);
    }
    .podcast-platform-card.is-spotify {
      border-left-color: #1ed760;
      background: rgba(30, 215, 96, 0.03);
    }
    .podcast-platform-card.is-apple {
      border-left-color: #a855f7;
      background: rgba(168, 85, 247, 0.03);
    }
    .podcast-platform-card.is-youtube {
      border-left-color: #ef4444;
      background: rgba(239, 68, 68, 0.03);
    }
    .podcast-dispatch-card {
      border: 1px solid var(--rule-strong);
    }
    .podcast-dispatch-card.is-spotify {
      border-left: 3px solid #1ed760;
    }
    .podcast-dispatch-card.is-apple {
      border-left: 3px solid #a855f7;
    }
    .podcast-dispatch-card.is-youtube {
      border-left: 3px solid #ef4444;
    }


/* ============================================================
   ALBUM SLEEVE GRID (1:1 SQUARE RECORD SLEEVES)
   ============================================================ */
.portrait-grid-container.is-album-grid .portrait-thumb-wrap {
  aspect-ratio: 1 / 1;
  max-height: 195px;
  border-radius: 4px;
}

/* ============================================================
   COMIC STRIP SINGLE-PAGE LEAF (VERSO & RECTO WEBCOMICS)
   ============================================================ */
.comic-leaf-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
  box-sizing: border-box;
  overflow: hidden;
}

.comic-leaf-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 8px;
}

.comic-leaf-rubric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.comic-leaf-kicker {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-crimson);
}

.comic-leaf-date {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.comic-leaf-headline {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
  margin: 0;
  cursor: pointer;
}

.comic-leaf-headline:hover {
  color: var(--accent-crimson);
}

.comic-leaf-byline {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-secondary);
}

.comic-leaf-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 12px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.comic-leaf-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.comic-leaf-alt-box {
  flex-shrink: 0;
  background: var(--paper-bg-alt, rgba(0, 0, 0, 0.03));
  border-left: 2.5px solid var(--accent-crimson);
  border-radius: 2px;
  padding: 7px 11px;
}

.comic-leaf-alt-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.comic-leaf-alt-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comic-leaf-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
