/*
Theme Name: Turbovids
Theme URI: https://turbovids.com/
Author: PiB Themes
Author URI: https://turbovids.com/
Description: TurboVids is a high-performance, premium WordPress video theme designed for tube sites, video galleries, and membership platforms. Featuring a modern, app-like dark UX, seamless AJAX navigation, integrated video player with monetization tools, and Supabase integration for lightning-fast user experiences. Built for speed and scale.
Version: 4.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videohub
Tags: video, gallery, portfolio, grid-layout, custom-colors, custom-logo, featured-images

VideoHub Gallery WordPress Theme, Copyright 2024
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Enterprise YouTube Dark Palette */
    --vh-primary: #3ea6ff;
    --vh-primary-dark: #3085cc;
    --vh-secondary: #2196f3;
    --vh-accent: #fbc02d;

    /* OLED-Inspired Foundation */
    --vh-background: #0f0f0f;
    --vh-surface: #1f1f1f;
    /* Darker, richer surface */
    --vh-surface-hover: #303030;
    --vh-surface-bright: #3f3f3f;

    /* Typography & Contrast */
    --vh-text: #f1f1f1;
    --vh-text-muted: #aaaaaa;
    --vh-border: rgba(255, 255, 255, 0.08);
    /* Subtler borders */

    /* UI metrics */
    --vh-card-radius: 12px;
    --vh-transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    /* Snappier, premium feel */
    --vh-sidebar-width: 240px;
    --vh-header-height: 56px;
    --vh-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    /* Softer, deeper shadow */
    --vh-glass: rgba(15, 15, 15, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--vh-background);
    color: var(--vh-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vh-background);
}

::-webkit-scrollbar-thumb {
    background: var(--vh-surface-hover);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vh-surface-bright);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--vh-transition);
}

:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(62, 166, 255, 0.2);
}

.vh-card-link:focus-visible {
    border-radius: var(--vh-card-radius);
    outline: none;
    box-shadow: 0 0 0 2px var(--vh-background), 0 0 0 4px var(--vh-primary);
}

/* ============================================
   HEADER - YouTube-like Top Bar
   ============================================ */
.vh-header {
    background: var(--vh-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vh-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--vh-header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: background 0.3s;
}

.vh-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

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

.vh-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.vh-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vh-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--vh-text);
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-menu-toggle:hover {
    background: var(--vh-surface-hover);
}

.vh-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.vh-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vh-text);
}

.vh-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.vh-logo .custom-logo,
.vh-logo img {
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    max-width: 120px !important;
    object-fit: contain;
}

.vh-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--vh-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vh-logo-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.vh-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.vh-search-wrapper {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: 40px;
}

.vh-search-form {
    display: flex;
    flex: 1;
}

.vh-search-input {
    flex: 1;
    padding: 0 16px;
    border: 1px solid var(--vh-border);
    border-right: none;
    border-radius: 40px 0 0 40px;
    background: var(--vh-background);
    color: var(--vh-text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--vh-transition), box-shadow var(--vh-transition);
}

.vh-search-input:focus {
    border-color: var(--vh-secondary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.vh-search-btn {
    width: 64px;
    background: var(--vh-surface-hover);
    border: 1px solid var(--vh-border);
    border-left: 1px solid var(--vh-border);
    border-radius: 0 40px 40px 0;
    color: var(--vh-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vh-transition);
}

.vh-search-btn:hover {
    background: var(--vh-surface-bright);
}

.vh-search-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.vh-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--vh-text);
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-icon-btn:hover {
    background: var(--vh-surface-hover);
}

.vh-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Search Overlay */
.vh-mobile-search {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: var(--vh-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--vh-border);
}

.vh-mobile-search.active {
    top: 0;
}

.vh-mobile-search .vh-search-wrapper {
    flex: 1;
}

.vh-mobile-search-close {
    background: transparent;
    border: none;
    color: var(--vh-text);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.vh-mobile-search-close:hover {
    background: var(--vh-surface-hover);
}

.vh-mobile-search-close svg {
    width: 24px;
    height: 24px;
}

.vh-login-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3ea6ff !important;
    color: #0f0f0f !important;
    border: none;
    border-radius: 20px !important;
    padding: 0 16px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 36px !important;
    width: auto !important;
}

.vh-login-pill:hover {
    background: #65b8ff !important;
    transform: scale(1.02);
}

.vh-login-pill svg {
    margin-right: 6px;
    stroke-width: 2.5;
}

.vh-notification-btn {
    position: relative;
}

.vh-user-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border: none;
    background: transparent;
}

.vh-user-btn svg {
    width: 18px;
    height: 18px;
}

/* User Dropdown */
.vh-user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.vh-user-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vh-user-toggle:hover {
    border-color: #3ea6ff;
    background: #333;
}

.vh-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 4px;
    /* Padding for placeholder SVG */
}

/* If it's a real image (gravatar), remove padding */
.vh-user-avatar[src*="gravatar.com"],
.vh-user-avatar:not([src*="svg"]) {
    padding: 0;
}

.vh-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 240px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-card-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    flex-direction: column;
}

.vh-user-menu.active {
    display: flex;
}

.vh-user-info {
    padding: 16px;
    border-bottom: 1px solid var(--vh-border);
    display: flex;
    flex-direction: column;
}

.vh-user-email {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vh-text);
    word-break: break-all;
}

.vh-user-menu-items {
    padding: 8px 0;
}

.vh-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--vh-text);
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.vh-menu-item:hover {
    background: var(--vh-surface-hover);
}

.vh-menu-item svg {
    width: 18px;
    height: 18px;
    color: var(--vh-text-muted);
}

/* ============================================
   LAYOUT - Sidebar + Main Content
   ============================================ */
.vh-layout {
    display: flex;
    padding-top: var(--vh-header-height);
    min-height: 100vh;
}

/* Compensate layout padding if a top ad header is present to avoid double spacing */
.vh-ad-header:not(:empty)~.vh-layout {
    padding-top: 0;
}

/* WordPress Admin Bar Adjustments */
.admin-bar .vh-header {
    top: 32px;
}

.admin-bar .vh-layout {
    padding-top: calc(var(--vh-header-height) + 32px);
}

.admin-bar .vh-ad-header:not(:empty)~.vh-layout {
    padding-top: 0;
}

.admin-bar .vh-sidebar {
    top: calc(var(--vh-header-height) + 32px);
    height: calc(100vh - var(--vh-header-height) - 32px);
}

@media (max-width: 782px) {
    .admin-bar .vh-header {
        top: 46px;
    }

    .admin-bar .vh-layout {
        padding-top: calc(var(--vh-header-height) + 46px + 8px);
    }

    .admin-bar .vh-sidebar {
        top: calc(var(--vh-header-height) + 46px);
        height: calc(100vh - var(--vh-header-height) - 46px);
    }
}

/* ============================================
   SIDEBAR - YouTube-like Navigation
   ============================================ */
.vh-sidebar {
    position: fixed;
    top: var(--vh-header-height);
    left: 0;
    width: var(--vh-sidebar-width);
    height: calc(100vh - var(--vh-header-height));
    background: var(--vh-background);
    border-right: 1px solid var(--vh-border);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    padding: 12px 0;
}

.vh-sidebar-open .vh-sidebar {
    transform: translateX(0);
}

@media (min-width: 1312px) {
    .vh-sidebar {
        transform: translateX(0);
    }

    .vh-main-content {
        margin-left: var(--vh-sidebar-width);
    }
}

.vh-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
}

.vh-sidebar-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--vh-text);
    font-size: 0.875rem;
    transition: background var(--vh-transition);
}

.vh-sidebar-item:hover {
    background: var(--vh-surface-hover);
}

.vh-sidebar-item.active {
    background: var(--vh-surface-hover);
    font-weight: 600;
}

.vh-sidebar-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.vh-sidebar-divider {
    height: 1px;
    background: var(--vh-border);
    margin: 12px 0;
}

.vh-sidebar-section {
    padding: 0 12px;
}

.vh-sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--vh-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-sidebar-section-toggle:hover {
    background: var(--vh-surface-hover);
}

.vh-sidebar-section-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.vh-sidebar-section-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.vh-sidebar-folders {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.vh-folder-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vh-folder-count {
    font-size: 0.75rem;
    color: var(--vh-text-muted);
    background: var(--vh-background);
    padding: 2px 8px;
    border-radius: 10px;
}

.vh-sidebar-overlay {
    position: fixed;
    top: var(--vh-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vh-sidebar-open .vh-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1312px) {
    .vh-sidebar-overlay {
        display: none;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.vh-main-content {
    flex: 1;
    padding: 20px 24px;
    min-width: 0;
}

.vh-main {
    flex: 1;
    padding: 12px 24px;
    min-width: 0;
    max-width: 1800px;
}

@media (min-width: 1312px) {
    .vh-main {
        margin-left: var(--vh-sidebar-width);
    }

    /* Watch Page: Keep sidebar hidden by default even on large screens */
    .page-template-page-watch .vh-sidebar,
    .page-template-page-watch-php .vh-sidebar {
        transform: translateX(-100%);
    }

    .vh-sidebar-open.page-template-page-watch .vh-sidebar,
    .vh-sidebar-open.page-template-page-watch-php .vh-sidebar {
        transform: translateX(0);
        z-index: 200;
    }

    .page-template-page-watch .vh-main,
    .page-template-page-watch-php .vh-main {
        margin-left: 0;
    }

    .vh-sidebar-open.page-template-page-watch .vh-sidebar-overlay,
    .vh-sidebar-open.page-template-page-watch-php .vh-sidebar-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

.vh-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   CHIP-STYLE TAG FILTERS
   ============================================ */
/* Filters Container */
.vh-filters-container {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 4px;
}

@media (min-width: 768px) {
    .vh-filters-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        padding: 0;
    }
}

/* Tags Filter */
.vh-tags-filter {
    padding: 12px 0;
    /* Removed negative margins for clean layout without cut-offs */
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
}

.vh-tags-filter::-webkit-scrollbar {
    display: none;
}

.vh-tags-scroll {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

/* Sort Filter */
.vh-sort-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.vh-sort-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--vh-text);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.vh-sort-label svg {
    flex-shrink: 0;
}

/* Sort Select - Clean Flat Design (No Effects) */
.vh-sort-select {
    padding: 10px 36px 10px 16px;
    background: #1a1a1a;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    min-width: 180px;
}

.vh-sort-select:hover {
    background: #222;
    border-color: #10b981;
}

.vh-sort-select:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.vh-sort-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   MOBILE CATEGORY SELECT (Dropdown) - Flat Design
   ============================================ */
.vh-mobile-category-select {
    display: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    min-height: 48px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.vh-mobile-category-select:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.vh-mobile-category-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px;
}

/* Show mobile select on mobile, hide desktop buttons */
@media (max-width: 768px) {
    .vh-mobile-category-select {
        display: block !important;
    }

    .vh-category-scroll {
        display: none !important;
    }

    .vh-category-buttons {
        flex: 1;
        width: 100%;
    }

    .vh-filters-container {
        gap: 12px;
        flex-direction: column;
        padding: 0;
    }

    .vh-sort-filter {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .vh-sort-select {
        flex: 1;
        min-width: auto;
        width: 100%;
        max-width: none;
    }

    .vh-sort-label {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Make the mobile dropdown and sort look consistent */
    .vh-mobile-category-select,
    .vh-sort-select {
        font-size: 0.9rem;
        padding: 12px 40px 12px 14px;
    }
}

.vh-tags-list {
    display: flex;
    gap: 12px;
    list-style: none;
    flex-wrap: nowrap;
}

.vh-chip,
.vh-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    /* YouTube translucent gray */
    border: none;
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
}

.vh-chip:hover,
.vh-category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vh-chip.active,
.vh-category-btn.active {
    background: #f1f1f1 !important;
    /* YouTube Active Style */
    color: #0f0f0f !important;
    border: none !important;
    box-shadow: none;
}

.vh-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: 20px;
    color: var(--vh-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--vh-transition);
}

.vh-tag:hover,
.vh-tag.active {
    background: var(--vh-primary);
    border-color: var(--vh-primary);
    color: var(--vh-text);
}

/* ============================================
   VIDEO GRID - Mobile First (1 Col Default)
   ============================================ */
.vh-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 Column on Mobile like YouTube App */
    gap: 24px;
    /* More breathing room for single cards */
}

@media (min-width: 480px) {
    .vh-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
}

@media (min-width: 768px) {
    .vh-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .vh-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .vh-video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .vh-video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   DISCOVERY STACK & SECTIONS
   ============================================ */
.vh-discovery-section {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .vh-discovery-section {
        margin-bottom: 32px;
    }

    /* Mobile "Shelf" Look for Discovery Rows */
    .vh-discovery-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px !important;
        padding: 4px 16px 16px 16px !important;
        margin: 0 -16px !important;
        scrollbar-width: none;
    }

    .vh-discovery-grid::-webkit-scrollbar {
        display: none;
    }

    .vh-discovery-grid .vh-video-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

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

.vh-section-title {
    font-size: 1.25rem;
    /* Standard YouTube Header Size */
    font-weight: 700;
    color: var(--vh-text);
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Add a subtle accent pill for Discovery rows */
.vh-discovery-section .vh-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--vh-primary);
    border-radius: 4px;
    display: inline-block;
}

.vh-browse-more-header {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--vh-border);
}

.vh-browse-more-header .vh-section-title::before {
    display: none;
    /* No accent for standard grid */
}

/* ============================================
   VIDEO CARD - YouTube-like Style
   ============================================ */
.vh-video-card {
    display: block;
    cursor: pointer;
    transition: transform var(--vh-transition), opacity var(--vh-transition);
}

.vh-video-card:hover {
    transform: none;
    /* YouTube cards don't lift, they scale children */
}

.vh-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.vh-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--vh-card-radius);
    background: var(--vh-surface);
    box-shadow: var(--vh-shadow);
}

.vh-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.vh-video-card:hover .vh-thumbnail {
    transform: scale(1.03);
    /* Subtle, premium scale */
}

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

.vh-watch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--vh-primary);
    border-radius: 0 0 0 var(--vh-card-radius);
    transition: width 0.3s ease;
}

.vh-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(62, 166, 255, 0.9);
    /* Use primary blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--vh-transition);
}

.vh-video-card:hover .vh-play-overlay {
    opacity: 1;
}

.vh-play-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 4px;
}

.vh-video-info {
    display: flex;
    gap: 12px;
    padding: 12px 4px;
    align-items: flex-start;
}

.vh-channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vh-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.vh-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini Card for Playlists/History */
.vh-video-card-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--vh-card-radius);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.vh-video-card-mini:hover {
    transform: translateY(-2px);
    background: var(--vh-surface);
}

.vh-video-card-mini .vh-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vh-video-text {
    flex: 1;
    min-width: 0;
}

.vh-video-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--vh-text);
    line-height: 1.4;
    transition: color 0.2s var(--vh-transition);
}

.vh-video-card:hover .vh-video-title {
    color: var(--vh-primary);
}

.vh-video-channel,
.vh-channel-name {
    font-size: 0.8125rem;
    color: var(--vh-text-muted);
    margin-bottom: 2px;
    transition: color 0.2s var(--vh-transition);
}

.vh-video-card:hover .vh-video-channel,
.vh-video-card:hover .vh-channel-name {
    color: var(--vh-text);
}

.vh-video-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--vh-text-muted);
}

.vh-meta-separator {
    margin: 0 4px;
}

.vh-video-views,
.vh-video-date {
    display: inline;
}

.vh-video-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.vh-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--vh-surface);
    border-radius: 4px;
    color: var(--vh-text-muted);
}

.vh-tag-icon {
    width: 12px;
    height: 12px;
}

.vh-tag-more {
    font-size: 0.75rem;
    color: var(--vh-text-muted);
    padding: 4px;
}

/* ============================================
   VIDEO MODAL/PLAYER
   ============================================ */
.vh-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vh-modal.active {
    display: flex;
}

.vh-modal-content {
    max-width: 1200px;
    width: 100%;
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    overflow: hidden;
}

.vh-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--vh-surface);
    border: none;
    border-radius: 50%;
    color: var(--vh-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vh-transition);
}

.vh-modal-close:hover {
    background: var(--vh-surface-hover);
}

.vh-player-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.vh-player-wrapper video,
.vh-player-wrapper iframe {
    width: 100%;
    height: 100%;
}



.vh-modal-info {
    padding: 20px;
}

.vh-modal-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.vh-modal-description {
    color: var(--vh-text-muted);
    margin-bottom: 15px;
}

/* ============================================
   PAGINATION - YouTube-like Style
   ============================================ */
.vh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.vh-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: 20px;
    color: var(--vh-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--vh-transition);
}

.vh-page-btn:hover:not(:disabled) {
    background: var(--vh-surface-hover);
    border-color: var(--vh-primary);
}

.vh-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vh-page-btn svg {
    width: 16px;
    height: 16px;
}

.vh-page-numbers {
    display: flex;
    gap: 4px;
}

.vh-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: var(--vh-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-page-num:hover {
    background: var(--vh-surface-hover);
}

.vh-page-num.current {
    background: var(--vh-primary);
    color: white;
}

.vh-page-link {
    padding: 10px 18px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    color: var(--vh-text);
    font-weight: 500;
    transition: all var(--vh-transition);
}

.vh-page-link:hover,
.vh-page-link.current {
    background: var(--vh-primary);
    border-color: var(--vh-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.vh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--vh-primary);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-btn-primary:hover {
    background: var(--vh-primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.vh-footer {
    background: var(--vh-surface);
    border-top: 1px solid var(--vh-border);
    padding: 40px 0;
    margin-top: 50px;
}

.vh-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.vh-footer-links a {
    color: var(--vh-text-muted);
}

.vh-footer-links a:hover {
    color: var(--vh-text);
}

.vh-copyright {
    color: var(--vh-text-muted);
    font-size: 0.875rem;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.vh-loading {
    display: flex;
    justify-content: center;
    padding: 50px;
}

.vh-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--vh-border);
    border-top-color: var(--vh-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.vh-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--vh-text-muted);
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    border: 1px dashed var(--vh-border);
    margin: 40px 0;
}

.vh-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--vh-secondary);
    opacity: 0.8;
}

.vh-empty h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--vh-text);
}

.vh-empty p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ============================================
   SINGLE VIDEO PAGE
   ============================================ */
.vh-single-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--vh-card-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.vh-single-player video,
.vh-single-player iframe {
    width: 100%;
    height: 100%;
}

.vh-single-info {
    padding: 20px 0;
}

.vh-single-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.vh-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--vh-text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.vh-single-description {
    color: var(--vh-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   WATCH PAGE - YouTube-like Layout
   ============================================ */
.vh-main.vh-watch-page {
    padding-top: 12px !important;
    margin-top: 0;
}

.admin-bar .vh-main.vh-watch-page {
    padding-top: 12px !important;
}

@media (max-width: 782px) {
    .admin-bar .vh-main.vh-watch-page {
        padding-top: 12px !important;
    }
}

.vh-watch-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .vh-watch-layout {
        grid-template-columns: 1fr 360px;
    }
}

@media (min-width: 1200px) {
    .vh-watch-layout {
        grid-template-columns: 1fr 400px;
    }
}

.vh-watch-player {
    min-width: 0;
}

.vh-player-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--vh-card-radius);
    overflow: hidden;
}

.vh-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* YouTube Player Wrapper */
.vh-youtube-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.vh-youtube-player-wrapper .vh-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Platform Badge */
.vh-platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.vh-player-container:hover .vh-platform-badge {
    opacity: 1;
}

.vh-platform-badge svg {
    width: 20px;
    height: 14px;
}

.vh-platform-youtube {
    background: rgba(255, 0, 0, 0.2);
}

/* YouTube Badge for Video Cards */
.vh-youtube-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    display: flex;
    align-items: center;
    z-index: 5;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vh-youtube-badge svg {
    width: 18px;
    height: 13px;
}

.vh-thumbnail-wrapper:hover .vh-youtube-badge {
    opacity: 1;
    transform: scale(1.05);
}

/* Vimeo Badge for Video Cards */
.vh-vimeo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    display: flex;
    align-items: center;
    z-index: 5;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vh-vimeo-badge svg {
    width: 18px;
    height: 18px;
}

.vh-thumbnail-wrapper:hover .vh-vimeo-badge {
    opacity: 1;
    transform: scale(1.05);
}

/* Dailymotion Badge for Video Cards */
.vh-dailymotion-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    display: flex;
    align-items: center;
    z-index: 5;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vh-dailymotion-badge svg {
    width: 18px;
    height: 18px;
}

.vh-thumbnail-wrapper:hover .vh-dailymotion-badge {
    opacity: 1;
    transform: scale(1.05);
}

.vh-watch-info {
    padding: 20px 0;
}

.vh-watch-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--vh-text);
}

@media (min-width: 1024px) {
    .vh-watch-title {
        font-size: 1.5rem;
    }
}

/* No Results & Reset */
.vh-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    margin: 40px 0;
    border: 1px solid var(--vh-border);
}

.vh-btn-reset {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--vh-primary);
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    margin-top: 16px;
    transition: all var(--vh-transition);
}

.vh-btn-reset:hover {
    transform: translateY(-2px);
    background: var(--vh-primary-dark);
}

.vh-archive-header {
    margin-bottom: 32px;
    padding: 0 4px;
}

.vh-archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--vh-text);
}

.vh-archive-title svg {
    color: var(--vh-secondary);
    width: 32px;
    height: 32px;
}

.vh-archive-count {
    font-size: 0.95rem;
    color: var(--vh-text-muted);
    font-weight: 500;
}

.vh-watch-meta>span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--vh-text-muted);
    font-size: 0.875rem;
}

.vh-watch-meta svg {
    opacity: 0.7;
}

/* YouTube-style Action Bar */
.vh-watch-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.vh-channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Channel Info Refinement */
.vh-channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vh-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.vh-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-channel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vh-channel-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--vh-text);
    text-decoration: none;
    line-height: 1.2;
}

.vh-sub-count {
    display: none;
    /* Removed as requested */
}

/* Comments Section - YouTube Style */
.vh-comments-area {
    margin-top: 24px;
    padding: 0;
    border-top: 1px solid var(--vh-border);
    padding-top: 24px;
}

.vh-comments-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.vh-comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.vh-comments-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--vh-text);
}

/* Comment Form */
.vh-comment-form-container {
    margin-bottom: 32px;
}

.vh-comment-form-flex {
    display: flex;
    gap: 16px;
}

.vh-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--vh-surface-hover);
}

.vh-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#commentform {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vh-comment-input-wrapper {
    position: relative;
    width: 100%;
}

#comment {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--vh-border);
    color: var(--vh-text);
    padding: 8px 0;
    font-size: 0.95rem;
    resize: none;
    min-height: 24px;
    transition: all 0.3s ease;
    outline: none;
}

.vh-comment-input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--vh-text);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#comment:focus+.vh-comment-input-line {
    width: 100%;
}

.vh-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

#commentform:focus-within .vh-comment-form-actions {
    opacity: 1;
    visibility: visible;
}

/* Comment List */
.vh-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vh-comment-item {
    margin-bottom: 24px;
}

.vh-comment-body {
    display: flex;
    gap: 16px;
}

.vh-comment-content {
    flex: 1;
}

.vh-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.vh-comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--vh-text);
}

.vh-comment-author a {
    color: inherit;
    text-decoration: none;
}

.vh-comment-date {
    font-size: 0.75rem;
    color: var(--vh-text-muted);
}

.vh-comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--vh-text);
    margin-bottom: 8px;
}

.vh-comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vh-comment-action-btn {
    background: transparent;
    border: none;
    color: var(--vh-text);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vh-comment-action-btn:hover {
    background: var(--vh-surface-hover);
}

.vh-comment-reply-link a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vh-text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 18px;
}

.vh-comment-reply-link a:hover {
    background: var(--vh-surface-hover);
}

/* Login Prompt */
.vh-comment-login-prompt {
    background: var(--vh-surface-hover);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.vh-comment-login-prompt p {
    margin-bottom: 16px;
    font-weight: 600;
}

.vh-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .vh-comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.vh-btn-subscribe {
    background: #f1f1f1 !important;
    color: #0f0f0f !important;
    padding: 0 16px !important;
    height: 36px !important;
    border-radius: 18px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background 0.2s !important;
}

.vh-btn-subscribe:hover {
    background: #d9d9d9 !important;
}

.vh-watch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Joined Like/Dislike Pill */
.vh-action-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.vh-action-group .vh-action-btn {
    border-radius: 0;
    background: transparent;
    padding: 0 14px;
    height: 36px;
}

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

.vh-action-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.vh-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 18px;
    color: var(--vh-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vh-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vh-action-btn svg {
    width: 20px;
    height: 20px;
}

.vh-action-count {
    font-size: 0.875rem;
}

/* Polished Description Box */
.vh-description-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.vh-description-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vh-description-header {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    color: var(--vh-text);
}

.vh-view-count {
    color: var(--vh-text);
}

.vh-publish-date {
    color: var(--vh-text);
}

.vh-top-tags {
    color: var(--vh-primary);
}

.vh-description-content {
    color: var(--vh-text);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow: hidden;
}

.vh-description-content.collapsed {
    max-height: 4.5em;
    /* Show roughly 3 lines */
}

.vh-expanded-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vh-meta-row {
    display: flex;
    margin-bottom: 8px;
}

.vh-meta-label {
    width: 100px;
    color: var(--vh-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.vh-meta-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vh-meta-values a {
    color: var(--vh-primary);
    text-decoration: none;
}

.vh-meta-values a:hover {
    text-decoration: underline;
}

.vh-description-expand {
    background: transparent;
    border: none;
    color: var(--vh-text);
    font-weight: 700;
    padding: 4px 0;
    cursor: pointer;
    font-size: 0.8125rem;
    margin-top: 8px;
}

@media (max-width: 820px) {
    .vh-watch-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .vh-watch-actions {
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .vh-watch-actions::-webkit-scrollbar {
        display: none;
    }

    .vh-action-btn span {
        display: none;
    }
}



/* Related Videos Sidebar - YouTube-style */
.vh-related-videos {
    position: sticky;
    top: calc(var(--vh-header-height) + 24px);
    max-height: calc(100vh - var(--vh-header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vh-border) transparent;
    padding-right: 4px;
}

.vh-related-videos::-webkit-scrollbar {
    width: 6px;
}

.vh-related-videos::-webkit-scrollbar-track {
    background: transparent;
}

.vh-related-videos::-webkit-scrollbar-thumb {
    background: var(--vh-border);
    border-radius: 3px;
}

.vh-related-videos::-webkit-scrollbar-thumb:hover {
    background: var(--vh-text-muted);
}

.vh-related-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--vh-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vh-related-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--vh-primary);
    border-radius: 2px;
}

.vh-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vh-related-item {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    transition: background var(--vh-transition), transform 0.15s ease;
    position: relative;
}

.vh-related-item:hover {
    background: var(--vh-surface);
}

.vh-related-item:active {
    transform: scale(0.99);
}

.vh-related-thumb {
    position: relative;
    width: 168px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--vh-surface);
    transition: box-shadow 0.2s ease;
}

.vh-related-item:hover .vh-related-thumb {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vh-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-related-item:hover .vh-related-thumb img {
    transform: scale(1.05);
}

.vh-related-thumb .vh-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Progress bar for watched videos */
.vh-related-thumb .vh-watch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--vh-primary);
    border-radius: 0 0 0 8px;
}

.vh-related-info {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vh-related-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--vh-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    transition: color var(--vh-transition);
}

.vh-related-item:hover .vh-related-item-title {
    color: var(--vh-primary);
}

.vh-related-channel {
    font-size: 0.75rem;
    color: var(--vh-text-muted);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vh-related-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--vh-text-muted);
}

.vh-related-views {
    font-size: 0.75rem;
    color: var(--vh-text-muted);
}

.vh-related-meta-separator {
    font-size: 0.625rem;
}

/* Autoplay next indicator */
.vh-related-item.vh-next-video {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.vh-related-item.vh-next-video::before {
    content: 'Up next';
    position: absolute;
    top: -10px;
    left: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vh-primary);
    background: var(--vh-background);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Back Link */
.vh-back-link {
    padding: 24px 0;
}

.vh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--vh-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--vh-transition);
}

.vh-btn:hover {
    background: var(--vh-primary-dark);
}

.vh-btn-outline {
    background: transparent;
    border: 1px solid var(--vh-border);
    color: var(--vh-text);
}

.vh-btn-outline:hover {
    background: var(--vh-surface);
    border-color: var(--vh-primary);
}

/* Speed Control Dropdown */
.vh-speed-control {
    position: relative;
}

.vh-speed-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
    margin-bottom: 8px;
}

.vh-speed-control:hover .vh-speed-dropdown {
    display: block;
}

.vh-speed-option {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--vh-text);
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
}

.vh-speed-option:hover {
    background: var(--vh-surface-hover);
}

.vh-speed-option.active {
    color: var(--vh-primary);
    font-weight: 600;
}

.vh-speed-option.active {
    color: var(--vh-primary);
    font-weight: 600;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.vh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.vh-modal-overlay.active {
    display: flex;
    opacity: 1 !important;
    /* Force visible */
}

.vh-modal,
.vh-modal-content {
    background: rgba(18, 18, 18, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10001;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.vh-modal-overlay.active .vh-modal {
    transform: translateY(0);
}

.vh-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
}

.vh-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vh-modal-close svg {
    width: 18px;
    height: 18px;
}

.vh-modal-title {
    font-size: 1.25rem;
    /* Smaller title */
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.vh-form-group {
    margin-bottom: 14px;
    /* Tighter spacing */
}

.vh-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    /* Smaller label */
    font-weight: 500;
    color: #aaa;
}

.vh-form-input {
    width: 100%;
    padding: 10px 14px;
    /* More compact input */
    background: #0f0f0f;
    /* Darker input background for contrast */
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vh-form-input:focus {
    border-color: var(--vh-primary);
    box-shadow: 0 0 0 2px rgba(var(--vh-primary-rgb), 0.2);
}

/* Share Modal */
.vh-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.vh-share-modal.active {
    display: flex;
}

.vh-share-content {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vh-share-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.vh-share-url {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.vh-share-url input {
    flex: 1;
    padding: 10px 14px;
    background: var(--vh-background);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    color: var(--vh-text);
    font-size: 0.875rem;
}

.vh-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vh-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform var(--vh-transition);
}

.vh-share-btn:hover {
    transform: scale(1.1);
}

.vh-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.vh-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.vh-share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.vh-share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Keyboard Shortcuts Tooltip */
.vh-shortcuts-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: var(--vh-text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.vh-shortcuts-hint.visible {
    opacity: 1;
}

.vh-shortcuts-hint kbd {
    background: var(--vh-background);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 4px;
    font-family: monospace;
}

/* ============================================
   MOBILE-FIRST BASE STYLES
   ============================================ */

/* Touch-friendly minimum tap targets (44px recommended) */
.vh-touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* Smooth hardware-accelerated transitions */
.vh-video-card,
.vh-sidebar-item,
.vh-action-btn,
.vh-chip,
.vh-related-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--vh-primary);
    outline-offset: 2px;
}

/* Safe area padding for notched devices */
@supports (padding: max(0px)) {
    .vh-header {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .vh-main,
    .vh-main-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .vh-footer {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   RESPONSIVE - Mobile First Approach
   ============================================ */

/* Extra Small Devices (phones < 480px) */
@media (max-width: 480px) {
    :root {
        --vh-header-height: 52px;
        --vh-card-radius: 8px;
    }

    .vh-header {
        padding: 0 8px;
    }

    .vh-header-inner {
        gap: 8px;
    }

    .vh-header-left {
        gap: 8px;
    }

    .vh-header-center {
        display: none;
    }

    .vh-logo-text {
        display: none;
    }

    .vh-header-right {
        gap: 2px;
    }

    /* Larger touch targets for mobile */
    .vh-menu-toggle,
    .vh-icon-btn {
        width: 44px;
        height: 44px;
    }

    .vh-menu-toggle svg,
    .vh-icon-btn svg {
        width: 22px;
        height: 22px;
    }

    .vh-user-btn {
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }

    .vh-main,
    .vh-main-content {
        padding: 12px;
    }

    /* Single column video grid on small phones */
    .vh-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Larger video cards on mobile for better visibility */
    .vh-video-card {
        margin-bottom: 4px;
    }

    .vh-thumbnail-wrapper {
        border-radius: var(--vh-card-radius);
    }

    .vh-video-info {
        padding: 10px 4px;
        gap: 10px;
    }

    .vh-video-title {
        font-size: 0.9375rem;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .vh-video-meta {
        font-size: 0.8125rem;
    }

    /* Tags filter horizontal scroll improvements */
    .vh-tags-filter {
        padding: 0 0 16px 0;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .vh-tags-scroll {
        gap: 8px;
    }

    .vh-chip {
        padding: 10px 14px;
        font-size: 0.8125rem;
        border-radius: 16px;
        flex-shrink: 0;
    }

    /* Pagination touch-friendly */
    .vh-pagination {
        padding: 24px 0;
        gap: 6px;
        flex-wrap: wrap;
    }

    .vh-page-btn {
        padding: 12px 16px;
        font-size: 0.8125rem;
        min-height: 44px;
    }

    .vh-page-num {
        min-width: 44px;
        height: 44px;
        padding: 0 10px;
        font-size: 0.875rem;
    }

    .vh-page-numbers {
        gap: 2px;
    }

    /* Footer mobile adjustments */
    .vh-footer {
        padding: 24px 12px;
        margin-top: 32px;
    }

    .vh-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 0;
    }

    .vh-footer-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Watch page mobile improvements */
    .vh-watch-page {
        padding-top: 12px;
    }

    .vh-watch-title {
        font-size: 1.125rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .vh-watch-meta {
        gap: 12px;
        padding: 10px 0;
    }

    .vh-watch-meta>span {
        font-size: 0.8125rem;
    }

    /* YouTube-style action bar mobile */
    .vh-watch-actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }

    .vh-channel-info {
        gap: 10px;
    }

    .vh-watch-actions-bar .vh-channel-avatar {
        width: 36px;
        height: 36px;
    }

    .vh-watch-actions-bar .vh-channel-avatar svg {
        width: 20px;
        height: 20px;
    }

    .vh-channel-name {
        font-size: 0.875rem;
    }

    .vh-upload-date {
        font-size: 0.75rem;
    }

    .vh-action-group {
        border-radius: 18px;
    }

    .vh-action-group .vh-action-btn:first-child {
        border-radius: 18px 0 0 18px;
    }

    .vh-action-group .vh-action-btn:last-child {
        border-radius: 0 18px 18px 0;
    }

    .vh-action-divider {
        height: 20px;
    }

    .vh-watch-actions {
        gap: 6px;
        padding: 10px 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .vh-watch-actions::-webkit-scrollbar {
        display: none;
    }

    .vh-action-btn {
        padding: 10px 14px;
        font-size: 0.8125rem;
        min-height: 44px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vh-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .vh-watch-description {
        padding: 12px;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    /* Related videos - vertical list on small phones */
    .vh-related-videos {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 24px;
        padding: 0;
    }

    .vh-related-title {
        font-size: 0.9375rem;
        margin-bottom: 12px;
    }

    .vh-related-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .vh-related-item {
        flex-direction: row;
        min-width: auto;
        max-width: none;
        padding: 8px;
        min-height: 48px;
        border-radius: 8px;
    }

    .vh-related-thumb {
        width: 120px;
        flex-shrink: 0;
    }

    .vh-related-info {
        padding: 4px 0;
    }

    .vh-related-item-title {
        font-size: 0.8125rem;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .vh-related-channel,
    .vh-related-views,
    .vh-related-date {
        font-size: 0.6875rem;
    }

    /* Hide "Up next" badge on mobile */
    .vh-related-item.vh-next-video::before {
        display: none;
    }

    .vh-related-item.vh-next-video {
        background: var(--vh-surface);
        border: none;
    }

    /* Modal improvements for mobile */
    .vh-modal {
        padding: 0;
    }

    .vh-modal-content {
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .vh-modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        z-index: 10;
    }

    .vh-modal-info {
        padding: 16px;
    }

    .vh-modal-title {
        font-size: 1.0625rem;
    }

    /* Share modal mobile */
    .vh-share-content {
        margin: 12px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    .vh-share-title {
        font-size: 1.125rem;
    }

    .vh-share-url {
        flex-direction: column;
    }

    .vh-share-url input {
        font-size: 0.8125rem;
    }

    .vh-share-buttons {
        gap: 16px;
    }

    .vh-share-btn {
        width: 52px;
        height: 52px;
    }

    /* Continue watching mobile */
    .vh-continue-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .vh-continue-title {
        font-size: 0.8125rem;
    }

    /* Shortcuts hint hidden on mobile */
    .vh-shortcuts-hint {
        display: none;
    }
}

/* Small Devices (phones 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .vh-header {
        padding: 0 12px;
    }

    .vh-header-center {
        display: none;
    }

    .vh-logo-text {
        display: none;
    }

    .vh-main,
    .vh-main-content {
        padding: 16px;
    }

    /* Two column grid on larger phones */
    .vh-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .vh-video-title {
        font-size: 0.875rem;
    }

    .vh-video-meta {
        font-size: 0.8125rem;
    }

    .vh-tags-filter {
        padding: 0 0 20px 0;
    }

    .vh-chip {
        padding: 10px 16px;
    }

    .vh-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Watch page */
    .vh-watch-title {
        font-size: 1.25rem;
    }

    /* Related videos - flow naturally on tablets */
    .vh-related-videos {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 24px;
        width: 100%;
        flex: 0 0 100%;
    }

    .vh-related-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
    }

    .vh-related-item {
        flex-direction: row;
        padding: 8px;
        min-height: 48px;
    }

    .vh-related-thumb {
        width: 140px;
    }

    .vh-action-btn {
        padding: 10px 16px;
        min-height: 44px;
    }

    .vh-related-item {
        flex-direction: row;
    }

    .vh-related-thumb {
        width: 140px;
    }
}

/* Medium Devices (tablets 769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .vh-header-center {
        max-width: 400px;
    }

    .vh-search-wrapper {
        max-width: 400px;
    }

    .vh-main,
    .vh-main-content {
        padding: 20px;
    }

    .vh-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .vh-video-title {
        font-size: 0.875rem;
    }
}

/* ============================================
   DESKTOP STYLES (769px+)
   ============================================ */
@media (min-width: 769px) {

    /* Hide mobile-only elements on desktop */
    .vh-mobile-search-btn,
    .vh-bottom-nav,
    .vh-mobile-menu,
    .vh-mobile-menu-overlay {
        display: none !important;
    }

    /* Desktop header refinements */
    .vh-header {
        padding: 0 24px;
    }

    .vh-header-inner {
        gap: 24px;
    }

    .vh-header-left {
        gap: 20px;
    }

    .vh-header-center {
        display: flex;
        flex: 1;
        max-width: 640px;
    }

    .vh-search-wrapper {
        max-width: 100%;
    }

    .vh-search-input {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .vh-search-btn {
        width: 72px;
    }

    .vh-header-right {
        gap: 12px;
    }

    /* Desktop video grid spacing */
    .vh-video-grid {
        gap: 20px;
    }

    /* Desktop video card hover effects */
    .vh-video-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .vh-video-card:hover {
        transform: translateY(-4px);
    }

    .vh-thumbnail-wrapper {
        transition: box-shadow 0.2s ease;
    }

    .vh-video-card:hover .vh-thumbnail-wrapper {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* Desktop play overlay - only show on hover */
    .vh-play-overlay {
        opacity: 0;
        width: 64px;
        height: 64px;
    }

    .vh-play-overlay svg {
        width: 28px;
        height: 28px;
    }

    .vh-video-card:hover .vh-play-overlay {
        opacity: 1;
    }

    /* Desktop footer */
    .vh-footer {
        padding: 48px 24px;
    }

    .vh-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================
   LARGE DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .vh-header {
        padding: 0 32px;
    }

    .vh-header-center {
        max-width: 720px;
    }

    .vh-main,
    .vh-main-content {
        padding: 28px 32px;
    }

    /* Refined video info on desktop */
    .vh-video-info {
        padding: 14px 0;
    }

    .vh-video-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Watch page desktop layout */
    .vh-watch-layout {
        gap: 32px;
    }

    .vh-watch-title {
        font-size: 1.5rem;
    }

    .vh-watch-actions {
        gap: 12px;
    }

    .vh-action-btn {
        padding: 10px 20px;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    .vh-header-center {
        max-width: 800px;
    }

    .vh-main,
    .vh-main-content {
        padding: 32px 48px;
    }

    .vh-video-grid {
        gap: 24px;
    }

    .vh-video-title {
        font-size: 1.0625rem;
    }

    /* Related videos sidebar - larger thumbnails */
    .vh-related-thumb {
        width: 180px;
    }
}

/* Mobile Search Modal - Enhanced */
.vh-mobile-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vh-surface);
    padding: 8px 12px;
    z-index: 110;
    border-bottom: 1px solid var(--vh-border);
}

@supports (padding: max(0px)) {
    .vh-mobile-search {
        padding-top: max(8px, env(safe-area-inset-top));
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

.vh-mobile-search.active {
    display: flex;
    gap: 12px;
    align-items: center;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vh-mobile-search .vh-search-wrapper {
    flex: 1;
}

.vh-mobile-search .vh-search-input {
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 1rem;
}

.vh-mobile-search .vh-search-btn {
    border-radius: 0 24px 24px 0;
    width: 52px;
}

.vh-mobile-search-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--vh-text);
    cursor: pointer;
    transition: background var(--vh-transition);
    flex-shrink: 0;
}

.vh-mobile-search-close:hover {
    background: var(--vh-surface-hover);
}

.vh-mobile-search-close svg {
    width: 24px;
    height: 24px;
}

/* Mobile search button in header */
.vh-mobile-search-btn {
    display: none;
}

@media (max-width: 768px) {
    .vh-mobile-search-btn {
        display: flex;
    }
}

/* ============================================
   SIDEBAR MOBILE IMPROVEMENTS
   ============================================ */
@media (max-width: 1311px) {
    .vh-sidebar {
        width: min(280px, 85vw);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .vh-sidebar-nav {
        padding: 0 8px;
    }

    .vh-sidebar-item {
        padding: 14px 16px;
        gap: 20px;
        border-radius: 12px;
        min-height: 48px;
    }

    .vh-sidebar-item svg {
        width: 22px;
        height: 22px;
    }

    .vh-sidebar-section {
        padding: 0 8px;
    }

    .vh-sidebar-section-toggle {
        padding: 14px 16px;
        border-radius: 12px;
        min-height: 48px;
    }

    .vh-sidebar-folders .vh-sidebar-item {
        padding-left: 24px;
    }

    .vh-sidebar-overlay {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

/* ============================================
   VIDEO CARD MOBILE ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {

    /* Disable hover effects on touch devices */
    .vh-video-card:hover {
        transform: none;
    }

    .vh-video-card:hover .vh-thumbnail {
        transform: none;
    }

    /* Show play overlay on all cards for touch */
    .vh-play-overlay {
        opacity: 0.9;
        width: 50px;
        height: 50px;
    }

    .vh-play-overlay svg {
        width: 20px;
        height: 20px;
    }

    /* Active state for touch feedback */
    .vh-video-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .vh-video-card:active .vh-thumbnail-wrapper {
        opacity: 0.9;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Smooth page transitions */
.vh-main,
.vh-main-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.vh-skeleton {
    background: linear-gradient(90deg,
            var(--vh-surface) 25%,
            var(--vh-surface-hover) 50%,
            var(--vh-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pull to refresh indicator styles */
.vh-pull-refresh {
    position: fixed;
    top: var(--vh-header-height);
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 12px 20px;
    background: var(--vh-surface);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 90;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vh-pull-refresh.visible {
    transform: translateX(-50%) translateY(12px);
    opacity: 1;
}

/* ============================================
   IMPROVED SCROLLBARS FOR MOBILE
   ============================================ */
@media (max-width: 768px) {

    /* Hide scrollbars on mobile for cleaner look */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    /* But show thin scrollbar on sidebar */
    .vh-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .vh-sidebar::-webkit-scrollbar-thumb {
        background: var(--vh-border);
        border-radius: 2px;
    }
}

/* Desktop scrollbar styling */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--vh-background);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--vh-border);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--vh-text-muted);
    }
}

/* ============================================
   BOTTOM NAVIGATION (MOBILE) - YouTube Style
   ============================================ */
.vh-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 6px 0 2px;
}

@supports (padding: max(0px)) {
    .vh-bottom-nav {
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    .vh-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Add bottom padding to main content when bottom nav is visible */
    .vh-main,
    .vh-main-content {
        padding-bottom: 72px;
    }

    .vh-footer {
        padding-bottom: 80px;
    }
}

.vh-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    min-width: 64px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.vh-bottom-nav-item::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(255, 255, 255, 0);
    border-radius: 16px;
    transition: background 0.2s ease;
}

.vh-bottom-nav-item:active::before {
    background: rgba(255, 255, 255, 0.08);
}

.vh-bottom-nav-item:active {
    transform: scale(0.92);
}

.vh-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.vh-bottom-nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.vh-bottom-nav-item span {
    position: relative;
    z-index: 1;
}

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

.vh-bottom-nav-item.active svg {
    stroke-width: 2.5;
}

/* Shorts icon special styling */
.vh-shorts-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   MOBILE MENU SHEET (YouTube-style)
   ============================================ */
.vh-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vh-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vh-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    z-index: 1200;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overscroll-behavior: contain;
}

@supports (padding: max(0px)) {
    .vh-mobile-menu {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

.vh-mobile-menu.active {
    transform: translateY(0);
}

.vh-mobile-menu-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 10px auto 6px;
}

/* Mobile Menu Header */
.vh-mobile-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vh-mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vh-mobile-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3ea6ff 0%, #1976d2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.vh-mobile-menu-avatar svg {
    width: 28px;
    height: 28px;
    color: white;
}

.vh-mobile-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-mobile-menu-user-info {
    flex: 1;
    min-width: 0;
}

.vh-mobile-menu-greeting {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #f1f1f1;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vh-mobile-menu-email {
    display: block;
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menu Items */
.vh-mobile-menu-items {
    padding: 8px 0;
}

.vh-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.vh-mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.vh-mobile-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #aaa;
}

.vh-mobile-menu-icon svg {
    width: 22px;
    height: 22px;
}

.vh-mobile-menu-item span {
    flex: 1;
}

.vh-mobile-menu-badge {
    font-size: 12px;
    color: #888;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.vh-mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 20px;
}

.vh-mobile-menu-section-title {
    padding: 14px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Menu Footer */
.vh-mobile-menu-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vh-mobile-menu-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #3ea6ff;
    color: #0f0f0f;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.vh-mobile-menu-login-btn:active {
    background: #1a8dff;
    transform: scale(0.98);
}

.vh-mobile-menu-login-btn svg {
    width: 20px;
    height: 20px;
}

/* Logged in user styling */
.vh-mobile-menu-footer.logged-in {
    display: flex;
    gap: 12px;
}

.vh-mobile-menu-logout-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f1f1;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vh-mobile-menu-logout-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.vh-mobile-menu-logout-btn svg {
    width: 18px;
    height: 18px;
}

/* Pill indicator for active tab */
.vh-bottom-nav-item.active .vh-bottom-nav-icon::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #3ea6ff;
    border-radius: 50%;
}

/* ============================================
   LOADING STATES IMPROVEMENTS
   ============================================ */
.vh-loading {
    padding: 40px 20px;
}

.vh-spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

/* Inline loading indicator */
.vh-loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--vh-surface);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--vh-text-muted);
}

.vh-loading-inline .vh-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .vh-video-card:hover,
    .vh-video-card:active {
        transform: none !important;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    :root {
        --vh-border: #888888;
        --vh-text-muted: #dddddd;
        --vh-surface: #1a1a1a;
        --vh-surface-hover: #2a2a2a;
    }

    .vh-video-card,
    .vh-chip,
    .vh-action-btn {
        border: 1px solid var(--vh-border);
    }
}

/* ============================================
   ARCHIVE HEADER STYLES
   ============================================ */
.vh-archive-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vh-border);
}

.vh-archive-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.vh-archive-title svg {
    color: var(--vh-primary);
}

.vh-archive-count {
    color: var(--vh-text-muted);
    font-size: 0.875rem;
}

/* ============================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .vh-header {
        height: 48px;
    }

    .vh-layout {
        padding-top: 48px;
    }

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

    .vh-watch-layout {
        grid-template-columns: 1fr;
    }

    .vh-player-container {
        max-height: 60vh;
    }
}


/* ============================================
   CATEGORY BUTTONS (Replaces Tags)
   GLASS-MORPHISM DESIGN - NO GRADIENTS
   ============================================ */
.vh-category-buttons {
    flex: 1;
    min-width: 0;
}

.vh-category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 16px;
    margin-left: -16px;
    margin-right: -16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vh-category-scroll::-webkit-scrollbar {
    display: none;
}

/* Refined scrollbar styling */
.vh-category-scroll::-webkit-scrollbar {
    height: 4px;
}

.vh-category-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.vh-category-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.vh-category-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Category buttons now use unified .vh-chip styles defined globally */

/* ============================================
   MOBILE FILTER IMPROVEMENTS
   CONVERT TO DROPDOWN ON SMALL SCREENS
   ============================================ */

/* Tablet and up: Keep horizontal scroll */
@media (min-width: 769px) {
    .vh-category-scroll {
        display: flex !important;
    }

    .vh-mobile-category-select {
        display: none !important;
    }
}

/* Tablet: Optimize horizontal scroll */
@media (min-width: 769px) and (max-width: 1024px) {
    .vh-category-btn {
        padding: 11px 18px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .vh-category-scroll {
        gap: 8px;
        padding-bottom: 10px;
    }

    .vh-category-scroll::-webkit-scrollbar {
        height: 7px;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .vh-category-btn:hover {
        background: #1a1a1a;
        border-color: #333;
    }
}

/* ============================================
   AUTO-HIDE SIDEBAR
   ============================================ */

/* Default: Sidebar hidden on mobile */
@media (max-width: 1311px) {
    .vh-sidebar {
        transform: translateX(-100%);
    }

    .vh-sidebar-open .vh-sidebar {
        transform: translateX(0);
    }
}

/* Desktop: Sidebar auto-hides on mouse leave */
@media (min-width: 1312px) {
    .vh-sidebar {
        transform: translateX(0);
        transition: transform 0.3s ease, width 0.3s ease;
    }

    /* Collapsed state */
    .vh-sidebar.vh-sidebar-collapsed {
        width: 72px;
    }

    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-item span,
    .vh-sidebar.vh-sidebar-collapsed .vh-folder-name,
    .vh-sidebar.vh-sidebar-collapsed .vh-folder-count,
    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-section-toggle span {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-section-toggle svg {
        display: none;
    }

    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-item {
        justify-content: center;
        padding: 10px;
        gap: 0;
    }

    /* HIDE Collections section when collapsed to avoid cluttered identical icons */
    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-divider,
    .vh-sidebar.vh-sidebar-collapsed .vh-sidebar-section {
        display: none;
    }

    /* Adjust main content margin when sidebar is collapsed */
    .vh-sidebar-collapsed~.vh-layout .vh-main,
    .vh-sidebar-collapsed~.vh-main {
        margin-left: 72px;
    }

    /* Smooth transition for main content */
    .vh-main {
        transition: margin-left 0.3s ease;
    }

    /* Ensure sidebar expands on hover */
    .vh-sidebar:hover {
        width: var(--vh-sidebar-width);
    }

    .vh-sidebar:hover .vh-sidebar-item span,
    .vh-sidebar:hover .vh-folder-name,
    .vh-sidebar:hover .vh-folder-count,
    .vh-sidebar:hover .vh-sidebar-section-toggle span {
        opacity: 1;
        width: auto;
    }

    .vh-sidebar:hover .vh-sidebar-section-toggle svg {
        display: block;
    }

    /* Show Collections section again on hover */
    .vh-sidebar:hover .vh-sidebar-divider,
    .vh-sidebar:hover .vh-sidebar-section {
        display: block;
    }
}

/* Keep layout intact - prevent hero section from shifting */
.vh-layout {
    transition: none;
    /* Prevent layout shift animations */
}

@media (min-width: 1312px) {

    .vh-main-content,
    .vh-main {
        margin-left: var(--vh-sidebar-width);
        transition: margin-left 0.3s ease;
    }

    .vh-sidebar-collapsed~.vh-main-content,
    .vh-sidebar-collapsed~.vh-main {
        margin-left: 72px;
    }
}

/* ============================================
   SPINNER - Loading Animation
   ============================================ */
.vh-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--vh-border);
    border-top-color: var(--vh-primary);
    border-radius: 50%;
    animation: vh-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes vh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SINGLE VIDEO PAGE - REDESIGN (YouTube Style)
   ============================================ */

/* 1. Player Section */
.vh-single-player {
    background: #000;
    border-radius: var(--vh-card-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.vh-single-player video {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 80vh;
    /* Prevent it from being too tall on huge screens */
}

/* 2. Info Section & Typography */
.vh-single-info {
    padding: 0 0 40px 0;
}

.vh-single-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--vh-text);
}

@media (min-width: 768px) {
    .vh-single-title {
        font-size: 1.75rem;
    }
}

/* 3. Action Bar (Channel + Actions) */
.vh-video-action-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vh-border);
}

@media (min-width: 768px) {
    .vh-video-action-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Channel Info (Left) */
.vh-channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vh-channel-avatar {
    width: 40px;
    height: 40px;
    background: var(--vh-surface-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vh-text-muted);
}

.vh-channel-avatar svg {
    width: 20px;
    height: 20px;
}

.vh-channel-text {
    display: flex;
    flex-direction: column;
}

.vh-channel-name {
    font-weight: 600;
    color: var(--vh-text);
    font-size: 1rem;
}

.vh-upload-date {
    font-size: 0.8rem;
    color: var(--vh-text-muted);
}

/* Actions (Right) */
.vh-video-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Unified Action Button Styles */
.vh-action-btn,
.vh-views-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    background: var(--vh-surface-hover);
    color: var(--vh-text);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.vh-action-btn:hover {
    background: var(--vh-border);
}

.vh-action-btn.active,
.vh-action-btn.liked {
    background: var(--vh-primary);
    color: #fff;
}

/* Views Pill (Non-clickable look) */
.vh-views-pill {
    background: transparent;
    border: 1px solid var(--vh-border);
    cursor: default;
}

.vh-action-btn svg,
.vh-views-pill svg {
    width: 18px;
    height: 18px;
}

/* 4. Description Box */
.vh-description-box {
    background: var(--vh-surface-hover);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--vh-text);
    line-height: 1.5;
}

.vh-description-box:hover {
    background: var(--vh-border);
    /* Subtle darken on hover like YouTube */
}

.vh-meta-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vh-description-text {
    white-space: pre-wrap;
    /* Preserve line breaks */
    margin-right: 8px;
}

/* Live Search Results */
.vh-search-wrapper {
    position: relative;
}

.vh-live-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
    display: none;
    padding: 8px 0;
}

.vh-live-search-results.active {
    display: block;
    animation: vhFadeInUp 0.2s ease-out;
}

@keyframes vhFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vh-search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.vh-search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vh-search-result-thumb {
    width: 60px;
    height: 34px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    background: #222;
}

.vh-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-search-result-duration {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
}

.vh-search-result-info {
    flex-grow: 1;
    min-width: 0;
}

.vh-search-result-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.vh-search-no-results {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Chips */
.vh-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vh-chip {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--vh-primary);
    text-decoration: none;
    font-weight: 500;
}

.vh-chip:hover {
    text-decoration: underline;
}

/* ============================================
   LIKE BUTTON (Legacy Override/Support)
   ============================================ */
.vh-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--vh-surface);
    border: 1px solid var(--vh-border);
    border-radius: 20px;
    color: var(--vh-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.vh-like-btn:hover {
    background: var(--vh-surface-hover);
    border-color: var(--vh-text-muted);
}

.vh-like-btn.liked {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.vh-like-btn.liked svg {
    fill: #ef4444;
}

.vh-like-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.vh-like-btn:active svg {
    transform: scale(1.2);
}

.vh-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   SETTINGS MODAL
   ============================================ */
#vh-settings-modal .vh-modal-content {
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
}

.vh-settings-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vh-settings-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--vh-border, #333);
}

.vh-settings-section:first-child {
    padding-top: 10px;
}

.vh-settings-section:last-child {
    border-bottom: none;
}

.vh-settings-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--vh-text-muted, #888);
}

.vh-settings-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--vh-surface, #1a1a1a);
    border: 1px solid var(--vh-border, #333);
    border-radius: 8px;
    color: var(--vh-text, #fff);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vh-settings-input:focus {
    outline: none;
    border-color: var(--vh-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vh-settings-input::placeholder {
    color: var(--vh-text-muted, #666);
}

.vh-settings-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--vh-text-muted, #aaa);
}

.vh-settings-btn {
    padding: 10px 20px;
    background: var(--vh-primary, #6366f1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.vh-settings-btn:hover {
    background: var(--vh-primary-hover, #4f46e5);
}

.vh-settings-btn:active {
    transform: scale(0.98);
}

.vh-settings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vh-settings-btn--secondary {
    background: transparent;
    border: 1px solid var(--vh-border, #333);
    color: var(--vh-text, #fff);
}

.vh-settings-btn--secondary:hover {
    background: var(--vh-surface-hover, #262626);
    border-color: var(--vh-text-muted, #666);
}

.vh-settings-btn--danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.vh-settings-btn--danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Toggle Switch */
.vh-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.vh-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vh-toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #444;
    border-radius: 13px;
    transition: background 0.3s;
}

.vh-toggle input:checked+.vh-toggle-track {
    background: var(--vh-primary, #6366f1);
}

.vh-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vh-toggle input:checked~.vh-toggle-thumb {
    transform: translateX(22px);
}

/* Danger Zone */
.vh-settings-section--danger {
    border-top: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-bottom: none !important;
}

.vh-settings-section--danger h3 {
    color: #ef4444;
}

/* ============================================
   LOGIN WALL STYLES
   ============================================ */
.vh-modal-overlay.forced .vh-modal-close {
    display: none !important;
}

.vh-modal-overlay.forced {
    pointer-events: none;
    /* Disable clicking overlay to close */
}

.vh-modal-overlay.forced .vh-modal-content {
    pointer-events: auto;
    /* Enable clicks inside the modal */
    border: 1px solid var(--vh-primary);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.vh-login-wall-msg {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.vh-login-wall-msg h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    color: var(--vh-primary);
    font-weight: 600;
}

.vh-login-wall-msg p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vh-text-muted);
    line-height: 1.5;
}

.vh-modal-overlay.forced .vh-modal-content {
    margin: 10px;
    width: calc(100% - 20px);
}

/* ============================================
   NEW BADGE
   ============================================ */
.vh-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--vh-secondary, #22c55e);
    /* Fallback color */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 20;
    /* Higher than overlays */
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    line-height: 1;
}

/* ============================================
   404 PAGE STYLES
   ============================================ */
.vh-404-container {
    padding: 60px 20px;
    text-align: center;
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    border: 1px solid var(--vh-border);
    margin: 40px 0;
}

.vh-404-icon {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--vh-primary);
    opacity: 0.8;
}

.vh-404-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--vh-text);
}

.vh-404-text {
    font-size: 1.1rem;
    color: var(--vh-text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.vh-404-search {
    max-width: 400px;
    margin: 0 auto 32px;
}

.vh-404-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   AUTH MODAL REFINEMENTS
   ============================================ */
.vh-auth-modal-content {
    max-width: 448px !important;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #0f0f0f !important;
    /* YouTube True Black Neutral */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.6);
}

.vh-auth-body {
    padding: 40px 32px;
}

.vh-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.vh-auth-header .vh-modal-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: #fff;
    letter-spacing: -0.5px;
}

.vh-auth-subtitle {
    font-size: 15px;
    color: #aaaaaa;
    margin: 0;
    line-height: 1.4;
}

.vh-limit-box {
    background: rgba(62, 166, 255, 0.08);
    border: 1px solid rgba(62, 166, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.vh-limit-title {
    color: #3ea6ff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.vh-limit-text {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

.vh-btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    height: 48px;
    /* Taller buttons */
    align-items: center;
}

.vh-btn-google {
    background: #ffffff;
    color: #030303;
    border: none;
    font-weight: 600;
    gap: 12px;
    font-size: 15px;
    border-radius: 36px;
    /* High radius for pill shape */
    transition: all 0.2s cubic-bezier(0.05, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vh-btn-google:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vh-auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #aaa;
    font-size: 14px;
}

.vh-auth-separator::before,
.vh-auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vh-auth-separator span {
    padding: 0 16px;
}

.vh-form-group {
    margin-bottom: 16px;
}

.vh-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.vh-form-input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.vh-form-input:hover {
    border-color: #4d4d4d;
}

.vh-form-input:focus {
    outline: none;
    border-color: #3ea6ff;
    background: #0f0f0f;
    box-shadow: 0 0 0 1px #3ea6ff;
}

.vh-auth-footer {
    text-align: center;
    margin-top: 24px;
}

.vh-auth-footer a {
    color: #3ea6ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.vh-auth-footer a:hover {
    text-decoration: none;
}

.vh-auth-error {
    background: rgba(204, 0, 0, 0.1);
    color: #ff4e45;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid rgba(204, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Close Button Positioning */
.vh-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.vh-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* ============================================
   NOTIFICATION SYSTEM
   ============================================ */
.vh-notification-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.vh-notification-btn {
    position: relative;
}

.vh-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--vh-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.vh-notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vh-notification-wrapper.is-active .vh-notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vh-dropdown-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 !important;
    color: #fff;
    border: none !important;
}

.vh-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.vh-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vh-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vh-dropdown-item:last-child {
    border-bottom: none;
}

.vh-dropdown-thumb {
    width: 80px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.vh-dropdown-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-dropdown-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vh-dropdown-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.vh-dropdown-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.vh-dropdown-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.vh-dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vh-dropdown-footer a {
    font-size: 12px;
    font-weight: 600;
    color: var(--vh-primary);
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.vh-dropdown-footer a:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .vh-notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}

/* ============================================
   PRICING MODAL
   ============================================ */
.vh-modal-pricing {
    max-width: 900px !important;
    padding: 40px !important;
    background: rgba(18, 18, 18, 0.95) !important;
}

.vh-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.vh-pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vh-pricing-header p {
    color: var(--vh-text-muted);
    font-size: 1.125rem;
}

.vh-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.vh-price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.vh-price-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.vh-price-popular {
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid var(--vh-primary);
    transform: scale(1.05);
}

.vh-price-popular:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--vh-primary-bright);
}

.vh-price-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--vh-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.vh-price-tier {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.vh-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.vh-price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--vh-text-muted);
}

.vh-price-desc {
    font-size: 0.875rem;
    color: var(--vh-text-muted);
    margin-bottom: 24px;
    min-height: 44px;
}

.vh-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.vh-price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--vh-text-muted);
}

.vh-price-features li svg {
    color: var(--vh-primary);
    flex-shrink: 0;
}

.vh-pricing-footer {
    text-align: center;
    color: var(--vh-text-muted);
    font-size: 0.875rem;
}

.vh-btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .vh-price-popular {
        transform: scale(1);
    }

    .vh-price-popular:hover {
        transform: translateY(-5px);
    }

    .vh-modal-pricing {
        max-width: 95vw !important;
        padding: 24px !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@import url("assets/css/shorts.css");

/* Related Videos Header & Autoplay UI (Global) */
.vh-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vh-related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.vh-autoplay-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--vh-text-muted);
}

/* Switch Component */
.vh-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.vh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--vh-border);
    border-radius: 20px;
    transition: .4s;
}

.vh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked+.vh-slider {
    background-color: var(--vh-primary);
}

input:focus+.vh-slider {
    box-shadow: 0 0 1px var(--vh-primary);
}

input:checked+.vh-slider:before {
    transform: translateX(16px);
}

/* ============================================
   AD SYSTEM STYLING
   ============================================ */
.videohub-ad-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    clear: both;
    overflow: hidden;
}

/* Base styling for active ad zones - tightened the gap */
.videohub-ad-zone:not(:empty) {
    margin: 12px 0;
}

.vh-ad-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--vh-text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    /* Reduced from 12px */
    opacity: 0.6;
    text-transform: uppercase;
}

.videohub-ad-zone img,
.videohub-ad-zone iframe,
.videohub-ad-zone ins,
.videohub-ad-zone>div {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.videohub-ad-zone img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--vh-transition);
}

.videohub-ad-zone img:hover {
    transform: translateY(-2px);
}

/* Specific Page Adjustments */
.vh-ad-player {
    margin: 0 0 24px 0 !important;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--vh-border);
}

/* If player ad is empty, hide its decorations */
.vh-ad-player:empty {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.vh-ad-content-bottom {
    margin: 24px 0 !important;
    padding-top: 24px;
    border-top: 1px solid var(--vh-border);
}

.vh-ad-content-bottom:empty {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.vh-in-feed-widget {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    margin: 16px 0;
    background: var(--vh-surface);
    border-radius: 12px;
    border: 1px dashed var(--vh-border);
}

/* Hide empty in-feed widgets */
.vh-in-feed-widget:empty {
    display: none !important;
}

.vh-ad-header {
    margin: 0 auto;
    padding-top: var(--vh-header-height);
    width: 100%;
}

/* Content Top ad spacing */
.vh-main>.vh-ad-content-top:first-child {
    margin-top: 0;
}

.vh-main>.vh-ad-content-top:first-child+.vh-filters-container {
    margin-top: 8px;
}

.vh-ad-footer {
    margin: 32px 0;
}

/* ============================================
   LAZY LOAD PLAYER STYLES
   ============================================ */

/* Standard Player Wrapper */
.vh-standard-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    overflow: hidden;
}

.vh-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.vh-player-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-player-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.vh-player-play-btn:hover {
    background: var(--vh-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.vh-player-play-btn svg {
    margin-left: 4px;
    /* Visual centering for play icon */
}

.vh-player-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.vh-iframe-container {
    position: absolute;
    inset: 0;
}

.vh-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Shorts Player Wrapper */
.vh-shorts-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    background: var(--vh-surface);
    border-radius: var(--vh-card-radius);
    overflow: hidden;
    margin: 0 auto;
}

.vh-shorts-player-container {
    position: absolute;
    inset: 0;
}

.vh-shorts-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.vh-shorts-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-shorts-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.vh-shorts-play-btn:hover {
    background: var(--vh-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.vh-shorts-iframe-container {
    position: absolute;
    inset: 0;
}

.vh-shorts-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Shorts Controls Overlay */
.vh-shorts-controls {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.vh-shorts-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vh-shorts-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vh-shorts-action-btn:hover {
    transform: scale(1.1);
}

.vh-shorts-action-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.vh-shorts-count {
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Platform Badges */
.vh-platform-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.vh-platform-youtube svg {
    color: #FF0000;
}

.vh-platform-vimeo svg {
    color: #00ADEF;
}