/* Shared channel design. The previous version is preserved in archive/. */
.home-header { height: 70px; margin-bottom: 0; border-bottom: 0; }
.home-header .brand-block { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-header .brand-row { flex-shrink: 0; }
.home-header .site-type { min-width: 0; margin: 0; padding-left: 8px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.media-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 6px 4px; font-size: 15px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.media-tab + .media-tab { border-left: 1px solid var(--line); }
.media-tab.is-current { color: var(--ink); font-weight: 600; }
.media-tab.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.media-tab:hover { color: var(--ink); }
.media-pending-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.media-pending-badge .icon { width: 11px; height: 11px; }
.home-shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-block: 12px 24px; }
.home-shortcuts a { font-size: 12px; }
.home-shortcuts .shortcut-icon { width: 44px; height: 44px; border-radius: 8px; }
.home-shortcuts .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.home-section { margin-block: 24px; }
.home-section > .section-head { min-height: 44px; margin-bottom: 13px; padding-block: 6px; }
.home-section > .section-head h2 { font-size: 20px; }
.tag-link { border-radius: 24px; min-height: 34px; padding: 6px 10px; }
.site-footer nav { gap: 12px; }
.history-summary { margin: 4px 0 18px; color: var(--muted); font-size: 12px; }
.history-result time { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.history-continue { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.history-result .info { min-width: 0; }
.media-pending-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: env(safe-area-inset-top) 0 0; }
.media-pending-app .home-header { flex: 0 0 auto; }
.media-pending-app .brand-row { white-space: nowrap; }
.media-pending-content { flex: 1; display: flex; flex-direction: column; margin: 0 18px; border: 1px solid var(--line); border-radius: 5px; }
.media-pending-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 350px; padding: 44px 20px; text-align: center; }
.media-pending-state > .icon { width: 64px; height: 64px; margin-bottom: 24px; color: var(--muted); stroke-width: 1.3; }
.media-pending-state h1 { font-size: 26px; line-height: 1.4; letter-spacing: 1px; }
.media-pending-status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); color: var(--muted); font-size: 14px; line-height: 1.5; }
.media-pending-status .icon { width: 18px; height: 18px; }
.media-read-comics { gap: 10px; min-width: 160px; min-height: 48px; margin-top: 22px; padding: 11px 22px; font-size: 16px; }
.media-read-comics:hover { filter: brightness(1.08); }
.media-pending-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.media-pending-footer a:hover { color: var(--accent-strong); }
.media-pending-nav { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 8px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); }
.media-pending-nav > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 44px; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.media-pending-nav > .is-current { color: var(--accent-strong); }
.media-pending-nav button:disabled { opacity: 1; cursor: not-allowed; }
:root[data-theme="dark"] { --paper: #17171e; --soft: #23232c; }
:root[data-theme="dark"] .home-shortcuts .shortcut-icon { color: #e57584; }
@media (max-width: 360px) {
  .home-header .brand-block { gap: 6px; }
  .home-header .site-type { padding-left: 6px; font-size: 11px; }
  .media-tabs { margin-inline: 12px; }
  .media-pending-content { margin-inline: 12px; }
  .media-tab { font-size: 13px; gap: 3px; padding-inline: 3px; }
  .media-pending-badge { padding-inline: 3px; gap: 2px; }
  .home-shortcuts a { font-size: 11px; }
  .home-shortcuts .shortcut-icon { width: 40px; height: 40px; }
}
@media (max-width: 640px) { .app { border-radius: 0; } }
