/* ==========================================
   CSS RESET
========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html,
body {
    -webkit-text-size-adjust: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
main {
    display: block;
}

/* Phân quyền bảo mật qua CSS */
body.is-guest .admin-only {
    display: none !important;
}
body.is-admin .guest-only {
    display: none !important;
}

/* ==========================================
   STYLE GUIDE & CSS VARIABLES
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
    /* 1. Thay Ä‘á»•i MÃ u sáº¯c theo yÃªu cáº§u */
    --color-bg-main: #06090F;
    --color-bg-sidebar: rgba(15, 20, 25, 0.45);
    --color-text-title: #FFFFFF;
    --color-text-muted: #8E9BAE;

    /* Các màu phụ trợ */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-primary: #ff007a;
    --color-hover: rgba(255, 0, 122, 0.1);
    --color-active-bar: #ff007a;

    /* 2. Font chá»¯ */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Framework Metrics */
    --sidebar-width: 240px;
}

/* ==========================================
   RESET & GLOBAL STYLES
========================================== */


body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    background-image: 
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.08), transparent 500px),
        radial-gradient(circle at bottom left, rgba(185, 0, 255, 0.08), transparent 500px);
    background-attachment: fixed;
    color: var(--color-text-title);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-title);
    font-weight: 600;
}

p,
span,
div {
    color: var(--color-text-title);
}

.text-muted {
    color: var(--color-text-muted);
}

/* ==========================================
   3. KHUNG LAYOUT CÆ  Báº¢N (FLEXBOX)
========================================== */
/* Container bao ngoÃ i toÃ n bá»™ trang */
.app-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- SIDEBAR TRÃI --- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--color-bg-sidebar);
    height: calc(100vh - 32px);
    margin: 16px;
    border-radius: 24px;
    position: sticky;
    top: 16px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- SIDEBAR BRANDING --- */
.sidebar-branding {
    padding: 0 24px 32px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%, #00f2fe 200%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: block;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 5px;
    padding-top: 5px;
    line-height: 1.2;
    word-break: keep-all;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    animation: shineLogo 3s linear infinite;
}

@keyframes shineLogo {
    to {
        background-position: 200% center;
    }
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes the footer to the bottom */
}

.nav-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 12px 24px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

/* Khoáº£ng cÃ¡ch giá»¯a icon vÃ  text */
.nav-item i {
    font-size: 1.3rem;
    margin-right: 16px;
}

/* Hover: ná»n xÃ¡m nháº¡t, chá»¯ Ä‘en */
.nav-item:hover {
    background-color: var(--color-hover);
    color: var(--color-text-title);
}

/* Äang Ä‘Æ°á»£c chá»n (Active) */
.nav-item.active {
    background-color: var(--color-hover);
    color: var(--color-text-title);
    font-weight: 600;
    /* Äáº­m hÆ¡n chÃºt */
    border-left-color: var(--color-active-bar);
    /* Thanh mÃ u xanh sÃ¡t mÃ©p trÃ¡i */
}

/* --- SIDEBAR FOOTER --- */
.sidebar-footer {
    padding-top: 16px;
}

.sidebar .logout-link {
    margin-bottom: 24px;
    /* Chi ap dung trong sidebar */
}

.bottom-nav .logout-link {
    margin-bottom: 0 !important;
    /* Reset de khong lech hang */
}

.copyright {
    padding: 0 24px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- VÃ™NG CONTENT PHáº¢I --- */
.main-content {
    flex-grow: 1;
    /* Tá»± co giÃ£n chiáº¿m toÃ n bá»™ pháº§n khÃ´ng gian cÃ²n láº¡i */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    /* Sá»­a lá»—i ná»™i dung to quÃ¡ lÃ m vá»¡ flexbox (text/image overflow) */
}

.topbar {
    height: 64px;
    padding: 0 32px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    background-color: transparent;
    margin: 16px 16px 16px 0;
    position: sticky;
    top: 16px;
    z-index: 10;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

/* Div trá»‘ng bÃªn trÃ¡i phá»¥c vá»¥ flexbox cÃ¢n báº±ng 2 bÃªn giÃºp Ã´ search á»Ÿ giá»¯a */
.topbar-left {
    display: none;
}

/* --- SEARCH BAR --- */
.search-container {
    flex: 2;
    max-width: 500px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 10px 16px;
    margin: 0 24px;
    -webkit-transition: border-color 0.3s, background-color 0.3s;
    transition: border-color 0.3s, background-color 0.3s;
}
.search-container:focus-within {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container i {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-right: 12px;
}

.search-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text-title);
}

.search-container input::placeholder {
    color: var(--color-text-muted);
}

/* --- USER ACTIONS (Cá»¤M BÃŠN PHáº¢I) --- */
.user-actions {
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: flex-end;
    -ms-flex-pack: flex-end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    gap: 16px;
    pointer-events: auto; /* Allow clicking on buttons even when topbar is unclickable */
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: var(--color-text-title);
    -webkit-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    -ms-transition: background-color 0.2s;
    -o-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: var(--color-hover);
    /* Hover vÃ²ng trÃ²n xÃ¡m nháº¡t */
}

.action-btn i {
    font-size: 1.25rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--color-border);
}

/* VÃ¹ng chá»©a ná»™i dung chÃ­nh */
.content-wrapper {
    padding: 8px 32px 32px 16px;
    flex-grow: 1;
}

/* ==========================================
   4. Ná»˜I DUNG CHÃNH - PROFILE HEADER
========================================== */
.profile-header {
    margin-bottom: 24px;
}

/* --- áº¢NH BÃŒA --- */
.cover-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    background-color: #222;
}

.cover-text {
    position: absolute;
    bottom: 24px;
    right: 32px;
    color: white;
    font-size: 2.2rem;
    font-family: 'Dancing Script', cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- Cáº¤U TRÃšC 2 Cá»˜T PROFILE --- */
.profile-content-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 32px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}

/* --- CONTAINER THÃ”NG TIN KÃŠNH (Cá»™t trÃ¡i) --- */
.channel-info-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 300px;
    flex-shrink: 0;
    padding: 24px;
    background-color: var(--color-bg-sidebar);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    margin-top: -60px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* --- Cá»¤M AVATAR --- */
.channel-avatar-wrapper {
    margin-right: 0;
    margin-bottom: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.channel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-bg-main);
    object-fit: cover;
    background-color: var(--color-bg-main);
}

/* --- CHI TIáº¾T THÃ”NG TIN --- */
.channel-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.channel-title-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 16px;
}

.channel-name {
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    color: var(--color-text-title);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.channel-id {
    font-size: 0.95rem;
    margin-top: 4px;
    font-weight: 500;
}

.channel-bio {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* --- NÃšT CHá»ˆNH Sá»¬A --- */
.btn-edit-channel {
    background-color: transparent;
    color: var(--color-text-title);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-edit-channel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- THá»NG KÃŠ (STATS) --- */
.channel-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.stat-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.stat-label {
    font-size: 0.85rem;
}

.stat-divider {
    display: none;
}

/* Cá»˜T PHáº¢I (Ná»™i dung main) */
.profile-main-area {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* ==========================================
   5. TABS & ACTIONS
========================================== */
.content-tabs-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: space-between;
    -ms-flex-pack: space-between;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: none;
}

.tabs-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-title);
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.tabs-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.btn-upload {
    background-color: var(--color-primary);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-upload:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.btn-sort {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-title);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sort:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   6. VIDEO GRID & EMPTY STATE
========================================== */
.empty-state {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #CCC;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

.video-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.video-card:hover {
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
    /* Hiá»‡u á»©ng phÃ³ng to mÆ°á»£t mÃ  */
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
}

.video-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Hiá»‡n tá»‘i Ä‘a 2 dÃ²ng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Táº¡o dáº¥u 3 cháº¥m náº¿u dÆ° */
}

.video-meta {
    font-size: 0.85rem;
}

/* ==========================================
   9. VIDEO VIEW PAGE (video.html)
========================================== */
.video-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* --- Khung nội dung chính căn giữa --- */
.video-main-col {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: aspect-ratio 0.3s ease, height 0.3s ease;
}

/* Kiểu dáng tối ưu cho video dọc (Portrait) */
.video-player-wrapper.portrait-video {
    aspect-ratio: auto !important;
    height: 580px !important;
    max-height: 80vh !important;
}

.video-player-wrapper.portrait-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.video-placeholder {
    width: 100%;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* FullScreen: video luÃ´n hiá»ƒn thá»‹ Ä‘Ãºng tá»‰ lá»‡ gá»‘c */
.video-placeholder:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 0;
}

.video-placeholder:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 0;
}

.video-placeholder:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 0;
}

.video-placeholder:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 0;
}

/* Wrapper khi fullscreen */
.video-player-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    background: #000;
}

.video-player-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    background: #000;
}

.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: flex-end;
    -ms-flex-pack: flex-end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 12px;
    cursor: pointer;
}

.progress-filled {
    height: 100%;
    width: 53%;
    background-color: #FF0000;
    border-radius: 2px;
}

.video-playback-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: space-between;
    -ms-flex-pack: space-between;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.playback-left,
.playback-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 16px;
}

.playback-left i,
.playback-right i {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.time-display {
    font-size: 0.9rem;
    color: white;
}

/* --- Hàng ngang chứa kênh & nút hành động --- */
.yt-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Danh sách Video gợi ý ở cột phải --- */
.related-video-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 6px;
}

.related-video-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.related-thumb-wrapper {
    position: relative;
    width: 130px;
    height: 73px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.related-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-channel {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.related-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.yt-video-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-title);
    margin: 0;
}

.yt-channel-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 14px;
}

.yt-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.yt-channel-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
}

.channel-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.yt-channel-name {
    font-weight: 600;
    font-size: 1.05rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
}

.yt-channel-subs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 3px;
}



.yt-action-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* In case the right column gets too narrow */
}

.yt-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-title);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.yt-action-btn:hover {
    background-color: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.yt-action-btn i {
    font-size: 1.3rem;
}

/* --- ODYSEE WATCH PAGE STYLE --- */
.odysee-video-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-top: 16px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.odysee-metadata-row,
.odysee-metadata-block {
    display: flex;
    flex-direction: column;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    gap: 12px;
}

.odysee-metadata-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.odysee-likes-row {
    display: flex;
    gap: 8px;
}

.odysee-action-buttons-wrapper {
    display: flex;
}

@media (min-width: 769px) {
    .odysee-metadata-row,
    .odysee-metadata-block {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px !important;
    }
    .odysee-metadata-actions-group {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
    }
    .odysee-likes-row {
        gap: 16px !important;
    }
    .odysee-action-buttons-wrapper {
        display: flex !important;
    }
}

.odysee-meta-left {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.odysee-meta-left .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.odysee-meta-left .meta-item i {
    font-size: 1.05rem;
}

.odysee-action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.odysee-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.odysee-action-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.odysee-action-btn i {
    font-size: 1.1rem;
}

/* --- Dropdown Menu cho nút 3 chấm --- */
.odysee-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
    animation: odyseeDropdownFade 0.2s ease-out;
}

.odysee-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-item-danger {
    color: #ff4d4d;
}

.dropdown-item-danger:hover {
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

@keyframes odyseeDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Biểu tượng Like lửa */
.odysee-action-btn#btn-like-video:hover {
    color: #ca004b;
}

/* Biểu tượng Dislike */
.odysee-action-btn#btn-dislike-video:hover {
    color: #a0a0a0;
}

/* --- Kênh và Người theo dõi --- */
.odysee-channel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 8px 0;
    border-bottom: none;
    width: 100%;
}

.odysee-channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.odysee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.odysee-channel-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.odysee-channel-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.odysee-channel-name:hover {
    text-decoration: underline;
}

.odysee-verified-badge {
    color: #ffb300;
    font-size: 1.1rem;
}

.odysee-channel-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.odysee-channel-followers {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.odysee-channel-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nút Join màu hồng dâu Odysee */
.odysee-join-btn {
    background-color: #ca004b;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
}

.odysee-join-btn:hover {
    background-color: #b0003f;
    box-shadow: 0 2px 10px rgba(202, 0, 75, 0.3);
}

/* Nút Follow chứa trái tim */
.odysee-follow-btn {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0 !important;
}

.odysee-follow-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.odysee-follow-btn.following {
    background-color: rgba(202, 0, 75, 0.1) !important;
    border-color: rgba(202, 0, 75, 0.3) !important;
    color: #ca004b !important;
}

.odysee-follow-btn.following:hover {
    background-color: rgba(202, 0, 75, 0.15) !important;
    border-color: rgba(202, 0, 75, 0.4) !important;
}

/* --- Khối mô tả phẳng --- */
.odysee-description-section {
    padding: 8px 0 16px 0;
    width: 100%;
}

.odysee-desc-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #ffffff;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}

.odysee-desc-text a {
    color: #ca004b;
    text-decoration: none;
    font-weight: 600;
}

.odysee-desc-text a:hover {
    text-decoration: underline;
}

.odysee-show-more-btn {
    background: none;
    border: none;
    color: #ca004b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    padding: 0;
    transition: color 0.2s;
}

.odysee-show-more-btn:hover {
    color: #ff377f;
}

.video-description-container {
    position: relative;
    max-width: 680px;
    max-height: 92px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.video-description-container.has-overflow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-main));
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.video-description-container.expanded::after {
    opacity: 0 !important;
}

.video-description-container.expanded {
    max-height: none !important;
}

/* --- ODYSEE COMMENTS SECTION --- */
.odysee-comments-section {
    margin-top: 24px;
    width: 100%;
}

.odysee-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.odysee-comments-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.odysee-refresh-comments-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.odysee-refresh-comments-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.odysee-refresh-comments-btn i {
    font-size: 1.1rem;
}

/* Khối nhập bình luận */
.odysee-comment-input-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.odysee-comment-textarea {
    width: 100%;
    min-height: 80px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.odysee-comment-textarea:focus {
    border-color: rgba(202, 0, 75, 0.5);
    background-color: rgba(255, 255, 255, 0.06);
}

.odysee-comment-input-footer {
    display: flex;
    justify-content: flex-start;
}

.odysee-send-btn {
    background-color: #ca004b;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.odysee-send-btn:hover {
    background-color: #b0003f;
}

/* Danh sách bình luận */
.odysee-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    width: 100%;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.comment-author {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-time {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.comment-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.comment-actions i {
    font-size: 1.1rem;
    cursor: pointer;
}

.reply-btn {
    cursor: pointer;
}

/* ==========================================
   GOOGLE SIGN-IN FOR COMMENTS
========================================== */
.google-login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.google-login-prompt p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex: 1;
    margin: 0;
}

/* Override Google button container */
#google-signin-btn {
    flex-shrink: 0;
}

.btn-google-signout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-left: 4px;
}

.btn-google-signout:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

/* ÄÃ¡nh giÃ¡ má»›i cá»§a ngÆ°á»i dÃ¹ng ná»•i báº­t */
.comment-item.user-comment {
    background: rgba(0, 229, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    animation: fadeInComment 0.4s ease;
}

@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
/* ==============================================
   RESPONSIVE - TABLET & MOBILE
=============================================== */

/* --- Tablet: 2-col video grid --- */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

    /* Layout */
    .sidebar { display: none !important; }
    .main-content { width: 100%; }
    .topbar { display: none; }
    .content-wrapper { padding: 12px 14px !important; }
    .app-container { 
        margin-top: 124px !important;
        min-height: calc(100vh - 124px) !important;
        padding-bottom: 0px !important; 
    }
    .bottom-nav { display: none !important; }

    /* Video grid: 1 col */
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Banner */
    .cover-image { height: 110px !important; }
    .cover-text { font-size: 1.5rem; bottom: 12px; right: 16px; }

    /* Profile layout */
    .profile-content-layout { flex-direction: column; gap: 0; }
    .channel-info-container {
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: -40px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    .channel-avatar-wrapper { margin-right: 0; margin-bottom: 12px; justify-content: center; }
    .channel-avatar { width: 100px; height: 100px; border-width: 4px; }
    .channel-details {
        display: flex; flex-direction: column; align-items: center;
        text-align: center; width: 100%; margin-top: 0;
    }
    .channel-title-row { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 12px; }
    .channel-stats { flex-direction: row; gap: 16px; justify-content: center; border-top: none; padding-top: 0; }
    .stat-item { flex-direction: column; width: auto; }
    .stat-value { font-size: 1rem; }
    .stat-label { font-size: 0.75rem; }
    .channel-bio { margin-bottom: 16px; }

    /* Tabs */
    .content-tabs-container { flex-direction: column; gap: 16px; align-items: stretch; }
    .tabs-actions { justify-content: center; width: 100%; }
    .tabs-group { justify-content: center; width: 100%; overflow-x: auto; }

    /* Action buttons */
    .yt-action-btn { padding: 8px 14px; font-size: 0.85rem; }
    .yt-action-btn i { font-size: 1.3rem; }
    .action-btn { width: 45px; height: 45px; }

    /* Video page */
    .video-view-container { flex-direction: column !important; align-items: stretch !important; gap: 16px !important; }
    .video-main-col { width: 100% !important; max-width: 100% !important; }
    .video-player-wrapper { width: 100%; max-width: 100vw; height: auto; border-radius: 0; box-shadow: none; min-height: auto; max-height: none; }
    
    .yt-meta-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }
    .yt-action-buttons {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        display: flex !important;
    }
    .yt-action-buttons::-webkit-scrollbar { display: none; }
    .yt-action-btn { background-color: rgba(255,255,255,0.08); border: none; border-radius: 20px; white-space: nowrap; }
    .yt-channel-group { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 12px 0; margin: 8px 0; width: 100%; }
    .yt-channel-name { font-size: 0.95rem; }
    .yt-avatar { width: 36px; height: 36px; }
    .video-description-container { font-size: 0.85rem; }
    .yt-show-more-btn { font-size: 0.85rem; margin-top: 0; }
    .comments-section { margin-top: 8px; }

    /* Statistics dashboard */
    .stats-overview-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .stat-card { padding: 14px 12px !important; gap: 10px !important; }
    .stat-card-value { font-size: 1.3rem !important; }
    .stat-icon-wrap { width: 38px !important; height: 38px !important; }
    .stat-icon { font-size: 1.25rem !important; }
    .stats-middle-row { grid-template-columns: 1fr !important; }
    .stats-page-header { flex-direction: column !important; gap: 6px !important; }
    .stats-page-title { font-size: 1.2rem !important; }

    /* Modals */
    .modal-container { width: 95% !important; max-height: 90vh !important; border-radius: 16px !important; overflow-y: auto; }
    .vstat-modal { max-width: 100% !important; border-radius: 16px !important; padding: 20px 16px !important; }
    .vstat-numbers { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .vstat-num-val { font-size: 1.2rem !important; }

    /* =====================
       BOTTOM NAVIGATION
    ===================== */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.96) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        height: 58px;
        z-index: 1000;
        justify-content: space-around !important;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    }

    .bottom-nav-item {
        flex: 1 1 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: rgba(255,255,255,0.4);
        text-decoration: none;
        gap: 2px;
        padding: 5px 1px;
        transition: color 0.2s;
        position: relative;
        min-width: 0;
        overflow: visible;
    }

    .bottom-nav-item i {
        font-size: 1.25rem !important;
        line-height: 1;
        flex-shrink: 0;
    }

    .bottom-nav-item span {
        font-size: 0.56rem !important;
        font-weight: 500;
        display: block !important;
        overflow: visible !important;
        white-space: nowrap;
        max-width: none;
        line-height: 1.2;
        text-align: center;
    }

    .bottom-nav-item.active {
        color: var(--color-primary, #00e5ff) !important;
    }

    .bottom-nav-item.active span {
        font-weight: 700;
    }

    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0; left: 20%; right: 20%;
        height: 2px;
        border-radius: 0 0 3px 3px;
        background: var(--color-primary, #00e5ff);
        box-shadow: 0 0 8px var(--color-primary, #00e5ff);
    }
}

/* --- Desktop: hide bottom nav --- */
@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
}

/* --- Landscape phone --- */
@media (max-width: 768px) and (orientation: landscape) {
    .bottom-nav { height: 48px !important; }
    .bottom-nav-item span { display: none !important; }
    .bottom-nav-item i { font-size: 1.2rem !important; }
    .cover-image { height: 80px !important; }
}

/* --- Extra small: <= 480px --- */
@media (max-width: 480px) {
    .content-wrapper { padding: 10px 12px !important; }
    .stats-overview-grid { grid-template-columns: 1fr 1fr !important; }
    .tabs-group { overflow-x: auto !important; flex-wrap: nowrap !important; -ms-overflow-style: none; scrollbar-width: none; }
    .tabs-group::-webkit-scrollbar { display: none; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .owner-card { flex-direction: column !important; text-align: center; align-items: center !important; }
    .cf-grid { grid-template-columns: 1fr !important; }
    .bottom-nav-item i { font-size: 1.1rem !important; }
    .bottom-nav-item span { font-size: 0.52rem !important; overflow: visible !important; }
}

/* ============================================================
   RESPONSIVE - TỐI ƯU MỌI THIẾT BỊ
   Thêm hoàn toàn mới - không sửa CSS cũ
   
   Breakpoints:
   - 480px    : Điện thoại nhỏ (iPhone SE, Redmi 9A...)
   - 768px    : Điện thoại lớn / Phablet
   - 1024px   : Tablet (iPad)
   - 1280px   : Laptop 13" (MacBook Air, Surface)
   - 1440px   : Laptop 14-15" (ThinkPad, Dell XPS)
   - 1920px   : Desktop 24" Full HD
   - 2560px+  : Desktop 27" 2K / 4K
============================================================ */

/* ── Laptop nhỏ 13" (1024px – 1280px) ─────────────────── */
@media (min-width: 1024px) and (max-width: 1280px) {
    :root { --sidebar-width: 210px; }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    }

    .stats-overview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .content-wrapper { padding: 20px 22px; }
}

/* ── Laptop 14-15" (1280px – 1440px) ──────────────────── */
@media (min-width: 1280px) and (max-width: 1440px) {
    :root { --sidebar-width: 230px; }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }

    .stats-overview-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .content-wrapper { padding: 24px 28px; }
    .channel-avatar { width: 130px !important; height: 130px !important; }
}

/* ── Desktop 24" Full HD (1440px – 1920px) ─────────────── */
@media (min-width: 1440px) and (max-width: 1920px) {
    :root { --sidebar-width: 260px; }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    }

    .stats-overview-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .content-wrapper { padding: 28px 36px; }

    .channel-avatar { width: 150px !important; height: 150px !important; }
    .channel-name   { font-size: 2.4rem !important; }

    .video-card-title { font-size: 1rem !important; }

    /* Topbar lớn hơn trên Desktop */
    .topbar { padding: 0 28px; height: 64px; }

    /* Sidebar rộng hơn */
    .sidebar { padding: 20px 14px; }
    .nav-item { padding: 11px 14px; font-size: 0.95rem; }
}

/* ── Màn 2K / 27"+ (1920px+) ────────────────────────────── */
@media (min-width: 1920px) {
    :root { --sidebar-width: 280px; }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 20px !important;
    }

    .stats-overview-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
    }

    .content-wrapper { padding: 32px 48px; }

    /* Giới hạn chiều rộng tối đa để không bị loãng quá */
    .main-content {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .channel-avatar { width: 170px !important; height: 170px !important; }
    .channel-name   { font-size: 2.8rem !important; }
    .cover-image    { height: 300px !important; border-radius: 20px !important; }

    .video-card-title    { font-size: 1.05rem !important; }
    .video-card-meta     { font-size: 0.82rem !important; }

    .topbar { padding: 0 36px; height: 68px; }
    .nav-item { padding: 12px 16px; font-size: 1rem; }
    .logo-text { font-size: 1.3rem !important; }
}

/* ── Màn 4K (2560px+) ──────────────────────────────────── */
@media (min-width: 2560px) {
    :root { --sidebar-width: 300px; }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
        gap: 24px !important;
    }

    .main-content { max-width: 100% !important; }
    .content-wrapper { padding: 40px 60px; }
    .channel-avatar { width: 200px !important; height: 200px !important; }
    .cover-image    { height: 360px !important; }
    .channel-name   { font-size: 3.2rem !important; }
}

/* ── Điện thoại nhỏ 320-375px (iPhone SE, Redmi cũ) ───── */
@media (max-width: 375px) {
    .content-wrapper { padding: 8px 10px !important; }
    .channel-avatar  { width: 80px  !important; height: 80px  !important; }
    .cover-image     { height: 90px !important; }
    .channel-name    { font-size: 1.1rem !important; }

    .stat-card-value { font-size: 1rem !important; }

    .yt-action-btn   { padding: 6px 10px !important; font-size: 0.78rem !important; }
    .yt-action-btn i { font-size: 1.1rem !important; }

    .bottom-nav      { height: 54px !important; }
    .bottom-nav-item span { font-size: 0.5rem !important; }
    .bottom-nav-item i    { font-size: 1.1rem !important; }
    .app-container   { padding-bottom: 54px !important; }
}

/* NUT TIENG VIDEO MOBILE */
.video-player-wrapper { position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.mute-toggle-btn { position: absolute; bottom: 52px; right: 12px; z-index: 50; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.65); border: 1.5px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.3rem; cursor: pointer; display: none; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background 0.2s, transform 0.15s; }
.mute-toggle-btn:active { transform: scale(0.9); background: rgba(0,229,255,0.3); }
@media (max-width: 768px) { .mute-toggle-btn { display: flex !important; } }

/* ============================================================
   YOUTUBE & VERVESHOTS LAYOUT OVERRIDES (APPENDED FOR DESIGN)
   ============================================================ */

/* 1. Global Color Override */
:root {
    --color-bg-main: #0c0c0c !important;
    --color-text-title: #ffffff !important;
    --color-text-muted: #aaaaaa !important;
    --color-bg-header: #0c0c0c;
    --color-bg-search: #121212;
    --color-border-search: rgba(255, 255, 255, 0.1);
    --color-yellow-btn: #ff007a;
}

body {
    background-color: var(--color-bg-main) !important;
    background-image: none !important;
    color: var(--color-text-title) !important;
}

/* 2. Top Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--color-bg-header);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1200;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon-wrapper {
    width: auto;
    height: auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: visible;
}

.logo-icon-wrapper i {
    font-size: 2rem !important;
    color: #ff007a !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(255, 0, 122, 0.85)) !important;
    animation: eye-breath 2.5s ease-in-out infinite alternate;
}

@keyframes eye-breath {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 122, 0.65)) drop-shadow(0 0 15px rgba(255, 0, 122, 0.3));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 14px rgba(255, 0, 122, 1)) drop-shadow(0 0 25px rgba(255, 0, 122, 0.6));
        transform: scale(1.05);
    }
}

.header-logo:hover .logo-icon-wrapper {
    transform: scale(1.15) rotate(-5deg);
}

.header-logo:hover .logo-icon-wrapper i {
    filter: drop-shadow(0 0 20px rgba(255, 0, 122, 1.3)) drop-shadow(0 0 35px rgba(255, 0, 122, 0.8)) !important;
    animation-play-state: paused;
}

.logo-text-group {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-logo:hover .logo-text-group {
    transform: translateX(3px);
}

.logo-gaze {
    font-family: 'Lexend', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.6px !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.logo-18 {
    font-family: 'Lexend', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    color: #ff007a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    margin-left: 2px !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 0, 122, 0.5));
    display: inline-block !important;
    animation: text-18-breath 2.5s ease-in-out infinite alternate;
}

@keyframes text-18-breath {
    0% {
        filter: drop-shadow(0 0 6px rgba(255, 0, 122, 0.45));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(255, 0, 122, 0.8));
    }
}

.header-logo:hover .logo-gaze {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.header-logo:hover .logo-18 {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(255, 0, 122, 1.2)) drop-shadow(0 0 30px rgba(255, 0, 122, 0.7)) !important;
    animation-play-state: paused;
}

/* Search bar */
.header-search-container {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 16px;
}

.search-back-btn {
    display: none !important;
}

.header-search-container form {
    display: flex;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    padding: 0 12px;
    height: 38px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #ff007a;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 8px rgba(255, 0, 122, 0.2);
}

.search-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    order: 2; /* Put input after the icon */
}

.search-input-wrapper input::placeholder {
    color: #888;
}

.search-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    order: 1; /* Put icon button on the left */
    transition: color 0.2s;
}

.search-btn:hover {
    color: #fff !important;
}

/* Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-login-btn {
    background: var(--color-yellow-btn);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-login-btn:hover {
    opacity: 0.9;
}

.header-login-btn:active {
    transform: scale(0.95);
}

/* 3. Layout adjustments */
.app-container {
    margin-top: 56px !important;
    min-height: calc(100vh - 56px) !important;
    position: relative;
}

/* Sidebar Drawer style */
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-width) !important;
    z-index: 2000 !important;
    margin: 0 !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    background-color: #0c0c0d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 0 0 0 !important;
}

body.sidebar-open .sidebar {
    transform: translateX(0) !important;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1990;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

body.sidebar-open .sidebar-backdrop {
    display: block;
}

/* Sidebar Custom Styling (Matching premium mockup) */
.sidebar-menu-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    margin: 16px 0 12px 24px;
}

.sidebar .nav-item {
    margin: 2px 12px !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background-color: transparent !important;
    transition: background-color 0.2s, color 0.2s, transform 0.1s !important;
}

.sidebar .nav-item i {
    font-size: 1.25rem !important;
    margin-right: 0 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    transition: color 0.2s !important;
}

.sidebar .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.sidebar .nav-item:hover i {
    color: #ffffff !important;
}

.sidebar .nav-item.active {
    background-color: #1e1a13 !important;
    color: #c5a880 !important;
    font-weight: 600 !important;
}

.sidebar .nav-item.active i {
    color: #c5a880 !important;
}

.sidebar-footer {
    display: flex !important;
    flex-direction: column !important;
    margin-top: auto !important;
    padding-top: 0 !important;
}

.sidebar-status {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

.main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

.content-wrapper {
    flex-grow: 1;
    padding: 24px 40px !important;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* 4. Video Grid - 5 columns */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(200px, 1fr)) !important;
    gap: 24px 16px !important;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr !important;
    }
    .content-wrapper {
        padding: 12px 14px !important;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 5. Video Card Layout overrides */
.video-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: none !important;
}

.video-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.video-thumbnail {
    border-radius: 12px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.video-card-details {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: flex-start;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}

.video-card-meta-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.video-card .video-title {
    font-size: 0.95rem !important;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: auto !important;
}

.video-author-name {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.video-card .video-meta {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
}

.video-duration {
    background-color: rgba(0, 0, 0, 0.8) !important;
    font-size: 0.75rem !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
}

/* 6. Footer styling */
.main-footer {
    background-color: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 40px 20px;
    margin-top: auto;
    font-family: var(--font-primary);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #fff;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 350px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.system-status-box {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00E676;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #fff;
}

/* Hide original topbar since we use main-header */
.topbar {
    display: none !important;
}

/* ============================================================
   HERO BANNER, SHELVES, AND APPLE MINIMALIST FOOTER STYLING
   ============================================================ */

/* Hero Banner Styling */
.hero-featured-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    background: #000;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.75;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0c0c0c 0%, rgba(12, 12, 12, 0.4) 50%, rgba(12, 12, 12, 0) 100%),
                linear-gradient(to right, rgba(12, 12, 12, 0.8) 0%, rgba(12, 12, 12, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 650px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary); /* bright blue/cyan */
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.hero-btn.btn-play {
    background: #fff;
    color: #000;
}

.hero-btn.btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.03);
}

.hero-btn.btn-mute {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-btn.btn-mute:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
}

/* Shelf Layout Styling */
.video-shelves-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.video-shelf {
    position: relative;
    width: 100%;
}

.shelf-header {
    margin-bottom: 16px;
}

.shelf-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.shelf-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.shelf-row-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.video-shelf-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.video-shelf-row::-webkit-scrollbar {
    display: none;
}

.video-shelf-row .video-card {
    flex: 0 0 calc((100% - 64px) / 5); /* default 5 columns */
    min-width: 200px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Zoom effect */
.video-shelf-row .video-card:hover {
    transform: translateY(-5px) scale(1.02);
}

@media (max-width: 1200px) {
    .video-shelf-row .video-card {
        flex: 0 0 calc((100% - 48px) / 4);
    }
}

@media (max-width: 992px) {
    .video-shelf-row .video-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

@media (max-width: 768px) {
    .video-shelf-row .video-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 480px) {
    .video-shelf-row .video-card {
        flex: 0 0 100%;
    }
}

/* Shelf Navigation Caret Buttons */
.shelf-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
}

.shelf-row-wrapper:hover .shelf-nav-btn {
    opacity: 1;
}

.shelf-nav-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.shelf-nav-btn.btn-left {
    left: -20px;
}

.shelf-nav-btn.btn-right {
    right: -20px;
}

@media (max-width: 768px) {
    .shelf-nav-btn {
        display: none !important; /* hide arrows on touch screens */
    }
}

/* Apple Minimalist Footer Styling */
.footer-minimal-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links-row a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links-row a:hover {
    color: #fff;
}

.footer-bullet {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    user-select: none;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social-row .social-icon-link {
    color: var(--color-text-muted);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.footer-social-row .social-icon-link:hover {
    color: var(--color-primary);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.footer-copyright-center {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

/* Pagination Styling */
.pagination-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    font-family: inherit;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--color-primary); /* neon blue/cyan */
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ============================================================
   LAYOUT WIDENING & METADATA ALIGNMENT OVERRIDES
   ============================================================ */

/* Center and limit the max width of the page container to leave moderate side gaps */
.content-wrapper {
    max-width: 1700px !important;
    margin: 0 auto !important;
    padding: 24px 40px !important;
}

/* Align the fixed header content precisely with the centered content wrapper */
.main-header {
    padding: 0 24px !important;
}

/* Fallback for screens smaller than the max content width */
@media (max-width: 1780px) {
    .content-wrapper {
        padding: 24px 40px !important;
    }
    .main-header {
        padding: 0 24px !important;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px 20px !important;
    }
    .main-header {
        padding: 0 16px !important;
    }
}

/* Better spacing and gap distribution for video grid */
.video-grid {
    gap: 32px 20px !important;
}

/* Horizontal scroll shelves gap and spacing distribution */
.video-shelf-row {
    gap: 20px !important;
}

.video-shelf-row .video-card {
    flex: 0 0 calc((100% - 80px) / 5) !important; /* 5 columns with 20px gaps */
}

@media (max-width: 1200px) {
    .video-shelf-row .video-card {
        flex: 0 0 calc((100% - 60px) / 4) !important; /* 4 columns with 20px gaps */
    }
}

/* Perfect grid alignment for author/meta column, preventing wrapping under avatar */
.video-card-details {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
    align-items: start !important;
}

.video-author-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.video-card-meta-column {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.video-card-meta-column .video-title {
    margin: 0 0 6px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: left !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: auto !important;
}

.video-author-name {
    font-size: 0.82rem !important;
    color: var(--color-text-muted) !important;
    margin: 0 0 2px 0 !important;
    text-align: left !important;
}

.video-meta {
    font-size: 0.82rem !important;
    color: var(--color-text-muted) !important;
    margin: 0 !important;
    text-align: left !important;
}

.card-hashtags {
    margin-top: 6px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    justify-content: flex-start !important;
}

.hashtag-item {
    font-size: 0.78rem !important;
    color: var(--color-primary) !important;
    margin: 0 !important;
}

/* Custom Pagination Row Style matching user screenshot */
.pagination-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: none !important;
    user-select: none;
    gap: 8px !important;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

.ipp-label {
    font-weight: 500;
}

.ipp-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.ipp-btn:hover, .ipp-btn.active {
    color: #fff;
}

.ipp-btn.active {
    font-weight: 700;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.pagination-btn:hover, .pagination-btn.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.pagination-btn.active {
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.pagination-nav {
    font-size: 1.1rem !important;
    background: none !important;
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    padding: 0 4px;
}

/* ============================================================
   DOCUMENT PAGE STYLING (FOR DMCA)
   ============================================================ */
.document-container {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 60px 24px 80px !important;
    font-family: 'Lexend', sans-serif !important;
}

.document-container a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.document-title {
    font-size: clamp(1.7rem, 8vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 32px !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
}

.document-content {
    color: #ffffff !important;
}

.document-container h2 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 48px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.document-container p {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
}

.document-container ul, .document-container ol {
    margin-left: 24px !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
}

.document-container li {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
}

.agent-box {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
}

.agent-box h3 {
    font-size: 1.1rem;
    color: #ffffff !important;
    margin-bottom: 12px;
    font-weight: 600;
}

.agent-box p {
    margin-bottom: 8px !important;
    font-family: monospace;
    font-size: 0.95rem !important;
    color: #ffffff !important;
}

.agent-box a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.agent-box a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-header {
        height: 56px !important;
        min-height: 56px !important;
        flex-wrap: nowrap !important;
        padding: 0 12px !important;
        gap: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .header-left {
        width: auto !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        order: unset !important;
        display: flex !important;
    }
    
    .header-right {
        width: auto !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        order: unset !important;
        display: flex !important;
    }
    
    .header-search-container {
        width: auto !important;
        flex: 1 !important;
        max-width: 140px !important;
        margin: 0 8px !important;
        padding: 0 !important;
        order: unset !important;
        display: block !important;
    }
    
    .header-search-container form input {
        padding: 6px 10px 6px 28px !important;
        font-size: 0.8rem !important;
    }
    
    .header-search-container form .search-icon {
        left: 8px !important;
        font-size: 0.85rem !important;
    }
    
    /* Show logo on header in mobile */
    .main-header .header-logo {
        display: flex !important;
    }
    .main-header .header-logo span {
        display: none !important; /* Hide text, just show icon for clean layout */
    }

    /* Bật bottom navigation trên di động */
    .bottom-nav {
        display: flex !important;
    }

    /* Đặt lề trên phù hợp cho app-container */
    .app-container {
        margin-top: 56px !important;
        min-height: calc(100vh - 56px) !important;
        padding-bottom: 24px !important;
    }

    .main-content {
        padding-bottom: 24px !important;
        margin-bottom: 0px !important;
    }

    /* Mobile Search Bar Toggle */
    .mobile-only-search-btn {
        display: flex !important;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .mobile-only-search-btn:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .header-search-container {
        display: none !important; /* Mặc định ẩn trên di động */
    }
    
    .search-back-btn {
        display: none !important;
    }
    
    /* Khi đang kích hoạt chế độ tìm kiếm trên di động */
    .main-header.search-active .header-search-container {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0b0e17 !important;
        z-index: 1300;
        align-items: center;
        padding: 0 16px;
        gap: 12px;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .main-header.search-active .search-back-btn {
        display: flex !important;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }
    
    .main-header.search-active .header-search-container form {
        flex: 1;
        width: 100%;
    }
    
    .main-header.search-active .search-input-wrapper {
        width: 100%;
        display: flex;
        position: relative;
    }
    
    /* Chuyển nút Đăng nhập chữ thành avatar tròn di động giống mẫu */
    .header-login-btn {
        background: #e11d48 !important; /* Đỏ hồng giống Odysee */
        border: none !important;
        color: #fff !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        text-decoration: none !important;
    }
    .header-login-btn span {
        display: none !important;
    }
    .header-login-btn i {
        display: inline-block !important;
        font-size: 1.2rem !important;
    }

    /* Khối thông tin Metadata di động giống mẫu */
    .odysee-metadata-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 12px !important;
        align-items: flex-start !important;
    }
    
    .odysee-meta-left {
        display: flex !important;
        gap: 12px !important;
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Lượt Thích / Không thích: Hàng riêng, dạng kén tròn */
    .odysee-likes-row {
        display: flex !important;
        gap: 10px !important;
    }
    .odysee-likes-row .odysee-action-btn {
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        border: none !important;
        color: #fff !important;
    }

    /* Các nút hành động: Chia đều khoảng cách và kén tròn */
    .odysee-action-buttons-wrapper {
        width: 100% !important;
        overflow: visible !important;
        display: block !important;
    }
    .odysee-action-buttons {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    .odysee-action-buttons .odysee-action-btn,
    .odysee-action-buttons .odysee-more-menu-wrapper {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }
    .odysee-action-buttons .odysee-action-btn,
    .odysee-action-buttons .odysee-more-btn {
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 20px !important;
        padding: 6px 0 !important;
        font-size: 0.8rem !important;
        color: #fff !important;
        white-space: nowrap !important;
        width: 100% !important;
        justify-content: center !important;
        border: none !important;
    }
    
    /* Khu vực Kênh trên di động */
    .odysee-channel-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 8px 0 4px 0 !important;
    }
    .odysee-description-section {
        padding: 4px 0 12px 0 !important;
    }
    .odysee-channel-left {
        width: 100% !important;
    }
    .odysee-channel-right {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .odysee-channel-right .odysee-join-btn,
    .odysee-channel-right .odysee-follow-btn {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Ẩn nút support và repost trên di động */
    .odysee-support-btn,
    #btn-repost-video {
        display: none !important;
    }

    .odysee-metadata-actions-group {
        display: contents !important;
    }

    /* Footer styling on mobile - thu hẹp tối đa khoảng đen dưới chân */
    .main-footer {
        padding: 30px 16px 8px !important;
        margin-bottom: 0px !important;
    }
    
    .footer-links-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px 16px !important;
        max-width: 300px !important;
        margin: 0 auto 16px !important;
    }
    
    .footer-links-row a {
        text-align: center !important;
        font-size: 0.85rem !important;
    }
    
    .footer-bullet {
        display: none !important;
    }
}

/* --- RECOMMENDED VIDEOS GRID (ODYSEE STYLE) --- */
.odysee-recommended-section {
    margin-top: 40px;
    width: 100%;
}

.odysee-recommended-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.odysee-recommended-section .video-grid {
    margin-bottom: 24px !important;
}

.odysee-recommended-pagination {
    display: none;
    justify-content: flex-start;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 32px; /* Tránh nằm sát phần gạch ngang của footer */
    padding-top: 16px;
}

/* ============================================================
   CUSTOM VIDEO PLAYER DESIGN (PREMIUM GLASSMORPHISM & SEEK BAR)
   ============================================================ */
.video-player-wrapper {
    position: relative !important;
    width: 100% !important;
    background-color: #000 !important;
    overflow: hidden !important;
    cursor: pointer;
}

.custom-video-thumbnail {
    object-fit: contain !important;
    background-color: #000 !important;
}

/* Nút Play/Pause lớn ở chính giữa */
.custom-video-play-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 30 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 2.4rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.custom-video-play-center:hover {
    background: rgba(225, 29, 72, 0.8) !important; /* Đỏ hồng Odysee */
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 8px 32px rgba(225, 29, 72, 0.4) !important;
}

/* Custom Controls Bar */
.custom-video-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
    z-index: 25 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 0 16px 8px !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    pointer-events: none;
}

.video-player-wrapper:hover .custom-video-controls,
.video-player-wrapper.controls-active .custom-video-controls {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Custom Seek Bar (Progress Bar Container) */
.video-progress-container {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    margin-bottom: 8px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: height 0.15s ease !important;
}

.video-progress-container:hover {
    height: 6px !important;
}

.video-progress-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 0%;
    pointer-events: none !important;
}

.video-progress-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background: #e11d48 !important; /* Màu Odysee hot-pink */
    width: 0%;
    border-radius: 2px !important;
    position: relative !important;
}

.video-progress-handle {
    position: absolute !important;
    right: -6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #e11d48 !important;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.8) !important;
    opacity: 0;
    transition: opacity 0.15s ease !important;
}

.video-progress-container:hover .video-progress-handle {
    opacity: 1 !important;
}

/* Control Buttons & Layout */
.video-controls-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.controls-left,
.controls-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.controls-left .control-btn,
.controls-right .control-btn {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.3rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    transition: color 0.2s ease, transform 0.1s ease !important;
}

.controls-left .control-btn:hover,
.controls-right .control-btn:hover {
    color: #e11d48 !important;
    transform: scale(1.1) !important;
}

#video-time-display {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    user-select: none !important;
}

/* Trạng thái tương tác like/dislike bình luận active */
.comment-like-btn.active,
.comment-like-btn.active i {
    color: #e11d48 !important;
}
.comment-dislike-btn.active,
.comment-dislike-btn.active i {
    color: #e11d48 !important;
}

/* ============================================================
   NEW ODYSEE PROFILE CHANNEL LAYOUT (PREMIUM DESIGN)
   ============================================================ */
.odysee-profile-header-card {
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 8px;
    border: none;
    position: relative;
}

/* 1. Cover Banner */
.odysee-cover-banner {
    width: 100%;
    height: 380px; /* Tăng chiều cao banner lên để kéo dài xuống */
    position: relative;
    background: linear-gradient(135deg, #090a0f 0%, #181920 100%) !important;
    overflow: hidden;
    border-radius: 12px;
}

.odysee-cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.odysee-banner-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.odysee-banner-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.odysee-banner-btn:hover {
    background: #e11d48 !important; /* Đỏ hồng Odysee */
    border-color: #e11d48 !important;
    transform: translateY(-2px);
}

.odysee-banner-btn.follow-btn {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
}

.odysee-banner-btn.follow-btn:hover {
    background: #be123c !important;
    border-color: #be123c !important;
}

.odysee-banner-btn.more-btn {
    padding: 8px 10px !important;
}

/* 2. Info Row */
.odysee-profile-info-row {
    padding: 40px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, #0b0e14 0%, rgba(11, 14, 20, 0.85) 50%, transparent 100%);
}

.odysee-profile-left {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}

.odysee-profile-avatar-wrapper {
    margin-top: 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.odysee-profile-avatar-wrapper img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    border: 4px solid #0b0e14 !important;
    object-fit: cover !important;
    background: #222 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    display: block !important;
    margin-bottom: -1px; /* Trùng khớp với đường kẻ */
}

.odysee-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    margin-bottom: 0;
    flex-grow: 1;
    padding-top: 0;
}

.odysee-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
}

.odysee-profile-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 2px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.odysee-verified-icon {
    color: #00e5ff;
    font-size: 1.15rem;
}

.odysee-profile-followers {
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    display: flex;
    align-items: center;
    gap: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
}

.odysee-profile-subtext {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-edit-channel-icon {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease !important;
    margin-left: 12px !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.btn-edit-channel-icon:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.btn-edit-channel-icon i {
    font-size: 1.1rem !important;
}

/* 3. Tabs Bar */
.odysee-profile-tabs-bar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Tạo đường kẻ ngang dưới chữ */
    padding: 0;
    background: transparent;
    margin-top: 0 !important;
}

.odysee-profile-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.odysee-profile-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.odysee-profile-tab {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 16px 0 !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.2s;
    white-space: nowrap;
}

.odysee-profile-tab:hover,
.odysee-profile-tab.active {
    color: #fff !important;
}

.odysee-profile-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e11d48; /* Đỏ hồng Odysee */
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.odysee-profile-tab.active::after {
    transform: scaleX(1);
}

/* 4. Content Area */
.odysee-profile-content-area {
    width: 100%;
    padding: 8px 0;
}

/* 5. Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .odysee-cover-banner {
        height: 140px !important;
    }
    .odysee-profile-info-row {
        position: relative !important;
        padding: 12px 16px 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .odysee-profile-left {
        display: flex !important;
        flex-direction: row !important; /* Side-by-side layout like reference */
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        text-align: left !important;
    }
    .odysee-profile-avatar-wrapper {
        margin-top: -36px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        z-index: 10 !important;
    }
    .odysee-profile-avatar-wrapper img {
        width: 80px !important;
        height: 80px !important;
        border: 2.5px solid #0b0e14 !important;
    }
    .avatar-edit-overlay {
        width: 75px !important;
        height: 75px !important;
        top: 2.5px !important;
        left: 2.5px !important;
    }
    .odysee-profile-meta {
        margin-left: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-top: 0 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    .btn-edit-channel-icon {
        display: none !important;
    }
    .odysee-profile-name-row {
        justify-content: flex-start !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .odysee-profile-name {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }
    .odysee-profile-handle {
        display: none !important;
    }
    .odysee-profile-followers {
        display: none !important;
    }
    .profile-action-buttons {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }
    #btn-analytics-channel {
        display: none !important;
    }
    .profile-pill-btn {
        flex: 1 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: all 0.2s ease !important;
    }
    .profile-pill-btn:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    .odysee-profile-tabs-bar {
        display: none !important;
    }
    .odysee-profile-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }
    .odysee-profile-right .follow-btn {
        width: 100% !important;
        justify-content: center !important;
        background-color: #ff3b6c !important;
        border-radius: 20px !important;
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border: none !important;
    }
    .odysee-profile-right .follow-btn.following {
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ff3b6c !important;
    }

    /* Mobile Bottom Navigation Bar Styles */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        background-color: #0f0f0f !important; /* YouTube Dark Black */
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    body.has-bottom-nav {
        padding-bottom: 72px !important; /* Prevent bottom navigation cutoff */
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #aaaaaa !important;
        font-size: 0.65rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        background: none !important;
        border: none !important;
        padding: 4px 0 !important;
        cursor: pointer !important;
        flex: 1 !important;
        gap: 3px !important;
    }

    .bottom-nav-item i {
        font-size: 1.3rem !important;
        color: #ffffff !important;
    }

    .bottom-nav-item.active {
        color: #ffffff !important;
    }

    .bottom-nav-item.active i {
        color: #ff3b6c !important; /* Brand Pink */
    }

    .bottom-nav-item.plus-btn {
        flex-grow: 0 !important;
        width: 48px !important;
    }

    .plus-icon-circle {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }

    .plus-icon-circle i {
        font-size: 1.2rem !important;
        color: #ffffff !important;
    }

    .plus-icon-circle:active {
        transform: scale(0.9) !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .bottom-nav-avatar-circle {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    .bottom-nav-avatar-circle img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Follow button premium OnlyRule34 styles */
.follow-btn {
    background-color: #ff3b6c !important; /* Premium pink */
    border: none !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(255, 59, 108, 0.2) !important;
}

.follow-btn:hover {
    background-color: #ff527f !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255, 59, 108, 0.4) !important;
}

.follow-btn.following {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ff3b6c !important;
    box-shadow: none !important;
}

.follow-btn.following:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ff527f !important;
}

/* Base Modal Overlay style to ensure admin modals are hidden by default for guests */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; /* Bị ẩn mặc định */
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Hide admin action buttons on desktop screen (redundant) */
@media (min-width: 769px) {
    .profile-action-buttons {
        display: none !important;
    }
}

/* Custom Profile Header: Transparent cover banner spacer matching web background */
.odysee-cover-banner {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.odysee-profile-info-row {
    background: transparent !important;
}

/* --- Avatar Dropdown Menu (Odysee-inspired) --- */
.avatar-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: rgba(22, 26, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    padding: 6px 0;
    flex-direction: column;
}

.avatar-dropdown-panel.show {
    display: flex;
}

.avatar-dropdown-wrapper {
    position: relative;
}

.dropdown-section {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
}

.dropdown-item i {
    font-size: 1.1rem;
    color: #94a3b8;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item:hover i {
    color: #ffffff;
}

.dropdown-item.channel-selector {
    justify-content: space-between;
}

.dropdown-item.channel-selector i {
    font-size: 0.8rem;
    color: #64748b;
    width: auto;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.logout-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-email {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

/* SKELETON SHIMMER LOADER */
.skeleton-card {
    pointer-events: none;
    user-select: none;
}
.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}
.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.skeleton-title {
    width: 80%;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}
.skeleton-text {
    width: 50%;
    height: 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer-animation 1.6s infinite linear;
}
@keyframes shimmer-animation {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}









