/* RESET & GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #030303;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #030303;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: #e5e5e5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: bold;
}

.logo i {
    color: #ff0000;
    font-size: 28px;
}

/* HEADER CENTER - SEARCH */
.header-center {
    flex: 1;
    max-width: 640px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    height: 40px;
}

.search-input {
    flex: 1;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #1c62b9;
}

.search-btn {
    width: 64px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 20px 20px 0;
    color: #030303;
    font-size: 18px;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

/* HEADER RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #030303;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #e5e5e5;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-link-btn:hover {
    background-color: #ff5252 !important;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #065fd4;
    border-radius: 20px;
    color: #065fd4;
    font-weight: 500;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #def1ff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ff6b6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 8px 0;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f2f2f2;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 240px;
    background-color: #fff;
    overflow-y: auto;
    padding: 12px 0;
    transition: transform 0.3s;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-240px);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    color: #030303;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-item i {
    font-size: 20px;
    width: 24px;
}

.nav-item:hover {
    background-color: #f2f2f2;
}

.nav-item.active {
    background-color: #e5e5e5;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 12px 0;
}

.sidebar-section {
    padding: 0 24px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 500;
    color: #606060;
    margin: 12px 0 8px;
    text-transform: uppercase;
}

/* MAIN CONTENT */
.main-content {
    margin-top: 56px;
    margin-left: 240px;
    padding: 24px;
    transition: margin-left 0.3s;
}

.main-content.expanded {
    margin-left: 0;
}

/* CATEGORY TABS */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: #f2f2f2;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.tab-btn:hover {
    background-color: #e5e5e5;
}

.tab-btn.active {
    background-color: #030303;
    color: white;
}

/* VIDEO GRID */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    background-color: #ccc;
    border-radius: 12px;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.video-info {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.video-details {
    flex: 1;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 13px;
    color: #606060;
    margin-bottom: 2px;
}

.video-meta {
    font-size: 13px;
    color: #606060;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #606060;
    cursor: pointer;
}

.close-btn:hover {
    color: #030303;
}

.modal-content h2 {
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #1c62b9;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #065fd4;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: #0458b8;
}

.form-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #606060;
}

.form-text a {
    color: #065fd4;
    font-weight: 500;
}

/* ============================================ */
/* VIDEO DETAIL PAGE */
/* ============================================ */
.video-detail-page {
    padding: 24px 40px;
}

.video-detail-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    max-width: 1800px;
}

/* VIDEO PLAYER */
.video-player-section {
    width: 100%;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* VIDEO INFO */
.video-info-section {
    margin-top: 16px;
}

.video-detail-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #606060;
    margin-bottom: 16px;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f2f2f2;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #e5e5e5;
}

.action-btn.active {
    background-color: #065fd4;
    color: white;
}

.action-btn i {
    font-size: 18px;
}

.video-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 16px 0;
}

/* CHANNEL INFO */
.channel-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ff6b6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.channel-details {
    flex: 1;
}

.channel-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.channel-subs {
    font-size: 13px;
    color: #606060;
}

.subscribe-btn {
    padding: 10px 24px;
    background-color: #cc0000;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: #a00000;
}

/* VIDEO DESCRIPTION */
.video-description-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.video-description-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #030303;
    white-space: pre-wrap;
}

/* COMMENTS SECTION */
.comments-section {
    margin-top: 24px;
}

.comments-section > h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-input-form {
    flex: 1;
    display: flex;
    gap: 12px;
}

.comment-input-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.comment-input-form input:focus {
    outline: none;
    border-color: #065fd4;
}

.comment-input-form button {
    padding: 10px 24px;
    border-radius: 20px;
}

.login-prompt {
    padding: 16px;
    background-color: #f2f2f2;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.login-prompt a {
    color: #065fd4;
    font-weight: 500;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
}

.comment-time {
    font-size: 13px;
    color: #606060;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #030303;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #606060;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.comment-action-btn:hover {
    background-color: #f2f2f2;
}

.delete-comment-btn {
    color: #cc0000;
}

/* RELATED VIDEOS */
.related-videos-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-video-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.related-video-item:hover {
    background-color: #f2f2f2;
}

.related-video-thumbnail {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    background-color: #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.related-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-channel {
    font-size: 12px;
    color: #606060;
}

.related-video-meta {
    font-size: 12px;
    color: #606060;
}

/* ============================================ */
/* LIBRARY PAGES */
/* ============================================ */
.library-page {
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.library-actions {
    display: flex;
    gap: 12px;
}

/* LIBRARY TABS */
.library-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e5e5e5;
}

.library-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #606060;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.library-tab:hover {
    color: #030303;
}

.library-tab.active {
    color: #065fd4;
    border-bottom-color: #065fd4;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.clear-btn, .clear-history-btn {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.clear-btn:hover, .clear-history-btn:hover {
    background-color: #da190b;
}

/* SUBSCRIPTIONS GRID */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.subscription-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.subscription-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subscription-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.subscription-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.subscription-info {
    font-size: 14px;
    color: #606060;
}

.unsubscribe-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.unsubscribe-btn:hover {
    background-color: #da190b;
}

/* ============================================ */
/* HISTORY PAGE */
/* ============================================ */

.history-page {
    max-width: 1200px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.clear-history-btn {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-history-btn:hover {
    background-color: #da190b;
}

/* HISTORY LIST - LIST LAYOUT (DỌC) */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: #f9f9f9;
}

/* THUMBNAIL */
.history-thumbnail {
    position: relative;
    width: 240px;
    height: 135px;
    flex-shrink: 0;
    background-color: #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.history-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.remove-video-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.history-thumbnail:hover .remove-video-btn {
    opacity: 1;
}

.remove-video-btn:hover {
    background: rgba(0, 0, 0, 0.95);
}

/* INFO SECTION */
.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
}

.history-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-channel {
    font-size: 14px;
    color: #606060;
}

.history-meta {
    font-size: 14px;
    color: #606060;
}

.history-watched-time {
    font-size: 13px;
    color: #065fd4;
    font-weight: 500;
}

/* VIDEO GRID FOR LIBRARY */
.video-card-wrapper {
    position: relative;
}

.remove-video-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card-wrapper:hover .remove-video-btn {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #e5e5e5;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    color: #606060;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .video-detail-container {
        grid-template-columns: 1fr;
    }
    
    .related-videos-section {
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-240px);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .header-center {
        margin: 0 16px;
    }
    
    .video-detail-page {
        padding: 16px;
    }
    
    .video-actions {
        flex-wrap: wrap;
    }
    
    .related-video-thumbnail {
        width: 120px;
        height: 68px;
    }
    
    .history-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .history-thumbnail {
        width: 100%;
        height: 0;
        padding-top: 56.25%;
        position: relative;
    }
    
    .history-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
    }
    
    .history-duration {
        position: absolute;
        bottom: 8px;
        right: 8px;
    }
    
    .remove-video-btn{
        opacity: 1;
    }

    .history-header{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .library-tabs {
        overflow-x: auto;
    }
    
    .library-tab {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .library-header{
		flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
	}
    .history-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .remove-video-btn {
        opacity: 1;
    }
	
	.subscriptions-grid{
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
}


/*LIBRARY PAGE - LIST LAYOUT */

/* Override video-grid cho library tabs */
.library-content .video-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Video card cho library - list style */
.library-content .video-card {
    display: flex !important;
    gap: 16px !important;
    padding: 12px !important;
    background: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    transform: none !important;
    margin: 0 !important;
}

.library-content .video-card:hover {
    background-color: #f9f9f9 !important;
    transform: none !important;
}

/* Thumbnail cho library - fixed width */
.library-content .video-thumbnail {
    position: relative !important;
    width: 240px !important;
    height: 135px !important;
    flex-shrink: 0 !important;
    background-color: #ccc !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

.library-content .video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Video info cho library */
.library-content .video-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.library-content .channel-avatar {
    display: none !important;
}

.library-content .video-title {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.library-content .video-channel {
    font-size: 14px !important;
    color: #606060 !important;
    margin-bottom: 2px !important;
}

.library-content .video-meta {
    font-size: 14px !important;
    color: #606060 !important;
}

/* Mobile responsive cho library */
@media (max-width: 768px) {
    .library-content .video-card {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .library-content .video-thumbnail {
        width: 100% !important;
        height: auto !important;
        padding-top: 56.25% !important;
        position: relative !important;
    }

    .library-content .video-thumbnail img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .library-content .remove-video-btn {
        opacity: 1 !important;
    }
}

/* HISTORY PAGE - PROGRESS BAR */

.history-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.history-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.history-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #065fd4, #0458b8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.history-progress-time {
    font-size: 12px;
    color: #606060;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .history-progress-bar {
        height: 5px;
    }
    
    .history-progress-time {
        font-size: 11px;
    }
}

/* ============================================ */
/* HISTORY PAGE - PROGRESS BAR ON THUMBNAIL */
/* Thêm vào cuối file style.css */
/* ============================================ */

.history-progress-on-thumbnail {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 5;
}

.history-progress-bar-small {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    overflow: hidden;
}

.history-progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #065fd4, #0458b8);
    border-radius: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 4px rgba(6, 95, 212, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .history-progress-on-thumbnail {
        height: 3px;
    }
}