/* css/tokens.css */
:root {
  /* V17 明亮青綠資訊站 */
  --bg-page: #f2f5f5;
  --bg-surface: #ffffff;
  --bg-elevated: #eaf3f3;
  --bg-chrome: #ffffff;
  --text-primary: #203238;
  --text-muted: #566b72;
  --line: #d5e1e3;
  --line-strong: #b8cace;
  --accent: #087e8b;
  --accent-hover: #066773;
  --accent-on: #ffffff;
  --link: #066773;
  --link-hover: #055a65;
  --accent-follow: #087e8b;
  --accent-anime: #566b72;
  --accent-gold: #e5a540;
  --chip-bg: #ffffff;
  --chip-active-bg: #087e8b;
  --chip-active-text: #ffffff;

  --bg-void: var(--bg-page);
  --bg-surface-legacy: var(--bg-surface);
  --text-muted-legacy: var(--text-muted);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius: 4px;
  --radius-chip: 6px;
  --font-body: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --max-width: 1440px;
  --transition: 140ms ease;
  --focus-ring: 2px solid var(--accent);
  --header-h: 60px;
  --sidebar-w: 176px;
  --rail-w: 240px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0ms;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-page);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5625;
  color: var(--text-primary);
  background: var(--bg-page);
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  z-index: 9999;
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: var(--space-4);
}
/* css/layout.css */
@import "./tokens.css";

.top-bar {
  background: var(--bg-void);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  min-height: 32px;
  border-bottom: 1px solid var(--line);
}

.top-bar__inner,
.site-header__inner,
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.page-wrap--flush {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 32px;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--text-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: var(--space-5);
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
}

.nav-primary {
  display: none;
  gap: var(--space-5);
  flex: 1;
}

.nav-primary a {
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav-primary a.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-primary a[data-zone="anime"].is-active {
  border-bottom-color: var(--accent-anime);
  color: var(--accent-anime);
}

.nav-actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: var(--space-4) var(--space-6);
  flex-direction: column;
  gap: var(--space-1);
  background: var(--bg-surface);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .nav-primary {
    display: flex;
  }
  #menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .top-bar__inner,
  .site-header__inner,
  .page-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.page-wrap {
  padding-top: var(--space-5);
  padding-bottom: var(--space-7);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 var(--space-4);
  letter-spacing: 0.02em;
}

.lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 40em;
}

.grid-2 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-4 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-7);
  font-size: 14px;
  background: var(--bg-surface);
}

.site-footer a {
  color: var(--text-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.demo-badge {
  display: inline-block;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  margin-left: var(--space-2);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zone-anime {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-anime);
}

.zone-anime .page-title {
  color: var(--text-primary);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--text-muted);
}

.detail-layout {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.detail-layout > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
  .detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose {
  max-width: 42em;
}

.info-stack {
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: var(--bg-surface);
}

.info-stack dl {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.info-stack dt {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-stack dd {
  margin: 0;
  font-weight: 600;
}

.empty-state {
  padding: var(--space-6);
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: var(--space-3);
  text-align: left;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  align-items: center;
}

.filters select,
.filters input[type="search"] {
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
}

.btn-secondary {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.search-expand {
  display: none;
  padding: var(--space-3) var(--space-6);
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
}

.search-expand.is-open {
  display: block;
}

.catalog-layout {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr 280px;
  }
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.data-table--sources {
  min-width: 520px;
  width: max-content;
  max-width: none;
}

.sources-page {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sources-page code,
.source-link-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sources-footnote {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-5);
}

.fav-save-error {
  color: #f18ba8;
  font-size: 14px;
  margin: var(--space-2) 0 0;
}

@media (max-width: 767px) {
  .table-scroll--registry {
    display: none;
  }
  .sources-cards {
    display: grid;
  }
}

@media (min-width: 768px) {
  .sources-cards {
    display: none;
  }
}

.fav-btn {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
}

.fav-btn.is-saved {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-game {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-head--tight {
  border-top: none;
  padding-top: 0;
}

.tag-game {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tag-anime {
  color: var(--accent-anime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* css/content-first.css */
@import "./tokens.css";

/* —— App shell（Gematsu 密度 + YT 式導覽） —— */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  max-width: 100%;
  overflow: hidden;
}

.app-topbar__search-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}

.app-topbar-search-row {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
}

.app-topbar-search-row .app-topbar__search {
  max-width: none;
  width: 100%;
}

.app-topbar__search-close {
  min-height: 44px;
  flex-shrink: 0;
}

.app-topbar__menu {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.app-topbar__logo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.1;
}

.app-topbar__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.app-topbar__search {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}

.app-topbar__search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  font-size: 15px;
  background: var(--bg-page);
  color: var(--text-primary);
}

.app-topbar__search button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-chip);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  cursor: pointer;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.app-topbar__actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-chip);
}

.app-topbar__actions a:hover {
  background: var(--bg-elevated);
}

.app-topbar__actions--desktop {
  display: flex;
}

@media (max-width: 1023px) {
  .app-topbar__search--desktop {
    display: none;
  }

  .app-topbar__actions--desktop {
    display: none;
  }

  .app-topbar__search-toggle {
    display: inline-flex;
  }

  .app-topbar__logo small {
    display: none;
  }

  .app-topbar__logo {
    font-size: 18px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-sidebar__user-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: var(--space-2) 0;
  }

  .app-sidebar__user-links a {
    min-height: 44px;
  }
}

@media (min-width: 1024px) {
  .app-topbar-search-row {
    display: none !important;
  }

  .app-sidebar__user-links {
    display: none;
  }
}

.app-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--line);
  padding: var(--space-4) 0;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .app-sidebar {
    display: flex;
    position: sticky;
    top: var(--header-h);
    align-self: flex-start;
    max-height: calc(100vh - var(--header-h));
  }
}

@media (max-width: 1023px) {
  .app-sidebar {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 160;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }
}

.app-sidebar a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 40px;
  padding: 0 var(--space-4);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}

.app-sidebar a.is-active {
  background: var(--bg-elevated);
  font-weight: 600;
}

.app-sidebar a:hover {
  background: var(--bg-page);
}

.app-sidebar__section {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4) var(--space-2);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.app-sidebar__source {
  font-size: 13px;
}

.app-sidebar__source-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-sidebar__meta {
  padding: var(--space-4);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

.app-sidebar__empty {
  padding: 0 var(--space-4) var(--space-2);
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.app-sidebar__hint {
  padding: 0 var(--space-4) var(--space-3);
  margin: 0;
  font-size: 13px;
}

.app-sidebar__hint a {
  min-height: auto;
  padding: 0;
  display: inline;
}

.app-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(25, 27, 31, 0.4);
  z-index: 150;
}

.app-drawer-backdrop.is-open {
  display: block;
}

.app-sidebar.is-drawer.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .app-topbar__menu {
    display: none;
  }
}

/* —— Feed 首頁 —— */

.feed-page {
  padding: 0 var(--space-5) var(--space-7);
  max-width: 1240px;
}

.feed-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3) 0;
  min-height: 48px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.feed-chips::-webkit-scrollbar {
  height: 4px;
}

.feed-chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-chip);
  background: var(--chip-bg);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.feed-chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}

.feed-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.feed-section-head--home h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.feed-section-head__meta {
  font-size: 13px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.feed-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.feed-section-head span {
  font-size: 13px;
  color: var(--text-muted);
}

.feed-section {
  margin-bottom: var(--space-5);
}

.feed-section__title {
  margin: 0 0 var(--space-3);
  font-size: 18px;
  font-weight: 600;
}

/* —— 探索：繁中快訊（桌機 3 / 手機 2） —— */

.feed-zh-flash__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 1024px) {
  .feed-zh-flash__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}


.content-card--zh-flash {
  border-radius: var(--radius);
}

.feed-zh-flash__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
}

.feed-zh-flash__inner .content-card__title {
  font-size: 15px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

.feed-zh-flash__inner .content-card__meta {
  font-size: 11px;
  line-height: 1.35;
}

.feed-zh-flash__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.feed-zh-flash__foot .content-card__toolbar {
  display: contents;
  margin-bottom: 0;
}

.feed-zh-flash__read {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--bg-page);
}

.feed-zh-flash__foot .content-card__tool-btn {
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: 12px;
}

/* —— 探索：真圖精選（桌機 3 / 手機 1） —— */

.feed-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .feed-featured__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.feed-featured__grid .content-card--featured:nth-child(n + 2) {
  display: none;
}

@media (min-width: 1024px) {
  .feed-featured__grid .content-card--featured:nth-child(n + 2) {
    display: flex;
  }
}

.content-card--featured {
  overflow: visible;
}

.content-card--featured .content-card__thumb-wrap {
  aspect-ratio: 16 / 9;
  max-height: 168px;
  flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .content-card--featured .content-card__thumb-wrap {
    max-height: 176px;
  }
}

@media (min-width: 1024px) {
  .content-card--featured .content-card__thumb-wrap {
    max-height: 168px;
  }
}

.content-card--featured .content-card__body {
  padding: 10px var(--space-3) 12px;
  gap: 4px;
  flex: 1 1 auto;
}

.content-card__body--featured .content-card__meta {
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card__actions--featured {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.content-card__actions--featured .content-card__toolbar {
  display: contents;
  margin-bottom: 0;
}

.content-card__actions--featured .content-card__tool-btn,
.content-card__actions--featured a,
.content-card__actions--featured button {
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: 12px;
}

.content-card--featured .content-card__actions {
  margin-top: var(--space-1);
  padding-bottom: 2px;
}

.feed-compact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.content-card--compact {
  overflow: visible;
}

.content-card__compact-row {
  display: grid;
  grid-template-columns: min(144px, 38vw) 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  align-items: start;
}

@media (max-width: 639px) {
  .content-card__compact-row {
    grid-template-columns: 112px 1fr;
  }
}

.content-card__compact-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 144px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}

.content-card__compact-thumb .content-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-card__compact-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: transparent;
}

.content-card__compact-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 63px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.content-card__compact-main {
  min-width: 0;
}

.content-card__actions-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 var(--space-2);
}

.content-card--video-compact {
  overflow: visible;
}

.content-card__text-row--video {
  padding: var(--space-2) var(--space-3);
  min-height: 96px;
}

.content-card__text-mark--video {
  width: 56px;
  height: 56px;
  font-size: 14px;
}

.feed-page {
  max-width: 100%;
  overflow-x: clip;
}

.feed-block {
  margin-bottom: var(--space-6);
}

.feed-block__subhead {
  margin: 0 0 var(--space-3);
  font-size: 18px;
  font-weight: 600;
}

.feed-text-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1680px) {
  .feed-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* —— 內容卡 —— */

.content-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.content-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  background: var(--bg-elevated);
  overflow: hidden;
}

.content-card__thumb-link,
.content-card__thumb-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.content-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(145deg, #e8eaef 0%, #d8dce4 100%);
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

.content-card__fallback-sig {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  opacity: 0.35;
}

.content-card__fallback-label {
  font-size: 11px;
}

.content-card__fallback-link {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  font-size: 11px;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: rgba(25, 27, 31, 0.82);
  color: #fff;
}

.content-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 2;
}

.content-card__tool-btn {
  min-height: 36px;
  padding: 0 var(--space-3);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--bg-page);
  color: var(--text-primary);
  cursor: pointer;
}

.content-card__tool-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.content-card__tool-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.content-card--text {
  border-radius: var(--radius);
}

.content-card__text-row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  align-items: flex-start;
}

.content-card__text-mark {
  flex-shrink: 0;
  width: 72px;
  max-width: 96px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.content-card__text-mark--row {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  font-size: 14px;
}

.content-card__text-main {
  flex: 1;
  min-width: 0;
}

.content-card__badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-1);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 10px;
}

.content-card__license-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.content-card__body {
  padding: 12px var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 78px;
}

.content-card--video .content-card__body,
.content-card--visual .content-card__body {
  min-height: 0;
}

.content-card__row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.content-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.content-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card__title a {
  color: inherit;
  text-decoration: none;
}

.content-card__title a:hover {
  color: var(--accent);
}

.content-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.content-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.content-card__actions a,
.content-card__actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-size: 13px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.content-card__player {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: none;
}

.content-card__player-wrap {
  display: none;
  border-top: 1px solid var(--line);
}

.content-card__player-wrap.is-open {
  display: block;
}

.content-card__player-bar {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}

.content-card__player-close {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.content-card__player-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— 探索首頁：viewport cascade（須在 .content-card 之後） —— */

@media (max-width: 767px) {
  .feed-zh-flash__list > .content-card.feed-zh-flash__item--desktop-only {
    display: none;
  }

  .feed-section-head--home {
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
  }

  .feed-section-head--home h2 {
    flex: 0 1 auto;
    font-size: 20px;
    line-height: 1.2;
  }

  .feed-section-head__meta {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-section {
    margin-bottom: var(--space-3);
  }

  .feed-section__title {
    margin-bottom: var(--space-2);
    font-size: 16px;
  }

  .feed-chips {
    padding: var(--space-2) 0;
    min-height: 44px;
  }

  .feed-page {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .feed-zh-flash__list {
    gap: 8px;
  }

  .feed-zh-flash__inner {
    padding: 8px 10px;
  }

  .feed-featured__grid .content-card--featured .content-card__thumb-wrap {
    max-height: 158px;
  }

  .content-card--featured .content-card__body--featured {
    padding: 8px 10px 10px;
  }
}

@media (min-width: 768px) {
  .feed-zh-flash__list > .content-card.feed-zh-flash__item--desktop-only {
    display: flex;
  }
}

/* —— Gematsu 新聞列 —— */

.feed-news-block {
  margin-top: var(--space-7);
}

.feed-news-block h3 {
  margin: 0 0 var(--space-4);
  font-size: 20px;
}

.feed-news-layout {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .feed-news-layout {
    grid-template-columns: 1fr 280px;
  }
}

.feed-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
}

.feed-news-date {
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}

.feed-news-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.feed-news-row:last-child {
  border-bottom: none;
}

@media (max-width: 639px) {
  .feed-news-row {
    grid-template-columns: 116px 1fr;
    min-height: 106px;
  }
}

.feed-news-row__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.feed-load-more {
  margin-top: var(--space-5);
  text-align: center;
}

.feed-load-more button {
  min-height: 44px;
  padding: 0 var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--bg-surface);
  font-size: 15px;
  cursor: pointer;
}

.feed-empty {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.feed-empty button {
  margin-top: var(--space-4);
  min-height: 44px;
}

.feed-local-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: var(--space-2) 0 var(--space-4);
}

.feed-sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--bg-surface);
  font-size: 14px;
}

.feed-sidebar-panel h4 {
  margin: 0 0 var(--space-3);
  font-size: 15px;
}

.feed-recruit-inline {
  margin: var(--space-6) 0;
}

.feed-search-hint {
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.feed-update-notice {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  max-width: calc(100vw - var(--space-6));
}

.feed-update-notice__btn {
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.feed-update-notice__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 全站 footer 在淺色殼內 */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-surface);
  padding: var(--space-6) 0;
  margin-top: auto;
}

.site-footer .footer-links a {
  color: var(--text-primary);
}

/* —— 目錄頁：不用原創 atlas 當作品封面；招商淺色可讀 —— */

.catalog-page .poster__atlas,
.catalog-page .poster__atlas-label,
.zone-anime .grid-4 .poster__atlas,
.zone-anime .grid-4 .poster__atlas-label {
  display: none;
}

.catalog-page .grid-4 .poster:not(:has(.poster__bg)),
.zone-anime .grid-4 .poster:not(:has(.poster__bg)) {
  background: hsl(var(--poster-h, 180) 42% 93%);
}

.catalog-page .grid-4 .poster--game:not(.poster--detail),
.catalog-page .grid-4 .poster--anime:not(.poster--detail),
.zone-anime .grid-4 .poster--game:not(.poster--detail),
.zone-anime .grid-4 .poster--anime:not(.poster--detail) {
  aspect-ratio: unset;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: stretch;
  min-height: 96px;
  max-height: 120px;
}

.catalog-page .grid-4 .poster__frame,
.zone-anime .grid-4 .poster__frame {
  grid-column: 2;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border-left: 3px solid hsl(var(--poster-h, 180) 55% 48%);
  justify-content: flex-start;
  gap: 2px;
}

.catalog-page .grid-4 .poster__title,
.zone-anime .grid-4 .poster__title {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.catalog-page .grid-4 .poster__sub,
.zone-anime .grid-4 .poster__sub {
  font-size: 13px;
  line-height: 1.35;
}

.catalog-page .grid-4 .poster__meta,
.zone-anime .grid-4 .poster__meta {
  font-size: 12px;
  line-height: 1.35;
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

@media (min-width: 1024px) {
  .catalog-page .grid-4 .poster--game:not(.poster--detail):not(:has(.poster__bg)),
  .catalog-page .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)),
  .zone-anime .grid-4 .poster--game:not(.poster--detail):not(:has(.poster__bg)),
  .zone-anime .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)) {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 240px;
    max-height: 280px;
    position: static;
  }

  .catalog-page .grid-4 .poster:not(:has(.poster__bg))::before,
  .zone-anime .grid-4 .poster:not(:has(.poster__bg))::before {
    content: "";
    display: block;
    height: 72px;
    background: hsl(var(--poster-h, 180) 42% 88%);
    border-bottom: 1px solid var(--line);
    grid-row: 1;
  }

  .catalog-page .grid-4 .poster:not(:has(.poster__bg)) .poster__sig,
  .zone-anime .grid-4 .poster:not(:has(.poster__bg)) .poster__sig {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    display: block;
    margin: 0 0 4px;
  }

  .catalog-page .grid-4 .poster:not(:has(.poster__bg)) .poster__frame,
  .zone-anime .grid-4 .poster:not(:has(.poster__bg)) .poster__frame {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }
}

.catalog-page .catalog-sidebar-ad .recruit-tech,
.catalog-page .feed-recruit-inline .recruit-tech,
.feed-recruit-inline .recruit-tech {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.catalog-page .recruit-tech::before,
.feed-recruit-inline .recruit-tech::before {
  background: var(--accent);
}

.catalog-page .recruit-tech__label,
.feed-recruit-inline .recruit-tech__label {
  color: var(--accent);
}

.catalog-page .recruit-tech__title,
.feed-recruit-inline .recruit-tech__title {
  color: var(--text-primary);
}

.catalog-page .recruit-tech__desc,
.catalog-page .recruit-tech__note,
.feed-recruit-inline .recruit-tech__desc,
.feed-recruit-inline .recruit-tech__note {
  color: var(--text-muted);
}

.catalog-page .recruit-tech__cta,
.feed-recruit-inline .recruit-tech__cta {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* css/cinema.css */
/* PLAY INDEX cinema UI — round 5 */

.cinema-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.cinema-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.cinema-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 11, 13, 0.96) 0%,
    rgba(8, 11, 13, 0.9) 48%,
    rgba(8, 11, 13, 0.45) 100%
  );
}

.cinema-hero__grid {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--space-6) 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: var(--space-2);
  overflow: hidden;
  box-sizing: border-box;
}

.cinema-hero__main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.cinema-hero__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cinema-hero__en {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cinema-hero__zh {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  max-width: 14em;
}

.cinema-hero__zh-line {
  display: block;
}

.logo small .logo-tagline {
  display: block;
}

.cinema-hero__note {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cinema-hero__search {
  display: flex;
  gap: var(--space-2);
  max-width: 100%;
}

.cinema-hero__search input {
  flex: 1;
  min-height: 46px;
  max-height: 46px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 28, 0.88);
  color: var(--text-primary);
  padding: 0 var(--space-3);
  font-size: 15px;
}

.cinema-hero__search button {
  min-height: 46px;
  max-height: 46px;
  min-width: 72px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.cinema-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.cinema-hero__platforms .chip {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 28, 0.75);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cinema-hero__signal {
  display: none;
  border: 1px solid var(--line);
  background: rgba(17, 24, 28, 0.82);
  padding: var(--space-3);
  min-height: 0;
  overflow: auto;
  max-height: 100%;
}

.cinema-hero__signal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cinema-hero__signal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.cinema-hero__signal a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cinema-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    grid-template-rows: 1fr;
    align-items: stretch;
    padding-bottom: 16px;
  }
  .cinema-hero__signal {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .cinema-hero {
    height: auto;
    min-height: 380px;
    overflow: visible;
  }
  .cinema-hero__grid {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 20px;
    height: auto;
    min-height: 380px;
    overflow: visible;
  }
  .cinema-hero__main {
    overflow: visible;
  }
  .cinema-hero__zh {
    font-size: 26px;
    -webkit-line-clamp: 2;
  }
  .cinema-hero__en {
    font-size: 32px;
  }
  .cinema-hero__search input,
  .cinema-hero__search button {
    min-height: 44px;
    max-height: 44px;
  }
}

.hero-signal-mobile {
  display: none;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1023px) {
  .hero-signal-mobile {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  .hero-signal-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
    font-size: 12px;
  }
  .hero-signal-mobile li {
    display: flex;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
  }
  .hero-signal-mobile a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-signal-mobile__more {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .cinema-hero__signal {
    display: none;
  }
}

.chip:hover,
.chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
}

.spotlight-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .spotlight-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spotlight-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  overflow: hidden;
}

.spotlight-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  background-color: var(--bg-elevated);
  background-image: url("/assets/genre-worlds-v1.webp");
  background-size: 200% 200%;
  background-repeat: no-repeat;
}

.spotlight-card__visual--fantasy {
  background-position: 0% 0%;
}

.spotlight-card__visual--sci {
  background-position: 100% 0%;
}

.spotlight-card__visual--pastoral {
  background-position: 0% 100%;
}

.spotlight-card__visual--action {
  background-position: 100% 100%;
}

.spotlight-card__visual--fallback {
  background-image: none;
  background: linear-gradient(135deg, #162026, #11181c);
}

.spotlight-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 13, 0.15) 40%, rgba(8, 11, 13, 0.92) 100%);
}

.spotlight-card__poster-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.spotlight-card__art-label {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(8, 11, 13, 0.75);
  padding: 2px 6px;
  border: 1px solid var(--line);
}

.spotlight-card__body {
  padding: var(--space-3);
  border-top: 1px solid var(--line);
}

.spotlight-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.spotlight-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.sponsored-unit {
  border: 1px solid var(--accent-anime);
  padding: var(--space-3);
  margin: var(--space-4) 0;
  background: var(--bg-surface);
}

.sponsored-unit__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-anime);
}

.sponsored-unit__link {
  display: grid;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
  margin-top: var(--space-2);
}

.sponsored-unit img {
  max-height: 120px;
  object-fit: cover;
  width: 100%;
}

.ad-slot-host {
  min-height: 90px;
  border: 1px dashed var(--line);
  background: var(--bg-elevated);
}


.home-spotlight {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.home-spotlight__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.home-spotlight__head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.poster-grid-4 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .poster-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.poster {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  min-height: 168px;
  overflow: hidden;
}

.poster--game {
  aspect-ratio: 3 / 4;
}

.poster--anime {
  aspect-ratio: 2 / 3;
}

.poster__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.poster__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 2px solid hsl(var(--poster-h, 180) 70% 55%);
}

.poster__sig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.poster--anime .poster__sig {
  color: var(--accent-anime);
}

.poster__title {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  margin: var(--space-2) 0;
}

.poster__sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.poster__meta {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.pick-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  min-height: 72px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  text-decoration: none;
  color: inherit;
}

.pick-row__poster {
  width: 108px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
}

.pick-row__poster .poster {
  min-height: 72px;
  height: 100%;
  border: none;
}

.pick-row__poster .poster--game {
  aspect-ratio: auto;
}

.pick-row__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  min-width: 0;
}

.pick-row__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.home-picks-mobile {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .home-picks-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .poster-grid-4--desktop-only {
    display: none;
  }
  .cinema-hero {
    min-height: 360px;
    max-height: none;
  }
  .cinema-hero__inner {
    min-height: 360px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .cinema-hero__zh {
    font-size: 38px;
  }
  .cinema-hero__search input,
  .cinema-hero__search button {
    min-height: 44px;
  }
}

.recruit-tech {
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(17, 24, 28, 0.95), rgba(8, 11, 13, 0.95));
  padding: var(--space-4) var(--space-5);
  display: grid;
  gap: var(--space-2);
  position: relative;
}

.recruit-tech::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.recruit-tech__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.recruit-tech__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.recruit-tech__desc,
.recruit-tech__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.recruit-tech__cta {
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

.news-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
  padding: var(--space-4) 0;
}

.news-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.news-strip a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.news-strip time {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.card {
  border: 1px solid var(--line);
  background: var(--bg-surface);
}

.card__body {
  padding: var(--space-3);
}

.card__title {
  margin: 0 0 var(--space-2);
  font-size: 17px;
}

.card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ad-slot {
  border: 1px dashed var(--line);
  background: var(--bg-elevated);
  padding: var(--space-4);
  text-align: center;
}

.sponsor-box {
  border: 1px solid var(--accent-anime);
  padding: var(--space-4);
  background: var(--bg-surface);
}

.spoiler {
  border: 1px solid var(--line);
  padding: var(--space-3);
  background: var(--bg-elevated);
}

.news-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.news-item h3 {
  margin: 0 0 var(--space-2);
  font-size: 18px;
}

.source-link-card,
.sources-card {
  border: 1px solid var(--line);
  padding: var(--space-3);
  background: var(--bg-surface);
  list-style: none;
}

.poster--detail {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-width: 100%;
  width: 100%;
  margin-bottom: var(--space-4);
  min-width: 0;
  box-sizing: border-box;
}

.poster--detail .poster__frame {
  min-width: 0;
}

.poster--detail .poster__title,
.poster--detail .poster__sub,
.poster--detail .poster__meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.page-wrap article,
.page-wrap .page-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.poster--anime.poster--detail {
  aspect-ratio: 2 / 3;
  max-width: 320px;
}

.partnership-slots .info-stack {
  min-height: 120px;
}
/* css/signal-news.css */
/* THE SIGNAL 新聞頁、來源卡、合作線框、目錄頁頭 */

.catalog-masthead {
  margin-bottom: var(--space-3);
}

.catalog-masthead__en {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.signal-news-page {
  min-width: 0;
  padding-bottom: var(--space-7);
}

.signal-masthead {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .signal-masthead {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.signal-masthead__display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.signal-masthead__zh {
  margin: var(--space-2) 0 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}

.signal-masthead__right p {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: 15px;
}

.signal-masthead__updated {
  color: var(--accent) !important;
}

.signal-masthead__note {
  font-size: 14px !important;
}

.signal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.signal-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.signal-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 14px;
}

.signal-filter-chip:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
}

.signal-filter-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.signal-filter-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}

.signal-filter-field select,
.signal-filter-field input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  max-width: 100%;
}

.signal-filter-field--grow {
  flex: 1 1 160px;
}

.signal-filters__status {
  margin: var(--space-2) 0 var(--space-4);
  font-size: 14px;
  color: var(--text-muted);
}

.signal-layout {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

@media (min-width: 1024px) {
  .signal-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }
}

.signal-focus {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  margin-bottom: var(--space-4);
  min-width: 0;
}

@media (min-width: 768px) {
  .signal-focus {
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 280px;
  }
}

.signal-focus__visual {
  position: relative;
  min-height: 120px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .signal-focus__visual {
    border-bottom: none;
    border-right: 1px solid var(--line);
    min-height: auto;
  }
}

.signal-focus__visual--atlas {
  background-image: url("/assets/genre-worlds-v1.webp");
  background-size: 200% 200%;
  background-position: 0% 0%;
  opacity: 0.85;
}

.signal-focus__art-note {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  font-size: 10px;
  color: var(--text-muted);
}

.signal-focus__body {
  padding: var(--space-4);
  min-width: 0;
}

.signal-focus__index {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.signal-focus__title {
  margin: var(--space-2) 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.signal-focus__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.signal-focus__title a:hover {
  color: var(--accent);
}

.signal-focus__meta {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.signal-focus__meta li {
  margin-bottom: var(--space-1);
}

.signal-meta-label {
  color: var(--text-muted);
  margin-right: var(--space-2);
}

.signal-focus__lede {
  font-size: 14px;
  color: var(--text-muted);
}

.signal-focus__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-3);
  padding: 0 var(--space-4);
  background: var(--accent);
  color: var(--bg-void);
  text-decoration: none;
  font-weight: 700;
}

.signal-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  min-height: 110px;
  min-width: 0;
}

.signal-row__lead {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.signal-row__title {
  grid-column: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  min-width: 0;
}

.signal-row__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.signal-row__title a:hover {
  color: var(--accent);
}

.signal-row__meta {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.signal-row__ext {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--accent);
}

.signal-list--mobile,
.signal-mobile-recruit,
.signal-list--mobile-rest {
  display: block;
}

.signal-list--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .signal-list--desktop {
    display: block;
  }
  .signal-list--mobile,
  .signal-mobile-recruit,
  .signal-list--mobile-rest {
    display: none;
  }
}

@media (max-width: 767px) {
  .signal-sidebar__recruit {
    display: none;
  }
}

.signal-sidebar__recruit .recruit-tech {
  margin-bottom: var(--space-4);
}

.signal-sidebar h2 {
  font-size: 16px;
  margin: var(--space-4) 0 var(--space-2);
}

.signal-source-item {
  list-style: none;
  padding: var(--space-3);
  border: 1px solid var(--line);
  margin-bottom: var(--space-2);
  font-size: 14px;
}

.signal-sidebar__about p {
  font-size: 14px;
  color: var(--text-muted);
}

.signal-lang-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: var(--space-1);
}

.poster__atlas {
  position: absolute;
  inset: 0;
  background-image: url("/assets/genre-worlds-v1.webp");
  background-size: 200% 200%;
  opacity: 0.55;
}

.poster__atlas--action {
  background-position: 100% 0%;
}
.poster__atlas--fantasy {
  background-position: 0% 100%;
}
.poster__atlas--sci {
  background-position: 100% 100%;
}
.poster__atlas--pastoral {
  background-position: 0% 0%;
}

.poster__atlas-label {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(8, 11, 13, 0.75);
  padding: 2px 4px;
}

.poster--game:not(.poster--detail) {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.sources-page-v2 {
  min-width: 0;
}

.sources-principles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  font-size: 14px;
}

.sources-principles li {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
}

.sources-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .sources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sources-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sources-card-v2 {
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: var(--bg-surface);
  min-width: 0;
}

.sources-card-v2 h3 {
  margin: 0 0 var(--space-3);
  font-size: 17px;
}

.sources-card-v2__label {
  color: var(--text-muted);
  margin-right: var(--space-2);
}

.sources-more {
  margin: var(--space-5) 0;
  font-size: 15px;
}

.partnership-hero {
  position: relative;
  min-height: 220px;
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.partnership-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
}

.partnership-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 13, 0.92) 40%, rgba(8, 11, 13, 0.5));
}

.partnership-hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-6) var(--space-4);
}

.partnership-hero__en {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: var(--space-2) 0;
}

.partnership-pending {
  color: var(--text-muted);
  font-size: 15px;
}

.partnership-wireframes {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-6);
}

@media (min-width: 768px) {
  .partnership-wireframes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pw-frame {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  min-width: 0;
}

.pw-frame__chrome {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.pw-frame__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 100px;
}

.pw-frame__body--split {
  flex-direction: row;
}

.pw-block {
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  min-height: 36px;
}

.pw-block--hero {
  min-height: 48px;
}

.pw-block--ad {
  min-height: 28px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-color: var(--line-strong);
}

.pw-block--list {
  flex: 1;
  min-height: 72px;
}

.pw-block--side {
  width: 38%;
  min-height: 72px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}

.pw-block--text {
  min-height: 40px;
}

.pw-block--text.short {
  min-height: 24px;
}

.pw-frame figcaption {
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.signal-detail__lede {
  color: var(--text-muted);
  font-size: 15px;
}

.signal-detail__facts {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.signal-detail__facts li {
  margin-bottom: var(--space-2);
}

.signal-empty {
  margin-top: var(--space-6);
}

.partnership-form-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.partnership-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.partnership-form label {
  font-size: 14px;
  font-weight: 600;
}

.partnership-form input[type="text"],
.partnership-form input[type="email"],
.partnership-form select,
.partnership-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text);
  border-radius: 4px;
}

.partnership-form textarea {
  min-height: 120px;
  resize: vertical;
}

.partnership-form-consent {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-weight: 400;
  min-height: 44px;
  cursor: pointer;
  padding: var(--space-1) 0;
}

.partnership-form-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.partnership-form #pi-submit.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-5);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-base, #0b0d12);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 4px;
}

.partnership-form #pi-submit.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--bg-base, #0b0d12);
}

.partnership-form #pi-submit.btn-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  border-color: var(--line-strong);
  background: var(--line);
  color: var(--text-muted);
}

.partnership-form-status {
  font-size: 14px;
  margin-top: var(--space-2);
}

.partnership-form-status--error {
  color: #f87171;
}

.partnership-form-status--success {
  color: #4ade80;
}

.partnership-form-status--pending {
  color: var(--text-muted);
}

.partnership-form-status--warn {
  color: var(--text-muted);
  padding: var(--space-3);
  border: 1px dashed var(--line);
  margin-bottom: var(--space-4);
}
/* css/editorial-v16.css */
/* V16 theme layer — 載入於 legacy CSS 之後，覆寫硬編色 */

.theme-v16 {
  color-scheme: dark;
}

.theme-v16 .app-topbar {
  height: var(--header-h);
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
}

.theme-v16 .app-topbar__logo {
  color: var(--text-primary);
}

.theme-v16 .app-topbar__logo small {
  color: var(--text-muted);
}

.theme-v16 .app-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-chrome);
  border-right: 1px solid var(--line);
}

.theme-v16 .app-sidebar a {
  color: var(--text-muted);
  min-height: 38px;
  border-left: 3px solid transparent;
  padding-left: calc(var(--space-3) - 3px);
}

.theme-v16 .app-sidebar a.is-active {
  color: var(--text-primary);
  background: rgba(171, 140, 255, 0.12);
  border-left-color: var(--accent);
}

.theme-v16 .app-sidebar a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.theme-v16 .app-main-wrap {
  background: var(--bg-page);
}

.theme-v16 input,
.theme-v16 select,
.theme-v16 textarea {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
}

.theme-v16 input::placeholder {
  color: var(--text-muted);
}

.theme-v16 button,
.theme-v16 .btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  min-height: 44px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-v16 button:hover,
.theme-v16 .btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--line-strong);
}

.theme-v16 .app-topbar__search input {
  min-height: 40px;
  max-width: 520px;
}

.theme-v16 .feed-page {
  padding: var(--space-4);
  max-width: none;
  width: 100%;
}

.theme-v16 .feed-chip {
  background: var(--chip-bg);
  color: var(--text-primary);
  border: 1px solid var(--line);
  min-height: 44px;
}

.theme-v16 .feed-chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  border-color: var(--accent);
}

.theme-v16 .feed-section-head--home h2 {
  font-size: 22px;
  font-weight: 700;
}

.theme-v16 .content-card {
  background: var(--bg-surface);
  border-color: var(--line);
}

.theme-v16 .content-card--zh-flash {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.theme-v16 .content-card__tool-btn {
  min-width: 44px;
}

.theme-v16 .content-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-v16 .content-card__btn--play {
  background: rgba(91, 224, 192, 0.16);
  border-color: rgba(91, 224, 192, 0.55);
  color: #5be0c0;
}

.theme-v16 .content-card__btn--play:hover {
  background: rgba(91, 224, 192, 0.24);
  border-color: #5be0c0;
}

.theme-v16 .content-card__btn--neutral,
.theme-v16 .content-card__tool-btn.content-card__btn--neutral {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-primary);
}

.theme-v16 .content-card__btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 44px;
}

.theme-v16 .content-card__btn--quiet:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--line);
}

.theme-v16 .content-card__tool-btn[aria-pressed="true"] {
  border-color: var(--accent-follow);
  color: var(--accent-follow);
}

.theme-v16 .feed-zh-flash__read {
  background: var(--bg-surface);
  color: var(--accent);
}

.theme-v16 .site-footer {
  background: var(--bg-chrome);
  border-top: 1px solid var(--line);
}

.theme-v16 .catalog-page .grid-4 .poster__frame,
.theme-v16 .zone-anime .grid-4 .poster__frame {
  background: var(--bg-surface);
}

.feed-v16-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--space-4);
  align-items: start;
  width: 100%;
  max-width: none;
}

.feed-v16-main {
  min-width: 0;
  max-width: none;
}

.feed-v16-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.feed-v16-rail-block {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.feed-v16-rail-block h3 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.feed-v16-rail-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1) 0;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.35;
}

.feed-v16-rail-row__sig {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.feed-v16-rail-row__main {
  min-width: 0;
  flex: 1;
}

.feed-v16-rail-row__main a {
  color: var(--text-primary);
  text-decoration: none;
}

.feed-v16-rail-row__main a:hover {
  color: var(--accent);
}

.feed-v16-rail-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.feed-v16-creator-group {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}

.feed-v16-creator-group:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.feed-v16-creator-group__name {
  font-weight: 650;
  font-size: 14px;
  margin-bottom: var(--space-1);
}

.feed-v16-creator-channel-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-1);
  align-items: start;
  margin-bottom: var(--space-2);
}

.feed-v16-creator-channel-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  line-height: 1.35;
}

.feed-v16-creator-channel-body {
  min-width: 0;
}

.feed-v16-creator-video {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.feed-v16-creator-video:hover {
  color: var(--accent);
}

.feed-v16-rail-block--anime {
  border-bottom: none;
}

.feed-v16-rail-block--anime a {
  color: var(--text-primary);
  text-decoration: none;
}

.feed-v16-rail-block--anime a:hover {
  color: var(--accent-anime);
}

.feed-v16-creator-channel {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

@media (min-width: 1600px) {
  .theme-v16 .feed-compact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.theme-v16 .content-card--compact {
  overflow: visible;
}

.theme-v16 .content-card--compact .content-card__compact-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-v16 .content-card--compact .content-card__compact-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 12px 0;
}

.theme-v16 .content-card--compact .content-card__compact-thumb {
  width: 112px;
  height: 63px;
  max-width: none;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.theme-v16 .content-card--compact .content-card__compact-thumb .content-card__thumb,
.theme-v16 .content-card--compact .content-card__compact-thumb-btn,
.theme-v16 .content-card--compact .content-card__compact-fallback {
  width: 112px;
  height: 63px;
  min-height: 0;
}

.theme-v16 .content-card--compact .content-card__compact-main .content-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.theme-v16 .content-card--compact .content-card__meta--compact {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.theme-v16 .content-card--compact .content-card__meta--compact .content-card__badge--inline {
  margin-right: 6px;
}

.theme-v16 .content-card__actions--compact-unified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}

.theme-v16 .content-card--compact .content-card__player-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 12px 8px;
  box-sizing: border-box;
}

.theme-v16 .content-card--compact .content-card__player-wrap.is-open {
  padding-bottom: 12px;
}

@media (max-width: 767px) {
  .theme-v16 .content-card--compact .content-card__compact-row {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 8px 10px 0;
  }

  .theme-v16 .content-card--compact .content-card__compact-thumb,
  .theme-v16 .content-card--compact .content-card__compact-thumb .content-card__thumb,
  .theme-v16 .content-card--compact .content-card__compact-thumb-btn,
  .theme-v16 .content-card--compact .content-card__compact-fallback {
    width: 88px;
    height: 50px;
  }

  .theme-v16 .content-card__actions--compact-unified {
    padding: 6px 10px 8px;
  }

  .theme-v16 .feed-chips {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .theme-v16 .feed-zh-flash__inner {
    padding: 8px;
    gap: 4px;
  }

  .theme-v16 .feed-zh-flash__inner .content-card__meta {
    margin: 4px 0 0;
  }

  .theme-v16 .feed-zh-flash__list {
    gap: 4px;
  }

  .theme-v16 .feed-zh-flash__inner .content-card__title {
    font-size: 15px;
  }

  .theme-v16 .feed-featured__grid .content-card--featured .content-card__thumb-wrap {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: none;
    height: auto;
  }

  .theme-v16 .content-card--featured .content-card__thumb-wrap img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .theme-v16 .catalog-page .grid-4 .poster:not(:has(.poster__bg))::before,
  .theme-v16 .zone-anime .grid-4 .poster:not(:has(.poster__bg))::before {
    height: 6px;
    min-height: 6px;
  }

  .theme-v16 .catalog-page .grid-4 .poster--game:not(.poster--detail):not(:has(.poster__bg)),
  .theme-v16 .catalog-page .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)),
  .theme-v16 .zone-anime .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)) {
    min-height: 180px;
    max-height: 200px;
    grid-template-rows: 6px 1fr;
  }
}

@media (max-width: 767px) {
  .theme-v16 .content-card--zh-flash {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.theme-v16 .signal-news-page--v16 .signal-masthead--v16 {
  padding-block: 12px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.theme-v16 .signal-masthead--v16 .signal-masthead__display {
  display: none;
}

.theme-v16 .signal-masthead--v16 .signal-masthead__zh {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.theme-v16 .signal-masthead--v16 .signal-masthead__meta {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.theme-v16 .signal-news-page--v16 .page-wrap.signal-filters-wrap {
  padding-bottom: 0;
  margin-bottom: 8px;
}

.theme-v16 .signal-news-page--v16 .page-wrap.signal-filters-wrap .signal-filters,
.theme-v16 .signal-news-page--v16 .page-wrap.signal-filters-wrap .filters {
  padding: 8px 0;
  margin: 0;
  gap: var(--space-2);
}

.theme-v16 .signal-news-page--v16 .signal-filters__status {
  margin: 8px 0 0;
}

.theme-v16 .signal-news-page--v16 .signal-layout.page-wrap {
  padding-top: 8px;
  gap: 16px;
}

.theme-v16 .signal-focus.signal-focus--v16 {
  display: grid;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
  margin-bottom: 16px;
  gap: 16px;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-v16 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.theme-v16 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__body {
  grid-column: 1 / -1;
  min-width: 0;
  width: auto;
  max-width: none;
}

.theme-v16 .signal-focus--v16 .signal-focus__body {
  padding: 0;
  min-width: 0;
}

.theme-v16 .signal-focus__visual--atlas {
  display: none !important;
}

.theme-v16 .signal-focus__visual--photo {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  min-height: 120px;
  max-height: 208px;
  background: var(--bg-elevated);
  border: none;
}

.theme-v16 .signal-focus__photo {
  width: 100%;
  height: 100%;
  max-height: 208px;
  object-fit: cover;
  display: block;
}

.theme-v16 .signal-focus__sig--inline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 8px;
}

.theme-v16 .signal-focus--v16 .signal-focus__title {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.35;
  margin: 8px 0 4px;
}

.theme-v16 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.theme-v16 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__title a {
  overflow-wrap: anywhere;
}

.theme-v16 .signal-focus--v16 .signal-focus__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.theme-v16 a.signal-focus__cta.signal-focus__cta--quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line-strong);
  background: #e8ecf2;
  color: #121722;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.theme-v16 a.signal-focus__cta.signal-focus__cta--quiet:hover {
  background: #f4f6fa;
  color: #0a0e14;
  border-color: #c5ceda;
}

@media (min-width: 768px) {
  .theme-v16 .signal-focus.signal-focus--v16 {
    min-height: 0;
  }

  .theme-v16 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-v16 .signal-focus.signal-focus--v16:not(.signal-focus--v16-no-photo) .signal-focus__visual--photo {
    min-height: 160px;
    max-height: 208px;
  }
}

@media (max-width: 767px) {
  .theme-v16 .signal-focus--v16 {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.feed-v16-rail-block .recruit-tech {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-primary);
}

.feed-v16-rail-block .recruit-tech__title {
  color: var(--text-primary);
}

.feed-v16-rail-block .recruit-tech__desc,
.feed-v16-rail-block .recruit-tech__note {
  color: var(--text-muted);
}

.feed-v16-rail-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .feed-v16-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .feed-v16-rail {
    display: none;
  }

  .feed-v16-rail-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
  }

  .feed-v16-main {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .theme-v16 .feed-page {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

.theme-v16 .feed-news-block {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.theme-v16 .feed-news-list {
  background: var(--bg-surface);
  border-color: var(--line);
}

.theme-v16 .feed-update-notice__btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--accent);
}

.theme-v16 .filters select,
.theme-v16 .filters input {
  min-height: 44px;
}

.theme-v16 details {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.theme-v16 .page-wrap {
  color: var(--text-primary);
}

.theme-v16 .lead,
.theme-v16 .content-card__meta {
  color: var(--text-muted);
}

.theme-v16 .empty-state {
  background: var(--bg-surface);
  border-color: var(--line);
  color: var(--text-muted);
}
/* css/editorial-v17.css */
/* V17 theme layer — 載入於 v16 之後，明亮青綠覆寫 */

.theme-v17 {
  color-scheme: light;
}

.theme-v17 .app-topbar {
  height: var(--header-h);
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
}

.theme-v17 .app-topbar__logo {
  color: var(--text-primary);
}

.theme-v17 .app-topbar__logo small {
  color: var(--text-muted);
}

.theme-v17 .app-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-chrome);
  border-right: 1px solid var(--line);
}

.theme-v17 .app-sidebar a {
  color: var(--text-muted);
  min-height: 38px;
  border-left: 3px solid transparent;
  padding-left: calc(var(--space-3) - 3px);
}

.theme-v17 .app-sidebar a.is-active {
  color: var(--text-primary);
  background: rgba(8, 126, 139, 0.1);
  border-left-color: var(--accent);
}

.theme-v17 .app-sidebar a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.theme-v17 .app-main-wrap {
  background: var(--bg-page);
}

.theme-v17 input,
.theme-v17 select,
.theme-v17 textarea {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
}

.theme-v17 input::placeholder {
  color: var(--text-muted);
}

.theme-v17 button,
.theme-v17 .btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  min-height: 44px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-v17 button:hover,
.theme-v17 .btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--line-strong);
}

.theme-v17 .app-topbar__search input {
  min-height: 40px;
  max-width: 520px;
}

.theme-v17 .feed-page {
  padding: var(--space-4);
  max-width: none;
  width: 100%;
}

.theme-v17 .feed-chip {
  background: var(--chip-bg);
  color: var(--text-primary);
  border: 1px solid var(--line);
  min-height: 44px;
}

.theme-v17 .feed-chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  border-color: var(--accent);
}

.theme-v17 .feed-section-head--home h2 {
  font-size: 22px;
  font-weight: 700;
}

.theme-v17 .content-card {
  background: var(--bg-surface);
  border-color: var(--line);
}

.theme-v17 .content-card--zh-flash {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.theme-v17 .content-card__tool-btn {
  min-width: 44px;
}

.theme-v17 .content-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-v17 .content-card__btn--play {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}

.theme-v17 .content-card__btn--play:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-on);
}

.theme-v17 .content-card__btn--neutral,
.theme-v17 .content-card__tool-btn.content-card__btn--neutral {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-primary);
}

.theme-v17 .content-card__btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 44px;
}

.theme-v17 .content-card__btn--quiet:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--line);
}

.theme-v17 .content-card__tool-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--link);
  background: var(--bg-elevated);
}

.theme-v17 .feed-zh-flash__read {
  background: var(--bg-surface);
  color: var(--accent);
}

.theme-v17 .site-footer {
  background: var(--bg-chrome);
  border-top: 1px solid var(--line);
}

.theme-v17 .catalog-page .grid-4 .poster__frame,
.theme-v17 .zone-anime .grid-4 .poster__frame {
  background: var(--bg-surface);
}

.feed-v16-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--space-4);
  align-items: start;
  width: 100%;
  max-width: none;
}

.feed-v16-main {
  min-width: 0;
  max-width: none;
}

.feed-v16-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.feed-v16-rail-block {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.feed-v16-rail-block h3 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.feed-v16-rail-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1) 0;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.35;
}

.feed-v16-rail-row__sig {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.feed-v16-rail-row__main {
  min-width: 0;
  flex: 1;
}

.feed-v16-rail-row__main a {
  color: var(--text-primary);
  text-decoration: none;
}

.feed-v16-rail-row__main a:hover {
  color: var(--accent);
}

.feed-v16-rail-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.feed-v16-creator-group {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}

.feed-v16-creator-group:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.feed-v16-creator-group__name {
  font-weight: 650;
  font-size: 14px;
  margin-bottom: var(--space-1);
}

.feed-v16-creator-channel-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-1);
  align-items: start;
  margin-bottom: var(--space-2);
}

.feed-v16-creator-channel-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  line-height: 1.35;
}

.feed-v16-creator-channel-body {
  min-width: 0;
}

.feed-v16-creator-video {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.feed-v16-creator-video:hover {
  color: var(--accent);
}

.feed-v16-rail-block--anime {
  border-bottom: none;
}

.feed-v16-rail-block--anime a {
  color: var(--text-primary);
  text-decoration: none;
}

.feed-v16-rail-block--anime a:hover {
  color: var(--accent-anime);
}

.feed-v16-creator-channel {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

@media (min-width: 1600px) {
  .theme-v17 .feed-compact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.theme-v17 .content-card--compact {
  overflow: visible;
}

.theme-v17 .content-card--compact .content-card__compact-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-v17 .content-card--compact .content-card__compact-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 12px 0;
}

.theme-v17 .content-card--compact .content-card__compact-thumb {
  width: 112px;
  height: 63px;
  max-width: none;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.theme-v17 .content-card--compact .content-card__compact-thumb .content-card__thumb,
.theme-v17 .content-card--compact .content-card__compact-thumb-btn,
.theme-v17 .content-card--compact .content-card__compact-fallback {
  width: 112px;
  height: 63px;
  min-height: 0;
}

.theme-v17 .content-card--compact .content-card__compact-main .content-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.theme-v17 .content-card--compact .content-card__meta--compact {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.theme-v17 .content-card--compact .content-card__meta--compact .content-card__badge--inline {
  margin-right: 6px;
}

.theme-v17 .content-card__actions--compact-unified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}

.theme-v17 .content-card--compact .content-card__player-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 12px 8px;
  box-sizing: border-box;
}

.theme-v17 .content-card--compact .content-card__player-wrap.is-open {
  padding-bottom: 12px;
}

@media (max-width: 767px) {
  .theme-v17 .content-card--compact .content-card__compact-row {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 8px 10px 0;
  }

  .theme-v17 .content-card--compact .content-card__compact-thumb,
  .theme-v17 .content-card--compact .content-card__compact-thumb .content-card__thumb,
  .theme-v17 .content-card--compact .content-card__compact-thumb-btn,
  .theme-v17 .content-card--compact .content-card__compact-fallback {
    width: 88px;
    height: 50px;
  }

  .theme-v17 .content-card__actions--compact-unified {
    padding: 6px 10px 8px;
  }

  .theme-v17 .feed-chips {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .theme-v17 .feed-zh-flash__inner {
    padding: 8px;
    gap: 4px;
  }

  .theme-v17 .feed-zh-flash__inner .content-card__meta {
    margin: 4px 0 0;
  }

  .theme-v17 .feed-zh-flash__list {
    gap: 4px;
  }

  .theme-v17 .feed-zh-flash__inner .content-card__title {
    font-size: 15px;
  }

  .theme-v17 .feed-featured__grid .content-card--featured .content-card__thumb-wrap {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: none;
    height: auto;
  }

  .theme-v17 .content-card--featured .content-card__thumb-wrap img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .theme-v17 .catalog-page .grid-4 .poster:not(:has(.poster__bg))::before,
  .theme-v17 .zone-anime .grid-4 .poster:not(:has(.poster__bg))::before {
    height: 6px;
    min-height: 6px;
  }

  .theme-v17 .catalog-page .grid-4 .poster--game:not(.poster--detail):not(:has(.poster__bg)),
  .theme-v17 .catalog-page .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)),
  .theme-v17 .zone-anime .grid-4 .poster--anime:not(.poster--detail):not(:has(.poster__bg)) {
    min-height: 180px;
    max-height: 200px;
    grid-template-rows: 6px 1fr;
  }
}

@media (max-width: 767px) {
  .theme-v17 .content-card--zh-flash {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.theme-v17 .signal-news-page--v16 .signal-masthead--v16 {
  padding-block: 12px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.theme-v17 .signal-masthead--v16 .signal-masthead__display {
  display: none;
}

.theme-v17 .signal-masthead--v16 .signal-masthead__zh {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.theme-v17 .signal-masthead--v16 .signal-masthead__meta {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.theme-v17 .signal-news-page--v16 .page-wrap.signal-filters-wrap {
  padding-bottom: 0;
  margin-bottom: 8px;
}

.theme-v17 .signal-news-page--v16 .page-wrap.signal-filters-wrap .signal-filters,
.theme-v17 .signal-news-page--v16 .page-wrap.signal-filters-wrap .filters {
  padding: 8px 0;
  margin: 0;
  gap: var(--space-2);
}

.theme-v17 .signal-news-page--v16 .signal-filters__status {
  margin: 8px 0 0;
}

.theme-v17 .signal-news-page--v16 .signal-layout.page-wrap {
  padding-top: 8px;
  gap: 16px;
}

.theme-v17 .signal-focus.signal-focus--v16 {
  display: grid;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
  margin-bottom: 16px;
  gap: 16px;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-v17 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.theme-v17 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__body {
  grid-column: 1 / -1;
  min-width: 0;
  width: auto;
  max-width: none;
}

.theme-v17 .signal-focus--v16 .signal-focus__body {
  padding: 0;
  min-width: 0;
}

.theme-v17 .signal-focus__visual--atlas {
  display: none !important;
}

.theme-v17 .signal-focus__visual--photo {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  min-height: 120px;
  max-height: 208px;
  background: var(--bg-elevated);
  border: none;
}

.theme-v17 .signal-focus__photo {
  width: 100%;
  height: 100%;
  max-height: 208px;
  object-fit: cover;
  display: block;
}

.theme-v17 .signal-focus__sig--inline {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 8px;
}

.theme-v17 .signal-focus--v16 .signal-focus__title {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.35;
  margin: 8px 0 4px;
}

.theme-v17 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.theme-v17 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo .signal-focus__title a {
  overflow-wrap: anywhere;
}

.theme-v17 .signal-focus--v16 .signal-focus__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.theme-v17 a.signal-focus__cta.signal-focus__cta--quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line-strong);
  background: #e8ecf2;
  color: #121722;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.theme-v17 a.signal-focus__cta.signal-focus__cta--quiet:hover {
  background: #f4f6fa;
  color: #0a0e14;
  border-color: #c5ceda;
}

@media (min-width: 768px) {
  .theme-v17 .signal-focus.signal-focus--v16 {
    min-height: 0;
  }

  .theme-v17 .signal-focus.signal-focus--v16.signal-focus--v16-no-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-v17 .signal-focus.signal-focus--v16:not(.signal-focus--v16-no-photo) .signal-focus__visual--photo {
    min-height: 160px;
    max-height: 208px;
  }
}

@media (max-width: 767px) {
  .theme-v17 .signal-focus--v16 {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.feed-v16-rail-block .recruit-tech {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-primary);
}

.feed-v16-rail-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .feed-v16-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .feed-v16-rail {
    display: none;
  }

  .feed-v16-rail-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
  }

  .feed-v16-main {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .theme-v17 .feed-page {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

.theme-v17 .feed-news-block {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.theme-v17 .feed-news-list {
  background: var(--bg-surface);
  border-color: var(--line);
}

.theme-v17 .feed-update-notice__btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--accent);
}

.theme-v17 .filters select,
.theme-v17 .filters input {
  min-height: 44px;
}

.theme-v17 details {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.theme-v17 .page-wrap {
  color: var(--text-primary);
}

.theme-v17 .lead,
.theme-v17 .content-card__meta {
  color: var(--text-muted);
}

.theme-v17 .empty-state {
  background: var(--bg-surface);
  border-color: var(--line);
  color: var(--text-muted);
}

.theme-v17 .feed-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  min-height: 44px;
}

.theme-v17 .feed-section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.theme-v17 .feed-section-head__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
}

.theme-v17 .feed-section-head__more:hover {
  color: var(--link-hover);
}

.theme-v17 .feed-zh-flash__list {
  display: grid;
  gap: 8px;
}

@media (min-width: 768px) {
  .theme-v17 .feed-zh-flash__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-v17 .content-card--zh-flash {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
}

.theme-v17 .feed-zh-flash__inner {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-v17 .content-card__title--flash .content-card__title-link {
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.theme-v17 .feed-zh-flash__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.theme-v17 .content-card__meta--flash {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  flex: 1 1 120px;
}

.theme-v17 .feed-zh-flash__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.theme-v17 .feed-zh-flash__tools .content-card__toolbar {
  display: contents;
}

.theme-v17 .feed-zh-flash__read {
  display: none;
}

.theme-v17 .content-card--featured {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
}

.theme-v17 .content-card__body--featured .content-card__title a {
  color: var(--text-primary);
}

.theme-v17 .content-card__actions--tiered {
  flex-wrap: wrap;
  gap: 6px;
}

.theme-v17 .content-card__actions--tiered .content-card__toolbar {
  display: contents;
}

.theme-v17 .feed-v16-rail-block h3 {
  margin: 0 0 var(--space-2);
  padding: 6px 8px 6px 10px;
  font-size: 15px;
  font-weight: 700;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-chip) var(--radius-chip) 0;
}

.theme-v17 .feed-v16-rail-block {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.theme-v17 .feed-v16-creator-video {
  color: var(--text-primary);
}

.theme-v17 .feed-v16-creator-video:hover {
  color: var(--accent-hover);
}

.theme-v17 .tag-anime {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.theme-v17 .demo-badge {
  color: var(--text-muted);
  border-color: var(--line);
}

.theme-v17 .app-topbar__search input {
  background: var(--bg-elevated);
}

.theme-v17 .signal-focus.signal-focus--v16 {
  background: var(--bg-surface);
  border-color: var(--line);
}

.theme-v17 a.signal-focus__cta.signal-focus__cta--quiet {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.theme-v17 a.signal-focus__cta.signal-focus__cta--quiet:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-on);
}

/* —— V17 contrast batch (QA Art round1) —— */

/* Shared recruit: home rail, catalog inline, news sidebar + mobile, partnership hero */
.theme-v17 .recruit-tech {
  position: relative;
  background: var(--bg-surface);
  background-image: none;
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.theme-v17 .recruit-tech::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.theme-v17 .recruit-tech__label {
  color: var(--link);
}

.theme-v17 .recruit-tech__title {
  color: var(--text-primary);
}

.theme-v17 .recruit-tech__desc,
.theme-v17 .recruit-tech__note {
  color: var(--text-muted);
}

.theme-v17 .recruit-tech__cta {
  color: var(--link);
  border-bottom-color: var(--link);
}

.theme-v17 .feed-v16-rail-block .recruit-tech {
  background: var(--bg-elevated);
  border-color: var(--line);
}

.theme-v17 .catalog-page .catalog-sidebar-ad .recruit-tech,
.theme-v17 .feed-recruit-inline .recruit-tech {
  background: var(--bg-surface);
}

.theme-v17 .signal-news-page--v16 .signal-sidebar__recruit .recruit-tech,
.theme-v17 .signal-news-page--v16 .signal-mobile-recruit .recruit-tech {
  background: var(--bg-surface);
  background-image: none;
}

.theme-v17 .signal-news-page--v16 .tag-game,
.theme-v17 .signal-focus--v16 .tag-game,
.theme-v17 .signal-row__lead .tag-game {
  color: var(--link);
}

.theme-v17 a.signal-row__ext {
  color: var(--link);
  border-color: var(--line);
}

.theme-v17 a.signal-row__ext:hover {
  color: var(--link-hover);
  background: var(--bg-elevated);
}

.theme-v17 .creators-card a:not(.btn-secondary),
.theme-v17 .creators-grid + .empty-state a,
.theme-v17 .feed-v16-creator-video {
  color: var(--link);
}

.theme-v17 .feed-v16-creator-video:hover {
  color: var(--link-hover);
}

.theme-v17 .partnership-form-consent a {
  color: var(--link);
}

.theme-v17 .partnership-form-consent a:hover {
  color: var(--link-hover);
}

.theme-v17 .prose a,
.theme-v17 .detail-layout .prose a {
  color: var(--link);
}

.theme-v17 .prose a:hover,
.theme-v17 .detail-layout .prose a:hover {
  color: var(--link-hover);
}

.theme-v17 .pw-block--ad {
  color: var(--link);
}

.theme-v17 .partnership-form #pi-submit.btn-primary:not(:disabled) {
  color: var(--accent-on);
}

.theme-v17 .partnership-form #pi-submit.btn-primary:not(:disabled):focus-visible {
  box-shadow: 0 0 0 1px var(--bg-surface);
}

.theme-v17 .partnership-form #pi-submit.btn-primary:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: var(--bg-elevated);
  border-color: var(--line-strong);
  color: var(--text-muted);
}

.theme-v17 .poster__atlas-label {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-primary);
  background: #f4f7f8;
  border: 1px solid var(--line);
  opacity: 1;
  max-width: calc(100% - 12px);
}

.theme-v17 .content-card__btn--play,
.theme-v17 .feed-chip.is-active,
.theme-v17 a.signal-focus__cta.signal-focus__cta--quiet {
  color: var(--accent-on);
}

@media (min-width: 1024px) {
  .theme-v17 .catalog-page .grid-4 .poster:not(:has(.poster__bg))::before,
  .theme-v17 .zone-anime .grid-4 .poster:not(:has(.poster__bg))::before {
    background: var(--accent);
    opacity: 0.55;
  }
}
/* css/editorial-v18.css */
/**
 * V18：探索首頁緊密內容流（section 12px / row 8px）、32px 來源識別、1280+ 雙欄 compact。
 * 疊加 V17 白灰青綠；不新增 banner 或大灰 placeholder。
 */
.theme-v18 .feed-section--explore {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-v18 .feed-explore-featured .feed-featured__grid {
  gap: 12px;
}

.theme-v18 .feed-compact-list--explore {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1280px) {
  .theme-v18 .feed-compact-list--explore {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
  }
}

.theme-v18 .content-card--compact .content-card__compact-row {
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 6px 10px 0;
  gap: 8px;
}

/* 高於 .theme-v17 的 112×63／88×50 與 content-first min-height:63px */
.theme-v18 .content-card--compact .content-card__compact-thumb {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-muted, #e8ecec);
}

.theme-v18 .content-card--compact .content-card__compact-thumb .content-card__thumb,
.theme-v18 .content-card--compact .content-card__compact-thumb-btn,
.theme-v18 .content-card--compact .content-card__compact-thumb .content-card__compact-fallback {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  aspect-ratio: auto;
  box-sizing: border-box;
}

.theme-v18 .content-card--compact .content-card__compact-thumb .content-card__thumb {
  object-fit: cover;
  display: block;
}

.theme-v18 .content-card--compact .content-card__compact-thumb .content-card__compact-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 6px;
  background: var(--surface-muted, #e8ecec);
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .theme-v18 .content-card--compact .content-card__compact-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .theme-v18 .content-card--compact .content-card__compact-thumb,
  .theme-v18 .content-card--compact .content-card__compact-thumb .content-card__thumb,
  .theme-v18 .content-card--compact .content-card__compact-thumb-btn,
  .theme-v18 .content-card--compact .content-card__compact-thumb .content-card__compact-fallback {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
  }
}

.theme-v18 .content-card--compact .content-card__title {
  -webkit-line-clamp: 2;
}

.theme-v18 .content-card__actions--compact-unified {
  min-height: 44px;
}
/* css/editorial-v19.css */
/**
 * V19：圖像主導首頁 — 疊加 V17/V18 色票；首屏以 16:9 與 atlas 為主。
 */
.theme-v19 .feed-section--v19 {
  margin-top: 0;
}

.theme-v19 .v19-home-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-v19 .v19-hero {
  position: relative;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: min(42vh, 360px);
}

.theme-v19 .v19-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.theme-v19 .v19-hero__cap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(42vh, 360px);
  padding: 16px;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 20, 22, 0.72) 100%);
}

.theme-v19 .v19-hero__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
}

.theme-v19 .v19-hero__lead {
  margin: 8px 0 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.4;
  color: #f2f5f5;
}

.theme-v19 .v19-atlas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url("/assets/genre-worlds-v1.webp");
  background-size: 200% 200%;
  border-radius: inherit;
  overflow: hidden;
}

.theme-v19 .v19-atlas--action {
  background-position: 100% 0%;
}
.theme-v19 .v19-atlas--fantasy {
  background-position: 0% 100%;
}
.theme-v19 .v19-atlas--sci {
  background-position: 100% 100%;
}
.theme-v19 .v19-atlas--pastoral {
  background-position: 0% 0%;
}

.theme-v19 .v19-atlas__label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 9px;
  line-height: 1.2;
  max-width: 70%;
  text-align: right;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-muted);
}

.theme-v19 .v19-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 900px) {
  .theme-v19 .v19-portal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.theme-v19 .v19-portal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  background: var(--surface, #fff);
}

.theme-v19 .v19-portal-card:hover .v19-portal-card__title {
  color: var(--accent);
}

.theme-v19 .v19-portal-card__body {
  padding: 8px 10px 10px;
}

.theme-v19 .v19-portal-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v19 .v19-portal-card__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.theme-v19 .v19-block {
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  padding: 10px 12px 12px;
  background: var(--surface, #fff);
}

.theme-v19 .v19-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-v19 .v19-block-head h3 {
  margin: 0;
  font-size: 16px;
}

.theme-v19 .v19-block-head a {
  font-size: 13px;
  color: var(--link);
}

.theme-v19 .v19-block-head__note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.theme-v19 .v19-licensed-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .theme-v19 .v19-licensed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .theme-v19 .v19-licensed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-v19 .v19-showcase {
  display: grid;
  gap: 12px;
}

@media (min-width: 960px) {
  .theme-v19 .v19-showcase {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }
}

.theme-v19 .v19-showcase__main .spotlight-card {
  height: 100%;
}

.theme-v19 .v19-showcase__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-v19 .v19-showcase__side .spotlight-card__visual {
  min-height: 120px;
}

.theme-v19 .v19-side-pick {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding-right: 8px;
}

.theme-v19 .v19-side-pick .v19-atlas {
  border-radius: 0;
  min-height: 54px;
}

.theme-v19 .v19-side-pick__title {
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v19 .v19-catalog-duo {
  display: grid;
  gap: 16px;
}

@media (min-width: 1024px) {
  .theme-v19 .v19-catalog-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.theme-v19 .v19-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .theme-v19 .v19-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.theme-v19 .v19-catalog-card .poster {
  width: 100%;
}

.theme-v19 .v19-yt-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 768px) {
  .theme-v19 .v19-yt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.theme-v19 .v19-yt-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-page);
  min-width: 0;
  container-type: inline-size;
}

.theme-v19 .v19-yt-card__player {
  width: 100%;
  min-width: 0;
  min-height: 200px;
  height: max(200px, calc(100cqw * 9 / 16));
  position: relative;
  background: #0a0a0a;
}

.theme-v19 .v19-yt-card__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.theme-v19 .v19-yt-card__meta {
  padding: 8px 10px 10px;
}

.theme-v19 .v19-yt-card__channel {
  margin: 4px 0 0;
  font-size: 11px;
}

.theme-v19 .v19-yt-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.theme-v19 .v19-yt-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v19 .v19-yt-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.theme-v19 .v19-yt-card__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.theme-v19 .v19-news-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-v19 .v19-news-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.theme-v19 .v19-news-link:first-child {
  border-top: none;
}

.theme-v19 .v19-news-link__thumb {
  width: 48px;
  height: 27px;
  object-fit: cover;
  border-radius: 4px;
}

.theme-v19 .v19-news-link__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.theme-v19 .v19-news-link__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v19 .v19-news-link__meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.theme-v19 .v19-news-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.theme-v19 .feed-section--v19 .feed-compact-list--explore {
  display: none;
}

.theme-v19 .spotlight-card__visual {
  background-image: url("/assets/genre-worlds-v1.webp");
  background-size: 200% 200%;
}

/* —— V19.1 八主題 atlas —— */
.theme-v19 .v19-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .theme-v19 .v19-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

.theme-v19 .v19-topic-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  background: var(--surface, #fff);
}

.theme-v19 .v19-topic-world {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  background-color: var(--bg-elevated, #e8ecec);
}

.theme-v19 .v19-topic-world__art {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 8px;
  line-height: 1.15;
  max-width: 42%;
  text-align: right;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-muted);
  pointer-events: none;
}

.theme-v19 .v19-topic-card__body {
  padding: 8px 10px 10px;
}

.theme-v19 .v19-topic-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.theme-v19 .v19-topic-card__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.theme-v19 .v19-press-hero {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  background: var(--surface, #fff);
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .theme-v19 .v19-press-hero {
    grid-template-columns: 1.55fr 1fr;
  }
}

.theme-v19 .v19-press-hero__visual {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: var(--bg-elevated);
}

.theme-v19 .v19-press-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-v19 .v19-press-hero__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.theme-v19 .v19-press-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.theme-v19 .v19-press-hero__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.theme-v19 .v19-press-hero__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.theme-v19 .v19-press-hero__credit {
  margin: 2px 0 0;
  font-size: 13px;
}

.theme-v19 .v19-press-editorial {
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  background: var(--surface, #fff);
  margin: 0;
  padding: 8px 10px 10px;
}

.theme-v19 .v19-press-editorial__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.theme-v19 .v19-press-editorial__duo {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 768px) {
  .theme-v19 .v19-press-editorial__duo {
    grid-template-columns: 1fr 1fr;
  }
}

.theme-v19 .v19-press-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 8px) - 2px);
  overflow: hidden;
  background: var(--surface, #fff);
}

.theme-v19 .v19-press-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.theme-v19 .v19-press-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.theme-v19 .v19-press-card__preview-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 4px;
  pointer-events: none;
}

.theme-v19 .v19-press-card__pickers {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: calc(100% - 12px);
}

.theme-v19 .v19-press-card__pick {
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: rgba(8, 20, 22, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
}

.theme-v19 .v19-press-card__pick[aria-selected="true"] {
  background: var(--accent, #0d7a82);
  border-color: rgba(255, 255, 255, 0.85);
}

.theme-v19 .v19-press-card__pick:focus-visible {
  outline: 2px solid var(--accent, #0d7a82);
  outline-offset: 2px;
}

.theme-v19 .v19-press-card__pick-label {
  display: block;
  white-space: nowrap;
}

.theme-v19 .v19-press-card__body {
  padding: 8px 10px 10px;
  margin: 0;
}

.theme-v19 .v19-press-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-v19 .v19-press-card__blurb {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v19 .v19-press-card__credit {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.3;
}
/* css/editorial-v21.css */
/* V21 GAMEHACK visual wall + viewer */
.gh-home-mode {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.gh-home-mode-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gh-home-mode-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.app-topbar__logo {
  flex: 0 1 auto;
  min-width: 0;
}
.app-topbar__home-view {
  margin-left: var(--space-2);
  align-self: center;
}
@media (max-width: 520px) {
  .app-topbar__home-view .gh-home-mode-btn {
    padding: 4px 8px;
  }
}

.gh-home--visual {
  display: flex;
  flex-direction: column;
}

.gh-wall {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .gh-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .gh-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gh-wall.is-masonry {
  display: block;
  gap: 0;
}
.gh-wall.is-masonry .gh-wall-tile {
  min-height: 0;
}
.gh-wall.is-masonry .gh-wall-tile__media-hit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.gh-wall.is-masonry .gh-wall-tile__img,
.gh-wall.is-masonry .gh-wall-tile__video-ph,
.gh-wall.is-masonry .gh-wall-tile__text-ph,
.gh-wall.is-masonry .gh-wall-tile__fallback {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  object-fit: cover;
}

.gh-wall-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  container-type: inline-size;
}
.gh-wall-tile--wide {
  grid-column: auto;
}
.gh-wall-tile__head {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px 12px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.12) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}
.gh-wall-tile__head a {
  pointer-events: auto;
}
.gh-wall-tile__title-link {
  flex: 1;
  min-width: 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 0;
}
@media (min-width: 768px) {
  .gh-wall-tile__title-link {
    font-size: 14px;
  }
}
.gh-wall-tile__intro-link {
  flex-shrink: 0;
  font-size: 11px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  margin-right: 48px;
}
.gh-wall-tile__star {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 4;
  pointer-events: auto;
}
.gh-wall-tile .gh-star-btn.gh-star-btn--hit44 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.gh-wall-tile .gh-star-btn.gh-star-btn--hit44.is-saved,
.gh-wall-tile .gh-star-btn.gh-star-btn--hit44[aria-pressed="true"] {
  color: var(--accent-gold);
}
.gh-wall-tile .gh-star-btn.gh-star-btn--hit44:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@container (max-width: 180px) {
  .gh-wall-tile__head {
    display: block;
    padding-top: 56px;
  }
  .gh-wall-tile__title-link {
    width: 100%;
    max-width: none;
    padding-right: 0;
    font-size: 13px;
    line-height: 1.4;
  }
  .gh-wall-tile__intro-link {
    position: absolute;
    top: 4px;
    right: 48px;
  }
}
@container (max-width: 240px) {
  .gh-wall-tile__head {
    display: block;
    padding-top: 56px;
  }
  .gh-wall-tile__head .gh-wall-tile__intro-link {
    position: absolute;
    top: 4px;
    z-index: 3;
  }
  .gh-wall-tile__head .gh-wall-tile__intro-link {
    right: 52px;
    margin-right: 0;
  }
  .gh-wall-tile__title-link {
    width: 100%;
    max-width: none;
    padding-right: 0;
  }
}
.gh-hit-44 {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.gh-star-btn.gh-star-btn--hit44,
.app-topbar__star-filter.gh-header-star-filter {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text-primary);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.gh-star-btn__icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.gh-wall-tile .gh-star-btn__icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.poster__star.gh-wall-star .gh-star-btn__icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.poster__star.gh-wall-star {
  color: #fff;
  background: transparent;
  border: 0;
}
.poster__star.gh-wall-star.is-saved,
.poster__star.gh-wall-star[aria-pressed="true"] {
  color: var(--accent-gold);
}
.poster__star.gh-wall-star:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gh-wall-tile .gh-star-btn--on .gh-star-btn__icon,
.gh-wall-tile .gh-star-btn.is-saved .gh-star-btn__icon,
.poster__star.gh-wall-star .gh-star-btn--on .gh-star-btn__icon,
.poster__star.gh-wall-star .gh-star-btn.is-saved .gh-star-btn__icon {
  filter: drop-shadow(0 1px 3px rgba(229, 165, 64, 0.95));
}
.app-topbar__star-filter.gh-header-star-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
}
.app-topbar__star-filter.is-active {
  color: var(--accent-gold);
}
.app-topbar__star-filter .gh-header-star-filter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
@media (min-width: 1024px) {
  .app-topbar > .app-topbar__star-filter.gh-header-star-filter {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .app-topbar__actions--desktop {
    display: none !important;
  }
  .app-topbar > .app-topbar__star-filter.gh-header-star-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }
}
.gh-wall-star,
.poster__star.gh-wall-star {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
}
.poster-wrap {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}
.gh-wall-tile {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}
.content-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
.gh-wall-tile__media-hit {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.gh-wall-tile__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gh-wall-tile__video-ph,
.gh-wall-tile__text-ph,
.gh-wall-tile__fallback {
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
  color: var(--text-muted);
  min-height: 120px;
  background-color: #0d1518;
  background-repeat: no-repeat;
}
.gh-topic-crop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gh-wall-tile__fallback-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  max-width: calc(100% - 12px);
  line-height: 1.3;
}
.gh-wall-tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

body.gh-viewer-open {
  overflow: hidden;
}
.gh-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-media-viewer[hidden] {
  display: none !important;
}
.gh-viewer {
  position: relative;
  max-width: min(960px, 100vw - 24px);
  width: 100%;
}
.gh-viewer__img {
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
}
.gh-viewer__atlas {
  width: 100%;
  min-height: min(56vh, 480px);
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  position: relative;
  display: block;
}
.gh-viewer__atlas-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 4px;
  line-height: 1.3;
  max-width: calc(100% - 16px);
}
.gh-viewer__player-mount {
  min-width: 200px;
  min-height: 200px;
  width: 100%;
  max-width: 960px;
}
.gh-viewer__player-mount .content-card__player {
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
}
.gh-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  min-width: 44px;
  min-height: 44px;
}
.gh-viewer__nav--prev {
  left: 8px;
}
.gh-viewer__nav--next {
  right: 8px;
}
.gh-viewer__figure {
  margin: 0;
}
.gh-viewer__cap {
  margin-top: 12px;
  color: #fff;
  text-align: center;
}
.gh-viewer__cap-title {
  display: block;
  color: #fff;
  font-weight: 600;
}
.gh-viewer__cap-note,
.gh-viewer__cap-credit {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}
.gh-viewer__cap-credit a,
.gh-viewer__cap-credit a:visited {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gh-viewer--video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-topbar__search button[type="submit"] {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0;
  line-height: 0;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.app-topbar__search-submit__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.feed-page--classic .disc-v20-toolbar--v20b {
  max-height: none;
}
@media (max-width: 768px) {
  .feed-page--classic .disc-v20-toolbar--v20b {
    max-height: 5.5rem;
    overflow: hidden;
  }
  .feed-page--classic .disc-v20-toolbar--v20b.is-expanded {
    max-height: none;
  }
}

.app-topbar__logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

/* Mobile ≤767: row1 menu+brand+mode; row2 always-visible search (DOM uses [hidden], not is-open) */
@media (max-width: 767px) {
  .app-shell {
    --topbar-search-row-h: calc(var(--space-2) * 2 + 44px);
  }

  .app-topbar {
    flex-wrap: nowrap;
    overflow-x: clip;
    overflow-y: visible;
    gap: var(--space-1);
    padding-inline: var(--space-2);
  }

  .app-topbar__search-toggle {
    display: none !important;
  }

  .app-topbar__logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-topbar__home-view {
    flex-shrink: 0;
    margin-left: var(--space-1);
    min-width: 0;
  }

  .app-topbar__home-view .gh-home-mode-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .app-topbar__actions--desktop {
    display: none !important;
  }

  .app-topbar__star-filter.gh-header-star-filter {
    flex-shrink: 0;
    margin-left: auto;
  }

  #app-search-row.app-topbar-search-row,
  #app-search-row.app-topbar-search-row[hidden] {
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 2;
    position: sticky;
    top: var(--header-h);
    z-index: 199;
    padding: var(--space-2);
  }

  .app-topbar-search-row .app-topbar__search--mobile {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .app-topbar-search-row .app-topbar__search--mobile input {
    min-width: 0;
    width: 100%;
  }

  .app-topbar-search-row .app-topbar__search--mobile button[type="submit"] {
    flex-shrink: 0;
  }

  .app-topbar__search--mobile .app-topbar__search-close {
    display: none;
  }

  .app-topbar {
    order: 1;
  }

  .app-layout {
    order: 3;
  }

  @media (max-width: 1023px) {
    .app-sidebar {
      top: calc(var(--header-h) + var(--topbar-search-row-h));
    }
  }

  .feed-v16-rail {
    top: calc(var(--header-h) + var(--topbar-search-row-h) + var(--space-3));
  }
}

@media (max-width: 320px) {
  .app-topbar {
    padding-inline: var(--space-1);
    gap: 2px;
  }
  .app-topbar__logo {
    font-size: 17px;
  }
  .app-topbar__home-view .gh-home-mode-btn {
    padding: 4px 4px;
    font-size: 10px;
  }
  .app-topbar-search-row {
    padding-inline: var(--space-1);
  }
}
@media (max-width: 390px) {
  .app-topbar {
    flex-wrap: nowrap;
    overflow-x: clip;
    min-width: 0;
  }
  .app-topbar__logo {
    min-width: 0;
  }
  .app-topbar__home-view {
    flex-shrink: 1;
    min-width: 0;
  }
  .app-topbar > .app-topbar__star-filter.gh-header-star-filter {
    flex-shrink: 0;
  }
  .app-topbar-search-row {
    min-width: 0;
    max-width: 100%;
  }
}

/* --- gh-viewer immersive: single scroll sheet, scoped overrides --- */
.gh-media-viewer:not([hidden]):has(.gh-viewer--immersive) {
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.gh-viewer.gh-viewer--immersive {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 10px;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: min(960px, calc(100vw - 24px));
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.gh-viewer--immersive .gh-viewer__img {
  max-height: min(60dvh, 720px);
  width: 100%;
  object-fit: contain;
}

.gh-viewer--immersive .gh-viewer__atlas {
  max-height: min(60dvh, 720px);
}

.gh-viewer--immersive .gh-viewer__figure {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
}

.gh-viewer--immersive .gh-viewer__nav {
  position: absolute;
  z-index: 3;
}

.gh-viewer--immersive .gh-viewer__article {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  text-align: left;
  pointer-events: auto;
}

.gh-viewer--immersive .gh-viewer__article .signal-detail--viewer-embed {
  border: 0;
  border-radius: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.gh-viewer--video.gh-viewer--immersive {
  align-items: stretch;
}

.gh-viewer--video.gh-viewer--immersive .gh-viewer__player-mount {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.gh-viewer--video.gh-viewer--immersive .gh-viewer__player-mount .content-card__player {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  vertical-align: top;
}

.gh-viewer--immersive .gh-viewer__article a {
  color: var(--link);
}

.gh-viewer--immersive .gh-viewer__article a:hover {
  color: var(--link-hover);
}

.gh-viewer--immersive .signal-detail__facts {
  color: var(--text-muted);
}

.gh-viewer--immersive .signal-detail__excerpt-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.gh-viewer--immersive .signal-detail__raw-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.35;
  padding: 2px 8px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chip-bg);
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .gh-viewer.gh-viewer--immersive {
    max-width: calc(100vw - 16px);
    max-height: 92dvh;
  }
}

@media (max-width: 375px) {
  .gh-media-viewer:not([hidden]):has(.gh-viewer--immersive) {
    padding: 8px;
  }

  .gh-viewer.gh-viewer--immersive {
    max-width: calc(100vw - 16px);
    max-height: 94dvh;
  }
  .gh-viewer.gh-viewer--immersive { padding: var(--space-3); }
}

/* v37 immersive: gallery figcaption on light sheet */
.gh-viewer--immersive .gh-viewer__cap,
.gh-viewer--immersive .gh-viewer__cap-title {
  color: var(--text-primary);
}
.gh-viewer--immersive .gh-viewer__cap-note,
.gh-viewer--immersive .gh-viewer__cap-credit {
  color: var(--text-muted);
}
.gh-viewer--immersive .gh-viewer__cap-credit a,
.gh-viewer--immersive .gh-viewer__cap-credit a:visited {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gh-viewer--immersive .gh-viewer__cap-credit a:hover {
  color: var(--link-hover);
}
/* css/editorial-v38.css */
/* editorial-v38.css — shell chrome, viewer layout hooks, community UI surfaces */

/* --- Typography: existing stack only (Noto via index.html + tokens.css) --- */
.theme-v38 {
  font-family: var(--font-body);
}

.theme-v38 .app-topbar__logo {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.theme-v38 .app-topbar__logo small {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.theme-v38 .app-topbar__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.theme-v38 .gh-wall-tile__title-link {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* --- Remove legacy drawer chrome (DOM should be gone; belt-and-suspenders) --- */
.theme-v38 .app-topbar__menu,
.theme-v38 .app-drawer-backdrop,
.theme-v38 .app-sidebar {
  display: none !important;
}

.theme-v38 .app-topbar__search-toggle {
  display: none !important;
}

/* --- Full-width main --- */
.theme-v38 .app-layout {
  display: block;
}

.theme-v38 .app-main-wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-width: 0;
}

.theme-v38 .app-shell-notice {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

/* --- Topbar layout --- */
.theme-v38 .app-topbar {
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  row-gap: var(--space-2);
}

.theme-v38 .app-topbar__logo {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1.15;
}

.theme-v38 .app-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  flex: 1 1 auto;
  min-width: 0;
}

.theme-v38 .app-topbar__nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-chip);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.theme-v38 .app-topbar__nav a:hover {
  background: var(--bg-elevated);
  color: var(--link-hover);
}

.theme-v38 .app-topbar__nav a.is-active,
.theme-v38 .app-topbar__nav a[aria-current="page"] {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}

.theme-v38 .app-topbar__search--desktop {
  flex: 1 1 220px;
  max-width: min(520px, 40vw);
  min-width: 160px;
}

.theme-v38 .app-topbar__trailing {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.theme-v38 .app-topbar__auth {
  min-height: 44px;
  white-space: nowrap;
}

.theme-v38 .app-topbar__home-view.gh-home-mode--topbar {
  flex-shrink: 0;
}

.theme-v38 .app-topbar__search-submit__icon {
  width: 16px;
  height: 16px;
}

.theme-v38 .app-topbar-nav-row {
  display: none;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.theme-v38 .app-topbar__nav--mobile {
  display: none;
}

/* --- Second-row search: desktop hidden, tablet/mobile always on --- */
@media (min-width: 1024px) {
  .theme-v38 .app-topbar-search-row {
    display: none;
  }
}

@media (max-width: 1023px) {
  .theme-v38 .app-shell {
    display: flex;
    flex-direction: column;
  }

  .theme-v38 .app-topbar {
    order: 1;
  }

  .theme-v38 .app-topbar-search-row {
    order: 2;
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: sticky;
    top: var(--header-h);
    z-index: 199;
  }

  .theme-v38 .app-topbar-search-row[hidden] {
    display: flex !important;
  }

  .theme-v38 .app-shell-notice {
    order: 2;
  }

  .theme-v38 .app-layout {
    order: 3;
  }

  .theme-v38 .app-topbar__search--desktop {
    display: none !important;
  }

  .theme-v38 .app-topbar-search-row .app-topbar__search--mobile {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: var(--space-2);
  }

  .theme-v38 .app-topbar-search-row .app-topbar__search--mobile input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .theme-v38 .app-topbar__nav--desktop {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .theme-v38 .app-topbar__trailing {
    margin-left: auto;
    flex-shrink: 0;
  }

  .theme-v38 .app-topbar__logo {
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .theme-v38 .app-shell {
    --topbar-search-row-h: calc(var(--space-2) * 2 + 44px);
    --topbar-nav-row-h: 44px;
  }

  .theme-v38 .app-topbar {
    flex-wrap: nowrap;
    overflow: visible;
    padding-inline: var(--space-2);
    align-items: center;
  }

  .theme-v38 .app-topbar__logo {
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.15;
  }

  .theme-v38 .app-topbar__nav--desktop {
    display: none !important;
  }

  .theme-v38 .app-topbar-nav-row {
    order: 3;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding: 0 var(--space-2) var(--space-2);
    box-sizing: border-box;
  }

  .theme-v38 .app-topbar__nav--mobile {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-1);
  }

  .theme-v38 .app-topbar__nav--mobile::-webkit-scrollbar {
    display: none;
  }

  .theme-v38 .app-topbar__nav--mobile a {
    padding: 0 var(--space-2);
    font-size: 14px;
  }

  .theme-v38 .app-layout {
    order: 4;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .theme-v38 .app-topbar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .theme-v38 .app-topbar__nav--desktop a {
    font-size: 14px;
    padding: 0 var(--space-2);
  }
}

/* --- Viewer / discussion typography (Noto stack via tokens) --- */
.gh-viewer--immersive .gh-viewer__article,
.gh-discussion {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
}

.gh-viewer--immersive .gh-viewer__article h1,
.gh-viewer--immersive .gh-viewer__article .page-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.gh-viewer--immersive .gh-viewer__article h2,
.gh-viewer--immersive .gh-viewer__article h3 {
  font-weight: 500;
}

/* --- Wall media (next JS batch consumes) --- */
.gh-wall-tile__img {
  object-fit: cover;
  object-position: center;
}

/* --- Viewer: classic centered immersive sheet (no discussion column) --- */
.gh-media-viewer:not([hidden]):has(.gh-viewer--immersive):not(:has(.gh-viewer-layout)) {
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Viewer: sheet + aside (desktop L/R, mobile stack) --- */
.gh-media-viewer:not([hidden]):has(.gh-viewer-layout) {
  background: rgba(0, 0, 0, 0.55);
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.gh-viewer-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: min(1180px, calc(100vw - 24px));
  max-height: 90dvh;
  min-height: 0;
  min-width: 0;
  gap: 0;
}

.gh-viewer-layout > .gh-viewer.gh-viewer--immersive,
.gh-viewer-layout > .gh-viewer--immersive {
  flex: 1 1 56%;
  max-width: none;
  width: auto;
  max-height: 90dvh;
  min-height: 0;
  min-width: 0;
  border-radius: 10px 0 0 10px;
}

.gh-viewer-layout > .gh-viewer--immersive:only-child {
  border-radius: 10px;
}

.gh-viewer__discussion {
  flex: 0 0 min(360px, 40%);
  min-width: 0;
  min-height: 0;
  max-height: 90dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 0 10px 10px 0;
  position: relative;
  z-index: 2;
  isolation: isolate;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-3) var(--space-4);
}

.gh-viewer__discussion:empty {
  padding: var(--space-3);
}

/* Keep embeds inside sheet; discussion panel is separate column */
.gh-viewer-layout .gh-viewer--immersive .gh-viewer__player-mount,
.gh-viewer-layout .gh-viewer--immersive .gh-viewer__player-mount .content-card__player {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
}

.gh-viewer-layout .gh-viewer--immersive .content-card__player iframe,
.gh-viewer-layout .gh-viewer--immersive iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .gh-media-viewer:not([hidden]):has(.gh-viewer-layout) {
    overflow-y: auto;
    align-items: flex-start;
  }

  .gh-viewer-layout {
    flex-direction: column;
    max-height: none;
    max-width: min(960px, calc(100vw - 16px));
  }

  .gh-viewer-layout > .gh-viewer--immersive {
    flex: 0 0 auto;
    max-height: none;
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .gh-viewer__discussion {
    flex: 0 0 auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 640px) {
  .gh-media-viewer:not([hidden]):has(.gh-viewer-layout) {
    padding: 8px;
  }
}

/* --- Community: header slot (optional upgrade from trailing button) --- */
.gh-community-auth-slot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  min-width: 0;
}

.theme-v38 .app-topbar__trailing .gh-community-auth-slot {
  margin: 0;
}

.gh-community-auth-slot [data-gh-community-user] {
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 640px) {
  .gh-community-auth-slot [data-gh-community-user] {
    max-width: 6ch;
  }
}

/* --- Community: auth dialog --- */
.gh-community-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 2rem);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 16px 48px rgba(32, 50, 56, 0.18);
}

.gh-community-dialog::backdrop {
  background: rgba(32, 50, 56, 0.45);
}

.gh-community-dialog__inner {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.gh-community-dialog__tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.gh-community-dialog__tabs button {
  flex: 1;
  min-height: 44px;
}

.gh-community-dialog__tabs button.is-active {
  font-weight: 600;
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}

.gh-community-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.gh-community-field label {
  font-size: 13px;
  color: var(--text-muted);
}

.gh-community-field input {
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.gh-community-field input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.gh-community-error {
  color: #b42318;
  font-size: 14px;
  min-height: 1.25rem;
  margin: 0 0 var(--space-2);
}

.gh-community-dialog [hidden] {
  display: none !important;
}

.gh-community-dialog button[type="submit"] {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-on);
}

.gh-community-dialog button[type="submit"]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.gh-community-dialog button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Community: discussion panel inside .gh-viewer__discussion --- */
.gh-discussion {
  font-size: 15px;
  line-height: 1.45;
}

.gh-discussion__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.gh-discussion__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.gh-discussion__status {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.gh-discussion__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.gh-discussion__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gh-discussion__item {
  border-left: 2px solid var(--line-strong);
  padding-left: var(--space-3);
}

.gh-discussion__item[data-depth="2"] {
  margin-left: var(--space-4);
}

.gh-discussion__item[data-depth="3"] {
  margin-left: calc(var(--space-4) * 2);
}

.gh-discussion__item[data-depth="4"] {
  margin-left: calc(var(--space-4) * 3);
}

.gh-discussion__item[data-depth="5"] {
  margin-left: calc(var(--space-4) * 4);
}

.gh-discussion__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.gh-discussion__text {
  word-break: break-word;
  white-space: pre-wrap;
}

.gh-discussion__actions {
  margin-top: var(--space-1);
}

.gh-discussion__btn {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.gh-discussion__btn--primary {
  background: var(--accent);
  color: var(--accent-on);
}

.gh-discussion__btn--primary:hover {
  background: var(--accent-hover);
}

.gh-discussion__btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.gh-discussion__btn--secondary:hover {
  background: rgba(8, 126, 139, 0.08);
}

.gh-discussion__reply-open {
  min-height: 44px;
}

.gh-discussion__login-cta {
  margin-top: var(--space-3);
  width: 100%;
}

.gh-discussion__compose[hidden],
.gh-discussion__login-cta[hidden] {
  display: none !important;
}

.gh-discussion__thread {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gh-discussion__reply-open {
  font-size: 13px;
}

.gh-discussion__compose {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gh-discussion [hidden] {
  display: none !important;
}

.gh-discussion__compose textarea,
.gh-discussion__reply textarea {
  min-height: 4.5rem;
  font-size: 15px;
  resize: vertical;
  padding: var(--space-2);
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
}

.gh-discussion__compose textarea:focus-visible,
.gh-discussion__reply textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.gh-discussion__reply {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gh-discussion__reply-host[hidden] {
  display: none !important;
}
/* css/editorial-v40.css */
/* editorial-v40.css — centered topbar search (no shell DOM change) + Threads-style discussion */

/* ========== Topbar: centered search without brand-nav wrapper ========== */

.app-shell.theme-v38 {
  --gh-topbar-search-w: min(440px, calc(100vw - 640px));
  --gh-topbar-search-min: 300px;
}

/* ≤1359: desktop search off, second row on (covers 1200–1359 overlap band + ≤1199) */
@media (max-width: 1359px) {
  .app-shell.theme-v38 .app-topbar__search--desktop {
    display: none !important;
  }

  .app-shell.theme-v38 .app-topbar-search-row,
  .app-shell.theme-v38 .app-topbar-search-row[hidden] {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: sticky;
    top: var(--header-h);
    z-index: 199;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-3);
  }

  .app-shell.theme-v38 .app-topbar-search-row .app-topbar__search--mobile {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .app-shell.theme-v38 .app-topbar-search-row .app-topbar__search--mobile input {
    width: 100%;
  }
}

/* ≥1360: viewport-centered desktop search; second row off */
@media (min-width: 1360px) {
  .app-shell.theme-v38 .app-topbar {
    position: sticky;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
  }

  .app-shell.theme-v38 .app-topbar__logo {
    flex: 0 1 auto;
    min-width: 0;
    z-index: 3;
  }

  .app-shell.theme-v38 .app-topbar__nav--desktop {
    flex: 0 1 auto;
    min-width: 0;
    z-index: 3;
  }

  .app-shell.theme-v38 .app-topbar__trailing {
    margin-left: auto;
    flex: 0 0 auto;
    z-index: 3;
    min-width: 0;
  }

  .app-shell.theme-v38 .app-topbar__search--desktop {
    display: block !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--gh-topbar-search-w);
    min-width: var(--gh-topbar-search-min);
    max-width: 440px;
    margin: 0;
    flex: none;
    z-index: 2;
    box-sizing: border-box;
  }

  .app-shell.theme-v38 .app-topbar__search--desktop input {
    width: 100%;
  }

  .app-shell.theme-v38 .app-topbar-search-row {
    display: none !important;
  }
}

.app-shell.theme-v38 .app-topbar__search--desktop input,
.app-shell.theme-v38 .app-topbar-search-row .app-topbar__search--mobile input {
  display: block;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 72px;
}

.app-shell.theme-v38 .app-topbar__search--desktop button[type="submit"],
.app-shell.theme-v38 .app-topbar-search-row .app-topbar__search--mobile button[type="submit"] {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

/* Home solo nav buttons (other Composer); match desktop nav anchors */
.app-shell.theme-v38 .app-topbar__nav [data-gh-home-solo] {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-chip);
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.app-shell.theme-v38 .app-topbar__nav [data-gh-home-solo]:hover {
  background: var(--bg-elevated);
  color: var(--link-hover);
}

.app-shell.theme-v38 .app-topbar__nav [data-gh-home-solo][aria-pressed="true"],
.app-shell.theme-v38 .app-topbar__nav [data-gh-home-solo].is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}

/* Trailing auth label — fix selector vs syncHeaderAuth DOM */
.app-shell.theme-v38 .app-topbar__trailing [data-gh-community-user],
.app-shell.theme-v38 .app-topbar__trailing .gh-community-user {
  display: block;
  max-width: min(11rem, 22vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .app-shell.theme-v38 .app-topbar__trailing [data-gh-community-user],
  .app-shell.theme-v38 .app-topbar__trailing .gh-community-user {
    max-width: min(7rem, 28vw);
  }
}

/* ========== Footer: two full-width rows (v40) ========== */

.app-shell.theme-v38 .site-footer.site-footer--v40 {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-6) var(--space-3) var(--space-7);
  text-align: center;
}

.app-shell.theme-v38 .site-footer.site-footer--v40 .site-footer__brand {
  width: 100%;
  margin: 0 0 var(--space-3);
  font-size: 14px;
}

.app-shell.theme-v38 .site-footer.site-footer--v40 .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  width: 100%;
  margin: 0;
}

.app-shell.theme-v38 .site-footer.site-footer--v40 .site-footer__links a {
  min-height: 44px;
}

/* Do not alter mobile logo-right TAG row (v21/v38); v40 search rules scoped to breakpoints above */

/* ========== Discussion: Threads-like stream (viewer column) ========== */

.gh-viewer__discussion .gh-discussion {
  --gh-disc-avatar: 32px;
  --gh-disc-gap: 12px;
  --gh-disc-indent: 40px;
  --gh-disc-max-indent-steps: 2;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.gh-viewer__discussion .gh-discussion__head {
  border-bottom: 1px solid var(--line);
}

.gh-viewer__discussion .gh-discussion__list {
  gap: 0;
  background: var(--bg-page);
}

.gh-viewer__discussion .gh-discussion__list > .gh-discussion__item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.gh-viewer__discussion .gh-discussion__list > .gh-discussion__item:first-child {
  border-top: 0;
}

.gh-viewer__discussion .gh-discussion__item {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

.gh-viewer__discussion .gh-discussion__stream-row {
  display: grid;
  grid-template-columns: var(--gh-disc-avatar) minmax(0, 1fr);
  column-gap: var(--gh-disc-gap);
  align-items: start;
}

.gh-viewer__discussion .gh-discussion__avatar {
  width: var(--gh-disc-avatar);
  height: var(--gh-disc-avatar);
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-viewer__discussion .gh-discussion__avatar-initial {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}

.gh-viewer__discussion .gh-discussion__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 4px;
  font-size: unset;
  color: unset;
}

.gh-viewer__discussion .gh-discussion__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.gh-viewer__discussion .gh-discussion__timestamp {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.gh-viewer__discussion .gh-discussion__timestamp::before {
  content: "·";
  margin-right: 8px;
  color: var(--text-muted);
}

.gh-viewer__discussion .gh-discussion__text {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-primary);
}

.gh-viewer__discussion .gh-discussion__actions {
  margin-top: 4px;
}

.gh-viewer__discussion .gh-discussion__reply-open {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  margin: 0;
  border-radius: var(--radius-chip);
  cursor: pointer;
}

.gh-viewer__discussion .gh-discussion__reply-open:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.gh-viewer__discussion .gh-discussion__thread {
  list-style: none;
  margin: 0;
  padding: 0 0 0 calc(var(--gh-disc-avatar) + var(--gh-disc-gap));
  position: relative;
  gap: 0;
}

.gh-viewer__discussion .gh-discussion__thread::before {
  content: "";
  position: absolute;
  left: calc(var(--gh-disc-avatar) / 2 - 0.5px);
  top: 0;
  bottom: 12px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.gh-viewer__discussion .gh-discussion__thread > .gh-discussion__item {
  padding: 10px 0 0;
  border-top: 0;
}

/* Visual indent cap (data-depth 1–5 unchanged) */
.gh-viewer__discussion .gh-discussion__thread[data-thread-depth="1"] > .gh-discussion__item,
.gh-viewer__discussion .gh-discussion__thread[data-thread-depth="2"] > .gh-discussion__item {
  margin-left: 0;
}

.gh-viewer__discussion .gh-discussion__thread[data-thread-depth="2"] > .gh-discussion__item {
  margin-left: var(--gh-disc-indent);
}

.gh-viewer__discussion .gh-discussion__thread[data-thread-depth="3"] > .gh-discussion__item,
.gh-viewer__discussion .gh-discussion__thread[data-thread-depth="4"] > .gh-discussion__item {
  margin-left: calc(var(--gh-disc-indent) * var(--gh-disc-max-indent-steps));
}

@media (max-width: 640px) {
  .gh-viewer__discussion .gh-discussion {
    --gh-disc-max-indent-steps: 1;
    --gh-disc-indent: 28px;
  }
}

/* Composer + login CTA footer */
.gh-viewer__discussion .gh-discussion {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gh-viewer__discussion .gh-discussion__body {
  flex: 1 1 auto;
  min-height: 0;
}

.gh-viewer__discussion .gh-discussion__login-cta {
  margin-top: var(--space-3);
  width: 100%;
  border-radius: 8px;
}

.gh-viewer__discussion .gh-discussion__compose {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--gh-disc-avatar) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--gh-disc-gap);
  row-gap: var(--space-2);
  align-items: start;
  background: var(--bg-surface);
}

@media (min-width: 641px) {
  .gh-viewer__discussion .gh-discussion__compose {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-bottom: var(--space-2);
    box-shadow: 0 -8px 16px color-mix(in srgb, var(--bg-page) 88%, transparent);
  }
}

.gh-viewer__discussion .gh-discussion__compose::before {
  content: "";
  width: var(--gh-disc-avatar);
  height: var(--gh-disc-avatar);
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  grid-row: 1 / span 2;
  align-self: start;
}

.gh-viewer__discussion .gh-discussion__compose .sr-only {
  grid-column: 2;
}

.gh-viewer__discussion .gh-discussion__compose textarea {
  grid-column: 2;
  min-height: 2.75rem;
  font-size: 15px;
  line-height: 23px;
  border-radius: 8px;
}

.gh-viewer__discussion .gh-discussion__compose button[type="submit"] {
  grid-column: 2;
  justify-self: end;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-on);
}

.gh-viewer__discussion .gh-discussion__reply textarea {
  font-size: 15px;
  line-height: 23px;
}

.gh-viewer__discussion .gh-discussion__reply button[type="submit"] {
  align-self: flex-end;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  border: 0;
}

.gh-viewer__discussion .gh-discussion [hidden] {
  display: none !important;
}
/* css/editorial-v42.css */
/* editorial-v42.css — header logo v229 PNG (after v40; no --header-h changes) */

.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(136px, 30vw);
  height: 56px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
  display: block;
  width: 136px;
  height: 56px;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 767px) {
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
    flex: 0 0 auto !important;
    max-width: min(112px, 40vw);
    height: 48px;
  }

  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
    width: 112px;
    height: 48px;
    max-height: 48px;
  }
}

.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image small {
  display: none !important;
}
/* css/editorial-v43.css */
/* editorial-v43.css — GAMEHACK v229 brand on light base (after v42; do not edit v42) */

:is(.app-shell.theme-v38, #gh-media-viewer, .gh-community-dialog) {
  --gh-brand-navy: #0c1834;
  --gh-brand-navy-mid: #152a52;
  --gh-brand-orange: #ea580c;
  --gh-brand-orange-hover: #c2410c;
  --gh-brand-yellow: #ca8a04;
  --gh-brand-yellow-bright: #eab308;
  --gh-brand-yellow-wash: #fefce8;

  --bg-page: #f3f5fa;
  --bg-surface: #ffffff;
  --bg-elevated: #eef2f9;
  --bg-chrome: #ffffff;
  --text-primary: #0f1a2e;
  --text-muted: #475569;
  --line: #c8d3e4;
  --line-strong: #94a3b8;
  --accent: var(--gh-brand-orange);
  --accent-hover: var(--gh-brand-orange-hover);
  --accent-on: #111827;
  --link: #1e3a5f;
  --link-hover: var(--gh-brand-orange-hover);
  --accent-gold: var(--gh-brand-yellow-bright);
  --chip-active-bg: var(--gh-brand-navy-mid);
  --chip-active-text: #ffffff;
  --focus-ring: 2px solid var(--gh-brand-yellow-bright);
}

:is(.app-shell.theme-v38, #gh-media-viewer) :focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--gh-brand-navy);
}

.app-shell.theme-v38 .app-topbar {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-elevated) 100%);
  border-bottom: 2px solid var(--gh-brand-navy);
  box-shadow: 0 1px 0 rgba(12, 24, 52, 0.06);
}

.app-shell.theme-v38 .app-topbar__nav a.is-active,
.app-shell.theme-v38 .app-topbar__nav--mobile a.is-active {
  color: var(--gh-brand-navy);
  box-shadow: inset 0 -2px 0 var(--gh-brand-orange);
}

.app-shell.theme-v38 .btn-primary {
  background: var(--gh-brand-orange);
  border-color: var(--gh-brand-orange-hover);
  color: #111827;
  font-weight: 600;
}

.app-shell.theme-v38 .btn-primary:hover {
  background: var(--gh-brand-orange-hover);
  color: #fff;
}

.app-shell.theme-v38 .btn-secondary {
  border-color: var(--gh-brand-navy-mid);
  color: var(--gh-brand-navy);
}

.app-shell.theme-v38 .demo-badge {
  background: var(--gh-brand-yellow-wash);
  color: var(--gh-brand-navy);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.app-shell.theme-v38 .tag-game,
.app-shell.theme-v38 .tag-anime {
  background: var(--gh-brand-navy);
  color: #fff;
}

/* --- Route mastheads (TW gaming / anime density) --- */
.app-shell.theme-v38 .gh-route-page .page-title,
.app-shell.theme-v38 .catalog-masthead .page-title,
.app-shell.theme-v38 .signal-masthead__zh {
  color: var(--gh-brand-navy);
  letter-spacing: 0.02em;
}

.app-shell.theme-v38 .catalog-masthead__en,
.app-shell.theme-v38 .signal-masthead__meta {
  color: var(--text-muted);
}

.app-shell.theme-v38 .catalog-masthead {
  border-left: 4px solid var(--gh-brand-orange);
  padding-left: var(--space-4);
  margin-bottom: var(--space-4);
}

/* --- Feed / wall media cards --- */
.app-shell.theme-v38 .gh-media-card.content-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-surface);
  box-shadow: 0 1px 0 rgba(12, 24, 52, 0.04);
  overflow: hidden;
}

.app-shell.theme-v38 .gh-media-card .content-card__badge {
  background: var(--gh-brand-navy);
  color: #fff;
}

.app-shell.theme-v38 .gh-media-card .content-card__title a {
  color: var(--gh-brand-navy);
  font-weight: 600;
}

.app-shell.theme-v38 .gh-media-card .content-card__title a:hover {
  color: var(--gh-brand-orange-hover);
}

.app-shell.theme-v38 .gh-wall-tile--v43.gh-wall-tile {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 24, 52, 0.12);
  outline: 1px solid rgba(12, 24, 52, 0.08);
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__head {
  background: linear-gradient(180deg, rgba(12, 24, 52, 0.88), rgba(12, 24, 52, 0.72));
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__title-link {
  flex: none;
  width: 100%;
  max-width: none;
  padding-right: 48px;
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__meta {
  margin: 0;
  padding: 0 48px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__meta-time {
  font: inherit;
  color: inherit;
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__title-link {
  color: #fff;
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__title-link:hover {
  color: var(--gh-brand-yellow-bright);
}

.app-shell.theme-v38 .gh-wall-tile--v43 .gh-wall-tile__play {
  color: var(--gh-brand-yellow-bright);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* --- Standard intro article (news / game / anime; viewer portal) --- */
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article {
  max-width: var(--max-width);
  margin-inline: auto;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  :is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__head {
    grid-template-columns: minmax(140px, 280px) minmax(0, 1fr);
    align-items: start;
  }

  :is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__headline:only-child {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__hero {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gh-brand-navy);
  min-height: 120px;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__hero--photo img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__hero--sig {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: linear-gradient(135deg, var(--gh-brand-navy), var(--gh-brand-navy-mid));
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__sig {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--gh-brand-yellow-bright);
  letter-spacing: 0.06em;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__title,
.gh-viewer--v43 .gh-viewer__article .gh-intro-article__title {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gh-brand-navy);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__subtitle {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: 15px;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__source-name {
  font-weight: 600;
  color: var(--gh-brand-navy-mid);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__facts {
  list-style: none;
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
  background: var(--bg-elevated);
  border-left: 4px solid var(--gh-brand-orange);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__facts li {
  margin-bottom: var(--space-2);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__facts li:last-child {
  margin-bottom: 0;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__body {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__body .signal-detail__platform-intro,
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__body .signal-detail__source-excerpt {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__body .signal-detail__source-excerpt {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__body h2,
.gh-viewer--v43 .gh-viewer__article .gh-intro-article__body h2 {
  font-size: 1.05rem;
  color: var(--gh-brand-navy);
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-weight: 700;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__source {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article__source .btn-secondary {
  font-weight: 600;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article .btn-secondary {
  border-color: var(--gh-brand-navy-mid);
  color: var(--gh-brand-navy);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article .tag-game,
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article .tag-anime {
  background: var(--gh-brand-navy);
  color: #fff;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article .demo-badge {
  background: var(--gh-brand-yellow-wash);
  color: var(--gh-brand-navy);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--game .gh-intro-article__layout,
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--anime .detail-layout {
  gap: var(--space-5);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--game .poster--detail,
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--anime .poster--detail {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 24, 52, 0.15);
  max-height: 220px;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--anime .poster--detail {
  max-width: min(100%, 220px);
}

:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--game .poster--detail .poster__bg,
:is(.app-shell.theme-v38, #gh-media-viewer) .gh-intro-article--anime .poster--detail .poster__bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

:is(.app-shell.theme-v38, #gh-media-viewer) .signal-detail__raw-tag {
  background: var(--gh-brand-yellow-wash);
  color: var(--gh-brand-navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.app-shell.theme-v38 .signal-news-page--v16 .signal-focus--v16 {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(12, 24, 52, 0.06);
}

/* --- Immersive viewer: readable article sheet on light base --- */
.gh-viewer--v43.gh-viewer--immersive {
  background: var(--bg-page);
  color: var(--text-primary);
  border-radius: 12px;
  max-height: min(92vh, 900px);
  overflow: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.gh-viewer-layout .gh-viewer--v43 .gh-viewer__article {
  border-top: 0;
  padding: var(--space-4);
  background: var(--bg-page);
}

.gh-viewer--v43 .gh-viewer__figure {
  background: #000;
}

.gh-viewer--v43 .gh-viewer__nav {
  background: rgba(12, 24, 52, 0.75);
  color: var(--gh-brand-yellow-bright);
  border: none;
}

/* v40 Threads discussion: tint only, no markup change */
.gh-viewer__discussion .gh-discussion {
  border-left-color: var(--gh-brand-orange);
}

.gh-viewer__discussion .gh-discussion__empty {
  margin: 0;
  padding: 0.75rem 0 0;
  width: 100%;
  box-sizing: border-box;
}

.gh-viewer__discussion .gh-discussion__avatar--empty {
  background: transparent;
  border: 1px solid var(--line);
}

.gh-viewer__discussion .gh-discussion__empty-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gh-brand-navy);
}

.gh-viewer__discussion .gh-discussion__empty-hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.gh-viewer__discussion .gh-discussion__login-cta.gh-discussion__btn--primary {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
}

.gh-viewer__discussion .gh-discussion__login-cta.gh-discussion__btn--primary:hover {
  background: #05b04c;
  border-color: #05b04c;
}

@media (min-width: 901px) {
}

@media (max-width: 900px) {
  #gh-media-viewer.gh-media-viewer:not([hidden]):has(.gh-viewer-layout) {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gh-viewer-layout > .gh-viewer.gh-viewer--immersive.gh-viewer--v43 {
    max-height: none;
    height: auto;
    overflow: visible;
    flex: 0 0 auto;
    min-height: 0;
  }

  .gh-viewer-layout > .gh-viewer__discussion {
    max-height: none;
    overflow: visible;
    flex: 0 0 auto;
  }

  .gh-viewer-layout > .gh-viewer__discussion .gh-discussion__body {
    max-height: none;
    overflow: visible;
  }

  .gh-viewer__discussion .gh-discussion__compose,
  .gh-viewer__discussion .gh-discussion__login-cta {
    position: static;
    bottom: auto;
    box-shadow: none;
  }

  .gh-viewer-layout > .gh-viewer.gh-viewer--immersive.gh-viewer--v43 .gh-viewer__article,
  .gh-viewer-layout > .gh-viewer.gh-viewer--immersive.gh-viewer--v43 .gh-viewer__player-mount,
  .gh-viewer-layout > .gh-viewer.gh-viewer--immersive.gh-viewer--v43 .gh-viewer__figure {
    position: static;
  }
}

.gh-community-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.gh-community-dialog .gh-line-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: var(--space-3, 0.75rem);
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: #06c755;
  color: #ffffff;
}

.gh-community-dialog .gh-line-login-btn:hover {
  background: #05b04c;
  color: #ffffff;
}

.gh-community-dialog .gh-line-login-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.gh-community-dialog .gh-line-login-btn.is-unavailable,
.gh-community-dialog .gh-line-login-btn[aria-disabled="true"] {
  background: var(--line-strong, #94a3b8);
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}

.gh-community-dialog__actions {
  margin-top: var(--space-4, 1rem);
}

.gh-community-dialog__close {
  width: 100%;
}

/* --- Header logo approved-regenerated-v4-v1 (v43); v229 PNG files unchanged on disk --- */
.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
  width: auto;
  flex: 0 0 auto;
  max-width: min(168px, 46vw);
}

.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
.app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
  width: auto;
  height: 56px;
  max-height: 56px;
  max-width: none;
  flex: 0 0 auto;
  aspect-ratio: 1070 / 496;
  object-fit: contain;
}

@media (max-width: 767px) {
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
    width: auto;
    flex: 0 0 auto;
    max-width: min(140px, 48vw);
    height: 48px;
  }

  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
    height: 48px;
    max-height: 48px;
  }
}

/* --- /preview/community/ demo (模擬資料) --- */
.gh-community-preview-page .gh-community-preview__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.gh-community-preview__masthead {
  margin-bottom: 1.5rem;
}

.gh-community-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.gh-community-preview__subhead {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.gh-community-preview__block + .gh-community-preview__block {
  margin-top: 2rem;
}

.gh-community-preview__wall-inner {
  max-width: 420px;
}

.gh-community-preview__tile-placeholder .gh-community-preview__tile-ph {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
}

.gh-community-preview__viewer-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
}

.gh-community-preview__viewer {
  min-height: 320px;
}

.gh-community-preview__article {
  padding: 1rem 1.25rem;
}

.gh-community-preview__article-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gh-brand-orange);
  margin: 0 0 0.5rem;
}

.gh-discussion--preview .gh-discussion__preview-note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gh-discussion--preview .gh-discussion__like {
  cursor: not-allowed;
  opacity: 0.85;
}

/* --- v59 viewer scroll / layout stability --- */
html:has(.app-shell.theme-v38) {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html:has(.app-shell.theme-v38) {
    overflow-y: scroll;
  }
}

body.gh-viewer-open {
  overflow: hidden;
}

.gh-viewer--v43 .gh-viewer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(12, 24, 52, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__img {
  width: 100%;
  max-width: 100%;
  height: min(50dvh, 560px);
  max-height: min(60dvh, 720px);
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap .gh-viewer__cap-title {
  color: #fff;
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap .gh-viewer__cap-note,
.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap .gh-viewer__cap-credit {
  color: rgba(255, 255, 255, 0.92);
}

.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap .gh-viewer__cap-credit a,
.gh-viewer--v43:not(.gh-viewer--video) .gh-viewer__figure > .gh-viewer__cap .gh-viewer__cap-credit a:visited {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- in-flow wall append sentinel --- */
.app-shell.theme-v38 .gh-home--visual > .gh-wall-append-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Topbar route link (e.g. /news) — match solo chip chrome */
.app-shell.theme-v38 .app-topbar__nav a.app-topbar__nav-route {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-chip);
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.app-shell.theme-v38 .app-topbar__nav a.app-topbar__nav-route:hover {
  background: var(--bg-elevated);
  color: var(--link-hover);
}

.app-shell.theme-v38 .app-topbar__nav a.app-topbar__nav-route.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}


/* Stable single discussion column and submitted-search controls. */
@media (min-width: 901px) {
  .gh-viewer-layout > .gh-viewer__discussion { align-self: stretch; height: min(760px, 90dvh); min-height: min(560px, 90dvh); }
  .gh-viewer__discussion > .gh-discussion { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .gh-viewer__discussion .gh-discussion__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
.gh-viewer__discussion .gh-discussion__login-cta { flex: 0 0 auto; margin-top: auto; background: #06c755; border-color: #06c755; color: #fff; }
.app-shell.theme-v38 .app-topbar__search--desktop,
.app-shell.theme-v38 .app-topbar-search-row .app-topbar__search--mobile { display: flex !important; align-items: center; gap: 4px; }
.app-shell.theme-v38 .app-topbar__search input { flex: 1 1 0; min-width: 0; width: 0; padding-right: 8px; }
.app-shell.theme-v38 .app-topbar__search button[type="submit"] { position: static; transform: none; flex: 0 0 44px; }
.app-shell.theme-v38 .app-topbar__search-solo { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 8px; padding: 0 10px; font: inherit; cursor: pointer; background: var(--bg-elevated); color: var(--text-primary); }
.app-shell.theme-v38 .app-topbar__search-solo[aria-pressed="true"] { background: var(--chip-active-bg); color: var(--chip-active-text); }
@media (min-width: 1360px) {
 .app-shell.theme-v38 .app-topbar__search--desktop { position: relative; left: auto; transform: none; flex: 1 1 320px; min-width: 260px; max-width: 440px; margin-inline: auto; width: auto; }
}
@media (max-width: 1359px) { .app-shell.theme-v38 .app-topbar__search--desktop { display: none !important; } }
.gh-video-episodes__list { list-style: none; padding: 0; }
.gh-video-episodes__item { border-top: 1px solid var(--line); padding-block: 20px; }
#global-search-form > button[type="submit"],
#global-search-form-mobile > button[type="submit"] { position: static; inset: auto; transform: none; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
#gh-media-viewer .gh-viewer__player-mount,
#gh-media-viewer .gh-viewer__player-mount iframe,
.gh-video-episodes__player-mount:not([hidden]),
.gh-video-episodes__player-mount iframe { min-height: 200px; }

/* ≤767: row1 logo | desktop search (submit only, no 看影片) | login; row2 all pills incl. 看影片 */
@media (max-width: 767px) {
  .app-shell.theme-v38 { --header-h: 64px; --gh-search-row-h: 0px; }
  .theme-v38 .app-topbar {
    padding-inline: 8px;
    min-width: 0;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: var(--space-2);
  }

  .app-shell.theme-v38 .app-topbar__trailing {
    margin-left: auto;
    flex: 0 0 auto;
  }
  .app-shell.theme-v38 .app-topbar__auth { min-width: 44px; padding-inline: 8px; }

  .app-shell.theme-v38 .app-topbar__search--desktop {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: auto;
  }

  .app-shell.theme-v38 .app-topbar__search--desktop .app-topbar__search-solo {
    display: none !important;
  }

  .app-shell.theme-v38 .app-topbar-search-row,
  .app-shell.theme-v38 .app-topbar-search-row[hidden],
  .theme-v38 .app-topbar-search-row,
  .theme-v38 .app-topbar-search-row[hidden] {
    display: none !important;
  }

  .app-shell.theme-v38 .app-topbar__search--desktop input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    font-size: 16px;
    padding-right: 8px;
  }

  .app-shell.theme-v38 .app-topbar__search--desktop button[type="submit"] {
    position: static !important;
    transform: none !important;
    flex: 0 0 44px;
  }

  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
    flex: 0 0 auto !important;
    width: 90px !important;
    height: auto !important;
    max-width: 24vw !important;
  }

  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
    height: auto !important;
    max-height: 44px !important;
    width: 100%;
    max-width: 100%;
  }

  .theme-v38 .app-topbar__nav--desktop {
    display: none !important;
  }

  .theme-v38 .app-topbar-nav-row {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    order: 2;
    padding: 0 var(--space-2) var(--space-2);
    box-sizing: border-box;
  }

  .theme-v38 .app-topbar__nav--mobile {
    display: flex !important;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-1);
  }

  .theme-v38 .app-topbar__nav--mobile::-webkit-scrollbar {
    display: none;
  }

  .app-shell.theme-v38 .app-topbar__nav--mobile [data-gh-home-solo],
  .app-shell.theme-v38 .app-topbar__nav--mobile a.app-topbar__nav-route {
    min-height: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .theme-v38 .app-layout {
    order: 3;
  }
}

@media (max-width: 320px) {
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image {
    width: 72px !important;
    height: auto !important;
    max-width: 24vw !important;
  }

  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image .app-topbar__logo-img,
  .app-shell.theme-v38 a.app-topbar__logo.app-topbar__logo--brand-image img.app-topbar__logo-img {
    height: auto !important;
    max-height: 40px !important;
  }
}
/* css/editorial-v43-community.css */
/* v43: Threads-style discussion actions (scoped to viewer discussion) */
.gh-viewer__discussion .gh-discussion__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
}

.gh-viewer__discussion .gh-discussion__like {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0.85;
}

.gh-viewer__discussion .gh-discussion__like:hover {
  opacity: 1;
}

.gh-viewer__discussion .gh-discussion__like.is-liked,
.gh-viewer__discussion .gh-discussion__like.is-liked .gh-discussion__like-icon {
  color: #e0245e;
}

.gh-viewer__discussion .gh-discussion__like-icon {
  font-size: 0.95rem;
}

.gh-viewer__discussion .gh-discussion__like-count {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.gh-viewer__discussion .gh-discussion__replies-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gh-viewer__discussion .gh-discussion__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.gh-viewer__discussion .gh-discussion__new-notice {
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  background: transparent;
  cursor: pointer;
  opacity: 0.9;
}

.gh-viewer__discussion .gh-discussion__new-notice[hidden] {
  display: none !important;
}

.gh-viewer__discussion .gh-discussion__body {
  overflow-anchor: auto;
}
