:root{--bg:#f4f6f8;--panel:#fff;--panel-2:#f8fafc;--line:#e6e9ee;--text:#18212b;--muted:#6b7280;--accent:#111827;--accent-2:#2563eb;--danger:#b42318;--success:#116149;--warning:#8a5a00;--shadow:0 8px 24px rgba(16,24,40,.06);--shadow-hover:0 14px 34px rgba(16,24,40,.10);--radius:10px;--hero-overlay:linear-gradient(90deg, rgba(17,24,39,.88) 0%, rgba(17,24,39,.74) 42%, rgba(17,24,39,.22) 100%)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 12px}.brand-block .eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.brand-block .page-title{margin:.2rem 0 0;font-size:26px;font-weight:750}.brand-link{display:block}.topbar-actions{display:flex;align-items:center;gap:12px}.search-wrap{min-width:320px;display:flex;align-items:center;gap:10px;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff}.search-wrap i{color:var(--muted);font-size:14px}.search-wrap input{border:0;outline:0;width:100%;font-size:14px;background:transparent;color:var(--text)}
.section-block{margin-bottom:22px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px}.section-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.section-title{margin:.18rem 0 0;font-size:24px;font-weight:750}
.surface{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.surface-body{padding:24px}.surface-header{padding:22px 24px 0}.surface-header h3{margin:0;font-size:20px}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stat-card .surface-body{padding:20px}.stat-label{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:8px}.stat-value{font-size:34px;font-weight:800;line-height:1}
.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.collection-card,.post-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.collection-card:hover,.post-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#d9dee6}
.collection-cover{aspect-ratio:16/10;overflow:hidden;background:#eef1f5;position:relative}.collection-cover img{width:100%;height:100%;object-fit:cover}.collection-card-hero{position:relative;min-height:220px}.collection-card-hero .collection-cover{aspect-ratio:auto;height:220px}.collection-cover-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(17,24,39,.08) 0%, rgba(17,24,39,.72) 100%)}.collection-hero-body{position:absolute;left:0;right:0;bottom:0;padding:18px;z-index:2}.collection-title-row{display:flex;align-items:end;justify-content:space-between;gap:12px}.collection-title-row h3{margin:0;color:#fff;font-size:24px;font-weight:800;text-shadow:0 2px 8px rgba(0,0,0,.25)}.collection-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:700;border:1px solid rgba(255,255,255,.22)}.collection-head-cover{width:160px;height:100px;border-radius:10px;object-fit:cover;box-shadow:var(--shadow)}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.view-switch{display:flex;gap:8px}.view-switch button{width:38px;height:38px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--muted)}.view-switch button.active{background:#111827;color:#fff;border-color:#111827}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.post-cover{aspect-ratio:16/10;overflow:hidden;background:#eef1f5}.post-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.post-cover-link:hover img{transform:scale(1.03)}.post-body{padding:18px}.post-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.post-date{font-size:12px;color:var(--muted)}.status{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:5px 8px;border-radius:999px;border:1px solid var(--line)}.status.ok{background:#edf9f4;color:var(--success);border-color:#caebde}.status.warn{background:#fff7e8;color:var(--warning);border-color:#f0ddaf}.status.err{background:#fff0f0;color:var(--danger);border-color:#f3cccc}.post-title{margin:0 0 10px;font-size:18px;line-height:1.36;font-weight:700}.post-title-link:hover,.list-post-link:hover{color:var(--accent-2)}.post-excerpt{margin:0 0 14px;color:#586170;font-size:14px;line-height:1.65;min-height:68px}.post-meta{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:16px;color:var(--muted);font-size:13px}.post-meta span{display:inline-flex;align-items:center;gap:7px}.post-meta .danger{color:var(--danger)}.post-actions{display:flex;gap:10px;flex-wrap:wrap}
.list-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.list-table th,.list-table td{padding:14px 16px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}.list-table th{background:#fafbfc;color:var(--muted);font-weight:650;text-align:left}.list-table tr:last-child td{border-bottom:0}.list-thumb{width:64px;height:64px;border-radius:8px;object-fit:cover;background:#eef2f7}.row-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px}.row-meta .danger{color:var(--danger)}
.hero{position:relative;border-radius:var(--radius);overflow:hidden;min-height:360px;background:#0f172a;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.06);margin-bottom:20px}.hero-bg{position:absolute;inset:0}.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.96}.hero-overlay{position:absolute;inset:0;background:var(--hero-overlay)}.hero-content{position:relative;z-index:2;display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:end;min-height:360px;padding:32px}.poster{border-radius:12px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14);background:#fff}.poster img{width:100%;aspect-ratio:2/3;object-fit:cover}.hero-copy{color:#fff}.hero-copy .kicker{font-size:12px;text-transform:uppercase;letter-spacing:.12em;opacity:.84}.hero-copy h1{margin:.35rem 0 .55rem;font-size:40px;line-height:1.08;font-weight:800}.hero-summary{max-width:850px;color:rgba(255,255,255,.86);line-height:1.65;margin-bottom:1rem}.meta-row{display:flex;flex-wrap:wrap;gap:14px 18px;align-items:center;color:rgba(255,255,255,.9);font-size:14px;margin-bottom:1rem}.meta-row span{display:inline-flex;align-items:center;gap:8px}.hero-actions{display:flex;flex-wrap:wrap;gap:10px}.hero-actions .btn{border-radius:10px;padding:.65rem 1rem;font-weight:650}.btn-strong{background:#fff;color:#111827}.btn-soft{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18)}
.subnav{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:74px;z-index:40;padding:12px 0 18px;margin-bottom:20px}.subnav-solid{background:#f4f6f8 !important;backdrop-filter:none !important;border-bottom:1px solid #e4e7ec;box-shadow:0 8px 18px rgba(16,24,40,.04)}.subnav a{padding:10px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);font-weight:600;font-size:14px}.subnav a.active,.subnav a:hover{color:#111827;border-color:#d7dce4;background:#fff;box-shadow:var(--shadow)}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}.sidebar-sticky{position:sticky;top:140px}
.overview p{margin:0 0 1rem;line-height:1.8;color:#334155}.overview p:last-child{margin-bottom:0}.overview a{color:var(--accent-2);text-decoration:underline;word-break:break-word}
.video-embed{aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#0f172a;border:1px solid var(--line)}.video-embed iframe{width:100%;height:100%;border:0}
.file-list{display:grid;gap:10px}.file-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}.file-meta{min-width:0;flex:1}.file-meta .name{font-weight:650;margin-bottom:4px;word-break:break-word}.file-meta .sub{font-size:13px;color:var(--muted)}.file-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.file-actions .btn{border-radius:8px;padding:.45rem .8rem;font-size:13px;font-weight:650}
.fact-list{display:grid;gap:12px}.fact{display:flex;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}.fact:last-child{border-bottom:0;padding-bottom:0}.fact .label{color:var(--muted);font-size:14px}.fact .value{font-weight:650;text-align:right}.fact-break{max-width:180px;word-break:break-word}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.gallery-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.gallery-card img{width:100%;height:160px;object-fit:cover}.gallery-card .cap{padding:10px 12px;font-size:13px;color:var(--muted)}
.lightbox-stage{background:#0b0b0d;min-height:72vh}.lightbox-image{max-width:100%;max-height:72vh;object-fit:contain}.lightbox-close{position:absolute;top:1rem;right:1rem;z-index:5}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:64px;height:64px;border-radius:999px;border:0;background:rgba(255,255,255,.18);color:#fff;backdrop-filter:blur(8px);display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem}.lightbox-nav:hover{background:rgba(255,255,255,.28)}.lightbox-prev{left:1rem}.lightbox-next{right:1rem}
.placeholder-box{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#eef1f5;color:#9aa4b2;font-size:14px}.small-placeholder{height:64px}.empty-note{padding:16px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);background:#fff}
.editor-modal-shell{border-radius:14px;overflow:hidden}.editor-loading{padding:1rem;color:var(--muted);display:flex;align-items:center}.editor-inline-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.editor-textarea{min-height:340px;resize:vertical}.editor-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.editor-image-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.editor-image-card img{width:100%;height:180px;object-fit:cover;background:#eef1f5}.editor-image-body{padding:12px}.editor-image-name{font-weight:650;margin-bottom:8px;word-break:break-word}.editor-image-actions{display:flex;flex-wrap:wrap;gap:8px}.editor-cover-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#111827;color:#fff;font-size:12px;margin-bottom:8px}
@media (max-width:1100px){.hero-content{grid-template-columns:180px minmax(0,1fr);min-height:320px}.layout{grid-template-columns:1fr}.sidebar-sticky{position:static}}
@media (max-width:900px){.topbar-inner{flex-direction:column;align-items:stretch}.topbar-actions{flex-direction:column;align-items:stretch}.search-wrap{min-width:0;width:100%}.subnav{top:118px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-inline-grid{grid-template-columns:1fr}}
@media (max-width:700px){.hero-content{grid-template-columns:1fr;align-items:start}.poster{max-width:180px}.hero-copy h1{font-size:30px}.collection-grid,.post-grid,.stats-grid{grid-template-columns:1fr}.list-table thead{display:none}.list-table,.list-table tbody,.list-table tr,.list-table td{display:block;width:100%}.list-table tr{border-bottom:1px solid var(--line)}.list-table td{border-bottom:0;padding:10px 14px}}
.editor-description-preview{
  white-space: pre-wrap;
  line-height: 1.7;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  min-height: 120px;
}

.editor-textarea-tall{
  min-height: 520px !important;
  line-height: 1.6;
  white-space: pre-wrap;
}
.editor-textarea{
  min-height:520px;
  font-family:inherit;
  line-height:1.6;
}

.editor-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:16px;
}

.editor-image-card img{
  width:100%;
  border-radius:6px;
}

.editor-image-body{
  padding-top:6px;
}

.editor-image-name{
  font-size:12px;
  margin-bottom:4px;
  word-break:break-all;
}

.editor-image-actions{
  display:flex;
  gap:6px;
}

.editor-cover-badge{
  font-size:11px;
  color:#fff;
  background:#111;
  padding:2px 6px;
  border-radius:4px;
  margin-bottom:4px;
  display:inline-block;
}
