/**
 * Polanger VideoHub Public Styles
 * Netflix/Disney+ Inspired Premium Design
 *
 * @since 1.0.0
 */

/* CSS Variables - Light Theme */
:root {
    --pvh-primary: #e50914;
    --pvh-primary-hover: #c40812;
    --pvh-primary-light: rgba(229, 9, 20, 0.1);
    --pvh-accent: #46d369;
    --pvh-dark: #0f0f0f;
    --pvh-darker: #030303;
    --pvh-gray: #606060;
    --pvh-light-gray: #909090;
    --pvh-border: #e5e5e5;
    --pvh-border-light: #f0f0f0;
    --pvh-bg: #f9f9f9;
    --pvh-bg-elevated: #ffffff;
    --pvh-card-bg: #ffffff;
    --pvh-text: #0f0f0f;
    --pvh-text-secondary: #606060;
    --pvh-text-muted: #909090;
    --pvh-radius: 12px;
    --pvh-radius-sm: 8px;
    --pvh-radius-lg: 16px;
    --pvh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --pvh-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --pvh-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --pvh-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pvh-card-width: 320px;
}

/* Reset - Font inherit from theme (exclude dashicons) */
.pvh-home-page,
.pvh-home-page *:not(.dashicons):not([class*="dashicons"]),
.pvh-videos-page,
.pvh-videos-page *:not(.dashicons):not([class*="dashicons"]),
.pvh-playlists-grid,
.pvh-playlists-grid *:not(.dashicons):not([class*="dashicons"]) {
    font-family: inherit !important;
}

/* Ensure dashicons display correctly */
.pvh-home-page .dashicons,
.pvh-home-page [class*="dashicons"],
.pvh-videos-page .dashicons,
.pvh-videos-page [class*="dashicons"],
.pvh-playlists-grid .dashicons,
.pvh-playlists-grid [class*="dashicons"] {
    font-family: dashicons !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove underline from all links */
.pvh-home-page a,
.pvh-home-page a:hover,
.pvh-home-page a:focus,
.pvh-home-page a:visited,
.pvh-video-card a,
.pvh-playlist-card a {
    text-decoration: none !important;
}

/* Video Grid (for archive pages) */
.pvh-videos-grid {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.pvh-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pvh-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pvh-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pvh-columns-5 { grid-template-columns: repeat(5, 1fr); }
.pvh-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* =====================================================
   VIDEO CARD - Netflix/Disney+ Premium Design
   ===================================================== */

.pvh-video-card {
    background: transparent;
    border-radius: var(--pvh-radius);
    overflow: visible;
    transition: all var(--pvh-transition);
    position: relative;
}

.pvh-video-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.pvh-video-card:hover .pvh-video-thumbnail {
    box-shadow: var(--pvh-shadow-lg);
}

.pvh-video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pvh-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pvh-card-bg);
    border-radius: var(--pvh-radius);
    transition: all var(--pvh-transition);
}

.pvh-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pvh-transition);
}

.pvh-video-card:hover .pvh-video-thumbnail img {
    transform: scale(1.1);
}

/* Play overlay on hover */
.pvh-video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all var(--pvh-transition);
    pointer-events: none;
}

.pvh-video-card:hover .pvh-video-thumbnail::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Play icon on hover */
.pvh-video-thumbnail::before {
    content: '\f522';
    font-family: dashicons;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    z-index: 5;
    transition: all var(--pvh-transition);
    opacity: 0;
}

.pvh-video-card:hover .pvh-video-thumbnail::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pvh-no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.3);
}

.pvh-no-thumbnail .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.pvh-video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 6;
}

/* Premium Video Price Badge */
.pvh-video-price-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pvh-video-price-badge .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.pvh-video-price-badge .woocommerce-Price-currencySymbol {
    font-size: 10px;
    margin-right: 1px;
}

/* Small price badge for list/sidebar views */
.pvh-video-price-badge.pvh-price-sm {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
    top: 4px;
    left: 4px;
}

.pvh-video-price-badge.pvh-price-sm .woocommerce-Price-currencySymbol {
    font-size: 8px;
}

/* Video Info */
.pvh-video-info {
    padding: 10px 2px 6px;
}

.pvh-video-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pvh-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--pvh-transition);
	
}

.pvh-video-card:hover .pvh-video-title {
    color: var(--pvh-text);
}

.pvh-video-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--pvh-text-secondary);
    padding-left: 8px;
    padding-right: 8px;
}

.pvh-video-author {
    font-weight: 500;
    color: var(--pvh-text-muted);
}

.pvh-video-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--pvh-text-muted);
}

.pvh-video-stats .pvh-separator {
    margin: 0 2px;
}

/* Archive Page */
.pvh-archive-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.pvh-archive-header {
    margin-bottom: 24px;
}

.pvh-archive-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pvh-text);
}

.pvh-archive-description {
    color: var(--pvh-text-secondary);
}

/* Filter Bar */
.pvh-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pvh-border);
}

.pvh-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pvh-filter-item {
    display: inline-block;
    padding: 8px 16px;
    background: var(--pvh-bg);
    border-radius: 20px;
    font-size: 14px;
    color: var(--pvh-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pvh-filter-item:hover {
    background: var(--pvh-border);
}

.pvh-filter-item.active {
    background: var(--pvh-dark);
    color: #fff;
}

.pvh-sort-select {
    padding: 8px 16px;
    border: 1px solid var(--pvh-border);
    border-radius: var(--pvh-radius-sm);
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Pagination */
.pvh-pagination {
    margin-top: 40px;
    text-align: center;
}

.pvh-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pvh-pagination a,
.pvh-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--pvh-radius-sm);
    text-decoration: none;
    font-size: 14px;
}

.pvh-pagination a {
    background: var(--pvh-bg);
    color: var(--pvh-text);
}

.pvh-pagination a:hover {
    background: var(--pvh-border);
}

.pvh-pagination .current {
    background: var(--pvh-dark);
    color: #fff;
}

/* =====================================================
   RESPONSIVE - Grid Columns
   ===================================================== */

@media screen and (max-width: 992px) {
    .pvh-columns-5,
    .pvh-columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pvh-columns-4,
    .pvh-columns-5,
    .pvh-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pvh-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 576px) {
    .pvh-columns-3,
    .pvh-columns-4,
    .pvh-columns-5,
    .pvh-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pvh-videos-grid {
        gap: 12px;
    }

    .pvh-video-title {
        font-size: 13px;
    }

    .pvh-archive-page {
        padding: 12px;
    }
}

@media screen and (max-width: 400px) {
    .pvh-columns-2,
    .pvh-columns-3,
    .pvh-columns-4,
    .pvh-columns-5,
    .pvh-columns-6 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   HOME PAGE - Netflix/Disney+ Premium Design
   ===================================================== */

.pvh-home-page {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px 0 0 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Elementor Full Width Compatibility */
.elementor-section-full_width .pvh-home-page,
.elementor-section-stretched .pvh-home-page,
.elementor-widget-container .pvh-home-page,
.e-con-full .pvh-home-page {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Elementor Container - inherit width from parent */
.elementor-widget-shortcode .pvh-home-page,
.elementor-widget-shortcode .pvh-videos-page {
    max-width: inherit;
    width: inherit;
}

/* Remove default container constraints when in full-width mode */
.elementor-section-full_width .pvh-home-section,
.elementor-section-stretched .pvh-home-section,
.e-con-full .pvh-home-section {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

/* =====================================================
   HERO SECTION - Featured Video Banner
   ===================================================== */

.pvh-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    margin-bottom: 20px;
    overflow: hidden;
}

.pvh-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.pvh-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pvh-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.pvh-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.6) 40%, transparent 60%),
        linear-gradient(to top, var(--pvh-bg) 0%, transparent 50%);
    z-index: 2;
}

.pvh-hero-content {
    position: absolute;
    bottom: 15%;
    left: 4%;
    max-width: 550px;
    z-index: 3;
    color: #ffffff;
}

.pvh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pvh-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pvh-hero-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.pvh-hero-title {
    font-size: 35px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
	color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.pvh-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.pvh-hero-separator {
    color: rgba(255, 255, 255, 0.5);
}

.pvh-hero-excerpt {
    display: none;
}

.pvh-hero-actions {
    display: flex;
    gap: 12px;
}

.pvh-hero-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    transition: all var(--pvh-transition);
    cursor: pointer;
}

.pvh-hero-play-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.pvh-hero-play-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* =====================================================
   SECTION STYLES
   ===================================================== */

.pvh-home-section {
    margin-bottom: 40px;
    padding: 0 4%;
    position: relative;
}

.pvh-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pvh-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--pvh-text);
}

.pvh-section-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--pvh-primary);
}

.pvh-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pvh-text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--pvh-bg);
    transition: all var(--pvh-transition);
}

.pvh-see-all:hover {
    background: var(--pvh-border);
    color: var(--pvh-text);
}

.pvh-see-all .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.pvh-see-all:hover .dashicons {
    transform: translateX(4px);
}

/* =====================================================
   CAROUSEL - Netflix Style Horizontal Scroll
   ===================================================== */

.pvh-carousel-wrapper {
    position: relative;
    margin: 0 -4%;
    padding: 0 4%;
}

.pvh-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}

.pvh-carousel-track::-webkit-scrollbar {
    display: none;
}

.pvh-carousel-track .pvh-video-card,
.pvh-carousel-track .pvh-playlist-card {
    flex: 0 0 var(--pvh-card-width);
    min-width: var(--pvh-card-width);
}

.pvh-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--pvh-bg-elevated);
    border: none;
    border-radius: 15%;
    color: var(--pvh-text);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pvh-transition);
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pvh-carousel-wrapper:hover .pvh-carousel-btn {
    opacity: 1;
}

.pvh-carousel-btn:hover {
    background: var(--pvh-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.pvh-carousel-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pvh-carousel-prev {
    left: 0;
    z-index: 15;
}

.pvh-carousel-next {
    right: 0;
    z-index: 15;
}

.pvh-carousel-btn-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Section specific icon colors */
.pvh-latest-section .pvh-section-title .dashicons {
    color: var(--pvh-primary);
}

.pvh-trending-section .pvh-section-title .dashicons {
    color: #ff9800;
}

.pvh-playlists-section .pvh-section-title .dashicons {
    color: #9c27b0;
}

.pvh-category-section .pvh-section-title {
    position: relative;
    padding-left: 14px;
}

.pvh-category-section .pvh-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--pvh-primary);
    border-radius: 2px;
}


/* =====================================================
   SEARCH FORM STYLES
   ===================================================== */

.pvh-search-wrap {
    margin: 20px 0;
}

.pvh-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.pvh-search-input-wrap {
    display: flex;
    border: 1px solid var(--pvh-border);
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.pvh-search-input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
    border-color: var(--pvh-primary);
}

.pvh-search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.pvh-search-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--pvh-bg);
    border: none;
    border-left: 1px solid var(--pvh-border);
    cursor: pointer;
    transition: background 0.2s;
}

.pvh-search-button:hover {
    background: var(--pvh-border);
}

.pvh-search-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* =====================================================
   PLAYLIST STYLES
   ===================================================== */

.pvh-playlist-wrap {
    margin: 20px 0;
}

.pvh-playlist-header {
    margin-bottom: 20px;
}

.pvh-playlist-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pvh-text);
}

.pvh-playlist-count {
    color: var(--pvh-text-secondary);
    font-size: 14px;
}

/* Playlist Player Layout */
.pvh-playlist-player-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.pvh-playlist-main-player {
    min-width: 0;
}

.pvh-player-container {
    background: #000;
    border-radius: var(--pvh-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.pvh-player-container iframe,
.pvh-player-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.pvh-now-playing {
    padding: 16px 0;
}

.pvh-now-playing-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pvh-text);
}

.pvh-now-playing-meta {
    font-size: 14px;
    color: var(--pvh-text-secondary);
}

/* Playlist Sidebar */
.pvh-playlist-sidebar {
    background: var(--pvh-bg);
    border-radius: var(--pvh-radius);
    overflow: hidden;
    height: fit-content;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.pvh-playlist-sidebar .pvh-playlist-header {
    padding: 16px;
    margin: 0;
    border-bottom: 1px solid var(--pvh-border);
}

.pvh-playlist-sidebar .pvh-playlist-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.pvh-playlist-items {
    overflow-y: auto;
    flex: 1;
}

.pvh-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.pvh-playlist-item:hover {
    background: var(--pvh-border);
}

.pvh-playlist-item.active {
    background: rgba(255, 0, 0, 0.1);
}

.pvh-item-index {
    width: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--pvh-text-secondary);
}

.pvh-item-thumbnail {
    position: relative;
    width: 100px;
    min-width: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.pvh-item-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pvh-item-thumbnail .pvh-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 10px;
}

.pvh-item-info {
    flex: 1;
    min-width: 0;
}

.pvh-item-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--pvh-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pvh-item-author {
    font-size: 12px;
    color: var(--pvh-text-secondary);
}

/* Playlist List Style */
.pvh-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pvh-playlist-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--pvh-card-bg);
    border-radius: var(--pvh-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.pvh-playlist-list-item:hover {
    background: var(--pvh-bg);
}

.pvh-playlist-list-item .pvh-item-index {
    font-size: 14px;
    font-weight: 500;
}

.pvh-playlist-list-item .pvh-item-thumbnail {
    width: 160px;
    min-width: 160px;
}

.pvh-playlist-list-item .pvh-item-title {
    font-size: 14px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-item-views {
    font-size: 12px;
    color: var(--pvh-text-secondary);
    margin-top: 4px;
}

/* =====================================================
   CHANNEL PAGE STYLES
   ===================================================== */

.pvh-channel-wrap {
    margin: 20px 0;
}

.pvh-channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--pvh-bg);
    border-radius: var(--pvh-radius);
    margin-bottom: 24px;
}

.pvh-channel-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.pvh-channel-info {
    flex: 1;
}

.pvh-channel-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pvh-text);
}

.pvh-channel-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--pvh-text-secondary);
}

.pvh-channel-bio {
    margin-top: 12px;
    color: var(--pvh-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* =====================================================
   CATEGORIES GRID STYLES
   ===================================================== */

.pvh-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.pvh-category-card {
    background: var(--pvh-card-bg);
    border-radius: var(--pvh-radius);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--pvh-border);
}

.pvh-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pvh-category-card .pvh-category-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pvh-text);
}

.pvh-category-card .pvh-category-count {
    font-size: 13px;
    color: var(--pvh-text-secondary);
}

/* Categories Pills Style */
.pvh-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pvh-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pvh-bg);
    border-radius: 24px;
    text-decoration: none;
    color: var(--pvh-text);
    font-size: 14px;
    transition: background 0.2s;
}

.pvh-category-pill:hover {
    background: var(--pvh-border);
}

.pvh-category-pill .pvh-count {
    background: var(--pvh-dark);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* =====================================================
   PLAYLIST CARD - Netflix/Disney+ Premium Design
   ===================================================== */

.pvh-playlists-grid {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.pvh-playlist-card {
    background: transparent;
    border-radius: var(--pvh-radius);
    overflow: visible;
    position: relative;
    transition: all var(--pvh-transition);
}

.pvh-playlist-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.pvh-playlist-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pvh-playlist-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--pvh-radius);
    transition: all var(--pvh-transition);
}

.pvh-playlist-card:hover .pvh-playlist-thumbnail {
    box-shadow: var(--pvh-shadow-lg);
}

.pvh-playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pvh-transition);
}

.pvh-playlist-card:hover .pvh-playlist-thumbnail img {
    transform: scale(1.1);
}

.pvh-playlist-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 0 var(--pvh-radius) var(--pvh-radius) 0;
}

.pvh-playlist-count-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pvh-playlist-count-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pvh-playlist-info {
    padding: 10px 2px 6px;
}

.pvh-playlist-info .pvh-playlist-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pvh-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-playlist-info .pvh-playlist-author {
    font-size: 11px;
    color: var(--pvh-text-muted);
}

.pvh-playlist-info .pvh-playlist-author::before {
    display: none;
}

.pvh-no-playlists {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--pvh-text-secondary);
    background: var(--pvh-bg-elevated);
    border-radius: var(--pvh-radius);
}

/* =====================================================
   VIDEOS PAGE STYLES (filtered view)
   ===================================================== */

.pvh-videos-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.pvh-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pvh-border);
}

.pvh-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--pvh-text);
}

.pvh-video-count {
    font-size: 14px;
    color: var(--pvh-text-secondary);
    background: var(--pvh-bg);
    padding: 6px 12px;
    border-radius: 20px;
}

/* =====================================================
   RESPONSIVE - Netflix/Disney+ Style
   ===================================================== */

@media screen and (max-width: 1400px) {
    :root {
        --pvh-card-width: 300px;
    }
}

@media screen and (max-width: 1200px) {
    :root {
        --pvh-card-width: 280px;
    }

    .pvh-playlist-player-layout {
        grid-template-columns: 1fr;
    }

    .pvh-playlist-sidebar {
        max-height: 400px;
    }

    .pvh-hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .pvh-hero-content {
        max-width: 450px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --pvh-card-width: 260px;
    }

    .pvh-hero-section {
        height: 55vh;
        min-height: 350px;
    }

    .pvh-hero-title {
        font-size: 32px;
    }

    .pvh-hero-excerpt {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --pvh-card-width: 220px;
    }

    .pvh-hero-section {
        height: 50vh;
        min-height: 300px;
    }

    .pvh-hero-content {
        bottom: 10%;
        max-width: 80%;
    }

    .pvh-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .pvh-hero-meta {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .pvh-hero-play-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .pvh-section-title {
        font-size: 16px;
    }

    .pvh-section-title .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .pvh-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .pvh-carousel-btn .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .pvh-see-all {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pvh-channel-header {
        flex-direction: column;
        text-align: center;
    }

    .pvh-channel-stats {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --pvh-card-width: 180px;
    }

    .pvh-hero-section {
        height: 45vh;
        min-height: 280px;
    }

    .pvh-hero-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .pvh-hero-title {
        font-size: 20px;
    }

    .pvh-hero-play-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pvh-home-section {
        margin-bottom: 30px;
    }

    .pvh-carousel-track {
        gap: 8px;
    }

    .pvh-video-title {
        font-size: 12px;
    }

    .pvh-video-meta {
        font-size: 10px;
    }

    .pvh-search-input-wrap {
        flex-direction: column;
        border-radius: var(--pvh-radius);
    }

    .pvh-search-button {
        border-left: none;
        border-top: 1px solid var(--pvh-border);
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    :root {
        --pvh-card-width: 160px;
    }

    .pvh-hero-content {
        max-width: 90%;
    }

    .pvh-hero-title {
        font-size: 18px;
    }
}

/* Category Page Styles */
.pvh-category-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

.pvh-category-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pvh-border);
}

.pvh-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--pvh-text);
}

.pvh-category-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--pvh-primary);
}

.pvh-category-description {
    font-size: 15px;
    color: var(--pvh-text-secondary);
    margin: 0 0 12px;
    max-width: 600px;
}

.pvh-category-count {
    display: inline-block;
    font-size: 14px;
    color: var(--pvh-text-muted);
    background: var(--pvh-bg);
    padding: 6px 12px;
    border-radius: 20px;
}

.pvh-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pvh-no-videos {
    text-align: center;
    padding: 60px 20px;
    color: var(--pvh-text-secondary);
}

.pvh-no-videos .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pvh-no-videos p {
    font-size: 16px;
    margin: 0;
}

.pvh-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--pvh-border);
}

.pvh-pagination a,
.pvh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--pvh-bg-elevated);
    border: 1px solid var(--pvh-border);
    border-radius: var(--pvh-radius-sm);
    color: var(--pvh-text);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--pvh-transition);
}

.pvh-pagination a:hover {
    background: var(--pvh-bg);
    border-color: var(--pvh-primary);
    color: var(--pvh-primary);
}

.pvh-pagination .current {
    background: var(--pvh-primary);
    border-color: var(--pvh-primary);
    color: #fff;
}

.pvh-pagination .dots {
    border: none;
    background: transparent;
}

@media screen and (max-width: 768px) {
    .pvh-category-page {
        padding: 16px;
    }

    .pvh-category-title {
        font-size: 22px;
    }

    .pvh-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

/* ==========================================================================
   Author Profile Page - YouTube-like Channel Design
   ========================================================================== */

.pvh-author-profile {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 30px 40px;
    box-sizing: border-box;
}

/* Author Header */
.pvh-author-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: var(--pvh-card-bg);
    border-radius: var(--pvh-radius-lg);
    box-shadow: var(--pvh-shadow-sm);
    margin-bottom: 32px;
}

.pvh-author-avatar-large {
    flex-shrink: 0;
}

.pvh-author-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--pvh-border-light);
}

.pvh-author-info {
    flex: 1;
    min-width: 0;
}

.pvh-author-display-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--pvh-text);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.pvh-author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.pvh-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--pvh-text-secondary);
}

.pvh-stat-count {
    font-weight: 600;
    color: var(--pvh-text);
}

.pvh-author-bio {
    font-size: 14px;
    color: var(--pvh-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

/* Author Sections */
.pvh-author-shorts-section,
.pvh-author-playlists-section,
.pvh-author-videos-section {
    margin-bottom: 40px;
}

/* Shorts Carousel for Author Page */
.pvh-shorts-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.pvh-shorts-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.pvh-shorts-carousel-track::-webkit-scrollbar {
    display: none;
}

.pvh-short-card {
    flex: 0 0 auto;
    width: 160px;
}

.pvh-short-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pvh-short-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: var(--pvh-radius);
    overflow: hidden;
    background: var(--pvh-dark);
}

.pvh-short-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pvh-transition);
}

.pvh-short-card:hover .pvh-short-card-thumbnail img {
    transform: scale(1.05);
}

.pvh-short-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--pvh-transition);
}

.pvh-short-card:hover .pvh-short-card-overlay {
    opacity: 1;
}

.pvh-short-play-icon {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pvh-short-card-info {
    padding: 8px 4px;
}

.pvh-short-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--pvh-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-short-card-views {
    font-size: 12px;
    color: var(--pvh-text-muted);
}

/* Videos Section Header with Filters */
.pvh-videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.pvh-videos-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pvh-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--pvh-bg);
    border: 1px solid var(--pvh-border);
    border-radius: 20px;
    color: var(--pvh-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--pvh-transition);
    white-space: nowrap;
}

.pvh-filter-btn:hover {
    background: var(--pvh-border-light);
    color: var(--pvh-text);
}

.pvh-filter-btn.active {
    background: var(--pvh-text);
    border-color: var(--pvh-text);
    color: #fff;
}

/* Section Icon */
.pvh-section-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Mobile Responsive - Author Profile */
@media screen and (max-width: 768px) {
    .pvh-author-profile {
        padding: 16px;
    }

    .pvh-author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .pvh-author-avatar-large img {
        width: 96px;
        height: 96px;
    }

    .pvh-author-display-name {
        font-size: 22px;
    }

    .pvh-author-stats {
        justify-content: center;
    }

    .pvh-author-bio {
        text-align: center;
    }

    .pvh-videos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pvh-videos-filters {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .pvh-videos-filters::-webkit-scrollbar {
        display: none;
    }

    .pvh-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pvh-short-card {
        width: 140px;
    }

    .pvh-author-shorts-section,
    .pvh-author-playlists-section,
    .pvh-author-videos-section {
        margin-bottom: 28px;
    }
}

@media screen and (max-width: 480px) {
    .pvh-author-avatar-large img {
        width: 80px;
        height: 80px;
    }

    .pvh-author-display-name {
        font-size: 20px;
    }

    .pvh-stat-item {
        font-size: 13px;
    }

    .pvh-short-card {
        width: 120px;
    }

    .pvh-filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* =====================================================
   HOMEPAGE GRID LAYOUT MODE
   ===================================================== */

/* Grid Layout Container */
.pvh-home-page.pvh-layout-grid .pvh-videos-grid {
    display: grid;
    grid-template-columns: repeat(var(--pvh-grid-columns, 4), 1fr);
    gap: 24px;
    margin: 0;
}

/* Grid mode - video card adjustments */
.pvh-home-page.pvh-layout-grid .pvh-video-card {
    width: 100%;
    min-width: 0;
}

.pvh-home-page.pvh-layout-grid .pvh-video-card:hover {
    transform: translateY(-4px);
}

/* Grid Layout Responsive */
@media screen and (max-width: 1200px) {
    .pvh-home-page.pvh-layout-grid .pvh-videos-grid {
        grid-template-columns: repeat(var(--pvh-grid-columns-tablet, 3), 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .pvh-home-page.pvh-layout-grid .pvh-videos-grid {
        grid-template-columns: repeat(var(--pvh-grid-columns-mobile, 2), 1fr);
        gap: 16px;
    }
}

/* =====================================================
   TAG PAGE STYLES
   ===================================================== */

.pvh-tag-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pvh-tag-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pvh-border);
}

.pvh-tag-info {
    text-align: center;
}

.pvh-tag-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pvh-text);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pvh-tag-hash {
    color: var(--pvh-primary);
    font-weight: 400;
}

.pvh-tag-description {
    color: var(--pvh-text-secondary);
    font-size: 16px;
    margin: 0 0 15px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pvh-tag-count {
    display: inline-block;
    background: var(--pvh-bg);
    color: var(--pvh-text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Tag page videos grid */
.pvh-tag-page .pvh-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media screen and (max-width: 1200px) {
    .pvh-tag-page .pvh-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pvh-tag-page .pvh-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .pvh-tag-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .pvh-tag-page .pvh-videos-grid {
        grid-template-columns: 1fr;
    }
}

