/* ═══════════════════════════════════════════════════════════
   Massed Video Channels — Frontend CSS v1.2
   Compact layout: avatar+name side by side, stacked stats
═══════════════════════════════════════════════════════════ */
:root {
    --mvc-bg:         #0f0f0f;
    --mvc-bg2:        #181818;
    --mvc-bg3:        #212121;
    --mvc-border:     #3f3f3f;
    --mvc-text:       #f1f1f1;
    --mvc-muted:      #aaaaaa;
    --mvc-primary:    #ff0000;
    --mvc-sub-active: #272727;
    --mvc-radius:     8px;
    --mvc-font:       'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mvc-channel-wrap *, .mvc-channel-wrap *::before, .mvc-channel-wrap *::after { box-sizing: border-box; }
.mvc-channel-wrap {
    background: var(--mvc-bg);
    color: var(--mvc-text);
    font-family: var(--mvc-font);
    min-height: 100vh;
    width: 100%;
}

/* ── Banner ───────────────────────────────────────────────── */
.mvc-channel-banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
}
.mvc-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5));
}

/* ── Channel Header ───────────────────────────────────────── */
.mvc-channel-header {
    background: var(--mvc-bg);
    padding: 12px 0 0;
    border-bottom: 1px solid var(--mvc-border);
}
.mvc-channel-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 14px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* Avatar */
.mvc-channel-avatar-wrap { flex-shrink: 0; }
.mvc-channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--mvc-border);
}

/* Info block: name + stats stacked */
.mvc-channel-info { flex: 1; min-width: 0; }

.mvc-channel-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mvc-channel-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--mvc-text);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mvc-verified { display: inline-flex; align-items: center; flex-shrink: 0; }

/* Stats stacked vertically, all on same visual line as each other */
.mvc-channel-stats-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 6px;
}
.mvc-stat-item {
    font-size: 13px;
    color: var(--mvc-muted);
    line-height: 1.5;
}
.mvc-stat-item strong { color: var(--mvc-text); }

.mvc-channel-bio-short {
    font-size: 13px;
    color: var(--mvc-muted);
    margin: 0;
    line-height: 1.5;
}
.mvc-bio-toggle {
    background: none; border: none;
    color: var(--mvc-text); cursor: pointer;
    font-size: 13px; padding: 0; font-weight: 600;
}

/* Subscribe */
.mvc-subscribe-area { flex-shrink: 0; padding-top: 4px; }
.mvc-subscribe-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--mvc-text);
    color: var(--mvc-bg);
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    min-width: 110px;
    line-height: 1.3;
}
.mvc-subscribe-btn:hover { background: #e2e2e2; }
.mvc-subscribe-btn.subscribed { background: var(--mvc-sub-active); color: var(--mvc-text); }
.mvc-subscribe-btn.subscribed:hover { background: #333; }
.mvc-sub-text { font-size: 13px; font-weight: 700; }
.mvc-sub-count { font-size: 11px; font-weight: 400; opacity: .7; }

/* ── Tabs ─────────────────────────────────────────────────── */
.mvc-tabs-bar {
    background: var(--mvc-bg);
    border-bottom: 1px solid var(--mvc-border);
    position: sticky; top: 0; z-index: 100;
}
.mvc-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mvc-tabs-inner::-webkit-scrollbar { display: none; }
.mvc-tab {
    color: var(--mvc-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px 10px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s;
    display: inline-block;
}
.mvc-tab:hover { color: var(--mvc-text); }
.mvc-tab-active { color: var(--mvc-text); border-bottom-color: var(--mvc-text); }

/* ── Content ──────────────────────────────────────────────── */
.mvc-channel-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
}

/* Videos header */
.mvc-videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mvc-view-toggle { display: flex; gap: 6px; }
.mvc-view-btn {
    background: transparent;
    border: 1px solid var(--mvc-border);
    color: var(--mvc-muted);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background .15s;
}
.mvc-view-btn.active, .mvc-view-btn:hover { background: var(--mvc-bg3); color: var(--mvc-text); }
.mvc-total-count { font-size: 13px; color: var(--mvc-muted); }

/* ── Videos Grid ──────────────────────────────────────────── */
.mvc-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.mvc-videos-grid.mvc-view-list { grid-template-columns: 1fr; }
.mvc-videos-grid.mvc-view-list .mvc-video-card { display: flex; gap: 12px; align-items: flex-start; }
.mvc-videos-grid.mvc-view-list .mvc-video-thumb { flex-shrink: 0; width: 180px; aspect-ratio: 16/9; }

/* Video card */
.mvc-video-card { border-radius: var(--mvc-radius); overflow: hidden; transition: transform .15s; }
.mvc-video-card:hover { transform: translateY(-2px); }
.mvc-video-thumb-link { display: block; text-decoration: none; }
.mvc-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--mvc-bg3);
    border-radius: var(--mvc-radius);
    overflow: hidden;
}
.mvc-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.mvc-video-thumb:hover img { opacity: .85; }
.mvc-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.mvc-video-thumb:hover .mvc-play-overlay { opacity: 1; }
.mvc-duration {
    position: absolute; bottom: 5px; right: 6px;
    background: rgba(0,0,0,.85); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 5px; border-radius: 3px;
}
.mvc-hd-badge {
    position: absolute; top: 5px; right: 6px;
    background: rgba(0,0,0,.7); color: #fff;
    font-size: 9px; font-weight: 800;
    padding: 1px 4px; border-radius: 3px;
}
.mvc-video-info { padding: 8px 4px 2px; }
.mvc-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px; font-weight: 600;
    color: var(--mvc-text); text-decoration: none;
    line-height: 1.4; margin-bottom: 3px;
}
.mvc-video-title:hover { color: #fff; }
.mvc-video-meta { display: flex; gap: 6px; font-size: 11px; color: var(--mvc-muted); }

/* ── Reels Grid — portrait 9:16 ───────────────────────────── */
.mvc-reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.mvc-reel-card { border-radius: var(--mvc-radius); overflow: hidden; transition: transform .15s; }
.mvc-reel-card:hover { transform: translateY(-2px); }
.mvc-reel-thumb-link { display: block; text-decoration: none; }
.mvc-reel-thumb {
    position: relative;
    aspect-ratio: 9/16;
    background: var(--mvc-bg3);
    border-radius: var(--mvc-radius);
    overflow: hidden;
}
.mvc-reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.mvc-reel-thumb:hover img { opacity: .85; }
.mvc-reel-thumb:hover .mvc-play-overlay { opacity: 1; }
.mvc-reel-info { padding: 6px 4px 2px; }
.mvc-reel-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 12px; font-weight: 600;
    color: var(--mvc-text); text-decoration: none; line-height: 1.4;
}
.mvc-reel-title:hover { color: #fff; }
.mvc-reel-views { font-size: 11px; color: var(--mvc-muted); display: block; margin-top: 2px; }

/* Load more */
.mvc-load-more-wrap { text-align: center; margin: 24px 0 8px; }
.mvc-load-more-btn {
    background: var(--mvc-bg3); color: var(--mvc-text);
    border: 1px solid var(--mvc-border); border-radius: 20px;
    padding: 10px 28px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.mvc-load-more-btn:hover { background: #333; }
.mvc-load-more-btn.loading { opacity: .6; pointer-events: none; }

/* No content */
.mvc-no-videos { grid-column: 1/-1; text-align: center; padding: 48px 20px; color: var(--mvc-muted); }

/* About tab */
.mvc-about-tab { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; max-width: 860px; }
@media (max-width: 640px) { .mvc-about-tab { grid-template-columns: 1fr; } }
.mvc-about-tab h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.mvc-about-tab p { color: var(--mvc-muted); line-height: 1.7; font-size: 13px; margin: 0; }
.mvc-about-stats-list { list-style: none; padding: 0; margin: 0; }
.mvc-about-stats-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--mvc-border); font-size: 13px; color: var(--mvc-muted); }
.mvc-about-stats-list li:last-child { border-bottom: none; }
.mvc-about-stats-list li strong { color: var(--mvc-text); }
.mvc-social-link {
    display: inline-block; margin: 5px 6px 0 0;
    padding: 5px 14px; background: var(--mvc-bg3); color: var(--mvc-text);
    border-radius: 16px; text-decoration: none; font-size: 12px; font-weight: 600;
    transition: background .15s;
}
.mvc-social-link:hover { background: var(--mvc-border); }
.mvc-author-archive-link { display: inline-block; margin-top: 8px; color: #3ea6ff; font-size: 13px; text-decoration: none; }
.mvc-author-archive-link:hover { text-decoration: underline; }

/* Shortcode channel card */
.mvc-channel-card-sc {
    background: var(--mvc-bg2); border: 1px solid var(--mvc-border);
    border-radius: var(--mvc-radius); overflow: hidden; max-width: 320px;
    font-family: var(--mvc-font);
}
.mvc-sc-banner { height: 80px; background-size: cover; background-position: center; background-color: var(--mvc-bg3); }
.mvc-sc-body { padding: 0 14px 14px; }
.mvc-sc-avatar-row { display: flex; align-items: center; justify-content: space-between; margin-top: -22px; margin-bottom: 8px; }
.mvc-sc-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mvc-bg2); }
.mvc-subscribe-btn-sm { background: #fff; color: #000; border: none; border-radius: 14px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.mvc-subscribe-btn-sm.subscribed { background: var(--mvc-sub-active); color: var(--mvc-text); }
.mvc-sc-name { display: block; font-size: 14px; font-weight: 700; color: var(--mvc-text); text-decoration: none; margin-bottom: 3px; }
.mvc-sc-stats { font-size: 11px; color: var(--mvc-muted); margin-bottom: 6px; display: flex; gap: 5px; }
.mvc-sc-bio { font-size: 12px; color: var(--mvc-muted); line-height: 1.5; margin: 0; }
.mvc-verified-sm { color: #3ea6ff; font-size: 12px; }

/* Channels list shortcode */
.mvc-channels-list-sc { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Toast */
.mvc-toast {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333; color: #fff; padding: 9px 22px;
    border-radius: 22px; font-size: 13px; font-weight: 600;
    z-index: 9999; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.mvc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .mvc-channel-banner { height: 110px; }
    .mvc-channel-avatar { width: 64px; height: 64px; }
    .mvc-channel-name { font-size: 16px; }
    .mvc-channel-content { padding: 12px 14px; }
    .mvc-videos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
    .mvc-reels-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (max-width: 480px) {
    .mvc-videos-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .mvc-reels-grid  { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .mvc-subscribe-btn { min-width: 90px; padding: 8px 12px; }
}

/* Light theme */
@media (prefers-color-scheme: light) {
    .mvc-channel-wrap {
        --mvc-bg: #fff; --mvc-bg2: #f9f9f9; --mvc-bg3: #f0f0f0;
        --mvc-border: #e0e0e0; --mvc-text: #0f0f0f; --mvc-muted: #606060;
        --mvc-sub-active: #e5e5e5;
    }
    .mvc-subscribe-btn { background: #0f0f0f; color: #fff; }
    .mvc-subscribe-btn.subscribed { background: #e5e5e5; color: #0f0f0f; }
}
