:root {
    --bg: #09111d;
    --bg-2: #0e1726;
    --panel: rgba(16, 24, 39, 0.92);
    --panel-2: #162234;
    --panel-3: #1c2b41;
    --text: #e8eef7;
    --muted: #9ca9bd;
    --line: rgba(129, 157, 196, 0.18);
    --brand: #63c6ff;
    --brand-2: #5b8cff;
    --danger: #ff6f7d;
    --success: #5fd19b;
    --shadow: 0 22px 60px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(91,140,255,.15), transparent 28%),
        radial-gradient(circle at top right, rgba(99,198,255,.12), transparent 25%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 14, 24, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; gap: 1rem; align-items: center; padding: .95rem 0; }
.brand { font-weight: 900; font-size: 1.25rem; color: #fff; letter-spacing: .02em; }
.nav { display: flex; gap: .9rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav a, .link-button { color: var(--text); font-weight: 600; opacity: .95; }
.nav a:hover, .link-button:hover { opacity: 1; text-decoration: none; }
.searchbar { flex: 1; max-width: 440px; }
.searchbar input, input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(22, 34, 52, .88);
    color: var(--text);
    border-radius: 14px;
    padding: .9rem 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.searchbar input:focus, input:focus, textarea:focus, select:focus {
    border-color: rgba(99,198,255,.45);
    box-shadow: 0 0 0 3px rgba(99,198,255,.1);
}
textarea { resize: vertical; min-height: 120px; }
.page { padding: 1.5rem 0 3rem; }
.card, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.hero-card { display: grid; grid-template-columns: 1.35fr .95fr; gap: 1rem; padding: 1.4rem; }
.hero-copy h1 { margin: .15rem 0 .35rem; font-size: clamp(2rem, 4vw, 3rem); }
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.soft-stat-grid { display: grid; gap: .8rem; }
.soft-stat { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 18px; padding: 1rem; }
.soft-stat strong { display: block; margin-bottom: .3rem; }
.section-head h2, .hero h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); }
.strong { font-weight: 700; color: #fff; }
.button, .button.small, summary.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #04111c;
    border-radius: 14px;
    padding: .78rem 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(91, 140, 255, .18);
}
.button.small { padding: .62rem .9rem; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.ghost, summary.button.ghost {
    background: rgba(255,255,255,.03);
    color: var(--text);
    border-color: var(--line);
    box-shadow: none;
}
.button.danger { background: linear-gradient(135deg, #ff6f7d, #ff4d5f); color: white; }
.full-button { width: 100%; }
.inline-form, .inline-block { display: inline-block; }
.link-button { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.flash { padding: 1rem; border-radius: 16px; margin-bottom: 1rem; border: 1px solid transparent; }
.flash-success { background: rgba(95,209,155,.14); border-color: rgba(95,209,155,.35); }
.flash-error { background: rgba(255,111,125,.14); border-color: rgba(255,111,125,.32); }
.stack { display: grid; gap: 1rem; }
.grid-two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.composer-actions, .action-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.post-head, .profile-top, .list-row { display: flex; gap: .9rem; align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #324867, #1b2940);
    display: grid; place-items: center; font-weight: 800; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.small-avatar { width: 46px; height: 46px; }
.profile-avatar { width: 96px; height: 96px; }
.profile-banner { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; margin-bottom: 1rem; }
.post-body { margin: .9rem 0; line-height: 1.55; word-wrap: break-word; }
.post-image-wrap { margin-top: .75rem; }
.post-image, .quote-card img, video.post-image, audio { border-radius: 16px; max-height: 460px; object-fit: cover; border: 1px solid var(--line); }
.post-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-top: .85rem; }
.comments { margin-top: 1rem; display: grid; gap: .7rem; }
.comment { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: .85rem; }
.comment-form { display: flex; gap: .75rem; }
.comment-form input { flex: 1; }
.quote-card, .pill {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    padding: .9rem;
    margin-top: .8rem;
}
.meta-row { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--muted); }
.stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; }
.checkbox-row { display: flex; gap: .75rem; align-items: center; }
.checkbox-row input { width: auto; }
.narrow { max-width: 280px; }
.report-form { display: grid; gap: .6rem; min-width: min(100%, 280px); margin-top: .7rem; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.grid { display: grid; gap: 1rem; grid-template-columns: 280px 1fr; }
.side-col, .main-col { min-width: 0; }
.conversation-link {
    display: block; padding: .8rem .9rem; border-radius: 14px;
    color: var(--text); border: 1px solid transparent; margin-bottom: .5rem;
}
.conversation-link:hover, .active-conversation { background: rgba(255,255,255,.04); border-color: var(--line); text-decoration: none; }
.message-list { display: grid; gap: .75rem; margin-bottom: 1rem; }
.message-item { padding: .85rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.message-item.mine { background: rgba(99,198,255,.08); border-color: rgba(99,198,255,.22); }
.search-row, .notice-row { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.verified-badge { display:inline-flex; align-items:center; gap:.3rem; background: rgba(99,198,255,.12); color: var(--brand); border:1px solid rgba(99,198,255,.3); border-radius:999px; padding:.15rem .5rem; font-size:.78rem; font-weight:700; vertical-align:middle; }
.post-flags { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.top-gap { margin-top: .75rem; }
.poll-card {
    margin-top: .9rem;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
}
.poll-option {
    position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); min-height: 48px;
}
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(99,198,255,.12); }
.poll-option-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem; }
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.install-card { max-width: 980px; margin: 0 auto; }
.soft-panel { background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.grid .full { grid-column: 1 / -1; }
.gap-lg { gap: 1.25rem; }
label span, .label-title { display: block; font-weight: 700; margin-bottom: .4rem; color: #f2f5fa; }
label input, label select, label textarea { width: 100%; }
.profile-header h1 { margin: 0 0 .35rem; }
.install-card code { background: rgba(255,255,255,.06); padding: .15rem .4rem; border-radius: 8px; }
.card p { line-height: 1.55; }
.list-row.block { align-items: stretch; }
.auth-shell { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.auth-shell.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.auth-card { min-height: 100%; }
.admin-grid { align-items: start; }
.wrap-actions { justify-content: flex-end; }
.mod-note { margin-top: .75rem; padding: .75rem .9rem; border-radius: 14px; background: rgba(255, 193, 7, .1); border: 1px solid rgba(255, 193, 7, .22); color: #f8ddb2; }
@media (max-width: 1024px) {
    .hero-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
    .topbar-inner { flex-wrap: wrap; }
    .nav { margin-left: 0; }
    .comment-form, .auth-shell { grid-template-columns: 1fr; display: grid; }
    .grid.two { grid-template-columns: 1fr; }
}
.v-player {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(5, 10, 18, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.v-player-stage {
    position: relative;
    background: #02060d;
}
.v-player .post-image,
.v-player-video {
    width: 100%;
    max-height: min(72vh, 560px);
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: #02060d;
}
.v-player-overlay {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(7, 13, 23, 0.72);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.v-player.is-playing .v-player-overlay {
    opacity: 0;
    pointer-events: none;
}
.v-player:hover .v-player-overlay,
.v-player:focus-within .v-player-overlay {
    opacity: 1;
    pointer-events: auto;
}
.v-player-controls {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr) auto auto 120px auto auto;
    gap: .65rem;
    align-items: center;
    padding: .8rem .95rem;
    background: linear-gradient(180deg, rgba(10,16,27,.88), rgba(8,12,21,.98));
}
.v-player-button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 12px;
    padding: .6rem .8rem;
    font-weight: 700;
    cursor: pointer;
}
.v-player-progress,
.v-player-volume {
    accent-color: var(--brand);
    padding: 0;
}
.v-player-progress {
    min-width: 120px;
}
.v-player-time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
    min-width: 3.25rem;
    text-align: center;
}
.v-player-quality {
    min-width: 96px;
    padding: .65rem .8rem;
}
@media (max-width: 900px) {
    .v-player-controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .v-player-progress {
        grid-column: 1 / -1;
        order: 5;
    }
    .v-player-volume {
        grid-column: span 2;
    }
}
