:root {
    --vs-bg: #090b10;
    --vs-surface: #111419;
    --vs-surface2: #1a1f27;
    --vs-surface3: #232a34;
    --vs-border: rgba(255,255,255,0.08);
    --vs-accent: #8c5bff;
    --vs-accent2: #5b9cff;
    --vs-text: #f5f7fb;
    --vs-muted: #c9d5e8;
    --vs-radius: 18px;
    --vs-radius-sm: 12px;
}
body {
    background-color: var(--page-bg-color, var(--feed-vibe-bg-color));
    background-image: var(--page-bg-image, var(--feed-vibe-bg-image));
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--vs-text);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 14, 0.54);
    pointer-events: none;
    z-index: 0;
}
.vs-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 18px 130px;
    position: relative;
    z-index: 1;
}
.vs-hero {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 36px;
}
.vs-hero-copy h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}
.vs-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(124, 93, 255, 0.12);
    color: #b8bcff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}
.vs-hero-copy p {
    max-width: 540px;
    color: var(--vs-muted);
    line-height: 1.9;
}
.vs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}
.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, border-color .2s;
}
.vs-btn:hover { transform: translateY(-1px); }
.vs-btn-primary {
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent2));
    color: #fff;
}
.vs-btn-ghost {
    background: rgba(255,255,255,.04);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}
.vs-hero-panel {
    position: relative;
}
.vs-hero-card {
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0,0,0,.25);
    min-height: 260px;
}
.vs-hero-card h2 { margin: 0 0 0.75rem; font-size: 1.55rem; }
.vs-hero-card p { color: var(--vs-muted); line-height: 1.9; }
.vs-section { margin-bottom: 36px; }
.vs-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}
.vs-section-title { margin: 0; font-size: 1.35rem; }
.vs-section-sub { margin: .4rem 0 0; color: var(--vs-muted); font-size: .95rem; }
.vs-link { color: var(--vs-muted); text-decoration: none; font-weight: 700; }
.vs-link:hover { color: #fff; }
.vs-grid { display: grid; gap: 18px; }
.vs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vs-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.vs-filter-chip {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--vs-text);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.vs-filter-chip.active,
.vs-filter-chip:hover { background: rgba(124,93,255,.16); }
.vs-card {
    background: var(--vs-surface);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    transition: transform .2s, border-color .2s;
}
.vs-card:hover { transform: translateY(-3px); border-color: rgba(124,93,255,.2); }
.vs-card-cover { position: relative; overflow: hidden; min-height: 190px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); }
.vs-card-cover img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0b0c10; }
.vs-card-body { padding: 18px; }
.vs-card-title { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.vs-card-author { color: var(--vs-muted); font-size: .9rem; margin-bottom: 12px; }
.vs-card-summary { color: var(--vs-muted); font-size: .92rem; line-height: 1.7; min-height: 3.5rem; }
.vs-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vs-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--vs-muted);
    font-size: .82rem;
}
.vs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--vs-muted);
    text-align: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 24px;
}
.vs-empty-icon { font-size: 2.5rem; }
.vs-empty-state h3 { margin: 0; font-size: 1.1rem; }
.vs-modal {
    position: fixed;
    inset: 0;
    background: rgba(5,8,16,.82);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 100000;
}
.vs-modal-panel {
    width: min(980px, 100%);
    max-height: min(95vh, 960px);
    overflow-y: auto;
    background: #0d1118;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 30px;
    position: relative;
}
.vs-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.vs-modal-header h2 { margin: 0.25rem 0 0.6rem; }
.vs-form-row { display: grid; gap: 18px; margin: 18px 0; }
.vs-form-row:not(.vs-field-full) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vs-field { display: flex; flex-direction: column; gap: 10px; }
.vs-field label { font-size: .95rem; font-weight: 700; }
.vs-field input,
.vs-field textarea { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #fff; border-radius: 16px; padding: 16px; font-size: .95rem; outline: none; }
.vs-field textarea { min-height: 140px; resize: vertical; }
.vs-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vs-accent);
    cursor: pointer;
}
.vs-field select {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    border-radius: 16px;
    padding: 16px;
    font-size: .95rem;
    outline: none;
    cursor: pointer;
}
.vs-field select option {
    background: var(--vs-surface);
    color: #fff;
}
.vs-field-note { color: var(--vs-muted); font-size: .86rem; margin-top: -6px; }
.vs-field-full { grid-column: 1 / -1; }
.vs-cover-row { align-items: flex-start; }
.vs-cover-preview { min-height: 190px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vs-cover-preview img { width: 100%; height: 100%; object-fit: contain; background: #0b0c10; }
.vs-form-label-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.vs-type-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.vs-type-pill { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #d6d9e6; cursor: pointer; }
.vs-type-pill.active { background: rgba(124,93,255,.18); border-color: rgba(124,93,255,.35); color: #fff; }
.vs-modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.vs-chapter-card { border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 18px; background: rgba(255,255,255,.02); }
.vs-chapter-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.vs-chapter-card h3 { margin: 0; font-size: 1rem; }
.vs-chapter-card textarea { min-height: 140px; }
.vs-chapter-remove { background: transparent; border: none; color: #ff8181; cursor: pointer; font-size: 1.3rem; }
.vs-story-shell { padding-bottom: 120px; }
.vs-story-hero { display: grid; grid-template-columns: 1fr 380px; gap: 30px; margin-bottom: 28px; }
.vs-story-cover { min-height: 460px; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.vs-story-cover img { width: 100%; height: 100%; object-fit: contain; background: #0b0c10; }
.vs-story-headline { display: flex; flex-direction: column; gap: 18px; }
.vs-story-headline h1 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
.vs-story-meta { color: var(--vs-muted); margin: 0; }
.vs-story-badges { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vs-story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vs-story-author-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; background: var(--vs-surface); border: 1px solid rgba(255,255,255,.08); border-radius: 26px; margin-bottom: 30px; }
.vs-author-avatar { width: 64px; height: 64px; border-radius: 22px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vs-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-author-name { font-size: 1rem; font-weight: 700; }
.vs-author-handle { color: var(--vs-muted); font-size: .95rem; margin-top: 4px; }
.vs-author-actions { display: flex; gap: 10px; }
.vs-story-content { padding: 24px; background: var(--vs-surface); border: 1px solid rgba(255,255,255,.08); border-radius: 26px; }
.vs-story-chapter-list { display: grid; gap: 14px; }
.vs-chapter-item { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: transform .15s; }
.vs-chapter-item:hover { transform: translateY(-1px); }
.vs-chapter-item h3 { margin: 0 0 10px; }
.vs-chapter-item p { margin: 0; color: var(--vs-muted); }
.vs-story-reader { margin-top: 24px; padding: 24px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.vs-story-reader-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.vs-story-reader-body { line-height: 1.85; color: #e7ebf7; }
.vs-comment-form-row { display: flex; gap: 12px; margin-bottom: 18px; }
.vs-comment-form-row input { flex: 1; }
.vs-comment-list { display: grid; gap: 12px; }
.vs-comment-card { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.vs-comment-card strong { display: block; margin-bottom: 4px; }
.vs-writer-shell { padding-bottom: 120px; }
.vs-writer-banner {
    min-height: 320px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(74,0,172,.6), rgba(3,6,17,.94));
}
.vs-writer-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.70)); }
.vs-writer-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
}
.vs-writer-avatar {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
}
.vs-writer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-writer-banner h1 { margin: 0.5rem 0 0.35rem; font-size: clamp(2rem, 4vw, 3rem); }
.vs-writer-bio { color: rgba(255,255,255,.82); max-width: 720px; line-height: 1.8; }
.vs-writer-stats { display: flex; justify-content: space-between; gap: 14px; padding: 22px 24px; background: var(--vs-surface); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; margin-bottom: 30px; }
.vs-writer-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; width: 100%; }
.vs-writer-stats-grid div { padding: 18px; border-radius: 24px; background: rgba(255,255,255,.03); text-align: center; }
.vs-writer-stats-grid span { display: block; font-size: 1.6rem; font-weight: 700; }
.vs-writer-stats-grid p { margin: 8px 0 0; color: var(--vs-muted); }
.vs-comment-card p { margin: 6px 0 0; color: var(--vs-muted); }
@media (max-width: 1024px) {
    .vs-hero, .vs-story-hero { grid-template-columns: 1fr; }
    .vs-grid-3, .vs-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .vs-shell { padding: 18px 14px 100px; }
    .vs-grid-3, .vs-grid-4 { grid-template-columns: 1fr; }
    .vs-hero-card, .vs-story-author-panel, .vs-writer-stats { padding: 22px; }
    .vs-story-hero { gap: 18px; }
    .vs-writer-header { flex-direction: column; align-items: flex-start; }
}
