/* GNT */
:root {
    --bg: #111;
    --bg2: #191919;
    --bg3: #222;
    --text: #ddd;
    --text2: #999;
    --text3: #666;
    --blue: #2a9fd6;
    --blue2: #2388b8;
    --green: #4caf50;
    --red: #e53935;
    --orange: #ff9800;
    --border: #2a2a2a;
    --r: 8px;
}
/* Light theme */
html.light {
    --bg: #f5f5f5;
    --bg2: #fff;
    --bg3: #eee;
    --text: #222;
    --text2: #555;
    --text3: #888;
    --border: #ddd;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap-sm { max-width: 560px; }
.wrap-md { max-width: 760px; }

/* Top bar */
.topbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.topbar .logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.topbar .logo:hover { text-decoration: none; }
.topbar .logo b { color: var(--blue); }
.topbar nav { display: flex; gap: 16px; align-items: center; }
.topbar nav a {
    color: var(--text2);
    font-size: 0.85rem;
}
.topbar nav a:hover { color: var(--text); }
.topbar .add-btn {
    background: var(--blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--r);
    font-size: 0.82rem;
    font-weight: 600;
}
.topbar .add-btn:hover { background: var(--blue2); text-decoration: none; }
.mob-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Homepage top */
.home-top {
    padding: 35px 0 25px;
    border-bottom: 1px solid var(--border);
}
.home-top h1 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}
.home-top p {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.home-top .nums {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text3);
    margin-bottom: 16px;
}
.home-top .nums strong { color: var(--text); }
.search-row {
    display: flex;
    gap: 0;
    max-width: 420px;
}
.search-row input {
    flex: 1;
    padding: 9px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--r) 0 0 var(--r);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}
.search-row input:focus { border-color: var(--blue); }
.search-row button {
    padding: 9px 18px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 0 var(--r) var(--r) 0;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Categories bar */
.cats-bar {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.cats-bar .wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text2);
    white-space: nowrap;
}
.cat-tag:hover {
    border-color: var(--blue);
    color: var(--text);
    text-decoration: none;
}

/* Channel list */
.section { padding: 25px 0; }
.section h2 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text2);
    font-weight: 600;
}
.ch-list { display: flex; flex-direction: column; gap: 1px; }
.ch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg2);
    border-radius: var(--r);
    transition: background 0.15s;
}
a.ch-item {
    display: flex;
    color: var(--text);
}
a.ch-item:hover { background: var(--bg3); text-decoration: none; }
.ch-ava {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ch-ava.big { width: 64px; height: 64px; font-size: 1.6rem; }
.ch-body { flex: 1; min-width: 0; }
.ch-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.ch-meta {
    font-size: 0.78rem;
    color: var(--text3);
    display: flex;
    gap: 10px;
    margin-top: 2px;
}
.ch-desc {
    font-size: 0.8rem;
    color: var(--text3);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ch-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-join {
    display: inline-block;
    padding: 6px 14px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r);
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-join:hover { background: var(--blue2); text-decoration: none; }
.btn-det {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 0.8rem;
    color: var(--text3);
}
.btn-det:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Grid mode (for category pages) */
.ch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--r);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue2); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-big { padding: 12px 24px; font-size: 0.95rem; }
.btn-full { display: block; width: 100%; }

/* Page header */
.pg-head {
    padding: 25px 0 15px;
    border-bottom: 1px solid var(--border);
}
.pg-head h1 { font-size: 1.3rem; margin-bottom: 4px; }
.pg-head p { color: var(--text2); font-size: 0.88rem; }
.crumbs {
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 8px;
}
.crumbs a { color: var(--text3); }

/* Channel detail */
.detail { padding: 25px 0; }
.detail-box {
    background: var(--bg2);
    border-radius: var(--r);
    padding: 30px;
    max-width: 650px;
    text-align: center;
}
.detail-hero { margin-bottom: 20px; }
.detail-hero .ch-ava { margin: 0 auto 14px; }
.detail-hero h1 { font-size: 1.4rem; margin-bottom: 6px; }
.detail-meta {
    font-size: 0.82rem;
    color: var(--text3);
}
.detail-meta a { color: var(--text2); }
.detail-desc {
    text-align: left;
    color: var(--text2);
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0;
}
.detail-subs {
    font-size: 0.85rem;
    color: var(--text3);
    margin-bottom: 16px;
}
.join-big {
    display: block;
    padding: 14px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.join-big:hover { background: var(--blue2); text-decoration: none; }
.detail-link {
    font-size: 0.8rem;
    color: var(--text3);
    padding: 8px;
    background: var(--bg);
    border-radius: var(--r);
}
/* Voting */
.vote-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}
.vb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg3);
    color: var(--text2);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vb svg { flex-shrink: 0; }
.vb-up:hover:not(.off) { border-color: var(--green); color: var(--green); background: rgba(76,175,80,0.1); }
.vb-down:hover:not(.off) { border-color: var(--red); color: var(--red); background: rgba(229,57,53,0.1); }
.vb.off { opacity: 0.4; cursor: default; }

/* Favorites */
.fav-row { margin-top: 14px; text-align: center; }
.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg3);
    color: var(--text2);
    font-size: 0.9rem;
    cursor: pointer;
}
.fav-btn:hover { border-color: #e74c3c; color: #e74c3c; text-decoration: none; }
.fav-btn.faved { color: #e74c3c; border-color: #e74c3c; }

/* Comments */
.comments-box {
    margin-top: 30px;
    max-width: 650px;
}
.comments-box h2 { font-size: 1rem; color: var(--text2); margin-bottom: 14px; }
.comment-form { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-form textarea {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    outline: none;
}
.comment-form textarea:focus { border-color: var(--blue); }
.comment-form .btn { align-self: flex-end; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment {
    padding: 12px;
    background: var(--bg2);
    border-radius: var(--r);
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.comment-ava {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.comment-date { color: var(--text3); margin-left: auto; }
.comment-body { font-size: 0.88rem; color: var(--text2); line-height: 1.5; }

/* Status badges */
.status-approved { color: var(--green); }
.status-pending { color: var(--orange); }
.status-rejected { color: var(--red); }

/* Similar */
.similar { margin-top: 30px; }
.similar h2 { font-size: 1rem; color: var(--text2); margin-bottom: 14px; }
.sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.sim-card {
    background: var(--bg2);
    border-radius: var(--r);
    padding: 18px 12px;
    text-align: center;
    color: var(--text);
}
.sim-card:hover { background: var(--bg3); text-decoration: none; }
.sim-card .ch-ava { margin: 0 auto 10px; }
.sim-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 3px; }
.sim-cat { font-size: 0.75rem; color: var(--text3); margin-bottom: 8px; }
.sim-card .btn-det { font-size: 0.75rem; padding: 4px 10px; }

/* Forms */
.form-box {
    background: var(--bg2);
    padding: 24px;
    border-radius: var(--r);
}
.fg { margin-bottom: 16px; }
.fg label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.85rem;
}
.fg input, .fg select, .fg textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue); }
.fg small { display: block; margin-top: 3px; color: var(--text3); font-size: 0.78rem; }
.alert {
    padding: 12px 16px;
    border-radius: var(--r);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-ok { background: rgba(76,175,80,0.15); border: 1px solid var(--green); color: var(--green); }
.alert-err { background: rgba(229,57,53,0.15); border: 1px solid var(--red); color: var(--red); }

/* Static pages */
.static { padding: 25px 0 50px; }
.page-box {
    background: var(--bg2);
    border-radius: var(--r);
    padding: 28px;
}
.page-box h2 {
    font-size: 1.1rem;
    margin: 22px 0 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.page-box h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.page-box h3 { font-size: 0.95rem; margin: 12px 0 6px; }
.page-box p { color: var(--text2); margin-bottom: 8px; }
.page-box ul, .page-box ol { padding-left: 18px; margin-bottom: 12px; }
.page-box li { color: var(--text2); margin-bottom: 6px; font-size: 0.9rem; }

/* Partners */
.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.partner-empty {
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: var(--r);
    color: var(--text3);
    font-size: 0.85rem;
    grid-column: 1 / -1;
}
.contact-box {
    text-align: center;
    padding: 20px;
    background: var(--bg3);
    border-radius: var(--r);
    margin-top: 16px;
}

/* About stats */
.about-nums {
    display: flex;
    gap: 20px;
    margin: 18px 0;
    flex-wrap: wrap;
}
.about-num {
    padding: 14px 24px;
    background: var(--bg3);
    border-radius: var(--r);
    text-align: center;
}
.about-num strong { display: block; font-size: 1.5rem; color: var(--blue); }
.about-num span { font-size: 0.8rem; color: var(--text3); }

/* 404 */
.e404 { padding: 80px 0; text-align: center; }
.e404 .code { font-size: 6rem; font-weight: 800; color: var(--border); line-height: 1; }
.e404 h1 { font-size: 1.4rem; margin: 8px 0 12px; }
.e404 p { color: var(--text2); margin-bottom: 20px; }
.e404 .btns { display: flex; gap: 10px; justify-content: center; }

/* Pagination */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text3);
}

/* Footer */
.foot {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 30px 0 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text3);
}
.foot-cols {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.foot-col { flex: 1; min-width: 150px; }
.foot-col h4 { color: var(--text2); margin-bottom: 8px; font-size: 0.82rem; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 4px; }
.foot-col a { color: var(--text3); }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

/* Admin */
.admin-body { background: var(--bg); }
.admin-login {
    max-width: 360px;
    margin: 80px auto;
    background: var(--bg2);
    padding: 30px;
    border-radius: var(--r);
}
.admin-login h1 { text-align: center; margin-bottom: 20px; font-size: 1.2rem; }
.admin-bar {
    background: var(--bg2);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.admin-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: var(--text2); font-size: 0.85rem; }
.admin-wrap { padding: 24px 0 50px; }
.a-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.a-stat {
    padding: 14px;
    background: var(--bg2);
    border-radius: var(--r);
    text-align: center;
}
.a-stat .n { font-size: 1.6rem; font-weight: 700; }
.a-stat .l { font-size: 0.75rem; color: var(--text3); }
.a-stat.green .n { color: var(--green); }
.a-stat.orange .n { color: var(--orange); }
.a-stat.red .n { color: var(--red); }
.a-stat.blue .n { color: var(--blue); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tab {
    padding: 8px 16px;
    border-radius: var(--r) var(--r) 0 0;
    color: var(--text3);
    background: var(--bg2);
    font-size: 0.85rem;
}
.tab.on { color: var(--text); background: var(--bg3); }
.tab:hover { text-decoration: none; color: var(--text); }
.tbl-wrap { overflow-x: auto; }
.tbl {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg2);
    font-size: 0.82rem;
}
.tbl th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg3);
    color: var(--text2);
    font-size: 0.78rem;
}
.tbl td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.tbl small { color: var(--text3); }
.ifo { display: inline-flex; gap: 3px; }
.ab {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    background: var(--bg3);
    color: var(--text);
}
.ab.g { background: rgba(76,175,80,0.2); }
.ab.r { background: rgba(229,57,53,0.2); }
.ab.y { background: rgba(255,152,0,0.2); }

/* ========== Model Feed Native Ads ========== */
.mf-section { border-bottom: 1px solid var(--border); }
.mf-section h2 { display: flex; align-items: center; gap: 8px; }
.mf-dot {
    color: #e53935;
    font-size: 0.7rem;
    animation: adPulse 2s infinite;
}
@keyframes adPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.mf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
}
.mf-card {
    display: block;
    background: var(--bg2);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text);
}
.mf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(229,57,53,0.15);
    text-decoration: none;
}
.mf-img { position: relative; }
.mf-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.mf-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e53935;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 1px;
}
.mf-new {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--green);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.mf-toy {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
}
.mf-cat {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(42,159,214,0.85);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}
.mf-info { padding: 7px 8px; }
.mf-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mf-meta {
    font-size: 0.7rem;
    color: var(--text3);
}
.mf-more {
    text-align: center;
    margin-top: 14px;
}

/* ========== Banner Ads ========== */
.ad-wrap { text-align: center; padding: 16px 0; }
.ad-center { display: flex; justify-content: center; }

/* Leaderboard */
.ad-lb {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a0808 0%, #2d0a0a 50%, #1a0808 100%);
    border: 1px solid #3d1515;
    border-radius: var(--r);
    color: #fff;
    font-size: 0.88rem;
    max-width: 728px;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s;
}
.ad-lb:hover {
    border-color: #e53935;
    background: linear-gradient(135deg, #2d0a0a 0%, #451515 50%, #2d0a0a 100%);
    text-decoration: none;
}
.ad-lb-thumbs {
    display: flex;
    flex-shrink: 0;
}
.ad-lb-thumbs img {
    width: 65px;
    height: 56px;
    object-fit: cover;
    display: block;
}
.ad-lb-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}
.ad-dot {
    color: #e53935;
    font-size: 0.8rem;
    animation: adPulse 2s infinite;
    flex-shrink: 0;
}
.ad-lb-text { flex: 1; text-align: left; font-size: 0.82rem; }
.ad-lb-text strong { color: #e53935; }
.ad-cta {
    background: #e53935;
    color: #fff;
    padding: 7px 18px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 14px;
    transition: background 0.2s;
}
.ad-cta:hover { background: #c62828; }

/* Rectangle 300x250 */
.ad-rect {
    display: block;
    position: relative;
    width: 300px;
    height: 250px;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid #3d1515;
    transition: all 0.3s;
}
.ad-rect:hover {
    border-color: #e53935;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(229,57,53,0.2);
}
.ad-rect-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.6);
}
.ad-rect-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #fff;
}
.ad-rect-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #e53935;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.ad-rect-h {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.ad-rect-p {
    font-size: 0.88rem;
    color: #bbb;
    margin-bottom: 22px;
    line-height: 1.5;
}
.ad-rect-model {
    font-size: 0.85rem;
    color: #eee;
    margin-bottom: 18px;
    font-style: italic;
}
.ad-rect-btn {
    background: #e53935;
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Strip banner */
.ad-strip {
    background: linear-gradient(90deg, #1a0808, #2d0a0a, #1a0808);
    border-top: 1px solid #3d1515;
    border-bottom: 1px solid #3d1515;
}
.ad-strip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    color: #fff;
}
.ad-strip-inner:hover { text-decoration: none; }
.ad-strip-thumbs {
    display: flex;
    flex-shrink: 0;
}
.ad-strip-thumbs img {
    width: 56px;
    height: 48px;
    object-fit: cover;
    display: block;
}
.ad-strip-txt {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}
.ad-strip-txt strong { font-size: 0.88rem; }
.ad-strip-txt span { font-size: 0.78rem; color: #aaa; }

/* Card banner (wide, with stats) */
.ad-card {
    display: block;
    max-width: 480px;
    width: 100%;
    border-radius: var(--r);
    overflow: hidden;
    transition: all 0.3s;
}
.ad-card:hover { text-decoration: none; transform: translateY(-2px); }
.ad-card-bg {
    background: linear-gradient(180deg, #2d0a0a 0%, #180505 60%, #2d0a0a 100%);
    border: 1px solid #3d1515;
    border-radius: var(--r);
    padding: 24px;
    color: #fff;
    text-align: center;
}
.ad-card:hover .ad-card-bg { border-color: #e53935; }
.ad-card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #e53935;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.ad-card-models {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ad-card-model {
    text-align: center;
}
.ad-card-model img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}
.ad-card-model span {
    font-size: 0.7rem;
    color: #ccc;
}
.ad-card-h { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.ad-card-p { font-size: 0.85rem; color: #bbb; margin-bottom: 16px; line-height: 1.5; }
.ad-card-cta {
    display: inline-block;
    background: #e53935;
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.ad-card-nums {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 14px;
    border-top: 1px solid #3d1515;
}
.ad-card-num { text-align: center; }
.ad-card-num strong { display: block; font-size: 1.1rem; color: #e53935; }
.ad-card-num span { font-size: 0.7rem; color: #888; }

/* ========== Star Rating ========== */
.star-rating {
    text-align: center;
    margin: 18px 0;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--r);
}
.stars { display: inline-flex; gap: 4px; margin-bottom: 6px; }
.star {
    font-size: 1.8rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}
.star.filled { color: #ffc107; }
.star.avg:not(.filled) { color: #665500; }
.star.hover { color: #ffc107; transform: scale(1.15); }
.star-info { font-size: 0.8rem; color: var(--text3); }

/* ========== Improved Comments ========== */
.comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.comments-header h2 { margin-bottom: 0; }
.comments-count {
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.comment-form {
    background: var(--bg);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 16px;
    display: block;
}
.comment-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-input-row textarea {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    outline: none;
}
.comment-input-row textarea:focus { border-color: var(--blue); }
.comment-submit { text-align: right; margin-top: 10px; }
.comment-login-prompt {
    text-align: center;
    padding: 18px;
    background: var(--bg);
    border-radius: var(--r);
    margin-bottom: 16px;
}
.comment {
    padding: 14px;
    background: var(--bg2);
    border-radius: var(--r);
    border-left: 3px solid var(--blue);
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.comment-author { display: flex; flex-direction: column; }
.comment-author strong { font-size: 0.85rem; }
.comment-date { font-size: 0.72rem; color: var(--text3); }
.comment-body {
    font-size: 0.88rem;
    color: var(--text2);
    line-height: 1.6;
    padding-left: 34px;
}
.comment-empty {
    text-align: center;
    padding: 24px;
    color: var(--text3);
    font-size: 0.85rem;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px dashed var(--border);
}

/* ========== CTA Add Channel ========== */
.cta-add {
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    background: var(--bg2);
    border-radius: var(--r);
    border: 1px dashed var(--border);
    max-width: 650px;
}
.cta-add p {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ========== Live Link ========== */
.live-link {
    color: #e53935 !important;
    font-weight: 600;
    font-size: 0.85rem;
}
.live-link:hover { text-decoration: underline !important; }

/* ========== Theme Toggle ========== */
.theme-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: var(--r);
    cursor: pointer;
    line-height: 1;
}
.theme-btn:hover { border-color: var(--blue); color: var(--blue); }
html.light .theme-btn::after { content: ''; }

/* Light theme overrides */
html.light .topbar { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
html.light .topbar .logo { color: #222; }
html.light a { color: #1a7fb5; }
html.light .join-big { background: #1a7fb5; }
html.light .join-big:hover { background: #156a99; }
html.light .foot { background: #fff; }

/* Mobile */
@media (max-width: 700px) {
    .mob-toggle {
        display: block;
        font-size: 1.8rem;
        padding: 4px 10px;
    }
    .topbar nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        background: var(--bg2);
        flex-direction: column;
        padding: 0;
        border-bottom: 2px solid var(--border);
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .topbar nav.open { display: flex; }
    .topbar nav a,
    .topbar nav button.theme-btn {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }
    .topbar nav a:hover,
    .topbar nav button.theme-btn:hover {
        background: var(--bg3);
        text-decoration: none;
    }
    .topbar nav .add-btn {
        background: var(--blue);
        color: #fff;
        border-radius: 0;
    }
    .home-top h1 { font-size: 1.15rem; }
    .ch-grid { grid-template-columns: 1fr; }
    .ch-actions { flex-direction: column; }
    .foot-cols { flex-direction: column; gap: 16px; }
    .a-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-top { flex-direction: column; text-align: center; }
    .detail-nums { justify-content: center; }
    .about-nums { justify-content: center; }
    .e404 .btns { flex-direction: column; align-items: center; }
    .search-row { max-width: 100%; }
    .mf-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .ad-lb { flex-wrap: wrap; }
    .ad-lb-thumbs img { width: 50px; height: 44px; }
    .ad-lb-body { padding: 8px 10px; flex: 1 1 200px; }
    .ad-lb-text { font-size: 0.78rem; }
    .ad-cta { margin: 8px 10px; font-size: 0.78rem; padding: 6px 14px; }
    .ad-strip-thumbs img { width: 44px; height: 40px; }
    .ad-strip-txt { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
    .ad-card-model img { width: 70px; height: 52px; }
    .ad-card-nums { gap: 16px; }
    .comment-body { padding-left: 0; }
    .star { font-size: 2.2rem; }
}
