/* ============================================================
   RATE MY SOUND — theme
   Dark audiophile community theme with gold accents.
   ============================================================ */

:root {
    --bg: #000000;
    --bg-soft: #0b0b0d;
    --card: #101014;
    --card-2: #17171c;
    --border: #26262c;
    --border-soft: #1b1b20;
    --text: #f5f5f4;
    --muted: #a1a1aa;
    --muted-2: #6e6e78;
    --gold: #f59e0b;
    --gold-soft: #fbbf24;
    --gold-dim: rgba(245, 158, 11, .12);
    --radius: 12px;
    --nav-h: 62px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1420px; margin: 0 auto; padding: 0 22px; }

/* ---------- Top navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-h);
    background: rgba(10, 11, 16, .96);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(8px);
}
.site-nav .wrap {
    height: var(--nav-h);
    display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-weight: 800; letter-spacing: .06em; font-size: 15px; line-height: 1.1; }
.brand-tag { font-size: 8px; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; }

.main-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-links a {
    padding: 8px 12px; font-size: 13.5px; font-weight: 500; color: var(--muted);
    border-radius: 8px; position: relative; white-space: nowrap;
}
.main-links a:hover { color: var(--text); background: var(--card); }
.main-links a.active { color: var(--text); }
.main-links a.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-spacer { flex: 1; }
.nav-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--muted); background: transparent; border: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--card); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-avatar {
    width: 36px; height: 36px; border-radius: 50%; margin-left: 8px;
    background: linear-gradient(135deg, #3a2c14, #f59e0b);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #111; border: 2px solid var(--border);
    overflow: hidden; flex-shrink: 0;
}
.avatar-img { overflow: hidden; padding: 0 !important; }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---------- Page layout ---------- */
.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 40px;
    align-items: start;
}

/* ---------- Hero ---------- */
.hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}
.hero-copy { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker {
    display: inline-flex; align-items: center; align-self: flex-start; gap: 8px;
    font-size: 10px; letter-spacing: .24em; font-weight: 700; color: var(--gold-soft);
    border: 1px solid rgba(245,158,11,.4); border-radius: 999px;
    padding: 8px 18px; margin-bottom: 24px; background: rgba(245,158,11,.06);
    white-space: nowrap;
}
.hero-kicker svg { width: 12px; height: 12px; }
.hero h1 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 60px; line-height: 1.04; margin: 0 0 20px; font-weight: 700; letter-spacing: 0;
}
.hero h1 .gold { color: var(--gold-soft); font-style: italic; }
.hero p.sub { color: var(--muted); font-size: 16px; max-width: 430px; margin: 0 0 28px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-cta .btn { border-radius: 999px; padding: 15px 32px; font-size: 15px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: #141414;
    padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px;
    border: 1px solid var(--gold); cursor: pointer;
}
.btn:hover { background: var(--gold-soft); }
.btn-outline {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn-block { width: 100%; justify-content: center; }
.hero-stats { display: flex; gap: 34px; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat svg { width: 22px; height: 22px; color: var(--muted); }
.stat b { display: block; font-size: 16px; }
.stat span { display: block; font-size: 11.5px; color: var(--muted-2); }
.hero-img { min-height: 340px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Setup of the Week ---------- */
.week-feature {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--card); border: 1px solid rgba(245,158,11,.3);
    border-radius: 16px; overflow: hidden;
}
.week-img { min-height: 280px; }
.week-img img { width: 100%; height: 100%; object-fit: cover; }
.week-copy { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.week-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--gold-soft); }
.week-copy h2 { font-size: 26px; margin: 0; }
.week-copy .muted { color: var(--muted); font-size: 14px; margin: 0; }
.week-metrics { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.week-owner { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { margin-bottom: 34px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.section-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; margin: 0; }
.section-title svg { width: 19px; height: 19px; color: var(--gold); }
.view-all { font-size: 13px; color: var(--muted); font-weight: 500; }
.view-all:hover { color: var(--gold-soft); }

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-featured {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold); color: #141414;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.card-body { padding: 14px 15px; }
.card-title { font-size: 14.5px; font-weight: 700; margin: 0 0 8px; }
.card-author { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.card-meta {
    display: flex; align-items: center; gap: 14px; margin-top: 10px;
    font-size: 12px; color: var(--muted-2);
}
.card-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; }
.rating { margin-left: auto; color: var(--gold-soft); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.rating svg { width: 13px; height: 13px; }

/* grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* ---------- Post cards ---------- */
.post-card .card-body { padding: 14px 16px 12px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-head .who b { display: block; font-size: 13.5px; }
.post-head .who span { font-size: 11.5px; color: var(--muted-2); }
.post-text { font-size: 13px; color: var(--muted); margin: 10px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot {
    display: flex; align-items: center; gap: 16px; padding: 10px 16px 13px;
    font-size: 12.5px; color: var(--muted-2);
}
.post-foot .m { display: inline-flex; align-items: center; gap: 6px; }
.post-foot svg { width: 15px; height: 15px; }
.post-foot .liked { color: #e5486f; }
.post-tags { margin-left: auto; display: flex; gap: 6px; }
.post-tags span { background: var(--card-2); border: 1px solid var(--border-soft); padding: 2px 9px; border-radius: 20px; font-size: 11px; color: var(--muted); }

/* filter tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
    background: none; border: 0; color: var(--muted); font-size: 13.5px; font-weight: 600;
    padding: 8px 14px; border-radius: 8px; cursor: pointer; position: relative;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); }
.tabs button.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 2px; background: var(--gold); border-radius: 2px;
}
.tabs a {
    color: var(--muted); font-size: 13.5px; font-weight: 600;
    padding: 8px 14px; border-radius: 8px; position: relative;
}
.tabs a:hover { color: var(--text); }
.tabs a.tab-active { color: var(--text); }
.tabs a.tab-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 2px; background: var(--gold); border-radius: 2px;
}

/* ---------- Reels ---------- */
.reel-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card-2); border: 1px solid var(--border-soft); aspect-ratio: 3 / 4; cursor: pointer; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 35%, transparent 55%, rgba(0,0,0,.85)); }
.reel-dur {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: rgba(0,0,0,.65); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.reel-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
}
.reel-play svg { width: 18px; height: 18px; color: #fff; margin-left: 2px; }
.reel-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.reel-info b { display: block; font-size: 12.5px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.reel-info span { font-size: 11px; color: rgba(255,255,255,.88); display: block; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.reel-info .v { font-size: 11px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.reel-info .v svg { width: 12px; height: 12px; }

/* ---------- Groups ---------- */
.group-card { text-align: center; padding-bottom: 16px; }
.group-card .card-img { aspect-ratio: 16 / 9; }
.group-card .card-body { padding: 12px 14px 0; }
.group-card .members { font-size: 12px; color: var(--muted-2); margin: 2px 0 12px; }
.group-card .btn-outline { margin: 0 14px; width: calc(100% - 28px); justify-content: center; padding: 9px 0; font-size: 13px; }

/* ---------- Equipment ---------- */
.eq-card .card-body { text-align: left; }
.eq-cat { font-size: 12px; color: var(--muted-2); margin: 0 0 6px; }
.eq-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.eq-rating svg { width: 14px; height: 14px; color: var(--gold-soft); }
.eq-rating b { color: var(--text); }

/* ---------- Avatars ---------- */
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #101010;
}
.av-1 { background: linear-gradient(135deg, #f59e0b, #8a5a1c); }
.av-2 { background: linear-gradient(135deg, #7aa2f7, #2c3e6e); }
.av-3 { background: linear-gradient(135deg, #e5486f, #6e1f36); }
.av-4 { background: linear-gradient(135deg, #4ade80, #14532d); }
.av-5 { background: linear-gradient(135deg, #c084fc, #4c1d95); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 22px); }
.side-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 14.5px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.side-card h3 svg { width: 17px; height: 17px; color: var(--gold); }
.side-card h3 .view-all { margin-left: auto; }

.mini-tabs { display: flex; gap: 2px; margin-bottom: 12px; }
.mini-tabs button { background: none; border: 0; color: var(--muted-2); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.mini-tabs button.active { color: var(--gold-soft); background: var(--gold-dim); }

.trend-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.trend-item:last-child { border-bottom: 0; }
.trend-item img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.trend-item b { display: block; font-size: 13px; line-height: 1.35; }
.trend-item .by { font-size: 11.5px; color: var(--muted-2); }
.trend-item .meta { font-size: 11px; color: var(--muted-2); display: flex; gap: 10px; margin-top: 3px; }
.trend-item .meta .m { display: inline-flex; align-items: center; gap: 4px; }
.trend-item .meta svg { width: 12px; height: 12px; }

.member-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.member-row .rank { width: 18px; font-size: 13px; font-weight: 700; color: var(--muted-2); text-align: center; }
.member-row b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.member-row b svg { width: 13px; height: 13px; color: var(--gold); }
.member-row .pts { margin-left: auto; font-size: 12px; color: var(--muted-2); }

.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-tile {
    background: var(--card-2); border: 1px solid var(--border-soft); border-radius: 10px;
    padding: 16px 8px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.brand-tile:hover { border-color: var(--gold); color: var(--gold-soft); }

.quick-links a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 13.5px; color: var(--muted); border-radius: 8px; }
.quick-links a:hover { color: var(--text); background: var(--card-2); }
.quick-links svg { width: 18px; height: 18px; color: var(--gold); }

.cta-card {
    background: linear-gradient(135deg, #1d1507, #14161d 60%);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: var(--radius); padding: 22px 18px; text-align: center;
}
.cta-card h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .12em; color: var(--gold-soft); }
.cta-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.cta-card svg.wave { width: 44px; height: 44px; margin: 0 auto 10px; display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 30px; padding: 44px 0 30px; }
.footer-grid h5 { font-size: 13px; margin: 0 0 14px; color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-soft); }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 34px; height: 34px; border-radius: 50%; background: var(--card-2);
    border: 1px solid var(--border-soft); display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; font-weight: 700;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-soft); }
.social-row svg { width: 15px; height: 15px; }
.newsletter p { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
    flex: 1; background: var(--card-2); border: 1px solid var(--border-soft); color: var(--text);
    padding: 10px 14px; border-radius: 9px; font-size: 13px; outline: none;
}
.news-form input:focus { border-color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border-soft); padding: 16px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; color: var(--muted-2);
}
.footer-bottom .heart { color: #e5486f; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; padding: 34px 32px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
    width: 100%; background: var(--card-2); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
.field textarea {
    width: 100%; background: var(--card-2); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px; outline: none;
    font-family: inherit; resize: vertical;
}
.field textarea:focus { border-color: var(--gold); }
.field input:focus { border-color: var(--gold); }
.form-err { background: rgba(229,72,111,.1); border: 1px solid rgba(229,72,111,.4); color: #f08ca8; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.form-ok { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.4); color: #86efac; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--gold-soft); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .main-links { display: none; }
}
@media (max-width: 1024px) {
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .hero { grid-template-columns: 1fr; }
    .hero-img { min-height: 240px; order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero-copy { padding: 30px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-icons .icon-btn:nth-child(1) { display: none; }
}

/* Setup share card inside feed posts */
.setup-share {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 10px 0 12px;
    padding: 10px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .2s;
}
.setup-share:hover { border-color: var(--gold); }
.setup-share img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.setup-share-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-share-body b { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-share-body span { color: var(--gold-soft); font-size: 12.5px; font-weight: 600; }

/* Setup photo gallery (public setup page) */
.gallery-thumbs { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 86px; height: 64px; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border); cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s;
}
.gallery-thumbs img:hover { opacity: 1; border-color: var(--gold); }

/* Photo manager (My Sound edit form) */
.img-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.img-cell { position: relative; }
.img-cell img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.img-cell form { margin: 0; }
.img-remove {
    position: absolute; top: -8px; right: -8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #e5486f; color: #fff; border: 0; cursor: pointer;
    font-size: 15px; line-height: 1; display: none; align-items: center; justify-content: center;
}
.img-cell:hover .img-remove { display: inline-flex; }

/* Small helper text under form fields */
.hint { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* Reels */
.reel-card video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-card { display: block; }
.reel-view { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.reel-view-video { background: #000; display: flex; align-items: center; min-height: 320px; }
.reel-view-video video { width: 100%; max-height: 72vh; }
.reel-view-side { padding: 22px 24px; }
@media (max-width: 720px) {
    .reel-view { grid-template-columns: 1fr; }
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
    --bg: #f1f2f5;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --card-2: #eceef3;
    --border: #dfe2e9;
    --border-soft: #e9ecf2;
    --text: #161a22;
    --muted: #5a6172;
    --muted-2: #8b91a4;
    --gold: #d97706;
    --gold-soft: #b45309;
    --gold-dim: rgba(217, 119, 6, .12);
}
body { transition: background-color .3s ease, color .3s ease; }

/* Theme toggle icon swap: show moon in dark mode, sun in light mode */
#theme-toggle .ic-sun { display: none; }
#theme-toggle .ic-moon { display: block; }
[data-theme="light"] #theme-toggle .ic-sun { display: block; }
[data-theme="light"] #theme-toggle .ic-moon { display: none; }

/* ---------- Spotlight (Setup of the Week showcase) ---------- */
.spotlight-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 54px; line-height: 1.06; font-weight: 700; margin: 0 0 18px;
}
.spotlight-title em { color: var(--gold-soft); font-style: italic; }
.spotlight-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.spotlight-pill {
    background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px;
    padding: 12px 20px; text-align: center; min-width: 210px;
}
.spotlight-pill .sp-label { display: block; font-size: 10px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; margin-bottom: 5px; }
.spotlight-pill b { display: block; font-size: 16px; color: var(--gold-soft); }
.spotlight-pill .sp-sub { font-size: 11.5px; color: var(--muted-2); }
.spotlight-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.spotlight-tabs a {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
    color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
.spotlight-tabs a.active { background: var(--gold); border-color: var(--gold); color: #141414; }
.spotlight-tabs a:not(.active):hover { border-color: var(--gold); color: var(--gold-soft); }
.tab-cur { font-size: 10px; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 20px; margin-left: 6px; }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: start; }
.sp-badge-champ {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,.65); border: 1px solid rgba(245,158,11,.6); color: var(--gold-soft);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 7px 14px; border-radius: 999px;
}
.sp-badge-score {
    position: absolute; top: 14px; right: 14px;
    background: rgba(0,0,0,.65); border: 1px solid var(--border); color: var(--text);
    font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.sp-kicker { font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--gold-soft); margin-bottom: 10px; }
.spotlight-rig { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 34px; margin: 0 0 12px; font-weight: 700; }
.sp-votes {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px;
    padding: 14px 18px; margin: 16px 0;
}
.sp-vote-num { font-size: 22px; font-weight: 800; color: var(--gold-soft); }
.sp-vote-label { font-size: 10px; letter-spacing: .14em; color: var(--muted-2); font-weight: 700; line-height: 1.5; }
.sp-badge-verified {
    display: inline-block; font-size: 12px; font-weight: 600; color: #86efac;
    border: 1px solid rgba(74,222,128,.35); background: rgba(74,222,128,.07);
    padding: 8px 16px; border-radius: 999px;
}
.sp-stage { background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.sp-stage-head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--gold-soft); margin-bottom: 8px; }
.sp-stage-head span:last-child { color: var(--muted-2); }
.sp-gear { font-size: 13.5px; padding: 5px 0; border-top: 1px solid var(--border-soft); }
.sp-gear:first-of-type { border-top: 0; }
.sp-gear span { color: var(--muted-2); font-size: 12.5px; margin-left: 6px; }
@media (max-width: 860px) {
    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-title { font-size: 38px; }
    .spotlight-rig { font-size: 27px; }
}

/* ---------- Groups ---------- */
.group-cover-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; font-weight: 800; color: rgba(255,255,255,.92);
}
.group-desc { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.group-hero {
    position: relative; border-radius: 18px; overflow: hidden;
    background: var(--card-2); min-height: 200px;
    display: flex; align-items: flex-end;
}
.group-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.group-hero .group-cover-fallback { position: absolute; inset: 0; }
.group-hero-body {
    position: relative; z-index: 1; width: 100%;
    padding: 22px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    color: #fff;
}
.group-hero-body h1 { font-family: 'Playfair Display', serif; font-size: 30px; margin: 0 0 6px; }
.group-hero-body p { margin: 0; opacity: .9; font-size: 14px; }
.member-chip { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.member-chip .who b { display: block; font-size: 14px; }
.member-chip .who span { font-size: 12px; color: var(--muted-2); }
.owner-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--gold); border: 1px solid var(--gold); border-radius: 20px; padding: 2px 8px; margin-left: 6px;
}

/* ---------- Facebook-style feed layout ---------- */
.feed-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr) 300px;
    gap: 24px; align-items: start;
    padding-top: 26px; padding-bottom: 60px;
    max-width: 1280px;
}
.feed-side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.feed-side .card { padding: 16px 18px; }
.feed-side h3 { font-size: 13px; margin: 0; letter-spacing: .04em; color: var(--muted); }
.feed-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.feed-profile { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.feed-profile b { color: var(--text); font-size: 15px; display: block; }
.feed-profile span { font-size: 12.5px; color: var(--muted-2); }
.feed-menu { display: flex; flex-direction: column; padding: 10px !important; }
.feed-menu a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.feed-menu a:hover { background: var(--card-2); }
.feed-menu a span { width: 22px; text-align: center; }
.feed-shortcuts a {
    display: flex; align-items: center; gap: 10px; padding: 8px 4px;
    color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; border-radius: 8px;
}
.feed-shortcuts a:hover { background: var(--card-2); }
.sc-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-dim); border: 1px solid rgba(245,158,11,.35); flex-shrink: 0; }

.feed-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feed-composer { padding: 18px 20px; }
.feed-composer-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.feed-composer-head input {
    flex: 1; background: var(--card-2); border: 1px solid var(--border);
    color: var(--text); padding: 11px 14px; border-radius: 999px; font-size: 14px;
}
.feed-composer textarea {
    width: 100%; background: var(--card-2); border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-family: inherit; resize: vertical; margin-bottom: 10px;
}
.feed-composer-foot { display: flex; gap: 10px; align-items: center; }
.feed-composer-foot select {
    background: var(--card-2); border: 1px solid var(--border); color: var(--text);
    padding: 10px 12px; border-radius: 10px;
}
.feed-composer-foot .btn { margin-left: auto; border-radius: 999px; }
.feed-tabs { margin-bottom: 2px !important; }

.feed-post { padding: 20px 22px; }
.feed-post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.feed-post-head > div { flex: 1; }
.feed-post-head b a { color: var(--text); font-size: 15px; }
.feed-post-head span { display: block; font-size: 12.5px; color: var(--muted-2); }
.feed-open { color: var(--muted-2); font-size: 20px; letter-spacing: 2px; text-decoration: none; padding: 4px 8px; }
.feed-open:hover { color: var(--text); }
.feed-post-title { font-size: 18px; margin: 0 0 8px; }
.feed-post-body { font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; margin: 0 0 6px; color: var(--text); }
.feed-counts { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); padding: 10px 2px; }
.feed-counts a { color: var(--muted-2); }
.feed-actions { display: flex; border-top: 1px solid var(--border-soft); padding-top: 8px; gap: 4px; }
.feed-act {
    flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600;
    padding: 10px 4px; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; display: block;
}
.feed-act:hover { background: var(--card-2); color: var(--text); }
.feed-act.on { color: var(--gold-soft); }
.feed-act:disabled { opacity: .45; cursor: default; }
.feed-empty { padding: 40px; text-align: center; color: var(--muted); }
.feed-dim { font-size: 13px; color: var(--muted-2); margin: 4px 0; }
.feed-dot-live { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

.feed-online a, .feed-suggested a {
    display: flex; align-items: center; gap: 10px; padding: 7px 4px;
    color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; border-radius: 8px;
}
.feed-online a:hover, .feed-suggested a:hover { background: var(--card-2); }
.feed-suggested a span b { display: block; font-size: 13.5px; }
.feed-suggested a span i { font-style: normal; font-size: 12px; color: var(--muted-2); }

.feed-ad:empty { display: none; }
.ad-placeholder {
    border: 1px dashed var(--border); border-radius: 10px; padding: 26px 16px;
    text-align: center; font-size: 12.5px; color: var(--muted-2); background: var(--card-2);
}

@media (max-width: 1120px) {
    .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .feed-left { display: none; }
}
@media (max-width: 820px) {
    .feed-layout { grid-template-columns: minmax(0, 1fr); }
    .feed-side { position: static; }
    .feed-right { order: 2; }
    .feed-post { padding: 16px; }
}

/* ---------- static info pages + contact ---------- */
.static-body { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.static-body h3 { font-size: 17px; margin: 26px 0 8px; }
.static-body p { margin: 0 0 14px; }
.static-body ul { margin: 0 0 14px; padding-left: 22px; }
.static-body li { margin-bottom: 6px; }
.static-body a { color: var(--gold-soft); }
.form-ok { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.4); color: #7ee2a8; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.stack label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.stack label input, .stack label textarea {
    display: block; width: 100%; margin-top: 7px; background: var(--card-2); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none;
}
.stack label input:focus, .stack label textarea:focus { border-color: var(--gold); }
.stack textarea { resize: vertical; }

/* ---------- Profile page ---------- */
.profile-wrap { max-width: 1020px; padding-top: 26px; padding-bottom: 60px; }
.profile-hero { overflow: hidden; padding: 0 !important; margin-bottom: 18px; }
.profile-cover {
    height: 220px;
    background: linear-gradient(120deg, #232323 0%, #3a3a3a 45%, #1c1c1c 100%);
    background-size: cover; background-position: center;
}
.profile-head { text-align: center; padding: 0 24px 26px; margin-top: -62px; }
.profile-avatar { position: relative; display: inline-block; margin-bottom: 10px; }
.profile-avatar img, .profile-avatar .avatar {
    width: 124px; height: 124px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--card); background: var(--card-2); font-size: 40px;
}
.profile-points {
    position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #1a1a1a; font-size: 12px; font-weight: 800;
    padding: 3px 12px; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.profile-head h1 { font-size: 26px; margin: 14px 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: #3b82f6;
    color: #fff; font-size: 13px; font-weight: 800;
}
.profile-since { color: var(--muted-2); font-size: 13px; margin: 0 0 8px; }
.profile-bio { color: var(--muted); font-size: 14.5px; max-width: 560px; margin: 0 auto 16px; line-height: 1.6; }
.profile-actions { display: flex; justify-content: center; gap: 10px; }

.profile-stats {
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 16px 10px !important; margin-bottom: 18px; text-align: center;
}
.profile-stats > div { border-left: 1px solid var(--border-soft); }
.profile-stats > div:first-child { border-left: 0; }
.profile-stats b { display: block; font-size: 19px; color: var(--text); }
.profile-stats span { font-size: 10.5px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }

.profile-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.pbadge {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 22px;
    background: var(--card-2); border: 1px solid var(--border-soft);
    filter: grayscale(1); opacity: .35;
}
.pbadge.earned { filter: none; opacity: 1; border-color: rgba(245,158,11,.5); background: var(--gold-dim); }

.profile-tabs {
    display: flex; justify-content: center; gap: 4px; margin-bottom: 24px;
    background: var(--card); border: 1px solid var(--border-soft);
    border-radius: 999px; padding: 6px; width: fit-content; margin-left: auto; margin-right: auto;
}
.profile-tabs a {
    padding: 9px 26px; border-radius: 999px; color: var(--muted);
    font-size: 14px; font-weight: 600; text-decoration: none;
}
.profile-tabs a:hover { color: var(--text); }
.profile-tabs a.on { color: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--card); border: 1px solid var(--border-soft);
    text-decoration: none; display: block; transition: transform .15s ease;
}
.pcard:hover { transform: translateY(-3px); }
.pcard-img { display: block; aspect-ratio: 16 / 10; background: var(--card-2); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-text { display: flex; align-items: center; padding: 22px; }
.pcard-text span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pcard-type {
    position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff;
    backdrop-filter: blur(4px);
}
.pcard-type.t-setup { color: #fbbf24; }
.pcard-type.t-reel { color: #f87171; }
.pcard-type.t-post { color: #7aa2f7; }
.pcard-title {
    display: block; padding: 12px 14px 14px; color: var(--text);
    font-size: 14px; font-weight: 600; line-height: 1.4;
}
.people-list { padding: 8px !important; }
.people-list a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px;
}
.people-list a:hover { background: var(--card-2); }

@media (max-width: 760px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .profile-cover { height: 150px; }
    .profile-stats { grid-template-columns: repeat(5, 1fr); padding: 12px 4px !important; }
    .profile-stats b { font-size: 16px; }
    .profile-tabs a { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
    .profile-grid { grid-template-columns: 1fr 1fr; }
}
