/* ==========================================================================
   VISTARA CREATOR CHANNEL PROFILE - FRONTEND STYLESHEET
   3D Cream Claymorphism & Modern Wide Landscape Layout (YouTube / TikTok Style)
   Page: profile.php (/@username & /channel/username)
   STRICT PRIVACY: NO ADS ON CHANNEL PROFILE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ch-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ch-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Light Theme (3D Cream Clay Standard) */
    --ch-bg: #f5f0ea;
    --ch-card: #ffffff;
    --ch-card-bevel: #ded6cb;
    --ch-border: #ede4d8;
    --ch-text-title: #2d2621;
    --ch-text-body: #544941;
    --ch-text-muted: #7d6e64;

    --btn-coral-top: #f78d78;
    --btn-coral-bottom: #ea6e56;
    --btn-coral-shadow: #c7523c;
}

[data-theme="dark"] {
    --ch-bg: #090c15;
    --ch-card: #111726;
    --ch-card-bevel: #0b0f19;
    --ch-border: rgba(255, 255, 255, 0.08);
    --ch-text-title: #f0f3fc;
    --ch-text-body: #c4d1eb;
    --ch-text-muted: #8e9bb5;

    --btn-coral-top: #ff4785;
    --btn-coral-bottom: #ff2a6d;
    --btn-coral-shadow: #991b1b;
}

/* ==========================================================================
   1. FULL-WIDTH CHANNEL PAGE WRAPPER
   ========================================================================== */
.channel-page-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. HIGH-IMPACT WIDE CHANNEL BANNER / COVER
   ========================================================================== */
.channel-banner-container {
    width: 100%;
    height: 250px;
    border-radius: 26px;
    border: 2.5px solid #ffffff;
    box-shadow:
        0 4px 0 var(--ch-card-bevel),
        0 14px 32px rgba(65, 50, 35, 0.08);
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

[data-theme="dark"] .channel-banner-container {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 0 #0b0f19, 0 16px 40px rgba(0, 0, 0, 0.5);
}

.channel-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vibrant Anime / Pastel Mesh Default Banner */
.channel-banner-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(247, 141, 120, 0.85) 0%, transparent 45%),
        radial-gradient(circle at 85% 35%, rgba(120, 191, 160, 0.8) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(125, 211, 252, 0.85) 0%, transparent 50%),
        linear-gradient(135deg, #fce9cb 0%, #fcdcd6 50%, #d7e8f5 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .channel-banner-placeholder {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 42, 109, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, #131b2e 0%, #0d121f 100%);
}

.banner-ambient-tag {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid #ffffff;
    box-shadow: 0 3px 0 rgba(65, 50, 35, 0.08);
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--ch-font-heading);
    font-size: 13px;
    font-weight: 800;
    color: #2d2621;
}

[data-theme="dark"] .banner-ambient-tag {
    background: rgba(17, 23, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0f3fc;
}

.banner-pattern-text {
    position: absolute;
    right: 28px;
    bottom: 12px;
    z-index: 1;
    font-family: var(--ch-font-heading);
    font-size: clamp(38px, 9vw, 76px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 3px;
    user-select: none;
    text-transform: uppercase;
    pointer-events: none;
    line-height: 1;
}

[data-theme="dark"] .banner-pattern-text {
    color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   3. CHANNEL HEADER ROW (Centered Majestic Creator Hub Layout)
   ========================================================================== */
.channel-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    margin-top: -74px; /* Symmetrical overlap with banner bottom */
    margin-bottom: 36px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* 3D Clay Avatar Frame - Centered Overlap */
.channel-avatar-wrapper {
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ffffff;
    border: 5px solid #ffffff;
    box-shadow:
        0 6px 0 var(--ch-card-bevel),
        0 16px 36px rgba(65, 50, 35, 0.16);
    overflow: hidden;
    margin: 0 auto 16px auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

[data-theme="dark"] .channel-avatar-wrapper {
    border-color: #172036;
    box-shadow: 0 6px 0 #0b0f19, 0 16px 36px rgba(0, 0, 0, 0.6);
}

.channel-avatar-wrapper:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 0 var(--ch-card-bevel),
        0 20px 42px rgba(65, 50, 35, 0.22);
}

.channel-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Channel Information Details - Fully Centered */
.channel-info-col {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0;
    margin: 0 auto;
}

.channel-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.channel-display-name {
    font-family: var(--ch-font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 900;
    color: var(--ch-text-title);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Stats Badges Row - Centered with Clear Dot Spacing */
.channel-meta-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ch-text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-family: var(--ch-font-body);
}

.channel-meta-stats .meta-dot {
    opacity: 0.45;
    user-select: none;
    font-size: 12px;
}

.channel-handle-tag {
    display: inline-flex;
    align-items: center;
    background: #d7e8f5;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 0 #b2d2ea;
    color: #26597a;
    font-family: var(--ch-font-heading);
    font-weight: 800;
    font-size: 13px;
    padding: 3px 14px;
    border-radius: 999px;
}

[data-theme="dark"] .channel-handle-tag {
    background: #122130;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 0 #0c3352;
    color: #7dd3fc;
}

.channel-bio-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ch-text-body);
    max-width: 680px;
    margin: 0 auto 20px auto;
    text-align: center;
    font-family: var(--ch-font-body);
}

/* Actions Row - Clean Centered Row with Generous Breathing Room */
.channel-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
    margin-bottom: 8px;
    width: 100%;
}

/* Social Media Pills Row (When Available) - Centered Separately Below Actions */
.channel-social-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 6px;
    width: 100%;
}

.channel-social-pills-row .creator-social-links-wrap {
    justify-content: center;
    gap: 10px;
}

/* Signature 3D Clay Subscribe Button */
.btn-channel-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    font-family: var(--ch-font-heading);
    font-size: 14.5px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--btn-coral-top), var(--btn-coral-bottom));
    color: #ffffff !important;
    border: 2px solid #ffffff;
    box-shadow:
        0 4px 0 var(--btn-coral-shadow),
        0 8px 18px rgba(234, 110, 86, 0.35);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    text-decoration: none;
}

.btn-channel-subscribe:hover {
    transform: translateY(-1px);
    box-shadow:
        0 5px 0 var(--btn-coral-shadow),
        0 10px 22px rgba(234, 110, 86, 0.4);
    color: #ffffff !important;
}

.btn-channel-subscribe:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--btn-coral-shadow);
}

.btn-channel-subscribe.subscribed {
    background: #ffffff;
    color: var(--ch-text-title) !important;
    border: 2px solid #ffffff;
    box-shadow:
        0 3px 0 var(--ch-card-bevel),
        0 4px 10px rgba(65, 50, 35, 0.06);
}

[data-theme="dark"] .btn-channel-subscribe.subscribed {
    background: #172036;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 0 #0b0f19;
    color: #f0f3fc !important;
}

/* 3D Clay Share Button */
.btn-channel-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--ch-font-heading);
    font-size: 13.5px;
    font-weight: 700;
    background: #ffffff;
    color: var(--ch-text-title) !important;
    border: 2px solid #ffffff;
    box-shadow:
        0 3px 0 var(--ch-card-bevel),
        0 4px 10px rgba(65, 50, 35, 0.06);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

[data-theme="dark"] .btn-channel-share {
    background: #172036;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 0 #0b0f19;
    color: #f0f3fc !important;
}

.btn-channel-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--ch-card-bevel);
    background: #faf6f0;
}

.btn-channel-share:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ch-card-bevel);
}

/* 3D Clay Studio Button (For Channel Owner) */
.btn-channel-studio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--ch-font-heading);
    font-size: 13.5px;
    font-weight: 800;
    background: linear-gradient(180deg, #e0f2fe, #bae6fd);
    color: #0369a1 !important;
    border: 2px solid #ffffff;
    box-shadow:
        0 3px 0 #7dd3fc,
        0 4px 10px rgba(3, 105, 161, 0.15);
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-channel-studio:hover {
    background: linear-gradient(180deg, #bae6fd, #7dd3fc);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #38bdf8;
    color: #0c4a6e !important;
}

.btn-channel-studio:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #7dd3fc;
}

/* ==========================================================================
   4. NAVIGATION TABS (Shorts & About)
   ========================================================================== */
.channel-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 36px;
    border-bottom: 2px solid var(--ch-border);
    margin-bottom: 30px;
    padding: 0 8px;
    width: 100%;
}

.channel-tab-item {
    padding: 12px 6px;
    font-family: var(--ch-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--ch-text-muted);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.15s ease;
    outline: none;
}

.channel-tab-item:hover {
    color: var(--ch-text-title);
}

.channel-tab-item.active {
    color: var(--btn-coral-bottom);
}

.channel-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--btn-coral-bottom);
    border-radius: 999px;
}

/* ==========================================================================
   5. SHORTS GRID (Responsive 9:16 Portrait Cards)
   ========================================================================== */
.channel-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
    width: 100%;
    align-items: start;
}

.channel-short-card {
    background: var(--ch-card);
    border: 2.5px solid #ffffff;
    border-radius: 20px;
    box-shadow:
        0 4px 0 var(--ch-card-bevel),
        0 8px 20px rgba(65, 50, 35, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: fit-content;
}

[data-theme="dark"] .channel-short-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 0 #0b0f19, 0 8px 20px rgba(0, 0, 0, 0.4);
}

.channel-short-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 0 var(--ch-card-bevel),
        0 14px 28px rgba(65, 50, 35, 0.12);
}

.channel-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.channel-card-media video,
.channel-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.channel-short-card:hover .channel-card-media video,
.channel-short-card:hover .channel-card-media img {
    transform: scale(1.05);
}

.channel-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--ch-font-heading);
    padding: 4px 9px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.channel-card-views {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.channel-card-body {
    padding: 14px 16px;
    background: var(--ch-card);
}

.channel-card-title {
    font-family: var(--ch-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ch-text-title);
}

.channel-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--ch-text-muted);
}

/* ==========================================================================
   6. 3D CLAY EMPTY STATE (Full Width)
   ========================================================================== */
.channel-empty-box {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 65px 24px;
    background: var(--ch-card);
    border: 2.5px solid #ffffff;
    border-radius: 24px;
    box-shadow:
        0 4px 0 var(--ch-card-bevel),
        0 12px 28px rgba(65, 50, 35, 0.05);
}

[data-theme="dark"] .channel-empty-box {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 0 #0b0f19;
}

.channel-empty-box .icon {
    font-size: 48px;
    margin-bottom: 14px;
}

.channel-empty-box h3 {
    font-family: var(--ch-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--ch-text-title);
    margin-bottom: 6px;
}

.channel-empty-box p {
    font-size: 14px;
    color: var(--ch-text-muted);
}

/* ==========================================================================
   7. ABOUT TAB 3D PASTEL STATS
   ========================================================================== */
/* YouTube-Style Shelves in Channel Profile */
.channel-all-sections-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.channel-shelf-section {
    width: 100%;
}

.channel-shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(65, 50, 35, 0.08);
}

[data-theme="dark"] .channel-shelf-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.shelf-title-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.shelf-icon {
    font-size: 20px;
    line-height: 1;
}

.shelf-icon-shorts {
    color: #ef4444;
}

.shelf-title {
    font-family: var(--ch-font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--ch-text-title);
    margin: 0;
    letter-spacing: -0.3px;
}

.shelf-count-pill {
    background: #ede6dc;
    color: #6e5f53;
    font-family: var(--ch-font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(65, 50, 35, 0.1);
}

[data-theme="dark"] .shelf-count-pill {
    background: #172036;
    color: #9ba8c8;
    border-color: rgba(255, 255, 255, 0.1);
}

.shelf-count-pill.pill-shorts {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.shelf-view-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ch-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--ch-accent);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shelf-view-tab-btn:hover {
    background: rgba(234, 110, 86, 0.08);
    transform: translateX(2px);
}

/* Long Video Grid (16:9 Landscape Cards) */
.channel-long-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    width: 100%;
    align-items: start;
}

.channel-long-card {
    align-self: flex-start !important;
    height: fit-content !important;
}

.channel-long-card .channel-card-media {
    aspect-ratio: 16 / 9 !important;
}

.channel-card-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ch-text-muted);
    margin-top: 4px;
}

.channel-card-meta-line .meta-sep {
    opacity: 0.5;
    user-select: none;
}

.channel-card-badge.badge-short {
    background: rgba(239, 68, 68, 0.88);
}

.channel-card-badge.badge-long {
    background: rgba(79, 70, 229, 0.88);
}

.channel-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(14, 11, 20, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-variant-numeric: tabular-nums;
    z-index: 2;
}

#tabContentAbout {
    width: 100%;
    display: flex;
    justify-content: center;
}

.channel-about-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto !important;
    background: var(--ch-card);
    border: 2.5px solid #ffffff;
    border-radius: 24px;
    box-shadow:
        0 4px 0 var(--ch-card-bevel),
        0 12px 28px rgba(65, 50, 35, 0.05);
    padding: 36px 40px;
}

[data-theme="dark"] .channel-about-box {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 0 #0b0f19;
}

.channel-about-title {
    font-family: var(--ch-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--ch-text-title);
    margin-bottom: 12px;
}

.channel-about-bio {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ch-text-body);
    margin-bottom: 24px;
}

.channel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding-top: 20px;
    border-top: 1.5px solid var(--ch-border);
}

.channel-stat-badge {
    border: 2px solid #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform 0.18s ease;
}

.channel-stat-badge:hover {
    transform: translateY(-2px);
}

/* Color Themes for Pastel Badges */
.channel-stat-badge.stat-badge-joined,
.channel-stat-badge:nth-child(1) {
    background: #d9ece1;
    box-shadow: 0 3px 0 #b4d8c3;
    color: #2f6146;
}

.channel-stat-badge.stat-badge-total,
.channel-stat-badge:nth-child(2) {
    background: #d7e8f5;
    box-shadow: 0 3px 0 #b2d2ea;
    color: #26597a;
}

.channel-stat-badge.stat-badge-shorts {
    background: #e0f2fe;
    box-shadow: 0 3px 0 #bae6fd;
    color: #0369a1;
}

.channel-stat-badge.stat-badge-long {
    background: #f3e8ff;
    box-shadow: 0 3px 0 #e2d1f7;
    color: #6b21a8;
}

.channel-stat-badge.stat-badge-views,
.channel-stat-badge:nth-child(3):last-child,
.channel-stat-badge:nth-child(4) {
    background: #fcdcd6;
    box-shadow: 0 3px 0 #f5b8a8;
    color: #963523;
}

/* Dark Mode Badges */
[data-theme="dark"] .channel-stat-badge {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .channel-stat-badge.stat-badge-joined,
[data-theme="dark"] .channel-stat-badge:nth-child(1) {
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 3px 0 rgba(16, 185, 129, 0.3);
    color: #34d399;
}
[data-theme="dark"] .channel-stat-badge.stat-badge-total,
[data-theme="dark"] .channel-stat-badge:nth-child(2) {
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 3px 0 rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
[data-theme="dark"] .channel-stat-badge.stat-badge-shorts {
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 3px 0 rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}
[data-theme="dark"] .channel-stat-badge.stat-badge-long {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 3px 0 rgba(168, 85, 247, 0.3);
    color: #c084fc;
}
[data-theme="dark"] .channel-stat-badge.stat-badge-views,
[data-theme="dark"] .channel-stat-badge:nth-child(3):last-child,
[data-theme="dark"] .channel-stat-badge:nth-child(4) {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 3px 0 rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.channel-stat-badge .stat-lbl {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

.channel-stat-badge .stat-val {
    font-family: var(--ch-font-heading);
    font-size: 18px;
    font-weight: 900;
}

/* ==========================================================================
   8. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .channel-page-wrapper {
        padding: 12px 14px 60px;
    }

    .channel-banner-container {
        height: 150px;
        border-radius: 20px;
    }

    .banner-ambient-tag {
        top: 10px;
        left: 12px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .banner-pattern-text {
        right: 14px;
        bottom: 8px;
        font-size: clamp(26px, 8vw, 40px);
        opacity: 0.22;
    }

    .channel-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin-top: -50px;
    }

    .channel-avatar-wrapper {
        width: 96px;
        height: 96px;
        margin-top: 0;
        border: 3.5px solid #ffffff;
    }

    .channel-info-col {
        padding-top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .channel-title-row {
        justify-content: center;
        margin-bottom: 4px;
    }

    .channel-display-name {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    .channel-meta-stats {
        justify-content: center;
        gap: 6px 10px;
        font-size: 12.5px;
        margin-bottom: 12px;
    }

    .channel-actions-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .btn-channel-subscribe,
    .btn-channel-share,
    .btn-channel-studio {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .channel-nav-tabs {
        justify-content: center;
        gap: 20px;
        margin-bottom: 22px;
    }

    .channel-all-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .channel-all-grid .channel-long-card {
        grid-column: 1 / -1;
    }

    .channel-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .channel-long-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .channel-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .channel-about-box {
        padding: 24px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 380px) {
    .channel-page-wrapper {
        padding: 8px 10px 50px;
    }

    .channel-banner-container {
        height: 130px;
        border-radius: 16px;
    }

    .banner-ambient-tag {
        font-size: 10px;
        padding: 4px 9px;
    }

    .channel-avatar-wrapper {
        width: 82px;
        height: 82px;
    }

    .channel-display-name {
        font-size: 19px;
    }

    .channel-meta-stats {
        font-size: 11px;
    }

    .btn-channel-subscribe,
    .btn-channel-share,
    .btn-channel-studio {
        padding: 7px 12px;
        font-size: 11.5px;
    }
}