@import url("../shared/tokens.css?v=i18n-4lang-b-20261018");

:root {
  --accent-fallback: #7e63f7;
  --card-radius: 20px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

body[data-theme="dark"] {
  --bg: #080b12;
  --surface: #111620;
  --surface-soft: #151b28;
  --surface-hover: #1b2231;
  --border: #293142;
  --border-soft: #202736;
  --text: #f5f6ff;
  --text-soft: #d4d9e8;
  --muted: #9da6ba;
  --muted-soft: #737e96;
  --accent: var(--palette-accent, var(--accent-fallback));
  --accent-strong: var(--palette-accent-strong, #5b45df);
  --accent-light: var(--palette-accent-light, #a57cff);
  --accent-bg: var(--palette-soft, #211b42);
  --shadow: 0 14px 32px rgba(0, 0, 0, .24);
  --hero-overlay: linear-gradient(135deg, rgba(11, 15, 30, .03), rgba(7, 9, 18, .72));
}

body[data-theme="light"] {
  --bg: #f5f6fa;
  --surface: #fff;
  --surface-soft: #fbfcff;
  --surface-hover: #f2efff;
  --border: #e2e5ee;
  --border-soft: #edf0f5;
  --text: #161b2a;
  --text-soft: #374052;
  --muted: #70798c;
  --muted-soft: #969dac;
  --accent: var(--palette-accent, #6250e9);
  --accent-strong: var(--palette-accent-strong, #4c3dcc);
  --accent-light: var(--palette-accent-light, #8668f4);
  --accent-bg: var(--palette-soft, #f0edff);
  --shadow: 0 14px 32px rgba(42, 48, 95, .08);
  --hero-overlay: linear-gradient(135deg, rgba(32, 41, 76, .02), rgba(10, 14, 28, .58));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #080b12; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.45; transition: color .2s ease, background .2s ease; }
button, input { font: inherit; }
button { cursor: pointer; }
button, input { outline-color: var(--accent); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.page-shell { min-height: 100vh; background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 40; height: 54px; border-bottom: 1px solid var(--border-soft); background: rgba(8, 11, 18, .9); backdrop-filter: blur(18px); }
body[data-theme="light"] .topbar { background: rgba(255, 255, 255, .94); }
.topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, .82fr) auto; align-items: center; gap: clamp(12px, 1.7vw, 24px); width: var(--header-width); height: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: max-content; color: var(--text); white-space: nowrap; overflow: visible; }
.brand:hover { color: var(--accent-light); }
.brand strong { flex: 0 0 auto; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 auto; width: 25px; height: 25px; }
.brand-mark::before, .brand-mark::after, .brand-mark i, .brand-mark b { position: absolute; display: block; content: ""; border-radius: 4px; transform: skew(-17deg); }
.brand-mark::before { top: 1px; left: 3px; width: 8px; height: 8px; background: #8065f7; }
.brand-mark::after { top: 1px; left: 14px; width: 8px; height: 8px; background: #4d78f3; }
.brand-mark i { top: 11px; left: 3px; width: 8px; height: 12px; background: #5368f5; }
.brand-mark b { top: 11px; left: 14px; width: 8px; height: 8px; background: #9968f7; }
.top-nav { display: flex; align-items: center; gap: clamp(8px, 1.1vw, 16px); min-width: 0; overflow: visible; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 54px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active, .nav-flyout[open] > .nav-link { color: var(--text); }
.nav-link.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; border-radius: 2px; background: var(--accent-light); }
.nav-flyout { position: relative; flex: 0 0 auto; }
.nav-flyout > summary { list-style: none; cursor: pointer; }
.nav-flyout > summary::-webkit-details-marker { display: none; }
.nav-flyout > summary.nav-link::after { margin-left: 4px; color: var(--muted-soft); content: "⌄"; font-size: 11px; }
.nav-flyout-menu { position: absolute; z-index: 50; top: calc(100% - 6px); left: 0; display: grid; min-width: 168px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.nav-flyout-menu a { display: flex; align-items: center; min-height: 34px; padding: 0 10px; color: var(--text-soft); border-radius: 8px; font-size: 12px; font-weight: 680; white-space: nowrap; }
.nav-flyout-menu a:hover, .nav-flyout-menu a.is-active { color: var(--text); background: var(--accent-bg); }
.top-search { display: flex; align-items: center; min-width: 0; height: 30px; padding: 0 8px 0 11px; color: var(--muted-soft); border: 1px solid var(--border); border-radius: 9px; background: rgba(15, 19, 29, .78); }
body[data-theme="light"] .top-search { background: var(--surface-soft); }
.top-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.top-search > .icon { flex: 0 0 auto; width: 14px; height: 14px; margin-right: 7px; }
.top-search input { width: 100%; min-width: 0; height: 100%; padding: 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 13px; }
.top-search input::placeholder { color: var(--muted-soft); }
.search-shortcut { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 18px; height: 17px; color: var(--muted-soft); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.top-search-toggle { display: none; }
.mobile-search-link { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.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; }
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch select { height: 27px; max-width: 108px; padding: 0 6px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.lang-switch select:hover, .lang-switch select:focus { color: var(--text); border-color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 27px; padding: 0; color: var(--muted); border: 0; background: transparent; }
.theme-toggle:hover { color: var(--accent-light); }
.theme-toggle-icon { font-size: 21px; line-height: 1; }
.theme-toggle span:last-child { display: none; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; color: #fff; border-radius: 8px; background: linear-gradient(115deg, var(--accent-strong), var(--accent)); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 25%, transparent); font-size: 13px; font-weight: 750; white-space: nowrap; }
.auth-button:hover { color: #fff; filter: brightness(1.1); }
.mobile-menu { display: none; }

.home-main { width: var(--site-width); margin: 0 auto; padding: 17px 0 34px; }

.home-theme-bar {
  position: sticky;
  z-index: 34;
  top: 54px;
  margin-top: 22px;
  padding: 10px 12px 12px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
}
.home-theme-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.home-theme-bar-head strong { color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.home-theme-bar-head span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-theme-bar-row { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 8px; }
.home-theme-chips { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.home-theme-chips::-webkit-scrollbar { display: none; }
.home-theme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: var(--text-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 999px;
  background: var(--accent-bg);
  font-size: 12px;
  font-weight: 740;
  white-space: nowrap;
}
.home-theme-chip:hover { color: var(--text); border-color: var(--accent); }
a.home-theme-chip { text-decoration: none; color: inherit; }
body[data-theme="dark"] .home-theme-chip,
body[data-theme="dark"] .home-theme-chip:hover {
  color: #1c1633;
  background: #f0edff;
  border-color: color-mix(in srgb, var(--accent) 42%, #d9d0f8);
}
.home-theme-picker { position: relative; flex: 0 0 auto; }
.home-theme-picker > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(115deg, var(--accent-strong), var(--accent));
  font-size: 12px;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.home-theme-picker > summary::-webkit-details-marker { display: none; }
.home-theme-picker-panel {
  position: absolute;
  z-index: 46;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 48px));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.home-theme-group strong { display: block; margin-bottom: 8px; color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.home-theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.home-theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}
.home-theme-option:has(input:checked) {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: var(--accent-bg);
}
body[data-theme="dark"] .home-theme-picker-panel .home-theme-option:has(input:checked) {
  color: #f5f6ff;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 36%, #14101f);
}
body[data-theme="dark"] .home-theme-picker-panel .home-theme-option:has(input:checked) span {
  color: #f5f6ff;
}
.home-theme-option input { width: 14px; height: 14px; accent-color: var(--accent); }
.home-theme-reset {
  justify-self: end;
  min-height: 32px;
  padding: 0 12px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 740;
}
.home-theme-reset:hover { color: var(--text); border-color: var(--accent); }
.hero-section { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; min-height: 0; overflow: hidden; padding: 9px; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(circle at 59% 26%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 27%), linear-gradient(120deg, rgba(17, 22, 32, .96), rgba(9, 13, 22, .86)); box-shadow: var(--shadow); }
body[data-theme="light"] .hero-section { border-color: #dcd8f6; background: linear-gradient(120deg, #fff, #f3f1ff 58%, #f7f8ff); box-shadow: 0 18px 38px rgba(78, 67, 157, .1); }
.hero-copy { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 17px 17px 17px 21px; }
.hero-kicker { margin: 0 0 10px; color: var(--accent-light); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.hero-copy h1 { margin: 0; color: var(--text); font-size: clamp(22px, 3.4vw, 44px); font-weight: 850; line-height: 1.22; letter-spacing: -.02em; overflow-wrap: break-word; word-break: keep-all; }
.hero-copy h1 em { color: var(--accent-light); background: linear-gradient(100deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; background-clip: text; font-style: normal; -webkit-text-fill-color: transparent; }
.hero-lede { margin: 10px 0 0; color: var(--accent-light); font-size: 16px; font-weight: 750; }
.hero-description { max-width: 370px; margin: 9px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 750; }
.primary-button { color: #fff; background: linear-gradient(115deg, var(--accent-strong), var(--accent)); box-shadow: 0 7px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.primary-button:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.secondary-button { color: var(--text-soft); border: 1px solid var(--border); background: var(--surface-soft); }
.secondary-button:hover { color: var(--text); border-color: var(--accent); }
.secondary-button .icon { width: 12px; height: 12px; }
.hero-boundary { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-inventory-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hero-inventory-summary strong { color: var(--accent-light); font-size: 16px; font-variant-numeric: tabular-nums; }
.hero-inventory-summary a { color: var(--text-soft); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-light) 55%, transparent); text-underline-offset: 3px; }
.hero-inventory-summary a:hover { color: var(--accent-light); }
.hero-remix-publication { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-remix-publication strong { color: var(--text); font-variant-numeric: tabular-nums; }

.hero-feature { position: relative; z-index: 1; display: block; min-width: 0; overflow: hidden; }
.hero-feature.is-cinematic { display: flex; isolation: isolate; flex-direction: column; gap: 10px; justify-content: flex-start; background: transparent; }
.hero-feature.is-pending { border: 1px dashed var(--border); border-radius: 13px; padding: 12px; }
.hero-reel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; overflow: hidden; }
.hero-feature-label { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 4px 8px; color: #fff; border-radius: 6px; background: var(--accent); font-size: 12px; font-weight: 750; white-space: nowrap; }
.hero-reel-controls { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.hero-reel-controls[hidden] { display: none; }
.hero-reel-prev,
.hero-reel-next { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); font-size: 18px; line-height: 1; }
.hero-reel-prev:hover,
.hero-reel-next:hover { border-color: var(--accent); color: var(--text); }
.hero-reel-dots { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; min-width: 0; overflow: hidden; list-style: none; }
.hero-reel-dots button { display: block; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.hero-reel-dots button.is-active, .hero-reel-dots button.is-peer { width: 18px; background: var(--accent-light); }
.hero-reel-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; min-height: 0; background: transparent; }
.hero-reel-slide { display: none; min-width: 0; flex-direction: column; gap: 8px; }
.hero-reel-slide.is-active, .hero-reel-slide.is-peer { display: flex; }
.hero-slide-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid color-mix(in srgb, var(--accent-light) 38%, var(--border)); border-radius: 13px; background: #05070c; box-shadow: 0 16px 27px rgba(0, 0, 0, .23); }
.hero-slide-media:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.hero-feature-art { position: relative; display: block; height: 100%; min-height: 0; overflow: hidden; background: #05070c; }
.hero-feature-art::before { position: absolute; inset: 0; z-index: 2; content: ""; background: linear-gradient(to bottom, rgba(0, 0, 0, .22), transparent 28%); pointer-events: none; }
.hero-feature.is-cinematic .hero-feature-art .live-media { filter: contrast(1.1) saturate(1.06) brightness(.94); }
.hero-slide-info { min-width: 0; padding: 0 2px 2px; }
.hero-slide-title { display: block; min-width: 0; color: var(--text); }
.hero-slide-title strong { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 750; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-slide-kicker { display: block; margin-top: 4px; color: var(--accent-light); font-size: 11px; }
.hero-slide-prompt { display: -webkit-box; min-width: 0; margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hero-slide-prompt b { display: block; margin-bottom: 2px; color: var(--accent-light); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .hero-reel-slide { transition: none; }
}
@media (max-width: 1079px) {
  .hero-reel-stage { grid-template-columns: 1fr; }
}

.global-hot-panel { min-width: 0; padding: 12px 11px 9px; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: rgba(12, 17, 28, .72); }
body[data-theme="light"] .global-hot-panel { background: rgba(255, 255, 255, .72); }
.global-hot-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.global-hot-heading h2 { margin: 0; color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.35; }
.global-hot-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.global-hot-heading p strong { color: var(--accent-light); font-weight: 700; }
.hot-badge { flex: 0 0 auto; padding: 3px 5px; color: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 5px; background: var(--accent-bg); font-size: 11px; font-weight: 700; white-space: nowrap; }
.global-hot-list { display: grid; row-gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.global-hot-list li { min-width: 0; min-height: 58px; border-bottom: 1px solid var(--border-soft); }
.global-hot-list li:last-child { border-bottom: 0; }
.catalog-empty { display: grid; min-height: 58px; place-items: center start; color: var(--muted); font-size: 12px; }
.hot-item-link { display: grid; grid-template-columns: 25px 76px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 2px; width: 100%; min-height: 58px; color: var(--text-soft); font-size: 13px; }
.hot-item-link:hover { color: var(--text); }
.hot-item-link > b { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #f8f8ff; border-radius: 5px; background: #313b4e; font-size: 13px; }
.global-hot-list li:nth-child(1) .hot-item-link > b { background: #d79d29; }.global-hot-list li:nth-child(2) .hot-item-link > b { background: #8b9bab; }.global-hot-list li:nth-child(3) .hot-item-link > b { background: #a36c4c; }
.hot-title { grid-column: 3; grid-row: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.hot-item-link > strong { grid-column: 3; grid-row: 2; align-self: start; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.global-hot-list li:nth-child(n+6) { display: none; }

.hot-thumb, .rank-thumb { display: block; position: relative; overflow: hidden; background: #0f141f; }
.hot-thumb { grid-row: 1 / span 2; width: 76px; height: 48px; border-radius: 6px; }
.rank-thumb { width: 152px; height: 96px; border-radius: 6px; }
.hero-feature-art.is-live, .hot-thumb.is-live, .rank-thumb.is-live, .prompt-media-art.is-live { background-image: none; }
.prompt-media-art.is-empty-video,
.hero-feature-art.is-empty-video { background: #0f141f; }
.hero-feature-art.is-pending { background: #121826; }
.hero-feature-art.is-pending::after { opacity: .06; }
.hero-feature-art .live-media, .prompt-media-art.is-live img, .prompt-media-art.is-live video, .hot-thumb.is-live img, .rank-thumb.is-live img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-feature-art .live-media, .prompt-media-art.is-live video { z-index: 1; }
.hero-video-play { position: absolute; z-index: 6; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(8, 12, 22, .62); box-shadow: 0 7px 18px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); cursor: pointer; }
.hero-video-play .icon { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.hero-feature.is-playing .hero-video-play,
.hero-reel-slide.is-playing .hero-video-play { opacity: 0; pointer-events: none; }
.card-video-sound { position: absolute; z-index: 8; top: 10px; right: 10px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; color: #fff; border: 1px solid rgba(255, 255, 255, .86); border-radius: 999px; background: rgba(8, 12, 22, .78); box-shadow: 0 4px 12px rgba(0, 0, 0, .22); font-size: 12px; font-weight: 750; line-height: 1; cursor: pointer; }
.card-video-sound[hidden] { display: none !important; }
.prompt-card[data-media-kind="gallery"] .prompt-media-art.is-live img { object-fit: contain; }

.quick-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 10px; padding: 5px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.quick-item { display: grid; grid-template-columns: 29px minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: center; column-gap: 7px; min-width: 0; min-height: 70px; padding: 8px 9px; color: var(--text-soft); border: 1px solid transparent; border-radius: 10px; }
.quick-item:hover, .quick-item.is-active { color: var(--text); border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: var(--accent-bg); }
.quick-icon { display: inline-flex; grid-row: span 2; align-items: center; justify-content: center; width: 29px; height: 29px; color: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent-bg) 85%, transparent); font-size: 17px; font-weight: 800; }
.quick-item strong, .quick-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-item strong { align-self: end; font-size: 13px; }
.quick-item small { align-self: start; margin-top: 2px; color: var(--muted); font-size: 11px; }

.category-jump-nav { position: sticky; z-index: 35; top: 54px; display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; min-height: 48px; margin-top: 12px; padding: 6px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); backdrop-filter: blur(18px); }
.category-jump-track { display: flex; align-items: center; gap: 5px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.category-jump-track::-webkit-scrollbar { display: none; }
.category-jump-track > a, .category-jump-more > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 11px; color: var(--text-soft); border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 760; white-space: nowrap; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.category-jump-track > a:hover, .category-jump-track > a.is-active, .category-jump-more > summary:hover, .category-jump-more[open] > summary { color: var(--text); border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: var(--accent-bg); }
.category-jump-more { flex: 0 0 auto; }
.category-jump-more > summary { cursor: pointer; list-style: none; }
.category-jump-more > summary::-webkit-details-marker { display: none; }
.category-jump-more > summary span { margin-left: 5px; color: var(--accent-light); }
.category-jump-menu { position: fixed; z-index: 55; top: 110px; right: var(--page-inset); display: grid; grid-template-columns: repeat(3, minmax(112px, 1fr)); gap: 5px; width: min(440px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.category-jump-menu a { display: flex; align-items: center; min-height: 34px; padding: 0 10px; color: var(--text-soft); border-radius: 8px; font-size: 12px; font-weight: 680; }
.category-jump-menu a:hover, .category-jump-menu a.is-active { color: var(--text); background: var(--accent-bg); }
.category-mix-status { flex: 0 0 auto; padding: 0 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.category-mix-status.is-target { color: var(--accent-light); }

.catalog-inventory-section { margin-top: 18px; padding: 17px; scroll-margin-top: 118px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.catalog-inventory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.catalog-inventory-heading > div:first-child { min-width: 0; }
.catalog-inventory-heading h2 { margin: 3px 0 0; color: var(--text); font-size: 25px; font-weight: 820; letter-spacing: -.045em; }
.catalog-inventory-heading h2 strong { color: var(--accent-light); font-variant-numeric: tabular-nums; }
.catalog-inventory-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.catalog-inventory-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.catalog-inventory-stat { display: grid; gap: 3px; min-width: 0; padding: 12px 13px; color: var(--text-soft); border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-soft); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.catalog-inventory-stat:hover, .catalog-inventory-stat:focus-visible { color: var(--text); border-color: color-mix(in srgb, var(--accent) 46%, transparent); background: var(--accent-bg); transform: translateY(-1px); }
.catalog-inventory-stat span { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.catalog-inventory-stat strong { color: var(--text); font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.catalog-inventory-stat small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-inventory-filter-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.catalog-inventory-filter-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface-soft) 68%, transparent); font-size: 11px; font-weight: 760; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.catalog-inventory-filter-links a:hover, .catalog-inventory-filter-links a:focus-visible { color: var(--text); border-color: color-mix(in srgb, var(--accent) 46%, transparent); background: var(--accent-bg); }
.catalog-inventory-filter-links a span { color: var(--accent-light); font-variant-numeric: tabular-nums; }
.catalog-inventory-filter-links .icon { width: 13px; height: 13px; }
.catalog-inventory-details { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.catalog-inventory-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; color: var(--text); cursor: pointer; list-style: none; }
.catalog-inventory-details > summary::-webkit-details-marker { display: none; }
.catalog-inventory-details > summary > span { display: grid; gap: 3px; min-width: 0; }
.catalog-inventory-details > summary strong { font-size: 13px; font-weight: 820; }
.catalog-inventory-details > summary small { color: var(--muted); font-size: 10px; }
.catalog-inventory-details > summary > b { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; color: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 7px; font-size: 16px; line-height: 1; transition: transform .16s ease, background .16s ease; }
.catalog-inventory-details > summary:hover, .catalog-inventory-details > summary:focus-visible { background: var(--accent-bg); }
.catalog-inventory-details > summary:hover > b, .catalog-inventory-details > summary:focus-visible > b { background: color-mix(in srgb, var(--accent-bg) 75%, transparent); }
.catalog-inventory-details[open] > summary { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent-bg) 42%, var(--surface-soft)); }
.catalog-inventory-details[open] > summary > b { transform: rotate(180deg); }
.catalog-inventory-table-wrap { overflow-x: auto; }
.catalog-inventory-details .catalog-inventory-table-wrap { border: 0; border-radius: 0; }
.catalog-inventory-table { width: 100%; min-width: 1,000px; border-collapse: collapse; table-layout: fixed; color: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-inventory-table caption { padding: 11px 13px; color: var(--text); background: var(--surface-soft); font-size: 13px; font-weight: 800; text-align: left; }
.catalog-inventory-table .inventory-col-zone { width: 62px; }
.catalog-inventory-table .inventory-col-category { width: 210px; }
.catalog-inventory-table thead { color: var(--muted); background: var(--surface-soft); }
.catalog-inventory-table th, .catalog-inventory-table td { padding: 9px 10px; border-top: 1px solid var(--border-soft); }
.catalog-inventory-table thead th { border-top: 0; font-size: 11px; font-weight: 750; text-align: center; white-space: nowrap; }
.catalog-inventory-table thead th:nth-child(-n + 2) { text-align: left; }
.catalog-inventory-table tbody th { color: var(--muted); font-weight: 650; text-align: left; white-space: nowrap; }
.catalog-inventory-table tbody th:nth-child(2) { color: var(--text-soft); font-weight: 700; }
.catalog-inventory-table tbody td, .catalog-inventory-table tfoot td { color: var(--text); text-align: center; }
.catalog-inventory-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-soft) 52%, transparent); }
.catalog-inventory-table tbody tr:hover { background: var(--accent-bg); }
.catalog-inventory-table tbody tr.inventory-zone-break th, .catalog-inventory-table tbody tr.inventory-zone-break td { border-top-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
.catalog-inventory-table tfoot { background: var(--accent-bg); }
.catalog-inventory-table tfoot th { color: var(--text); font-weight: 850; text-align: left; }
.catalog-inventory-table tfoot td { color: var(--text); font-weight: 850; }
.catalog-inventory-note { margin: 11px 13px 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.catalog-inventory-note strong { color: var(--text-soft); font-weight: 750; }

.category-section { margin-top: 30px; scroll-margin-top: 118px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.category-heading > div { display: grid; grid-template-columns: 36px minmax(0, auto); align-items: center; column-gap: 9px; min-width: 0; }
.category-icon { display: inline-flex; grid-row: span 2; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 10px; background: var(--accent-bg); font-size: 21px; font-weight: 800; }
.category-icon.is-video { color: #f5c25a; border-color: rgba(245, 194, 90, .28); background: rgba(245, 194, 90, .1); }
.category-icon.is-series { color: #55d2c5; border-color: rgba(85, 210, 197, .28); background: rgba(85, 210, 197, .1); }
.category-icon.is-trend { color: #ffb85c; border-color: rgba(255, 184, 92, .28); background: rgba(255, 184, 92, .1); }
.category-heading h2 { display: inline; min-width: 0; margin: 0; color: var(--text); font-size: 24px; font-weight: 820; letter-spacing: -.04em; }
.category-heading h2 small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.category-heading p { grid-column: 2; overflow: hidden; margin: 2px 0 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-heading > a { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--accent-light); font-size: 13px; font-weight: 750; }
.category-heading > a:hover { color: var(--text); }
.category-heading > a .icon { width: 15px; height: 15px; }
.module-status { flex: 0 0 auto; max-width: 250px; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: right; }
.module-status.is-live { color: var(--accent-light); }
.plaza-channel { margin-top: 52px; }
#category-image > .picture-format-heading { margin-top: 34px; }
.channel-heading { padding: 0 0 17px; border-bottom: 1px solid var(--border); }
.subcategory-stack { display: grid; gap: 38px; min-width: 0; margin-top: 26px; }
.subcategory-section { min-width: 0; scroll-margin-top: 118px; }
.subcategory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; min-width: 0; }
.subcategory-heading > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; column-gap: 12px; min-width: 0; flex: 1 1 auto; }
.subcategory-heading > div > span { grid-column: 1 / -1; display: block; margin-bottom: 3px; color: var(--accent-light); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.subcategory-heading h3 { margin: 0; color: var(--text); font-size: 20px; font-weight: 820; letter-spacing: -.035em; }
.subcategory-heading p { min-width: 0; max-width: none; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.subcategory-heading > a { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--accent-light); font-size: 12px; font-weight: 750; white-space: nowrap; }
.subcategory-heading > a:hover { color: var(--text); }
.subcategory-heading > a .icon { width: 14px; height: 14px; }
.other-ratio-preview { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.other-ratio-groups { display: grid; gap: 28px; margin-top: 22px; }
.other-ratio-group { min-width: 0; }
.other-ratio-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.other-ratio-heading strong { color: var(--text); font-size: 14px; font-weight: 800; }
.other-ratio-heading span { color: var(--muted); font-size: 11px; }
.other-ratio-grid { display: grid; grid-template-columns: repeat(var(--other-ratio-columns, 4), minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.other-ratio-card { min-width: 0; }
.other-ratio-media { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1; min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--border) 72%, transparent); border-radius: 10px; background: var(--surface-soft); }
.other-ratio-group--wide .other-ratio-media { aspect-ratio: 21 / 9; }
.other-ratio-art { display: block; flex: 0 0 auto; max-width: 100%; max-height: 100%; background: #0f141f; box-shadow: 0 5px 14px rgba(0, 0, 0, .14); }
.other-ratio-art[data-ratio-shape="portrait"] { width: auto; height: 90%; }
.other-ratio-art[data-ratio-shape="square"] { width: 86%; height: auto; }
.other-ratio-art[data-ratio-shape="landscape"] { width: 94%; height: auto; }
.other-ratio-art[data-ratio-shape="wide"] { width: 100%; height: auto; }
.other-ratio-label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; margin-top: 6px; }
.other-ratio-label strong { color: var(--text); font-size: 11px; font-weight: 800; }
.other-ratio-label span { color: var(--muted); font-size: 9px; }
.prompt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
#category-trends .prompt-grid.trend-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prompt-grid.orientation-groups { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.orientation-group { min-width: 0; }
.orientation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 0 0 9px; }
.orientation-heading strong { color: var(--text-soft); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.orientation-heading span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.orientation-grid { margin-top: 0; }
.orientation-grid.orientation-grid--landscape { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orientation-grid.orientation-grid--portrait { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.orientation-grid.orientation-grid--other,
.orientation-grid.orientation-grid--square { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orientation-grid.orientation-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.prompt-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; color: var(--text-soft); border: 1px solid color-mix(in srgb, var(--border) 72%, transparent); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.prompt-card:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--border)); box-shadow: 0 8px 16px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.prompt-card-main { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; }
.prompt-card-title:focus-visible, .prompt-card-detail-link:focus-visible, .ranking-item-link:focus-visible, .hot-item-link:focus-visible, .prompt-card-play:focus-visible { position: relative; z-index: 4; outline: 2px solid var(--accent-light); outline-offset: 2px; }
.prompt-card-media { position: relative; display: block; flex: 0 0 auto; width: calc(100% - 16px); aspect-ratio: 16 / 9; min-width: 0; margin: 8px 8px 0; overflow: hidden; border-radius: 14px; background: var(--surface-soft); }
.prompt-card-media, .prompt-card-media img, .prompt-card-media video { cursor: pointer; }
.prompt-card-play { position: absolute; z-index: 5; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, .86); border-radius: 50%; background: rgba(8, 12, 22, .62); box-shadow: 0 4px 12px rgba(0, 0, 0, .22); transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.prompt-card-play .icon { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; stroke: none; }
.prompt-card.is-playing .prompt-card-play { opacity: 0; pointer-events: none; }
.prompt-card-media .card-video-sound { top: 10px; right: 10px; bottom: auto; }
.prompt-media-art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #0f141f; }
.prompt-media-art.is-empty { background: #0f141f; }
.prompt-media-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 43%, rgba(5, 8, 15, .72)); pointer-events: none; }
.prompt-card[data-media-kind="gallery"] .prompt-card-media::before, .prompt-card[data-media-kind="gallery"] .prompt-card-media::after { position: absolute; z-index: 0; top: 5px; right: 5px; bottom: 5px; left: 5px; content: ""; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(25, 31, 49, .55); transform: translate(5px, -5px); }
.prompt-card[data-media-kind="gallery"] .prompt-card-media::after { transform: translate(9px, -9px); opacity: .55; }
.prompt-card[data-media-kind="gallery"] .prompt-media-art { z-index: 1; }
.prompt-tags { position: absolute; z-index: 3; right: 10px; bottom: 10px; left: 10px; display: flex; gap: 4px; }
.prompt-tags i { padding: 3px 5px; color: #fff; border-radius: 5px; background: rgba(10, 14, 25, .66); font-size: 11px; font-style: normal; }
.prompt-type, .prompt-media-count { position: absolute; z-index: 3; top: 10px; padding: 4px 6px; color: #fff; border-radius: 6px; background: rgba(10, 14, 25, .75); font-size: 11px; font-weight: 750; }
.prompt-type { left: 10px; }
.prompt-media-count { right: 10px; }
.prompt-type:empty, .prompt-card:not([data-media-kind="gallery"]) .prompt-media-count { display: none; }
.prompt-card-info { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; padding: 11px 12px 9px; user-select: text; }
.prompt-card-title { display: block; min-width: 0; color: inherit; text-decoration: none; }
.prompt-card-info strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 750; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.prompt-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.prompt-card-author { min-width: 0; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-card-date { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prompt-card[data-cover-missing="1"] { display: none !important; }
.prompt-preview-label { display: block; margin-top: 7px; color: var(--accent-light); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prompt-preview { display: -webkit-box; min-width: 0; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.48; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.prompt-preview.is-unavailable { color: var(--muted-soft); font-style: italic; }
.prompt-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.prompt-card-actions a,
.prompt-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}
.prompt-card-actions a { color: var(--accent-light); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.prompt-card-detail-link { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 5px; color: var(--accent-light); font-size: 10px; font-weight: 750; text-decoration: none; }
.prompt-card-detail-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* Media on top, title and Prompt below. */
.prompt-card[data-orientation="landscape"],
.prompt-card[data-orientation="wide"],
.prompt-card[data-orientation="portrait"],
.prompt-card[data-orientation="other"],
.prompt-card[data-orientation="square"] { position: relative; aspect-ratio: auto; }
.prompt-card[data-orientation="landscape"] .prompt-card-main,
.prompt-card[data-orientation="wide"] .prompt-card-main,
.prompt-card[data-orientation="portrait"] .prompt-card-main,
.prompt-card[data-orientation="other"] .prompt-card-main,
.prompt-card[data-orientation="square"] .prompt-card-main { display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow: visible; }
.prompt-card[data-orientation="landscape"] .prompt-card-media { width: 100%; aspect-ratio: 16 / 9; margin: 0; }
.prompt-card[data-orientation="wide"] .prompt-card-media { width: 100%; aspect-ratio: 21 / 9; margin: 0; }
.prompt-card[data-orientation="portrait"] .prompt-card-media { width: 100%; height: auto; aspect-ratio: 9 / 16; margin: 0; }
.prompt-card[data-orientation="other"] .prompt-card-media,
.prompt-card[data-orientation="square"] .prompt-card-media { width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; background: #0f141f; }
.prompt-card[data-orientation="landscape"] .prompt-card-info,
.prompt-card[data-orientation="wide"] .prompt-card-info,
.prompt-card[data-orientation="portrait"] .prompt-card-info,
.prompt-card[data-orientation="other"] .prompt-card-info,
.prompt-card[data-orientation="square"] .prompt-card-info { width: 100%; flex: 1 1 auto; height: auto; min-height: 0; margin: 0; padding: 0 2px 4px; }
.prompt-card[data-orientation="wide"] .prompt-card-media,
.prompt-card[data-orientation="other"] .prompt-card-media,
.prompt-card[data-orientation="square"] .prompt-card-media { background: #0f141f; }
.prompt-card[data-orientation="wide"] .prompt-media-art::after,
.prompt-card[data-orientation="other"] .prompt-media-art::after,
.prompt-card[data-orientation="square"] .prompt-media-art::after { display: none; }
.prompt-card[data-orientation="wide"] .prompt-media-art.is-live img,
.prompt-card[data-orientation="wide"] .prompt-media-art.is-live video,
.prompt-card[data-orientation="other"] .prompt-media-art.is-live img,
.prompt-card[data-orientation="other"] .prompt-media-art.is-live video,
.prompt-card[data-orientation="square"] .prompt-media-art.is-live img,
.prompt-card[data-orientation="square"] .prompt-media-art.is-live video { object-fit: contain; object-position: center; background: #0f141f; }

.prompt-card.is-skeleton { min-height: 220px; pointer-events: none; box-shadow: none; }
.prompt-card.is-skeleton::before { display: block; width: 100%; aspect-ratio: 16 / 9; content: ""; background: linear-gradient(90deg, #141a26 0%, #1d2433 45%, #141a26 100%); background-size: 200% 100%; animation: prompt-skeleton 1.2s ease-in-out infinite; }
.home-main[data-catalog="live"] .prompt-card.is-skeleton,
.home-main[data-catalog="fallback"] .prompt-card.is-skeleton { display: none !important; }
.prompt-media-art.is-empty-video,
.hero-feature-art.is-empty-video { display: none !important; }
@keyframes prompt-skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.ranking-section[hidden],
.ranking-section[hidden] *,
a[href="#homepage-rankings"],
a[href$="home/index.html#homepage-rankings"],
a[href*="#homepage-rankings"] { display: none !important; }
.ranking-section { margin-top: 38px; scroll-margin-top: 68px; }
.ranking-heading { align-items: end; }
.ranking-heading > div { min-width: 0; }
.section-eyebrow { display: block; color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.ranking-heading h2 { margin: 3px 0 0; color: var(--text); font-size: 29px; letter-spacing: -.05em; }
.ranking-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.ranking-heading p strong { color: var(--accent-light); font-weight: 700; }
.ranking-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ranking-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.ranking-card { min-width: 0; padding: 12px 12px 9px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.ranking-card h3 { margin: 0 0 7px; color: var(--text); font-size: 16px; font-weight: 800; }
.ranking-card ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.ranking-card li { min-width: 0; min-height: 106px; border-bottom: 1px solid var(--border-soft); }
.ranking-card li:last-child { border-bottom: 0; }
.ranking-item-link { display: grid; grid-template-columns: 25px 152px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 2px; min-width: 0; min-height: 106px; color: var(--text-soft); font-size: 12px; }
.ranking-item-link:hover { color: var(--text); }
.ranking-item-link > b { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--text-soft); border-radius: 5px; background: var(--surface-soft); font-size: 13px; }
.ranking-card li:nth-child(1) .ranking-item-link > b { color: #1d1710; background: #f1bd48; }.ranking-card li:nth-child(2) .ranking-item-link > b { color: #1b2533; background: #b9c5d2; }.ranking-card li:nth-child(3) .ranking-item-link > b { color: #321b14; background: #d18b66; }
.ranking-item-link > span:nth-of-type(2) { grid-column: 3; grid-row: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.ranking-item-link > strong { grid-column: 3; grid-row: 2; align-self: start; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }

.membership-strip { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 72px; margin-top: 28px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border)); border-radius: 16px; background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 19%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--surface)) 65%, var(--surface)); box-shadow: var(--shadow); }
.membership-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #f1ddff; border: 1px solid var(--accent-light); border-radius: 10px; background: linear-gradient(140deg, var(--accent), var(--accent-strong)); }
.membership-icon .icon { width: 19px; height: 19px; }
.membership-strip strong, .membership-strip small { display: block; }
.membership-strip strong { color: var(--text); font-size: 16px; }
.membership-strip > span:nth-child(2) small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.membership-strip > a { display: inline-flex; align-items: center; justify-content: center; min-width: 145px; height: 39px; padding: 0 10px; color: #fff; border-radius: 8px; background: linear-gradient(115deg, var(--accent-strong), var(--accent)); font-size: 13px; font-weight: 750; }
.login-note { color: var(--muted); font-size: 12px; white-space: nowrap; }

.site-footer { position: relative; display: grid; grid-template-columns: minmax(205px, 1.7fr) repeat(3, minmax(90px, .75fr)) minmax(105px, .8fr); gap: 32px; width: var(--site-width); min-height: 230px; margin: 0 auto; padding: 36px 0 54px; color: var(--muted); border-top: 1px solid var(--border-soft); }
.footer-brand { display: flex; gap: 12px; min-width: 0; }
.footer-brand .brand-mark { width: 23px; height: 23px; }
.footer-brand strong { display: block; color: var(--text); font-size: 15px; }
.footer-brand small { display: block; max-width: 300px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.footer-column { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.footer-column b, .footer-social b { margin-bottom: 7px; color: var(--text); font-size: 13px; }
.footer-column a { color: var(--muted); font-size: 13px; line-height: 1.65; }
.footer-column a:hover { color: var(--accent-light); }
.footer-social { display: flex; flex-direction: column; gap: 14px; }
.footer-social span { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--text-soft); border: 0; border-radius: 50%; background: var(--surface-soft); font-size: 15px; }
.footer-social button:hover { color: var(--accent-light); background: var(--accent-bg); }
.copyright { position: absolute; bottom: 18px; left: 0; color: var(--muted-soft); font-size: 11px; }
.media-lightbox { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-columns: minmax(40px, 1fr) minmax(0, 1100px) minmax(40px, 1fr); align-items: center; gap: 12px; padding: 32px; background: rgba(4, 7, 14, .9); backdrop-filter: blur(12px); }
.media-lightbox[hidden] { display: none; }
.lightbox-content { display: grid; min-width: 0; min-height: 0; max-height: calc(100vh - 48px); gap: 14px; justify-items: center; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; width: min(100%, 96vw); max-height: min(86vh, 960px); min-height: 0; overflow: hidden; background: #05070c; }
.lightbox-stage img, .lightbox-stage .prompt-media-art { display: block; width: auto; height: auto; max-width: 100%; max-height: min(86vh, 960px); object-fit: contain; object-position: center; }
.lightbox-stage .prompt-media-art { background: #05070c; background-size: contain; background-repeat: no-repeat; background-position: center; }
.lightbox-caption { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; max-width: 100%; color: #fff; }
.lightbox-caption strong { max-width: min(70vw, 720px); overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-caption a { flex: 0 0 auto; color: #bcb5ff; font-size: 12px; font-weight: 750; text-decoration: none; }
.lightbox-caption a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lightbox-close, .lightbox-arrow { display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(8, 12, 22, .68); cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; font-size: 28px; line-height: 1; }
.lightbox-arrow { width: 42px; height: 42px; font-size: 35px; line-height: 1; }
.lightbox-close:hover, .lightbox-arrow:hover, .lightbox-close:focus-visible, .lightbox-arrow:focus-visible { border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .16); outline: none; }
.toast { position: fixed; z-index: 60; right: 50%; bottom: 23px; padding: 9px 13px; color: #fff; border-radius: 8px; background: rgba(17, 21, 33, .94); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

body[data-theme="light"] .hero-copy h1,
body[data-theme="light"] .category-heading h2,
body[data-theme="light"] .subcategory-heading h3,
body[data-theme="light"] .ranking-heading h2 { color: #20243a; }
body[data-theme="light"] .global-hot-panel,
body[data-theme="light"] .quick-rail,
body[data-theme="light"] .category-jump-nav,
body[data-theme="light"] .prompt-card,
body[data-theme="light"] .ranking-card { box-shadow: 0 10px 24px rgba(42, 48, 95, .06); }
body[data-theme="light"] .membership-strip { background: linear-gradient(100deg, #f1efff, #fbfaff 70%, #f1f5ff); }
body .pc-palette-picker { display: none !important; }

@media (max-width: 1250px) {
  .topbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; }
  .top-nav { display: none; position: absolute; top: 54px; right: 16px; left: 16px; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 7px; border: 1px solid var(--border); border-radius: 0 0 12px 12px; background: var(--surface); box-shadow: var(--shadow); }
  .top-nav.is-mobile-open { display: flex; }
  .nav-link { height: 36px; padding: 0 10px; }
  .nav-link.is-active::after { display: none; }
  .mobile-menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 32px; height: 32px; padding: 7px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .mobile-menu span { height: 1px; background: currentColor; }
  .hero-section { grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.1fr); }
  .nav-flyout-menu { position: static; width: 100%; min-width: 0; padding: 0 0 8px 10px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .ranking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1.6fr repeat(2, 1fr); }
  .footer-social { grid-column: span 1; }
}

@media (max-width: 1180px) {
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #category-trends .prompt-grid.trend-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .other-ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orientation-grid.orientation-grid--landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orientation-grid.orientation-grid--portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .orientation-grid.orientation-grid--other,
  .orientation-grid.orientation-grid--square { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orientation-grid.orientation-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-heading { align-items: flex-start; flex-wrap: wrap; }
  .channel-heading .module-status { order: 3; flex: 1 1 100%; max-width: none; text-align: left; }
}

@media (max-width: 680px) {
  .topbar { height: 52px; }
  .brand strong { font-size: 16px; letter-spacing: 0; }
  .topbar-inner { gap: 8px; }
  .top-search { height: 32px; }
  .search-shortcut { display: none; }
  .auth-button { height: 32px; padding: 0 8px; font-size: 12px; }
  .top-nav { top: 52px; }
  .home-main { padding-top: 10px; }
  .hero-section { grid-template-columns: 1fr; gap: 8px; padding: 7px; }
  .hero-copy { padding: 17px 13px 14px; }
  .hero-copy h1 { font-size: 22px; word-break: keep-all; }
  .hero-lede { font-size: 14px; }
  .hero-description { max-width: none; font-size: 13px; }
  .hero-actions { margin-top: 13px; }
  .hero-inventory-summary { display: block; }
  .hero-inventory-summary span, .hero-inventory-summary a { display: inline-block; margin-top: 2px; }
  .hero-feature-art { min-height: 0; }
  .hero-reel-stage { min-height: 0; }
  .hero-reel-stage { grid-template-columns: 1fr; }
  .quick-item { min-height: 68px; }
  .home-theme-bar { top: 52px; margin-top: 14px; padding: 9px 10px 10px; }
  .home-theme-bar-head { flex-wrap: wrap; }
  .home-theme-bar-head span { white-space: normal; }
  .home-theme-picker-panel { width: min(100vw - 24px, 520px); right: -8px; }
  .home-theme-options { grid-template-columns: 1fr; }
  .category-jump-nav { top: 52px; min-height: 44px; margin-top: 9px; padding: 4px; border-radius: 11px; }
  .category-jump-track { gap: 3px; }
  .category-jump-track > a, .category-jump-more > summary { min-height: 34px; padding: 0 9px; font-size: 11px; }
  .category-jump-menu { top: 102px; right: 12px; grid-template-columns: repeat(2, minmax(105px, 1fr)); }
  .category-section { margin-top: 25px; }
  .category-heading { align-items: flex-start; flex-wrap: wrap; }
  .category-heading > div { flex: 1 1 220px; }
  .category-heading h2 { font-size: 21px; }
  .category-heading h2 small { font-size: 11px; }
  .category-heading p { font-size: 11px; }
  .category-heading > a { font-size: 13px; }
  .module-status { flex: 1 1 100%; max-width: none; text-align: left; }
  .catalog-inventory-section { margin-top: 14px; padding: 13px 10px; }
  .catalog-inventory-heading { display: block; }
  .catalog-inventory-heading h2 { font-size: 21px; }
  .catalog-inventory-heading p { font-size: 11px; }
  .catalog-inventory-total { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; text-align: left; }
  .catalog-inventory-total strong { font-size: 20px; }
  .catalog-inventory-total small { margin-left: 3px; }
  .catalog-inventory-table { min-width: 860px; font-size: 11px; }
  .catalog-inventory-table th, .catalog-inventory-table td { padding: 8px 8px; }
  .catalog-inventory-table .inventory-col-category { width: 195px; }
  .catalog-inventory-note { margin-right: 0; margin-left: 0; font-size: 10px; }
  .plaza-channel { margin-top: 40px; }
  .channel-heading { padding-bottom: 14px; }
  .subcategory-stack { gap: 31px; margin-top: 21px; }
  .subcategory-heading { align-items: flex-start; gap: 10px; }
  .subcategory-heading h3 { font-size: 18px; }
  .subcategory-heading p { font-size: 11px; }
  .subcategory-heading > a { margin-top: 18px; font-size: 11px; }
  .prompt-grid { grid-template-columns: 1fr; gap: 8px; }
  .other-ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prompt-grid.orientation-groups { gap: 20px; }
  .orientation-grid.orientation-grid--landscape,
  .orientation-grid.orientation-grid--portrait,
  .orientation-grid.orientation-grid--other,
  .orientation-grid.orientation-grid--square { grid-template-columns: 1fr; }
  .orientation-grid.orientation-grid--wide { grid-template-columns: 1fr; }
  .orientation-heading { margin-bottom: 7px; }
  .prompt-card { border-radius: 12px; }
  .prompt-card-media { width: calc(100% - 12px); margin: 6px 6px 0; border-radius: 11px; }
  .prompt-card-info { min-height: 0; padding: 9px 9px 8px; }
  .prompt-card-info strong { font-size: 13px; }
  .prompt-preview-label { margin-top: 6px; font-size: 9px; }
  .prompt-preview { font-size: 11px; }
  .media-lightbox { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 4px; padding: 20px 8px; }
  .lightbox-stage { height: 70vh; min-height: 180px; }
  .lightbox-arrow { width: 30px; height: 36px; border: 0; background: transparent; font-size: 30px; }
  .lightbox-close { top: 10px; right: 12px; }
  .lightbox-caption { gap: 9px; }
  .lightbox-caption strong { max-width: 55vw; font-size: 12px; }
  .lightbox-caption a { font-size: 11px; }
  .ranking-section { margin-top: 29px; }
  .ranking-heading { display: block; }
  .ranking-note { display: block; margin-top: 5px; }
  .ranking-grid { grid-template-columns: 1fr; }
  .membership-strip { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 11px; }
  .membership-strip > a, .login-note { grid-column: 1 / -1; }
  .membership-strip > a { width: 100%; }
  .site-footer { grid-template-columns: repeat(2, 1fr); min-height: 0; gap: 34px 24px; padding: 32px 0 60px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { grid-column: 1 / -1; }
  .copyright { bottom: 18px; }
}

@media (max-width: 460px) {
  .top-search { display: none; }
  .top-search.is-open {
    position: absolute;
    top: 54px;
    right: 12px;
    left: 12px;
    z-index: 45;
    display: flex;
    height: 40px;
  }
  .top-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  .top-search-toggle .icon { width: 16px; height: 16px; }
  .mobile-search-link { display: inline-flex; }
  .pc-palette-picker { display: none !important; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .subcategory-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .subcategory-heading > a { justify-self: end; margin-top: 0; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card-info { min-height: 0; }
}

.home-media-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}
.home-media-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.home-media-switch a:hover { color: var(--text); }
.home-media-switch a.is-active {
  color: #fff;
  background: var(--accent);
}

body[data-home-gate] .topbar-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.home-gate {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 54px);
  padding: 48px 20px 80px;
}
.home-gate-inner { width: min(880px, 100%); }
.home-gate-kicker {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-gate h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.home-gate-lede {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--text-soft);
  font-size: 16px;
}
.home-gate-inventory {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.home-gate-inventory strong { color: var(--text); font-size: 18px; }
.home-gate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.home-gate-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.home-gate-card:hover {
  border-color: var(--accent-light);
  background: var(--surface-hover);
}
.home-gate-kind {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
}
.home-gate-kind.is-video { background: #182033; color: #8eb4ff; }
.home-gate-card strong {
  margin: 18px 0 8px;
  font-size: 28px;
  letter-spacing: -.03em;
}
.home-gate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.home-gate-count {
  margin-top: auto;
  padding-top: 24px;
  color: var(--text-soft);
  font-size: 14px;
}
.home-gate-count b { color: var(--text); font-size: 20px; }
@media (max-width: 720px) {
  .home-gate-cards { grid-template-columns: 1fr; }
}
.seo-latest-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.seo-latest-works a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.seo-latest-works a:hover { color: var(--text); }
.seo-latest-works time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.seo-latest-works[hidden] { display: none; }
.plaza-hub {
  margin: 8px 0 28px;
}
.plaza-hub .home-gate-cards { margin-top: 0; }
.plaza-hub .home-gate-card { min-height: 180px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
