:root {
    --bg: #050914;
    --panel: #111621;
    --panel-soft: #171c28;
    --text: #e8ecf4;
    --muted: #8f98a8;
    --border: #2a3040;
    --brand: #b63df4;
    --brand-dark: #d946ef;
    --accent: #2f7cff;
    --ink: #f7f8fb;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

input,
select,
textarea,
button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: 190px minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
}

.brand-logo {
    width: auto;
    height: 58px;
    max-width: 190px;
    object-fit: contain;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ink), var(--brand));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.search input,
.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 12px 13px;
}

.search input {
    border-radius: 999px;
    background: #f4f4f5;
    min-height: 44px;
    border-color: #d9d9de;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.bot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.anti-robot-box {
    border: 1px solid #fecdd3;
    border-radius: 10px;
    background: #fff7f8;
    padding: 12px;
}

.anti-robot-question {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 15px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    font-size: 14px;
}

.nav a,
.button,
button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    padding: 0 14px;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.nav a:hover {
    border-color: #fda4af;
    color: var(--brand-dark);
}

.mobile-tabbar {
    display: none;
}

.button,
button.primary,
.nav .button {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.upload-button {
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.2);
}

.nav .auth-combo {
    white-space: nowrap;
    font-weight: 800;
}

.button:hover,
button.primary:hover {
    background: var(--brand-dark);
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
}

.hero,
.section-title {
    padding: 26px 0 18px;
    border-bottom: 1px solid var(--border);
}

.discovery-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--border);
}

.discovery-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.discovery-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-button {
    min-width: 170px;
}

.trend-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 18px 0;
}

.strip-title {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.strip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.trend-pill {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 0 14px;
    color: #3f3f46;
    font-size: 14px;
    font-weight: 700;
}

.trend-pill.active,
.trend-pill:hover {
    border-color: var(--brand);
    background: #dcfce7;
    color: var(--brand-dark);
}

.hero h1,
.section-title h1 {
    margin: 0;
    font-size: 30px;
}

.hero p,
.section-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.compact-stats {
    margin: 18px 0 22px;
}

.stat,
.panel,
.video-card,
.form-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stat {
    padding: 16px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    margin: 24px 0 40px;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    margin: 0 0 42px;
}

.main-feed {
    min-width: 0;
}

.rail {
    min-width: 0;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.tag.active {
    border-color: var(--brand);
    color: var(--brand-dark);
    font-weight: 700;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #111;
    color: #fff;
    box-shadow: var(--shadow);
}

.featured-media {
    position: relative;
    min-height: 280px;
    background: #18181b;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.featured-copy h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.featured-copy p {
    color: #d4d4d8;
    line-height: 1.6;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 24px;
}

.sort-form select {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

.feed-list {
    display: grid;
    gap: 14px;
}

.feed-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feed-thumb {
    position: relative;
    min-height: 150px;
    background: #18181b;
}

.feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration,
.views-badge {
    position: absolute;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 5px 7px;
    font-size: 12px;
    font-weight: 700;
}

.duration {
    right: 8px;
    bottom: 8px;
}

.views-badge {
    left: 8px;
    bottom: 8px;
}

.feed-body {
    min-width: 0;
    padding: 14px;
}

.feed-body h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.feed-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.creator-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.creator-row a {
    color: var(--text);
    font-weight: 700;
}

.avatar {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-large {
    width: 92px;
    height: 92px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-details span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 0 11px;
    font-size: 13px;
    font-weight: 700;
}

.profile-edit-panel {
    max-width: 900px;
}

.profile-edit-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-edit-preview strong,
.profile-edit-preview span {
    display: block;
}

.profile-edit-preview strong {
    font-size: 20px;
}

.profile-edit-preview span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-edit-link {
    width: 100%;
    margin-top: 10px;
}

.readonly-value {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #101622;
    color: var(--muted);
    padding: 12px 13px;
    font-weight: 800;
}

.danger-zone {
    max-width: 900px;
    border-color: rgba(239, 68, 68, 0.48);
}

.danger-zone h2 {
    color: #fecdd3;
}

.danger-zone p {
    color: var(--muted);
    line-height: 1.55;
}

.role-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--brand-dark);
    padding: 0 11px;
    font-size: 13px;
    font-weight: 900;
}

.role-badge.admin {
    border-color: #cbd5e1;
    background: var(--ink);
    color: #fff;
}

.role-badge.moderator {
    border-color: #fecdd3;
    background: var(--brand);
    color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-cloud a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: #f4f4f5;
    color: #52525b;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.tag-cloud a:hover {
    background: #dcfce7;
    color: var(--brand-dark);
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.video-tags a {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 900;
}

.video-tags a:hover {
    background: #ffe4e6;
    color: var(--brand-dark);
}

.video-tags.compact {
    gap: 6px;
    margin-top: 10px;
}

.video-tags.compact a {
    min-height: 26px;
    padding: 0 9px;
    font-size: 12px;
}

.playlist-list {
    display: grid;
    gap: 10px;
}

.playlist-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    padding: 12px;
}

.playlist-card strong {
    display: block;
    margin-bottom: 5px;
}

.playlist-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.playlist-card:hover {
    border-color: var(--brand);
    background: #f0fdf4;
}

.trend-board {
    margin: 22px 0 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(225, 29, 72, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 30%),
        #fff;
    padding: 20px;
    box-shadow: var(--shadow);
}

.board-heading,
.section-row,
.feed-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.board-heading h1,
.section-row h2,
.feed-toolbar h2 {
    margin: 0;
    color: var(--ink);
}

.board-heading h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 34px;
    line-height: 1.08;
}

.country-dot {
    display: inline-grid;
    min-width: 40px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.all-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--brand-dark);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.trend-cloud-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.trend-cloud-large a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: #3f3f46;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
}

.trend-cloud-large a:nth-child(3n) {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.trend-cloud-large a:nth-child(4n) {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.trend-cloud-large a.active,
.trend-cloud-large a:hover {
    border-color: var(--brand);
    background: #ffe4e6;
    color: var(--brand-dark);
}

.playlist-board {
    margin: 22px 0 26px;
}

.section-row {
    margin-bottom: 12px;
}

.section-row span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.playlist-scroll-wide {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 8px;
}

.wide-playlist {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 14px;
    color: #fff;
    padding: 16px;
    box-shadow: var(--shadow);
}

.playlist-tone-1 {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.playlist-tone-2 {
    background: linear-gradient(135deg, #881337, #e11d48);
}

.playlist-tone-3 {
    background: linear-gradient(135deg, #14532d, #16a34a);
}

.playlist-tone-4 {
    background: linear-gradient(135deg, #713f12, #f59e0b);
}

.playlist-number {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
}

.wide-playlist strong {
    display: block;
    margin-top: auto;
    font-size: 18px;
}

.wide-playlist small {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

.feed-toolbar {
    margin: 26px 0 14px;
}

.reel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.reel-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.reel-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: #111827;
    overflow: hidden;
}

.reel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.reel-card:hover .reel-media img {
    transform: scale(1.04);
}

.reel-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
    pointer-events: none;
}

.reel-info {
    padding: 13px;
}

.reel-info h3 {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.25;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-tags a {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    border-radius: 999px;
    background: #f4f4f5;
    color: #52525b;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 800;
}

.bottom-discovery {
    display: grid;
    grid-template-columns: 1fr 1fr 260px;
    gap: 16px;
    margin: 30px 0 44px;
}

.stat-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.chat-hero {
    background: linear-gradient(180deg, #fff, #fff7f8 58%, #f8fafc);
    border-bottom: 1px solid var(--border);
    padding: 42px 0 36px;
}

.chat-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: center;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
}

.hero-lead {
    max-width: 670px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-kicker {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-features span {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #3f3f46;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.feature-bubbles {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.feature-bubbles span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
    font-size: 13px;
    font-weight: 900;
}

.feature-bubbles span:nth-child(2) {
    background: #f43f5e;
}

.feature-bubbles span:nth-child(3) {
    background: #be123c;
}

.feature-bubbles span:nth-child(4) {
    background: var(--ink);
}

.live-count {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 28px;
}

.live-count strong {
    color: var(--brand);
    font-size: 34px;
    line-height: 1;
}

.live-count span {
    color: var(--muted);
    font-weight: 700;
}

.join-card {
    border: 1px solid #fecdd3;
    border-radius: 18px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(190, 18, 60, 0.12);
}

.join-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
}

.join-card p {
    margin: 8px 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.wide,
.ghost-wide {
    width: 100%;
}

.join-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.join-divider::before,
.join-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.ghost-wide {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    background: #fff7f8;
    color: var(--ink);
    font-weight: 800;
}

.social-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 4px;
}

.home-category-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 0;
}

.home-category-menu a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0 22px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.home-category-menu a.active,
.home-category-menu a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.social-strip a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
}

.social-strip a:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: var(--brand-dark);
}

.section-block {
    padding: 44px 0;
}

.center-heading {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.center-heading h2,
.section-row h2,
.final-cta h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit-grid article,
.room-card,
.steps-grid article {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.benefit-grid h3,
.room-card h3,
.steps-grid h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 18px;
}

.benefit-grid p,
.room-card p,
.steps-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.room-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.room-card span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--brand-dark);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.room-card:hover {
    border-color: #fecdd3;
    background: #fffafa;
}

.chat-video-grid {
    margin-top: 18px;
}

.chat-video-card {
    border-radius: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.steps-grid span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.final-cta {
    margin-bottom: 46px;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fff1f2);
    color: var(--ink);
    padding: 36px;
    text-align: center;
}

.final-cta h2 {
    color: var(--ink);
}

.final-cta p {
    max-width: 680px;
    margin: 12px auto 22px;
    color: var(--muted);
    line-height: 1.6;
}

.final-cta .button {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.like-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.heart-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--brand-dark);
    padding: 0 18px;
    font-weight: 900;
}

.heart-button span {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.heart-button:hover {
    border-color: var(--brand);
    background: #ffe4e6;
}

.heart-button.liked,
.heart-button:disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

.like-form strong {
    color: var(--ink);
    font-size: 18px;
}

.recommendation-note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.next-video-list {
    display: grid;
    gap: 10px;
}

.next-video-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 8px;
}

.next-video-card:hover {
    border-color: var(--brand);
    background: #151b28;
}

.next-video-thumb {
    border-radius: 7px;
}

.next-video-thumb img,
.next-video-thumb video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.next-video-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.next-video-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.next-video-body span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.next-video-more {
    display: inline-flex;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 900;
}

.top-like-block {
    padding-top: 26px;
}

.top-like-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.top-like-card {
    overflow: hidden;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.top-like-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #111827;
}

.top-like-info {
    padding: 15px;
}

.rank-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.visibility-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid #3d2457;
    border-radius: 999px;
    background: #22142f;
    color: #f4d7ff;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.visibility-badge.compact {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
}

.top-like-info h3 {
    margin: 10px 0 6px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.top-like-info p {
    margin: 0 0 9px;
    color: var(--muted);
}

.top-like-info strong {
    color: var(--brand-dark);
}

.report-panel {
    border-color: #fed7aa;
    background: #fffaf5;
}

.report-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.report-button {
    width: 100%;
    border-color: #f97316;
    background: #f97316;
    color: #fff;
    font-weight: 900;
}

.report-button:hover {
    background: #ea580c;
}

.reports-admin-panel {
    border-color: #fed7aa;
    background: #fffaf5;
}

.reports-admin-panel h2 {
    color: #9a3412;
}

.admin-review-panel {
    border-top: 3px solid var(--brand);
}

.admin-review-list {
    display: grid;
    gap: 14px;
}

.admin-review-card {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 12px;
}

.admin-review-media video,
.admin-review-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #020713;
    object-fit: contain;
}

.admin-review-body {
    min-width: 0;
}

.admin-review-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-review-topline span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid #343b4c;
    border-radius: 999px;
    background: #1a202d;
    color: #dce2ee;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-body h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.admin-review-body p {
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.55;
}

.video-tags.compact span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border: 1px solid #2a3040;
    border-radius: 999px;
    background: #171c28;
    color: var(--muted);
    padding: 0 9px;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-actions {
    margin-top: 14px;
}

.video-card {
    overflow: hidden;
}

.thumb {
    aspect-ratio: 16 / 9;
    background: #27272a;
    object-fit: cover;
    width: 100%;
}

.thumb-preview-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #020713;
}

.thumb-preview-link img {
    display: block;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.thumb-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020713;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.thumb-preview-link.is-previewing img {
    opacity: 0;
}

.thumb-preview-link.is-previewing .thumb-preview-video {
    opacity: 1;
}

.preview-play-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(5, 9, 20, 0.78);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: opacity 0.18s ease;
}

.preview-play-mark::before {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.thumb-preview-link.is-previewing .preview-play-mark {
    opacity: 0;
}

.video-body {
    padding: 14px;
}

.video-body h2 {
    margin: 8px 0;
    font-size: 18px;
}

.video-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.panel {
    padding: 16px;
    margin-bottom: 16px;
}

.panel h2,
.form-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.form-panel {
    padding: 20px;
    margin: 24px 0 40px;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: 22px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 44px;
}

.auth-card {
    margin: 0;
}

.auth-card h1 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.15;
}

.auth-card form {
    display: grid;
    gap: 14px;
}

.auth-card button[type="submit"] {
    width: 100%;
}

.auth-card-register {
    border-top: 3px solid var(--brand);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
}

.field {
    margin-bottom: 15px;
}

.choice-stack {
    display: grid;
    gap: 9px;
}

.choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 12px;
    cursor: pointer;
}

.choice-card input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand);
}

.choice-card strong,
.choice-card small {
    display: block;
}

.choice-card strong {
    color: var(--text);
    font-size: 14px;
}

.choice-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.choice-card:has(input:checked) {
    border-color: var(--brand);
    background: #231733;
}

.emoji-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.emoji-toolbar button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
}

.emoji-toolbar button:hover,
.emoji-toolbar button:focus {
    border-color: var(--brand);
    background: #231733;
    outline: none;
}

.upload-progress {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 12px;
    margin-bottom: 15px;
}

.upload-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
}

.upload-progress-top span {
    color: var(--brand-dark);
    font-weight: 900;
}

.upload-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #050914;
}

.upload-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--brand), var(--brand-dark));
    transition: width 0.18s ease;
}

.upload-progress.is-processing .upload-progress-track span {
    background-size: 220% 100%;
    animation: upload-processing-pulse 1.15s linear infinite;
}

.upload-progress.is-processing .upload-progress-top span {
    color: #f4d7ff;
}

@keyframes upload-processing-pulse {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 220% 0;
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert.success {
    background: #dcfce7;
    color: #14532d;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
}

.video-player {
    width: 100%;
    border-radius: 8px;
    background: #111;
}

.video-page {
    width: min(1500px, calc(100% - 32px));
}

.watch-layout {
    grid-template-columns: minmax(0, min(48.5cm, calc(100vw - 360px))) 300px;
    justify-content: center;
    align-items: start;
    gap: 18px;
}

.watch-main {
    min-width: 0;
}

.watch-main .video-player {
    max-height: min(38cm, 74vh);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #020713;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manager-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.manager-row,
.manager-edit {
    display: flex;
    gap: 8px;
    align-items: center;
}

.manager-row {
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.manager-edit {
    flex: 1;
}

.manager-edit input {
    width: 100%;
    min-width: 120px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
}

.manager-count {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    white-space: nowrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.warning {
    border-color: var(--warning);
    background: var(--warning);
    color: #fff;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.contact-floating-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(182, 61, 244, 0.34);
}

.contact-floating-button:hover,
.contact-floating-button:focus {
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 20px;
}

.contact-modal:target {
    display: grid;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 20, 0.78);
    backdrop-filter: blur(12px);
}

.contact-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.contact-dialog h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
}

.contact-intro {
    margin: 9px 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-actions button,
.contact-actions .button {
    flex: 1 1 160px;
}

@media (max-width: 920px) {
    .header-inner,
    .layout,
    .auth-page,
    .form-grid,
    .home-grid,
    .featured-card,
    .bottom-discovery,
    .chat-hero-grid {
        grid-template-columns: 1fr;
    }

    .watch-layout {
        justify-content: stretch;
    }

    .watch-main .video-player {
        max-height: 54vh;
    }

    .admin-review-card {
        grid-template-columns: 1fr;
    }

    .nav {
        justify-content: flex-start;
    }

    .stats,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefit-grid,
    .room-grid,
    .steps-grid,
    .top-like-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discovery-hero {
        align-items: start;
        flex-direction: column;
    }

    .feed-card {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .sticky-panel {
        position: static;
    }

    .board-heading,
    .section-row,
    .feed-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .chat-hero {
        padding-top: 30px;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .stats,
    .video-grid,
    .feed-card,
    .reel-grid,
    .benefit-grid,
    .room-grid,
    .steps-grid,
    .top-like-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .section-title h1,
    .discovery-hero h1 {
        font-size: 24px;
    }

    .trend-strip,
    .section-head {
        display: block;
    }

    .strip-title,
    .sort-form {
        margin-bottom: 10px;
    }

    .feed-thumb {
        min-height: 210px;
    }

    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
    }

    .brand {
        font-size: 18px;
    }

    .brand-logo {
        height: 54px;
        max-width: 180px;
    }

    .search input {
        min-height: 42px;
    }

    .nav {
        display: none;
    }

    .nav a,
    .button,
    button {
        min-height: 36px;
        padding: 0 11px;
    }

    .trend-board {
        padding: 16px;
    }

    .board-heading h1 {
        font-size: 26px;
    }

    .trend-cloud-large a {
        min-height: 38px;
        padding: 0 13px;
    }

    .playlist-scroll-wide {
        grid-auto-columns: minmax(220px, 82vw);
    }

    .reel-media {
        aspect-ratio: 16 / 10;
    }

    .chat-hero {
        padding: 24px 0 28px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .join-card {
        padding: 18px;
        border-radius: 16px;
    }

    .section-block {
        padding: 30px 0;
    }

    .final-cta {
        padding: 26px 18px;
    }

    .manager-row,
    .manager-edit {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-head {
        align-items: flex-start;
    }

    .profile-avatar-large {
        width: 72px;
        height: 72px;
        font-size: 22px;
    }

    .mobile-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 4px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(16px);
    }

    .mobile-tabbar a {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-width: 0;
        border-radius: 8px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        padding: 5px 2px;
    }

    .mobile-tabbar a.active {
        background: #fff1f2;
        color: var(--brand-dark);
    }

    .tab-icon {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: #f4f4f5;
        color: inherit;
        font-size: 13px;
        font-weight: 900;
    }

    .mobile-tabbar a.active .tab-icon {
        background: var(--brand);
        color: #fff;
    }

    .contact-floating-button {
        right: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .contact-modal {
        padding: 12px;
    }

    .contact-dialog {
        max-height: calc(100vh - 24px);
        padding: 20px;
    }
}

/* Theme sombre inspire de ChatNow */
body {
    background:
        linear-gradient(180deg, #111620 0, #050914 120px),
        var(--bg);
    color: var(--text);
}

.site-header {
    background: rgba(17, 22, 33, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(182, 61, 244, 0.55);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark), var(--accent));
    opacity: 0.82;
}

.brand-logo {
    filter: drop-shadow(0 0 14px rgba(182, 61, 244, 0.38));
}

.search input,
.field input,
.field textarea,
.field select,
.manager-edit input,
.sort-form select {
    border-color: #353b4b;
    background: #161b27;
    color: var(--text);
}

.search input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: #747d8f;
}

.search input {
    background: #151a25;
    border-color: #303747;
}

.nav a,
.button,
button,
.ghost-wide,
.social-strip a,
.home-category-menu a,
.tag-cloud a,
.video-tags a,
.mini-tags a {
    border-color: #2a3040;
    background: #171c28;
    color: var(--text);
}

.nav a:hover,
.ghost-wide:hover,
.social-strip a:hover,
.home-category-menu a:hover,
.tag-cloud a:hover,
.video-tags a:hover,
.mini-tags a:hover {
    border-color: var(--brand);
    background: #231733;
    color: #f4d7ff;
}

.button,
button.primary,
.nav .button,
.home-category-menu a.active,
.final-cta .button {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 12px 30px rgba(182, 61, 244, 0.26);
}

.button:hover,
button.primary:hover {
    background: linear-gradient(135deg, #a21be8, #ec4899);
}

.nav .upload-button {
    min-height: 42px;
    padding: 0 18px;
    border-color: rgba(217, 70, 239, 0.55);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark) 58%, var(--accent));
    color: #fff;
    box-shadow: 0 12px 28px rgba(182, 61, 244, 0.34);
}

.nav .upload-button:hover {
    border-color: rgba(244, 215, 255, 0.72);
    background: linear-gradient(135deg, #a21be8, #ec4899 58%, #2f7cff);
    color: #fff;
    transform: translateY(-1px);
}

.nav .auth-combo {
    border-color: #343b4c;
    background: #111827;
    color: #dce2ee;
}

.nav .auth-combo:hover {
    border-color: var(--brand);
    background: #1b2230;
    color: #fff;
}

.chat-hero,
.hero,
.section-title,
.discovery-hero {
    background: #050914;
    border-bottom: 1px solid var(--border);
}

.chat-hero {
    min-height: 470px;
    background:
        radial-gradient(circle at 50% 54%, rgba(182, 61, 244, 0.12), transparent 22%),
        linear-gradient(180deg, #090e19, #050914);
}

.hero-copy h1,
.center-heading h2,
.section-row h2,
.final-cta h2,
.join-card h2,
.panel h2,
.form-panel h2,
.section-title h1,
.video-body h2,
.top-like-info h3,
.benefit-grid h3,
.room-card h3,
.steps-grid h3 {
    color: var(--ink);
}

.hero-kicker,
.eyebrow,
.live-count strong,
.top-like-info strong,
.heart-button span,
.role-badge,
.all-link {
    color: var(--brand-dark);
}

.hero-lead,
.join-card p,
.benefit-grid p,
.room-card p,
.steps-grid p,
.video-body p,
.top-like-info p,
.meta,
.field-help,
.section-row span,
.live-count span {
    color: var(--muted);
}

.hero-features span,
.profile-details span,
.manager-count,
.rank-badge,
.room-card span {
    border-color: #343b4c;
    background: #1a202d;
    color: #dce2ee;
}

.feature-bubbles span,
.steps-grid span,
.rank-badge {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 0 28px rgba(182, 61, 244, 0.35);
}

.feature-bubbles span:nth-child(4) {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
}

.join-card,
.panel,
.form-panel,
.video-card,
.reel-card,
.top-like-card,
.benefit-grid article,
.room-card,
.steps-grid article,
.final-cta,
.stat,
.manager-row,
.reports-admin-panel,
.report-panel {
    border-color: var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.join-card {
    border-top: 3px solid var(--brand);
}

.final-cta {
    background:
        radial-gradient(circle at 50% 0, rgba(182, 61, 244, 0.22), transparent 42%),
        var(--panel);
}

.top-like-card {
    border-color: #3d2457;
}

.room-card:hover,
.video-card:hover,
.top-like-card:hover,
.benefit-grid article:hover,
.steps-grid article:hover {
    border-color: var(--brand);
    background: #151b28;
}

.thumb,
.top-like-card img,
.top-like-card .thumb-preview-video,
.video-player,
.reel-media {
    background: #020713;
}

table {
    background: var(--panel);
}

th,
td {
    border-bottom-color: var(--border);
}

th {
    color: var(--muted);
}

.alert.success {
    background: #062d1b;
    color: #86efac;
}

.alert.error {
    background: #3a1117;
    color: #fecdd3;
}

.anti-robot-box {
    border-color: #3d2457;
    background: #171022;
}

.anti-robot-question {
    color: var(--ink);
}

.role-badge.moderator {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.role-badge.admin {
    border-color: #334155;
    background: #020713;
}

.heart-button {
    border-color: #3d2457;
    background: #22142f;
    color: #f4d7ff;
}

.report-panel,
.reports-admin-panel {
    background: #17131f;
}

.report-button,
.danger,
.warning {
    color: #fff;
}

.site-footer {
    border-top-color: var(--border);
    background: #090e19;
}

@media (max-width: 620px) {
    .mobile-tabbar {
        border-top-color: var(--border);
        background: rgba(17, 22, 33, 0.98);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
    }

    .mobile-tabbar a {
        color: var(--muted);
    }

    .mobile-tabbar a.active {
        background: #231733;
        color: #fff;
    }

    .tab-icon {
        background: #1b2230;
    }

    .mobile-tabbar a.active .tab-icon {
        background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    }

    .mobile-tabbar a[href="publier.php"] .tab-icon {
        background: linear-gradient(135deg, var(--brand), var(--brand-dark));
        color: #fff;
        box-shadow: 0 8px 18px rgba(182, 61, 244, 0.28);
    }
}

html {
    scroll-behavior: smooth;
}

.home-video-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 12px;
}

.home-video-head h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.home-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.home-quick-actions span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
}

.home-video-first .section-block {
    padding: 24px 0;
}

.home-video-first .top-like-block {
    padding-top: 20px;
}

.home-video-first .video-feed-section {
    padding-top: 18px;
}

.home-video-first .chat-video-grid {
    margin-top: 14px;
}

.home-video-first .chat-video-card .video-body p {
    display: none;
}

.home-video-first .top-like-info {
    padding: 12px;
}

.category-dock {
    position: sticky;
    top: 67px;
    z-index: 18;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 14, 25, 0.96);
    backdrop-filter: blur(16px);
}

.category-dock-inner {
    padding: 10px 0 12px;
}

.category-dock-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-dock-label strong {
    border: 1px solid #3d2457;
    border-radius: 999px;
    background: #231733;
    color: #fff;
    padding: 4px 9px;
    font-size: 11px;
}

.category-dock .home-category-menu,
.category-dock .social-strip {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.category-dock .home-category-menu {
    flex-wrap: nowrap;
    padding: 0 0 8px;
}

.category-dock .social-strip {
    flex-wrap: nowrap;
    padding: 0;
}

.category-dock .home-category-menu a,
.category-dock .social-strip a {
    flex: 0 0 auto;
}

.legacy-category-menu,
.legacy-social-strip {
    display: none;
}

.video-feed-section {
    scroll-margin-top: 158px;
}

.scroll-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
    gap: 14px;
}

.scroll-video-grid .video-card {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
}

.scroll-video-grid .video-card[hidden] {
    display: none;
}

.chat-video-card {
    border-radius: 10px;
}

.chat-video-card .thumb {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
}

.chat-video-card .video-body {
    padding: 12px;
}

.chat-video-card .video-body h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.chat-video-card .video-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-load-state,
.feed-load-button {
    margin: 18px auto 0;
}

.feed-load-state {
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
}

.feed-load-button {
    display: flex;
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 900;
}

.feed-sentinel {
    height: 1px;
}

.age-gate-open,
.age-gate-open body {
    overflow: hidden;
}

.age-gate[hidden] {
    display: none;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 35%, rgba(182, 61, 244, 0.18), transparent 34%),
        rgba(5, 9, 20, 0.9);
    backdrop-filter: blur(14px);
}

.age-gate-panel {
    width: min(460px, 100%);
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 26px;
    text-align: center;
}

.age-gate-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.1;
}

.age-gate-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.age-gate-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.age-gate-actions .button,
.age-gate-actions button {
    width: 100%;
}

.age-gate-exit {
    border-color: var(--border);
    background: #151b27;
    color: var(--ink);
}

@media (max-width: 920px) {
    .category-dock {
        top: 85px;
    }

    .scroll-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
}

@media (max-width: 620px) {
    .home-video-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 14px 10px 10px;
    }

    .home-video-head h1 {
        font-size: 28px;
    }

    .home-quick-actions {
        justify-content: flex-start;
    }

    .home-video-first .section-block {
        padding: 18px 0;
    }

    .category-dock {
        top: 0;
        z-index: 24;
    }

    .category-dock-inner {
        width: 100%;
        padding: 8px 10px 10px;
    }

    .category-dock-label {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .category-dock .home-category-menu a {
        min-height: 39px;
        padding: 0 16px;
        font-size: 14px;
    }

    .category-dock .social-strip a {
        min-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    .video-feed-section {
        scroll-margin-top: 104px;
    }

    .scroll-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .chat-video-card .thumb {
        aspect-ratio: 3 / 4;
    }

    .chat-video-card .video-body {
        padding: 9px;
    }

    .chat-video-card .video-body h2 {
        min-height: 36px;
        font-size: 14px;
    }

    .chat-video-card .video-body p,
    .chat-video-card .video-tags {
        display: none;
    }

    .chat-video-card .meta {
        gap: 6px;
        margin-top: 7px;
        font-size: 11px;
    }
}
