/* General Styles */
:root {
    --sidebar-w: 220px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
a {
    text-decoration: none;
    color: #5a5a5a;
}
img {
    cursor: pointer;
}

/* ══════════════════════════════════════════
   Video Page — nv-player-wrap layout
══════════════════════════════════════════ */
.nv-player-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 24px 40px;
    margin-left: var(--sidebar-w);
}
.nv-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}
.nv-player-box {
    width: 100%;
    border-radius: 10px;
    background: #000;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    overflow: hidden;
}
.nv-player-box .video-js {
    width: 100% !important;
    border-radius: 10px;
}
.nv-player-box .video-container {
    width: 100%;
}
@media(max-width:1100px) {
    .nv-page-grid { grid-template-columns: 1fr; }
    .nv-sidebar-related { order: 2; }
}
@media(max-width:768px) {
    .nv-player-wrap { padding-left: 14px; padding-right: 14px; }
}
.nv-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f0f0f;
    line-height: 1.4;
    margin: 0 0 14px;
}
.nv-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
}
.nv-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nv-channel__avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.nv-channel__info { display: flex; flex-direction: column; }
.nv-channel__name { font-size: 14px; font-weight: 600; color: #0f0f0f; }
.nv-channel__subs { font-size: 12px; color: #606060; }
.nv-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Like/Dislike pill */
.nv-pill { display: inline-flex; align-items: center; background: #f2f2f2; border-radius: 20px; overflow: hidden; }
.nv-pill__btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; background: transparent; padding: 8px 14px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    color: #0f0f0f; transition: background .15s; font-family: inherit;
}
.nv-pill__btn:hover { background: #e5e5e5; }
.nv-pill__btn.liked    { color: #065f46; background: #d1fae5; }
.nv-pill__btn.disliked { color: #991b1b; background: #fee2e2; }
.nv-pill__sep { width: 1px; height: 22px; background: #d0d0d0; flex-shrink: 0; }

.nv-act-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f2f2f2; border: none; padding: 8px 14px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
    cursor: pointer; color: #0f0f0f; transition: background .15s;
    white-space: nowrap; font-family: inherit;
}
.nv-act-btn:hover { background: #e5e5e5; }
.nv-act-btn.saved { background: #dbeafe; color: #1d4ed8; }

/* Share panel */
.nv-share-panel {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 18px 20px; margin-bottom: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.nv-share-panel__title { font-size: 14px; font-weight: 700; color: #111; margin: 0 0 12px; }
.nv-share-copy { display: flex; gap: 8px; margin-bottom: 14px; }
.nv-share-copy input {
    flex: 1; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 8px 12px; font-size: 13px; outline: none;
    color: #374151; background: #f9fafb;
}
.nv-share-copy button {
    background: #ef4444; color: #fff; border: none;
    padding: 8px 18px; border-radius: 8px; font-size: 13px;
    font-weight: 700; cursor: pointer; font-family: inherit;
}
.nv-share-copy button:hover { background: #dc2626; }
.nv-share-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.nv-soc {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px; font-size: 13px;
    font-weight: 600; color: #fff !important; text-decoration: none; transition: opacity .15s;
}
.nv-soc:hover { opacity: .85; }
.nv-soc--fb { background: #1877f2; }
.nv-soc--tw { background: #0f172a; }
.nv-soc--wa { background: #16a34a; }
.nv-soc--tg { background: #0088cc; }
.nv-copy-ok { margin-top: 8px; font-size: 13px; color: #16a34a; font-weight: 600; }

/* Description */
.nv-desc { background: #f9fafb; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.nv-desc__inner {
    font-size: 14px; color: #374151; line-height: 1.7;
    max-height: 72px; overflow: hidden; transition: max-height .3s ease;
}
.nv-desc__inner.expanded { max-height: 2000px; }
.nv-desc__toggle {
    background: none; border: none; font-size: 13px; font-weight: 700;
    color: #111; cursor: pointer; padding: 6px 0 0; font-family: inherit;
}

/* Toast */
#nv-toast {
    display: none; position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%); background: #111; color: #fff;
    padding: 10px 22px; border-radius: 8px; font-size: 14px;
    z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.3);
    white-space: nowrap;
}

/* Video.js overrides */
.video-js { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }

/* Related videos sidebar — YouTube style */
.nv-sidebar-related {
    position: sticky;
    top: 80px;
}
.nv-sidebar-related .side_video_list {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    transition: background .15s;
}
.nv-sidebar-related .side_video_list:hover { background: #f5f5f5; }
.nv-sidebar-related .small-thumbnail {
    flex-shrink: 0;
    width: 168px;
    height: 94px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.nv-sidebar-related .small-thumbnail img {
    width: 168px !important;
    height: 94px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.nv-sidebar-related .vid-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.nv-sidebar-related .vid-info a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}
.nv-sidebar-related .vid-info a:hover { color: #ff0000; }
.nv-sidebar-related .vid-info p {
    font-size: 12px;
    color: #606060;
    margin: 2px 0 0;
}
.nv-sidebar-related .video-duration {
    font-size: 11px;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    position: absolute;
    bottom: 4px; right: 4px;
}


.flex-div {
    display: flex;
    align-items: center;
}




/* Navigation Bar */
nav {
    padding: 10px 2%;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}
.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-left .menu_icon {
    width: 22px;
    margin-right: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-left .logo {
    width: 120px;
}
.nav-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
.nav-middle .search_box {
    border: 1px solid #ccc;
    padding: 8px 14px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
}
.nav-middle .search_box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}
.nav-middle .search_box img {
    width: 15px;
    flex-shrink: 0;
}
.nav-middle .mic_icon {
    width: 16px;
    margin-left: 10px;
    flex-shrink: 0;
}
/* Mobile search trigger button (hidden on desktop) */
.search-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.search-trigger img {
    width: 20px;
}
/* Mobile search overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    z-index: 200;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    align-items: center;
    gap: 10px;
}
.mobile-search-overlay.active {
    display: flex;
}
.mobile-search-overlay input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 15px;
    outline: none;
}
.mobile-search-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    padding: 0 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-right img {
    width: 24px;
    margin-right: 20px;
    cursor: pointer;
}
.nav-right .user-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 0;
    object-fit: cover;
}
.nav-right .login-btn {
    background: transparent;
    border: 1px solid #065fd4;
    color: #065fd4;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.nav-right .login-btn:hover {
    background: #e7f0fd;
}

/* Sidebar */
.sidebar {
    background: #fff;
    width: var(--sidebar-w);
    height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    padding: 15px 0 15px 16px;
    overflow-y: auto;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 50;
    border-right: 1px solid #f0f0f0;
}
.shortcut-links a,
.subcribed-list a {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    padding: 8px 10px 8px 0;
    border-radius: 10px;
    width: 100%;
    transition: background 0.15s;
}
.shortcut-links a:hover,
.subcribed-list a:hover {
    background: #f2f2f2;
}
.shortcut-links a img,
.subcribed-list a img {
    width: 20px;
    margin-right: 18px;
    flex-shrink: 0;
}
.shortcut-links a p,
.subcribed-list a p {
    font-size: 13px;
    color: #0f0f0f;
    white-space: nowrap;
    overflow: hidden;
}
.shortcut-links a:first-child {
    color: #ed3833;
}
.shortcut-links a:first-child p {
    color: #ed3833;
}
.sidebar hr {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    width: 90%;
    margin: 10px 0;
}
.subcribed-list h3 {
    font-size: 13px;
    margin: 14px 0 8px;
    color: #606060;
    font-weight: 600;
}
.subcribed-list a img {
    width: 24px;
    border-radius: 50%;
}

/* Collapsed sidebar (desktop toggle) */
.small-sidebar {
    width: 72px;
    padding-left: 10px;
}
.small-sidebar a p,
.small-sidebar h3 {
    display: none;
}
.small-sidebar a {
    justify-content: center;
    padding: 10px 0;
}
.small-sidebar a img {
    margin-right: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 49;
}
.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.content {
    background: #f9f9f9;
    padding: 20px 2% 20px calc(var(--sidebar-w) + 2%);
    transition: padding-left 0.3s ease;
    min-height: calc(100vh - 56px);
}
.large-content {
    padding-left: calc(72px + 2%);
}
.banner {
    width: 100%;
}
.banner img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}
.list_content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    grid-gap: 16px;
    margin-top: 15px;
}
.vid_list .thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
.vid_list .flex-div {
    align-items: flex-start;
    margin-top: 7px;
}
.vid_list .flex-div img {
    width: 35px;
    margin-right: 10px;
    border-radius: 50%;
}
.vid-info {
    color: #5a5a5a;
    font-size: 13px;
}
.vid-info a {
    color: #000;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Video Player */
.video-container {
    text-align: center;
    margin-bottom: 20px;
}
/* Pagination */
.pagination {
    text-align: center;
    margin: 20px 0;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    background: #f1f1f1;
    border-radius: 4px;
}
.pagination a.active {
    font-weight: bold;
    background: #ff0000;
    color: white;
}
.pagination a:hover {
    background: #ddd;
}
.page-jump {
    text-align: center;
    margin: 20px 0;
}
.page-jump input {
    width: 60px;
    padding: 5px;
    text-align: center;
}
.page-jump button {
    padding: 6px 12px;
    background: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .nav-middle .search_box {
        max-width: 300px;
    }
    .nav-right img:not(.user-icon) {
        margin-right: 14px;
    }
}

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

    :root { --sidebar-w: 0px; }    /* Nav */
    nav {
        padding: 10px 14px;
    }
    .nav-left .logo {
        width: 90px;
    }
    .nav-left .menu_icon {
        width: 20px;
        margin-right: 12px;
    }
    /* Hide desktop search, show search icon trigger */
    .nav-middle .search_box {
        display: none;
    }
    .nav-middle .mic_icon {
        display: none;
    }
    .search-trigger {
        display: flex;
        align-items: center;
    }
    /* Hide some nav-right icons on mobile */
    .nav-right img.upload-icon,
    .nav-right img.more-icon,
    .nav-right img.notification-icon {
        display: none;
    }

    /* Sidebar — slides in as drawer on mobile */
    .sidebar {
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        width: 260px;
        z-index: 200;
        padding-top: 60px;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    /* Content takes full width on mobile */
    .content {
        padding: 12px 14px;
        width: 100%;
        max-width: 100%;
    }
    .large-content {
        padding-left: 14px;
    }
    /* Grid: 2 columns on tablet-ish, 1 on small */
    .list_content {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
        padding: 0 4px;
    }
    .banner img {
        display: none;
    }
}

@media (max-width: 480px) {
    .list_content {
        grid-template-columns: 1fr;
        grid-gap: 14px;
        width: 100%;
    }
    .list_content .vid_list {
        width: 100%;
        max-width: 100%;
    }
    .nav-middle {
        flex: 0;
    }
}



/* Pagination */

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    background: #f1f1f1;
    border-radius: 4px;
}

.page-link.active {
    font-weight: bold;
    background: #ff0000;
    color: white;
}

.page-link:hover {
    background: #ddd;
}


/* Profile — see user.php for nv-up- classes */


/* Positioning for Thumbnail */
/* Positioning for Thumbnail */
.thumbnail-container {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}
.thumbnail-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Video Duration Styling */
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6); /* Transparent black */
    color: white;
    font-size: 11px;
    padding: 3px 4px; /* Background padding */
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
    backdrop-filter: blur(3px); /* Light blur effect */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3); /* Soft shadow */
}
/* Positioning end for Thumbnail */



/* releted Posit */
/* Related Videos Section */
.related-videos-section {
    margin-top: 20px;
}

/* Ensure flexbox aligns items correctly */
.related-video-item {
    display: flex;
    gap: 10px;
    align-items: flex-start; /* ✅ Aligns items at the top */
    padding: 8px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    min-height: 80px; /* ✅ Ensures all items are at least the same height */
}

.related-video-item:hover {
    transform: scale(1.02);
}

/* Video Thumbnail */
.related-thumb-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    flex-shrink: 0;
}

.related-thumb {
    width: 100%;
    border-radius: 5px;
}

/* ✅ Fix Duration Display */
.related-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: block;
}

/* Video Info */
.related-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ✅ Keeps the title & meta aligned */
}

/* Title Styles */
.related-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ✅ Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word; /* ✅ Force words to break */
    max-width: 100%;
    line-height: 1.4;
}


.related-title:hover {
    color: #ff0000;
}

/* Meta (Date) */
.related-meta {
    font-size: 12px;
    color: #777;
    margin-top: auto; /* ✅ Keeps date text at the bottom */
}
 /* end releted post */
 
 
 
 
 
 

/* Unique Thumbnail Wrapper */
.unique-thumbnail-wrap {
    position: relative;
    display: inline-block;
}

/* Unique Video Duration Styling */
.unique-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
}

.signup-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.signup-container h2 {
    margin-bottom: 15px;
}

.signup-container input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.signup-container button {
    width: 100%;
    padding: 10px;
    background: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.signup-container .error-msg {
    color: red;
    font-weight: bold;
}

.signup-container .success-msg {
    color: green;
    font-weight: bold;
}
.login-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 15px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.login-container .error-msg {
    color: red;
    font-weight: bold;
}
/* css for 920x200buttom player */
.css-ad-box {
    max-width: 920px;
    height: 200px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #222, #68163b);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.css-ad-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #ffce54;
}

.css-ad-content p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.css-ad-btn {
    background: #ffce54;
    color: #222;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}
.css-ad-btn:hover {
    background: #ffd96a;
    color: #000;
}

/* ══════════════════════════════════
   Channel / User Profile Page (nv-up-)
══════════════════════════════════ */
.nvup-wrap {
  padding-bottom: 60px;
  margin: -20px -2%;
  overflow-x: hidden;
}

@media(max-width: 640px) {
  .nvup-wrap {
    margin: -12px -14px;
  }
}

/* Banner */
.nvup-banner {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
  position: relative;
  overflow: hidden;
}
.nvup-banner__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233,69,96,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,52,96,.5) 0%, transparent 60%);
}
@media(max-width:768px){ .nvup-banner { height: 110px; } }

/* Header */
.nvup-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 24px;
}
.nvup-header__inner {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 0 20px;
  position: relative;
}
.nvup-avatar-wrap {
  margin-top: -44px;
  flex-shrink: 0;
}
.nvup-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: block;
}
.nvup-avatar--fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.nvup-header__info {
  padding-bottom: 4px;
  flex: 1;
  min-width: 0;
}
.nvup-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f0f0f;
  margin: 0 0 6px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nvup-meta {
  font-size: 13px;
  color: #606060;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nvup-meta__dot { color: #ccc; }

/* Tabs */
.nvup-tabs {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 60px;
  z-index: 10;
}
.nvup-tabs__inner {
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nvup-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color .15s;
}
.nvup-tab:hover { color: #0f0f0f; }
.nvup-tab--active { color: #0f0f0f; }
.nvup-tab--active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: #0f0f0f;
  border-radius: 2px 2px 0 0;
}

/* Toolbar (search + sort) */
.nvup-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.nvup-search { display: flex; }
.nvup-search__box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f2f2;
  border-radius: 20px;
  padding: 7px 14px;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nvup-search__box:focus-within {
  background: #fff;
  border-color: #0f0f0f;
}
.nvup-search__box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f0f0f;
  width: 180px;
  font-family: inherit;
}
.nvup-search__clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #888;
  display: flex;
  align-items: center;
}
.nvup-search__clear:hover { color: #0f0f0f; }

/* Sort buttons */
.nvup-sort {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nvup-sort__label {
  font-size: 12px;
  color: #888;
  margin-right: 4px;
  white-space: nowrap;
}
.nvup-sort__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  background: #f2f2f2;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nvup-sort__btn:hover { background: #e5e5e5; }
.nvup-sort__btn.active { background: #0f0f0f; color: #fff; }

/* Search result info */
.nvup-search-info {
  font-size: 13px;
  color: #606060;
  margin-bottom: 16px;
}
.nvup-search-info strong { color: #0f0f0f; }

/* Content area */
.nvup-content {
  padding: 24px 24px 0;
}

/* Empty state */
.nvup-empty {
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
}
.nvup-empty p { margin-top: 16px; font-size: 15px; }

/* Video Grid */
.nvup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px 16px;
}
@media(max-width:640px) {
  .nvup-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .nvup-toolbar { width: 100%; }
  .nvup-search__box input { width: 130px; }
}

/* Card */
.nvup-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: nvupCardFadeUp .4s ease both;
}
.nvup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
@keyframes nvupCardFadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Thumbnail */
.nvup-card__thumb-wrap {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  overflow: hidden;
  border-radius: 10px;
}
.nvup-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.nvup-card:hover .nvup-card__thumb { transform: scale(1.04); }
.nvup-card__dur {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.nvup-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: 10px;
}
.nvup-card:hover .nvup-card__overlay { opacity: 1; }

/* Card info */
.nvup-card__info { padding: 10px 4px 4px; }
.nvup-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: #0f0f0f;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color .15s;
}
.nvup-card__title:hover { color: #e94560; }
.nvup-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #606060;
}
.nvup-card__cat {
  background: #f2f2f2;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #444;
}
.nvup-card__dot { color: #ccc; }

/* Pagination */
.nvup-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  padding-bottom: 20px;
}
.nvup-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f2f2f2;
  color: #0f0f0f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.nvup-page-btn:hover { background: #e5e5e5; }
.nvup-page-btn--active { background: #0f0f0f; color: #fff; }
.nvup-page-btn--active:hover { background: #333; }

/* ══ Related Videos Sidebar — nv-rel- ══ */
.nv-rel-wrap { padding: 4px 0; }
.nv-rel-heading { font-size: 15px; font-weight: 700; color: #0f0f0f; margin-bottom: 12px; }

.nv-rel-item {
    display: flex; gap: 8px; margin-bottom: 10px;
    align-items: flex-start; border-radius: 8px;
    padding: 4px; transition: background .15s;
}
.nv-rel-item:hover { background: #f5f5f5; }

.nv-rel-thumb {
    position: relative; flex-shrink: 0;
    width: 168px; height: 94px;
    border-radius: 8px; overflow: hidden;
    display: block; background: #111;
}
.nv-rel-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .3s ease;
}
.nv-rel-item:hover .nv-rel-thumb img { transform: scale(1.04); }

.nv-rel-dur {
    position: absolute; bottom: 5px; right: 5px;
    background: rgba(0,0,0,.85); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 5px; border-radius: 4px;
}
.nv-rel-info { flex: 1; min-width: 0; padding-top: 2px; }
.nv-rel-title {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px; font-weight: 600; color: #0f0f0f;
    text-decoration: none; line-height: 1.4;
    margin-bottom: 4px; transition: color .15s;
}
.nv-rel-title:hover { color: #ff0000; }
.nv-rel-meta { font-size: 11px; color: #606060; margin: 0; }

/* Sentinel */
.nv-rel-sentinel { height: 1px; }

/* Loader dots */
.nv-rel-loader {
    display: flex; justify-content: center;
    gap: 6px; padding: 16px 0;
}
.nv-rel-loader span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ccc; animation: nvRelDot .8s ease-in-out infinite;
}
.nv-rel-loader span:nth-child(2) { animation-delay: .15s; }
.nv-rel-loader span:nth-child(3) { animation-delay: .30s; }
@keyframes nvRelDot {
    0%,80%,100% { transform:scale(.6); opacity:.4; }
    40%          { transform:scale(1);  opacity:1; }
}

/* End message */
.nv-rel-end {
    text-align: center; font-size: 12px;
    color: #aaa; padding: 12px 0 8px;
}

@media(max-width:1100px) { .nv-rel-thumb { width: 140px; height: 79px; } }
@media(max-width:600px)  { .nv-rel-thumb { width: 120px; height: 68px; } }

/* ══════════════════════════════════
   Category Page — cat-
══════════════════════════════════ */
.cat-wrap {
    padding-bottom: 48px;
}

/* Header */
.cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 24px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}
.cat-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255,0,0,.25);
}
.cat-header__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f0f0f;
    margin: 0 0 3px;
    line-height: 1.2;
}
.cat-header__count {
    font-size: 13px;
    color: #606060;
    margin: 0;
}

/* Empty */
.cat-empty {
    text-align: center;
    padding: 80px 20px;
    color: #bbb;
}
.cat-empty p { margin-top: 16px; font-size: 15px; }

/* Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 16px;
}
@media(max-width:640px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
}

/* Card */
.cat-card {
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: catFadeUp .4s ease both;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
@keyframes catFadeUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Thumbnail */
.cat-card__thumb {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111;
    overflow: hidden;
    border-radius: 10px;
}
.cat-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.cat-card:hover .cat-card__thumb img { transform: scale(1.05); }

.cat-card__dur {
    position: absolute;
    bottom: 7px; right: 7px;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
}
.cat-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    opacity: 0;
    transition: opacity .2s;
    border-radius: 10px;
}
.cat-card:hover .cat-card__play { opacity: 1; }

/* Info */
.cat-card__info {
    padding: 10px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    line-height: 1.4;
    transition: color .15s;
}
.cat-card__title:hover { color: #ff0000; }
.cat-card__meta {
    font-size: 11px;
    color: #888;
}

/* Pagination */
.cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.cat-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f2f2f2;
    color: #0f0f0f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.cat-pgbtn:hover { background: #e5e5e5; }
.cat-pgbtn--active { background: #ff0000; color: #fff; }
.cat-pgbtn--active:hover { background: #cc0000; }

/* ══════════════════════════════════
   Search Page — nvsr-
══════════════════════════════════ */
.nvsr-wrap { padding-bottom: 48px; }

/* Header */
.nvsr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.nvsr-result-count { font-size: 14px; color: #606060; margin: 0; }
.nvsr-result-count strong { color: #0f0f0f; font-weight: 700; }
.nvsr-query { color: #0f0f0f; font-weight: 600; }

/* Filter */
.nvsr-filter { display: flex; align-items: center; gap: 6px; }
.nvsr-filter__label { font-size: 12px; color: #888; white-space: nowrap; }
.nvsr-filter__btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 16px;
    font-size: 12px; font-weight: 600; color: #444;
    background: #f2f2f2; text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nvsr-filter__btn:hover { background: #e5e5e5; }
.nvsr-filter__btn--active { background: #0f0f0f; color: #fff; }

/* Empty */
.nvsr-empty { text-align: center; padding: 80px 20px; color: #aaa; }
.nvsr-empty p { margin: 16px 0 12px; font-size: 15px; }
.nvsr-empty__link { font-size: 13px; color: #ff0000; font-weight: 600; }

/* List */
.nvsr-list { display: flex; flex-direction: column; gap: 0; }

/* Item */
.nvsr-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
    animation: nvsrFadeUp .35s ease both;
    transition: background .15s;
    border-radius: 8px;
}
.nvsr-item:hover { background: #fafafa; }
@keyframes nvsrFadeUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Thumbnail */
.nvsr-thumb {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 158px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #111;
}
.nvsr-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.nvsr-item:hover .nvsr-thumb img { transform: scale(1.04); }
.nvsr-dur {
    position: absolute; bottom: 7px; right: 7px;
    background: rgba(0,0,0,.85); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.nvsr-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3);
    opacity: 0; transition: opacity .2s;
    border-radius: 10px;
}
.nvsr-item:hover .nvsr-play { opacity: 1; }

/* Info */
.nvsr-info { flex: 1; min-width: 0; padding-top: 4px; }
.nvsr-title {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    font-size: 16px; font-weight: 700; color: #0f0f0f;
    text-decoration: none; line-height: 1.4;
    margin-bottom: 8px; transition: color .15s;
}
.nvsr-title:hover { color: #ff0000; }
.nvsr-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #606060; margin-bottom: 12px;
    flex-wrap: wrap;
}
.nvsr-cat {
    background: #f2f2f2; padding: 2px 8px;
    border-radius: 10px; font-size: 11px;
    font-weight: 600; color: #444;
}
.nvsr-dot { color: #ccc; }

/* Channel */
.nvsr-channel {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; margin-top: auto;
}
.nvsr-channel__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.nvsr-channel__avatar--fb {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff; font-size: 12px; font-weight: 700;
}
.nvsr-channel__name { font-size: 13px; color: #606060; font-weight: 500; transition: color .15s; }
.nvsr-channel:hover .nvsr-channel__name { color: #0f0f0f; }

/* Pagination */
.nvsr-pagination {
    display: flex; align-items: center;
    justify-content: center; gap: 6px;
    margin-top: 36px;
}
.nvsr-pgbtn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 8px; background: #f2f2f2;
    color: #0f0f0f; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.nvsr-pgbtn:hover { background: #e5e5e5; }
.nvsr-pgbtn--active { background: #ff0000; color: #fff; }
.nvsr-pgbtn--active:hover { background: #cc0000; }

/* Responsive */
@media(max-width:768px) {
    .nvsr-thumb { width: 180px; height: 102px; }
    .nvsr-title { font-size: 14px; }
}
@media(max-width:520px) {
    .nvsr-thumb { width: 140px; height: 79px; }
    .nvsr-item { gap: 10px; padding: 10px 0; }
    .nvsr-title { font-size: 13px; }
    .nvsr-header { flex-direction: column; align-items: flex-start; }
}
/* ── Stats Bar ── */
.nv-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  padding: 12px 0 16px;
  font-size: 13.5px;
  color: #606060;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 24px;
}
.nv-stats-bar__item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nv-stats-bar__dot {
  color: #c0c0c0;
  font-size: 16px;
  line-height: 1;
}

/* ── Static Comment Box ── */
.nv-comment-static {
  margin-top: 8px;
  padding-bottom: 40px;
}
.nv-comment-static__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.nv-comment-static__title {
  font-size: 16px;
  font-weight: 700;
  color: #0f0f0f;
}
.nv-comment-static__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #909090;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
}

/* Input row */
.nv-comment-static__box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.nv-comment-static__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #909090;
}
.nv-comment-static__input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid #d0d0d0;
  font-size: 14px;
  color: #909090;
  cursor: default;
  transition: border-color .2s;
}
.nv-comment-static__input:hover {
  border-bottom-color: #0f0f0f;
}

/* Empty placeholder */
.nv-comment-static__placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}
.nv-comment-static__placeholder svg {
  display: block;
  margin: 0 auto 14px;
  opacity: .25;
}
.nv-comment-static__placeholder p {
  font-size: 14px;
}

/* ── Home page heading ── */
.nv-home-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.nv-home-head__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: #0f0f0f;
}
.nv-home-head__sub {
  font-size: 12px; color: #909090;
}

/* ── Trending badge ── */
.nv-trend-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.75);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ── Load More Button ── */
.nv-load-more {
  padding: 10px 32px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0f0f0f;
  cursor: pointer;
  transition: all .15s;
}
.nv-load-more:hover { background: #f5f5f5; border-color: #c0c0c0; }
.nv-load-more:disabled { opacity: .5; cursor: default; }

/* ── Feed meta line — one line force ── */
.nv-meta-line {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: #606060;
  margin-top: 3px;
}
.nv-meta-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.nv-dot {
  flex-shrink: 0;
  color: #c0c0c0;
}