/* TORTUREX — Kanli Kirmizi Tema */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Georgia, "Times New Roman", Times, serif;
    background: #f5f0ee;
    color: #2c1810;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: #b91c1c; text-decoration: none; }
a:hover { color: #7f1d1d; }

/* TOPBAR — blood gradient */
.topbar {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #991b1b 100%);
    color: #fff;
    padding: 0.6rem 0;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 8px rgba(127,29,29,.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar__inner {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar a { color: #fff; }
.topbar__logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
.topbar__logo-img {
    height: 32px;
    width: auto;
    display: block;
}
.topbar__logo:hover { opacity: .85; }
.topbar__nav { display: flex; align-items: center; gap: 1.4rem; font-size: 1.1rem; margin-right: auto; }
.topbar__nav a { opacity: .88; }
.topbar__nav a:hover { opacity: 1; text-decoration: underline; }
.topbar__user { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; }
.topbar__user a { opacity: .88; }
.topbar__user a:hover { opacity: 1; text-decoration: underline; }
.topbar__user span { opacity: .7; }

/* CONTAINER */
.wrap {
    max-width: 60rem;
    margin: 1.6rem auto;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
}
.box {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    margin-bottom: 1.6rem;
}
.box__header {
    padding: 0.8rem 1.6rem;
    border-bottom: 1px solid #eee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #b91c1c;
}
.box__body { padding: 1.6rem; }

/* ENTRY */
.entry {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid #f0f0f0;
}
.entry:last-child { border-bottom: none; }
.entry__meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #999;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}
.entry__meta a { color: #b91c1c; }
.entry__meta a:hover { text-decoration: underline; }
.entry__number {
    color: #bbb;
    font-size: 0.95rem;
    margin-right: 0.3rem;
}
.entry__content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #2c1810;
}
.entry__content p { margin-bottom: 0.6rem; }
.entry__content p:last-child { margin-bottom: 0; }
.entry__content img, .entry__content video {
    max-width: 100%;
    height: auto;
    margin: 0.6rem 0;
}
.entry__actions {
    margin-top: 0.6rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    display: flex;
    gap: 0.8rem;
}
.entry__actions a { color: #999; }
.entry__actions a:hover { color: #b91c1c; }

/* HERO */
.hero {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    margin-bottom: 1.6rem;
    padding: 2rem 1.6rem;
    text-align: center;
}
.hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #b91c1c;
    margin-bottom: 0.4rem;
}
.hero p {
    color: #666;
    font-size: 1.2rem;
}

/* GRID */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.entry-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.entry-card:hover { border-color: #b91c1c; box-shadow: 0 2px 8px rgba(185,28,28,.12); }
.entry-card__thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #e8e8e8;
    flex-shrink: 0;
}
.entry-card__body {
    padding: 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.entry-card__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    color: #2c1810;
    margin-bottom: 0.3rem;
}
.entry-card__title:hover { color: #b91c1c; }
.entry-card__meta {
    font-size: 1rem;
    color: #999;
    line-height: 1.4;
}
.entry-card__badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f5c2c2;
}

/* FORM */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.3rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    color: #2c1810;
    outline: none;
    background: #fafafa;
    transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #b91c1c;
    background: #fff;
}
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    line-height: 1.4;
}
.btn--primary {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: #fff;
}
.btn--primary:hover { background: linear-gradient(135deg, #991b1b, #7f1d1d); }
.btn--outline {
    background: transparent;
    border: 1px solid #b91c1c;
    color: #b91c1c;
}
.btn--outline:hover { background: #fef2f2; }
.btn--danger {
    background: #7f1d1d;
    color: #fff;
}
.btn--danger:hover { background: #5a1414; }
.btn--small { padding: 0.4rem 1rem; font-size: 1rem; }

/* ALERT */
.alert {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    border: 1px solid;
    border-radius: 2px;
    line-height: 1.4;
}
.alert--error {
    background: #fef2f2;
    border-color: #f5c2c2;
    color: #b91c1c;
}
.alert--success {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* PAGINATION */
nav[aria-label="Pagination"] {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    padding: 1.2rem 0;
}
nav[aria-label="Pagination"] a,
nav[aria-label="Pagination"] span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #2c1810;
    font-size: 1.1rem;
}
nav[aria-label="Pagination"] a:hover {
    border-color: #b91c1c;
    color: #b91c1c;
}
nav[aria-label="Pagination"] .active {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #b91c1c;
    color: #fff;
}

/* FOOTER — warm dark */
.gf-footer {
    background: #1a1414;
    color: #a09898;
    font-family: Arial, Helvetica, sans-serif;
    border-top: 3px solid #b91c1c;
    width: 100%;
}
.gf-footer__inner {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2.4rem 2rem 0;
}
.gf-footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}
.gf-footer__col h4 {
    color: #e8d8d8;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}
.gf-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gf-footer__col ul li { margin-bottom: 0.4rem; }
.gf-footer__col ul li a {
    color: #8892a0;
    font-size: 1.1rem;
    transition: color .2s;
}
.gf-footer__col ul li a:hover { color: #f5a0a0; }
.gf-footer__col--social { }
.gf-footer__social {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.gf-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a1f1f;
    color: #a09898;
    transition: background .2s, color .2s;
}
.gf-footer__social-icon:hover {
    background: #b91c1c;
    color: #fff;
}
.gf-footer__badge {
    font-size: 0.9rem;
    color: #5a4a4a;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gf-footer__bottom {
    border-top: 1px solid #2a1f1f;
    margin-top: 2rem;
    padding: 1.2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 1rem;
    color: #5a4a4a;
}
.gf-footer__bottom a { color: #a09898; }
.gf-footer__bottom a:hover { color: #f5a0a0; }
.gf-footer__bottom-links { display: flex; gap: 0.6rem; align-items: center; }
.gf-footer__bottom-links span { color: #2a1f1f; }

/* ADMIN */
.admin-stats { display: flex; gap: 1.6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-stat {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.6rem 2rem;
    flex: 1;
    min-width: 160px;
    text-align: center;
}
.admin-stat__num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #b91c1c;
}
.admin-stat__label { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #999; margin: 0.4rem 0; }
.admin-stat__link { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.admin-section { background: #fff; border: 1px solid #ddd; padding: 1.6rem 2rem; }
.admin-section h2 { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; font-weight: 400; color: #b91c1c; margin-bottom: 1rem; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    background: #fff;
    border: 1px solid #ddd;
}
.admin-table th, .admin-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #2c1810;
}
.admin-table th { background: #f5f0ee; font-weight: 600; color: #7f1d1d; }
.admin-table tr:hover { background: #fef2f2; }
.admin-actions { display: flex; gap: 0.4rem; align-items: center; }
.admin-actions .btn { font-size: 1rem; padding: 0.3rem 0.8rem; }
.admin-form { background: #fff; border: 1px solid #ddd; padding: 1.6rem; margin-bottom: 1.6rem; }
.admin-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form label { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #555; margin-bottom: 0.4rem; }
.admin-form label input, .admin-form label select, .admin-form label textarea { width: 100%; margin-top: 0.3rem; }
.admin-form--inline { background: #fff; border: 1px solid #ddd; padding: 1rem; position: absolute; z-index: 10; }
.admin-inline { display: inline; }
.admin-check { display: flex; align-items: center; gap: 0.4rem; }
.admin-check input { width: auto !important; }
.admin-msg { font-family: Arial, Helvetica, sans-serif; padding: 0.6rem 1rem; margin-bottom: 1rem; font-size: 1.2rem; border: 1px solid; }
.admin-msg--ok { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.admin-msg--err { background: #fef2f2; border-color: #f5c2c2; color: #b91c1c; }
.admin-details { position: relative; }
.admin-details summary { cursor: pointer; font-family: Arial, Helvetica, sans-serif; }
.admin-details[open] > summary { margin-bottom: 0.8rem; }

.admin-upload__info { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #666; margin-bottom: 1rem; }
.admin-upload__dropzone {
    border: 2px dashed #d0d0d0;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.6rem;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .2s;
}
.admin-upload__dropzone:hover { border-color: #b91c1c; }
.admin-upload__placeholder p { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; color: #666; }
.admin-upload__hint { font-size: 1.1rem !important; color: #999 !important; margin-top: 0.4rem; }
.admin-upload__icon { font-size: 2.4rem; }
.admin-upload__preview { margin-top: 1rem; }
.admin-upload__bar-track { height: 6px; background: #eee; border-radius: 3px; margin: 0.6rem 0; overflow: hidden; }
.admin-upload__bar { height: 100%; background: linear-gradient(90deg, #b91c1c, #dc2626); width: 0; transition: width .3s; }
.admin-log { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; background: #fff; border: 1px solid #ddd; padding: 1rem 2rem; max-height: 300px; overflow-y: auto; }
.admin-log li { padding: 0.2rem 0; color: #2c1810; }
.admin-table code { font-size: 1.1rem; color: #666; }

/* LIVE BADGE */
.live-badge { display: inline-block; padding: 0.2rem 0.6rem; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; border-radius: 2px; }
.live-badge--live { background: #fef2f2; color: #b91c1c; border: 1px solid #f5c2c2; }
.live-badge--scheduled { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.live-badge--ended { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.muted { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #999; }

/* BILLING */
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.billing-card { background: #fff; border: 1px solid #ddd; padding: 1.6rem; text-align: center; position: relative; overflow: hidden; }
.billing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b91c1c, #dc2626);
}
.billing-card__gold { font-size: 1.8rem; font-weight: 700; color: #b91c1c; }
.billing-card__price { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; color: #666; margin: 0.8rem 0; }
.billing-or { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #aaa; margin: 0.8rem 0; }
.billing-loader { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #666; padding: 0.8rem; }
.billing-banner { font-family: Arial, Helvetica, sans-serif; padding: 0.8rem 1.2rem; margin-bottom: 1.6rem; border: 1px solid; }
.billing-banner--ok { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.billing-banner--warn { background: #fef2f2; border-color: #f5c2c2; color: #b91c1c; }
.billing-meta { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #666; margin-bottom: 2rem; }
.billing-meta p { margin-bottom: 0.4rem; }
.billing-referral { color: #b91c1c; font-weight: 600; }
.billing-hint { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #999; margin-top: 2rem; }

/* WATCH LIVE */
.watch-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; }
.watch-primary { min-width: 0; }
.watch-player { background: #0a0505; margin-bottom: 1.2rem; border: 1px solid #2a1f1f; }
.watch-player__video { width: 100%; display: block; max-height: 480px; }
.watch-player__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem; color: #999; font-family: Arial, Helvetica, sans-serif; }
.watch-player__icon { font-size: 3rem; margin-bottom: 1rem; color: #b91c1c; }
.watch-player__placeholder small { margin-top: 0.5rem; color: #666; }
.live-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.live-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.live-tech-note { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #999; padding: 0.4rem 1rem; }
.watch-meta { padding: 1.2rem 0; }
.watch-meta__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.watch-meta__top h1 { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; font-weight: 400; color: #2c1810; }
.watch-meta__row { font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #999; display: flex; gap: 1.6rem; }
.watch-desc { font-family: Georgia, serif; font-size: 1.3rem; color: #555; margin-top: 1rem; }
.watch-chat { background: #fff; border: 1px solid #ddd; display: flex; flex-direction: column; max-height: 600px; }
.watch-chat__header { padding: 0.8rem 1rem; border-bottom: 1px solid #eee; font-family: Arial, Helvetica, sans-serif; display: flex; align-items: center; gap: 0.6rem; }
.watch-chat__header h3 { font-size: 1.3rem; font-weight: 400; color: #b91c1c; }
.watch-chat__count { font-size: 1rem; color: #999; }
.watch-chat__messages { flex: 1; overflow-y: auto; padding: 0.8rem 1rem; }
.chat-msg { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; margin-bottom: 0.4rem; }
.chat-msg__author { color: #b91c1c; }
.chat-msg__text { color: #2c1810; }
.watch-chat__form { display: flex; border-top: 1px solid #eee; }
.watch-chat__input { flex: 1; padding: 0.8rem 1rem; border: none; outline: none; font-family: Georgia, serif; font-size: 1.2rem; }
.watch-chat__send { padding: 0.8rem 1.6rem; background: linear-gradient(135deg, #b91c1c, #991b1b); color: #fff; border: none; font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; cursor: pointer; }
.watch-chat__send:hover { background: linear-gradient(135deg, #991b1b, #7f1d1d); }

/* QR */
.qr-card { background: #fff; border: 1px solid #ddd; padding: 2rem; max-width: 40rem; margin: 0 auto; }
.qr-card h1 { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; font-weight: 400; color: #b91c1c; margin-bottom: 1rem; }
.qr-image { text-align: center; margin: 1.6rem 0; }
.qr-info { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #666; }
.qr-info p { margin-bottom: 0.4rem; }
.qr-badge { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; color: #b91c1c; font-weight: 600; margin-bottom: 0.8rem; }
.qr-details { margin-top: 1rem; }
.qr-form { margin: 1.6rem 0; }
.qr-persist-form { margin-top: 1.6rem; }

/* CHAT LAYOUT */
.chat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.2rem;
    min-height: 60vh;
}
.chat-sidebar {
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
}
.chat-sidebar__section {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.chat-sidebar__section:last-child { border-bottom: none; }
.chat-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.chat-sidebar h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chat-channel-list { list-style: none; }
.chat-channel-list li { margin-bottom: 0.2rem; }
.chat-channel-item {
    display: block;
    padding: 0.35rem 0.6rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
    transition: background .15s;
}
.chat-channel-item:hover { background: #f5f0ee; }
.chat-channel-item.active { background: #fef2f2; color: #b91c1c; font-weight: 600; }
.chat-channel-item small {
    display: block;
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    margin-top: 0.1rem;
}
.chat-user-list { list-style: none; }
.chat-user-list li { margin-bottom: 0.15rem; }
.chat-user-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.4rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 2px;
}
.chat-user-item:hover { background: #f5f0ee; }
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.online-dot--online { background: #22c55e; }
.online-dot--offline { background: #d0d0d0; }

.chat-main {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 70vh;
}
.chat-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #b91c1c;
}
.chat-header__actions { display: flex; gap: 0.5rem; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 1.2rem;
}
.chat-msg {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}
.chat-msg:hover { background: #fafafa; }
.chat-msg--own { background: #fef2f2; }
.chat-msg__author {
    color: #b91c1c;
    font-weight: 600;
    margin-right: 0.4rem;
}
.chat-msg__text { color: #2c1810; }
.chat-msg__time {
    float: right;
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 0.2rem;
}
.chat-msg__seen {
    display: inline-block;
    font-size: 0.8rem;
    color: #b91c1c;
    margin-left: 0.3rem;
    font-style: italic;
}
.chat-input {
    display: flex;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.chat-input__field {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    outline: none;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}
.chat-input__emoji {
    padding: 0.7rem 0.6rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    line-height: 1;
}
.chat-input__emoji:hover { opacity: 1; }
.chat-input__send {
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: #fff;
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
}
.chat-input__send:hover { background: linear-gradient(135deg, #991b1b, #7f1d1d); }
/* REACTIONS */
.entry__reactions {
    margin-top: 0.4rem;
    padding-left: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}
.reaction-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    cursor: default;
    transition: background .15s;
    line-height: 1.4;
}
.reaction-badge:hover { background: #fef2f2; border-color: #f5c2c2; }
.reaction-toggle { cursor: pointer !important; }
.reaction-add {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #999;
    border: 1px dashed #d0d0d0;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    background: #fafafa;
}
.reaction-add:hover { border-color: #b91c1c; color: #b91c1c; }

/* QQ Emoji */
.qq-emoji {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    display: inline-block;
}

/* Emoji Picker */
.emoji-picker {
    position: fixed;
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    max-width: 94vw;
    max-height: 360px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: bottom .25s ease;
}
.emoji-picker.open { bottom: 0; }
.emoji-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    color: #b91c1c;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.emoji-picker__close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.emoji-picker__close:hover { color: #b91c1c; }
.emoji-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 2px;
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}
.emoji-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
}
.emoji-picker__item:hover { background: #fef2f2; }
.emoji-picker__item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.emoji-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.2);
    z-index: 999;
}
.emoji-picker-overlay.open { display: block; }

.chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
}
.hidden { display: none !important; }

/* MEETING GRID */
.meeting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.meeting-card {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.2rem;
    text-decoration: none;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
}
.meeting-card:hover { border-color: #b91c1c; box-shadow: 0 2px 8px rgba(185,28,28,.1); }
.meeting-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.meeting-card__count {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #999;
}
.meeting-card__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c1810;
    margin-bottom: 0.3rem;
}
.meeting-card__desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.meeting-card__meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #999;
}

/* MEETING ROOM (WebRTC) */
.meeting-room {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.meeting-room__videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    min-height: 300px;
}
.meeting-room__local,
.meeting-room__remote {
    position: relative;
    background: #0a0505;
    border: 1px solid #2a1f1f;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.meeting-room__local video,
.meeting-room__remote video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.meeting-room__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 0.6rem;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}
.meeting-room__controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}
.meeting-room__chat {
    border: 1px solid #ddd;
    background: #fff;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}
.meeting-chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 0.6rem 0.8rem;
    min-height: 100px;
}
.meeting-room__reactions {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    padding: 0.4rem 0;
    flex-wrap: wrap;
}
.meeting-reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    border-radius: 50%;
    background: #f5f0ee;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform .15s, background .15s;
    user-select: none;
}
.meeting-reaction-btn:hover {
    transform: scale(1.2);
    background: #fef2f2;
    border-color: #b91c1c;
}
.meeting-room__float {
    position: relative;
    height: 0;
    pointer-events: none;
    z-index: 50;
}
.float-emoji {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatUp 2.5s ease-out forwards;
    pointer-events: none;
}
.float-emoji__icon {
    font-size: 2.2rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.float-emoji__name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #b91c1c;
    background: rgba(255,255,255,.8);
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) translateX(0) scale(0.5); }
    20% { opacity: 1; transform: translateY(-40px) translateX(var(--drift, 0px)) scale(1); }
    100% { opacity: 0; transform: translateY(-200px) translateX(var(--drift, 0px)) scale(0.8); }
}

.meeting-scheduled {
    text-align: center;
    padding: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .chat-layout { grid-template-columns: 1fr; }
    .chat-sidebar { max-height: 200px; }
    .chat-main { max-height: 50vh; }
    .meeting-room__videos { grid-template-columns: 1fr; }
    .gf-footer__cols { grid-template-columns: 1fr 1fr; }
    .gf-footer__bottom { flex-direction: column; text-align: center; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-form__grid { grid-template-columns: 1fr; }
    .watch-layout { grid-template-columns: 1fr; }
}
.meeting-room__panels {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}
.meeting-room__panel {
    flex: 1;
    min-width: 0;
}
.panel-header {
    font-weight: 700;
    font-size: 0.9rem;
    color: #b91c1c;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #2a1f1f;
    padding-bottom: 0.3rem;
}
.participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}
.participant-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.participant-item:nth-child(odd) {
    background: #0f0808;
}
.participant-item__name {
    flex: 1;
}
.participant-item__you {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.status-dot--online {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, .5);
}
.status-dot--offline {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, .3);
}
.chat-msg__time {
    color: #888;
    font-size: 0.75rem;
    margin-right: 0.3rem;
}
.chat-msg__del {
    cursor: pointer;
    color: #ef4444;
    margin-left: 0.4rem;
    font-size: 0.8rem;
    user-select: none;
}
.chat-msg__del:hover {
    color: #dc2626;
}
@media (max-width: 768px) {
    .gf-footer__cols { grid-template-columns: 1fr 1fr; }
    .gf-footer__bottom { flex-direction: column; text-align: center; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-form__grid { grid-template-columns: 1fr; }
    .watch-layout { grid-template-columns: 1fr; }
}
.trial-banner{background:linear-gradient(90deg,#7f1d1d,#991b1b);color:#fff;text-align:center;padding:0.5rem 1rem;font-family:Arial,Helvetica,sans-serif;font-size:0.9rem}.trial-banner a{color:#fff;text-decoration:underline}
@media (max-width: 600px) {
    .topbar__inner { flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
    .topbar__nav { gap: 0.8rem; font-size: 0.95rem; flex-wrap: wrap; justify-content: center; }
    .entry__content { font-size: 1.3rem; }
    .entry-grid { grid-template-columns: 1fr; }
    .gf-footer__cols { grid-template-columns: 1fr; text-align: center; }
    .gf-footer__social { justify-content: center; }
    .billing-grid { grid-template-columns: 1fr; }
    .admin-stats { flex-direction: column; }
}
