/* ================================
   CHANNEL PAGE – YOUMMO
   Tông cam / đỏ, nền sáng
================================ */

/* Layout chung */
.yoummo-channel-page {
    background: #ffffff;
    padding-bottom: 40px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container */
.yoummo-channel-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ================================
   HERO (THÔNG TIN KÊNH)
================================ */

/* Hero mặc định (khi không có cover) */
.channel-hero {
    background: #ffffff;
    padding: 24px 0 0;
    margin-bottom: 16px;
}

/* Hero khi CÓ ảnh bìa */
.channel-hero.has-cover-img {
    background: #f7f8fc;
    padding: 24px 0 0;
}

/* Khung chứa ảnh cover – luôn cùng chiều rộng với nội dung bên dưới */
.channel-cover-img-wrap {
    max-width: 1100px;
    margin: 0 auto 10px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #00000000;
}

/* Ảnh cover: luôn fill khung, bo góc, không tràn */
.channel-cover-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Card thông tin kênh phía dưới cover */
.channel-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 0;
    box-sizing: border-box;
}

.channel-hero-inner-card {
    background: #ffffff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* Avatar */
.channel-avatar-wrap {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.channel-avatar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.channel-avatar img {
    margin: 0 auto;
    display: block;
}

/* Thông tin chính */
.channel-main-info {
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
}

.channel-name {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
}

.channel-username {
    margin: 0 0 8px;
    opacity: 0.9;
    font-size: 14px;
}

.channel-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.channel-stats .dot {
    opacity: 0.5;
}

/* Action */
.channel-actions {
    margin-left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-actions-inner {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.channel-actions-inner .btn-primary,
.channel-actions-inner .btn-outline,
.channel-actions-inner .channel-share-btn {
    min-width: 180px;
    text-align: center;
}

/* ================================
   BUTTONS (ĐỎ)
================================ */
.btn-primary,
.channel-video-btn,
.channel-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff3b3b;
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-primary:hover,
.channel-video-btn:hover,
.channel-search-btn:hover {
    background: #e63232;
    box-shadow: 0 6px 18px rgba(255, 59, 59, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #ff3b3b;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 59, 0.7);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background: #ff3b3b;
    color: #fff;
    border-color: #ff3b3b;
}

/* ================================
   SEARCH TRONG KÊNH
================================ */
.channel-search-section {
    background: #fff;
    padding: 16px 0 10px;
    border-bottom: 1px solid #e6e8f0;
}

.channel-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-search-input {
    flex: 1;
    border: 1px solid #e0e3ef;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafbff;
}

.channel-search-input:focus {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.25);
}

/* ================================
   TABS: SHORTS / VIDEO DÀI
================================ */
.channel-tabs-section {
    background: #fff;
    border-bottom: 1px solid #e6e8f0;
    padding: 10px 0 0;
}

.channel-tabs {
    display: inline-flex;
    background: #f5f6fc;
    border-radius: 999px;
    padding: 3px;
    gap: 4px;
}

.channel-tab {
    border: none;
    background: transparent;
    color: #555;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.channel-tab.active {
    background: #ff3b3b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.35);
}

/* PANE */
.channel-tab-pane {
    display: none;
}

.channel-tab-pane.active {
    display: block;
}

/* ================================
   VIDEO GRID
================================ */
.channel-videos-section {
    padding: 24px 0 32px;
}

.channel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.channel-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.channel-search-result {
    font-size: 13px;
    color: #666;
}

/* GRID: Desktop mặc định 4 cột */
.channel-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card */
.channel-video-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #edf0fa;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.channel-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.channel-video-thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

.channel-video-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s ease-out;
}

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

/* ====== FOOTER CARD: LIKE + XEM CHI TIẾT ====== */
.channel-video-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Gộp tim + số */
.channel-like-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Nút trái tim – luôn tròn */
.channel-like-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ff4b5c;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

/* Icon trái tim là <span class="heart-icon">❤</span> */
.channel-like-btn .heart-icon {
    font-size: 16px;
    line-height: 1;
    color: #ff4b5c;
    display: block;
}

/* ĐÃ LIKE → nền đỏ, tim trắng (class .is-liked do JS / PHP gắn) */
.channel-like-btn.is-liked {
    background: #ff4b5c;
}
.channel-like-btn.is-liked .heart-icon {
    color: #ffffff;
}

/* Số like (0, 10, 1K...) */
.channel-like-count {
    font-size: 13px;
    color: #444;
    line-height: 1;
    min-width: 20px;
}

/* Nút "Xem chi tiết" trong card channel */
.channel-video-card .channel-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Badge SHORT / VIDEO */
.channel-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-short {
    background: rgba(255, 59, 59, 0.95);
}

.badge-long {
    background: rgba(255, 152, 0, 0.95);
}

/* Body */
.channel-video-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-video-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.channel-video-title a {
    color: #151827;
    text-decoration: none;
}

.channel-video-title a:hover {
    color: #ff3b3b;
}

.channel-video-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-video-meta .dot {
    opacity: 0.5;
}

/* Empty state */
.channel-empty {
    padding: 40px 0;
    text-align: center;
    color: #666;
}

.channel-empty p {
    margin-bottom: 10px;
}

/* Pagination (nếu sau này dùng lại) */
.channel-pagination {
    margin-top: 24px;
}

.channel-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 4px;
}

.channel-pagination li a,
.channel-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e1e3f0;
    font-size: 13px;
    text-decoration: none;
    color: #444;
    background: #fff;
}

.channel-pagination li span.current {
    background: #ff3b3b;
    border-color: #ff3b3b;
    color: #fff;
}

/* ================================
   METRICS & BIO
================================ */
.channel-metrics {
    margin-top: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.metric-item {
    text-align: center;
    font-size: 13px;
}

.metric-number {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #111827;
}

.metric-label {
    color: #6b7280;
    font-size: 12px;
}

/* Mô tả kênh */
.channel-bio {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    max-width: 520px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .channel-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .channel-hero-inner-card {
        gap: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .channel-cover-img-wrap {
        max-width: 600px;
        margin: 0 auto 8px;
        padding: 0 8px;
        border-radius: 14px 14px 0 0;
    }

    .channel-cover-img-wrap img {
        height: auto;
    }

    .channel-hero-inner-card {
        border-radius: 0 0 14px 14px;
        padding: 14px 14px 16px;
        gap: 16px;
    }

    .channel-hero-inner {
        padding: 0 8px 0;
    }

    .channel-name {
        font-size: 20px;
    }

    /* Search: input trên, nút dưới (full width) */
    .channel-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .channel-search-input,
    .channel-search-btn {
        width: 100%;
    }

    /* Tabs căn giữa */
    .channel-tabs-section {
        padding: 10px 0 6px;
    }

    .channel-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .channel-tab {
        flex: 1;
        text-align: center;
        padding-inline: 0;
    }

    /* VIDEO GRID: 1 CỘT */
    .channel-video-grid {
        grid-template-columns: 1fr;
    }

    .channel-video-card {
        border-radius: 12px;
    }

    .channel-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Nút hành động */
    .channel-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .channel-actions-inner {
        flex-direction: row;
        width: 100%;
    }

    .channel-actions-inner .btn-primary,
    .channel-actions-inner .btn-outline,
    .channel-actions-inner .channel-share-btn {
        flex: 1;
    }

    .channel-metrics {
        gap: 20px;
    }
    .metric-number {
        font-size: 15px;
    }

    .channel-video-footer {
        gap: 10px;
    }
}
