/**
 * BBGayTube Theme - Pornhub Style Design
 * Modern, Fast, Clean Tube Site
 * 
 * @package BBGayTube
 * @version 1.0.0
 */

/* ==========================================================================
   1. CSS Reset & Variables - Pornhub Colors
   ========================================================================== */

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

:root {
    /* Pornhub Orange Theme */
    --ph-orange: #ff9000;
    --ph-orange-hover: #ffa31a;
    --ph-orange-dark: #e68200;
    
    /* Backgrounds */
    --ph-black: #000000;
    --ph-dark: #0d0d0d;
    --ph-darker: #1a1a1a;
    --ph-card: #1b1b1b;
    
    /* Text Colors */
    --ph-white: #ffffff;
    --ph-gray: #b3b3b3;
    --ph-gray-dark: #808080;
    --ph-gray-darker: #666666;
    
    /* Layout */
    --container-max: 1920px;
    --container-wide: 1600px;
    --container-normal: 1400px;
    
    /* Spacing */
    --gap-xs: 8px;
    --gap-sm: 12px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--ph-black);
    color: var(--ph-white);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ph-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--ph-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. Header - Pornhub Style
   ========================================================================== */

.site-header {
    background: var(--ph-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--ph-darker);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 12px 0;
}

/* Logo - Pornhub Style */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--ph-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-title span {
    background: var(--ph-orange);
    color: var(--ph-black);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 900;
}

.custom-logo-link img {
    max-height: 36px;
    width: auto;
}

/* Search Bar - Pornhub Style */
.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    position: relative;
    display: flex;
}

.header-search input[type="search"] {
    width: 100%;
    height: 40px;
    padding: 0 48px 0 16px;
    background: var(--ph-darker);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ph-white);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ph-orange);
    background: var(--ph-dark);
}

.header-search input[type="search"]::placeholder {
    color: var(--ph-gray-dark);
}

.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    background: transparent;
    border: none;
    color: var(--ph-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.header-search button:hover {
    color: var(--ph-orange);
}

/* Navigation - Pornhub Style */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: var(--ph-white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--ph-orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--ph-white);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   3. Video Grid - Pornhub Style
   ========================================================================== */

#primary {
    padding: var(--gap-lg) 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-lg) var(--gap-md);
    margin: 0;
}

.video-item {
    position: relative;
    cursor: pointer;
}

/* Thumbnail Container */
.video-thumbnail-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--gap-sm);
}

.video-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.video-item:hover .video-thumbnail-link img {
    opacity: 0.8;
}

/* Duration Badge - Pornhub Style */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--ph-white);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Video Info */
.video-info {
    padding: 0;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--ph-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.video-title a {
    color: var(--ph-white);
}

.video-title a:hover {
    color: var(--ph-orange);
}

/* Video Meta Stats - Pornhub Style */
.video-meta-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ph-gray-dark);
}

.video-meta-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta-stats svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.video-meta-stats .meta-views {
    font-weight: 600;
    color: var(--ph-gray);
}

.video-meta-stats .meta-rating {
    color: var(--ph-orange);
    font-weight: 600;
}

/* ==========================================================================
   4. Single Video Page - Pornhub Style
   ========================================================================== */

.single-video-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--gap-xl);
    padding: var(--gap-lg) 0;
}

.video-main-content {
    min-width: 0;
}

/* Video Stats Bar - Pornhub Style */
.video-stats-bar {
    background: var(--ph-darker);
    padding: 12px 16px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: 0;
}

.stats-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ph-gray);
    font-size: 13px;
}

.stat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.stat-label {
    font-weight: 600;
    color: var(--ph-gray-dark);
}

.stat-value {
    color: var(--ph-white);
    font-weight: 700;
}

/* Video Player */
.video-player-container {
    background: var(--ph-black);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--gap-md);
}

.video-player-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* Video Header (kept for compatibility) */
.video-header {
    margin: var(--gap-md) 0;
}

.video-header .video-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ph-white);
    margin-bottom: 0;
}

/* Video Meta Info - Pornhub Style */
.video-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    padding: var(--gap-md);
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    margin: var(--gap-md) 0;
}

.video-categories,
.video-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
    color: var(--ph-gray-dark);
    font-size: 13px;
    margin-right: 4px;
}

.video-categories a,
.video-tags a {
    padding: 6px 12px;
    background: var(--ph-card);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-gray);
    transition: all var(--transition-fast);
}

.video-categories a:hover,
.video-tags a:hover {
    background: var(--ph-orange);
    color: var(--ph-black);
}

/* Related Videos - Pornhub Style */
.related-videos-section {
    margin-top: var(--gap-xl);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    padding-bottom: var(--gap-sm);
    border-bottom: 3px solid var(--ph-orange);
    color: var(--ph-white);
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap-lg) var(--gap-md);
}

/* ==========================================================================
   5. Sidebar - Pornhub Style
   ========================================================================== */

.widget-area {
    position: sticky;
    top: 80px;
}

.widget {
    background: var(--ph-darker);
    padding: var(--gap-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--gap-md);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--gap-sm);
    padding-bottom: var(--gap-sm);
    border-bottom: 2px solid var(--ph-orange);
    color: var(--ph-white);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--ph-card);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--ph-gray);
    font-size: 13px;
    transition: color var(--transition-fast);
}

.widget a:hover {
    color: var(--ph-orange);
}

/* Tag Cloud - Pornhub Style */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    padding: 6px 12px;
    background: var(--ph-card);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-gray);
    transition: all var(--transition-fast);
}

.tag-cloud-link:hover {
    background: var(--ph-orange);
    color: var(--ph-black);
}

.tag-count {
    color: var(--ph-gray-darker);
    font-size: 11px;
    margin-left: 2px;
}

/* Recent Videos Widget - Pornhub Style */
.recent-videos-list {
    list-style: none;
}

.recent-video-item {
    padding: 0;
    border-bottom: 1px solid var(--ph-card);
    margin-bottom: var(--gap-sm);
    padding-bottom: var(--gap-sm);
}

.recent-video-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-video-link {
    display: flex;
    gap: var(--gap-sm);
    color: var(--ph-white);
}

.recent-video-link:hover {
    color: var(--ph-orange);
}

.recent-video-thumb {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 56px;
    background: var(--ph-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.recent-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.recent-video-link:hover .recent-video-thumb img {
    opacity: 0.8;
}

.recent-video-thumb .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--ph-white);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
}

.recent-video-info {
    flex: 1;
    min-width: 0;
}

.recent-video-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--ph-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-video-info .views {
    font-size: 11px;
    color: var(--ph-gray-dark);
}

/* ==========================================================================
   6. Load More Button - Pornhub Style
   ========================================================================== */

.load-more-wrapper {
    text-align: center;
    margin: var(--gap-xl) 0;
}

.load-more-btn {
    background: var(--ph-orange);
    color: var(--ph-black);
    border: none;
    padding: 12px 48px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--ph-orange-hover);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: var(--ph-black);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ==========================================================================
   7. Footer - Pornhub Style
   ========================================================================== */

.site-footer {
    background: var(--ph-dark);
    border-top: 1px solid var(--ph-darker);
    margin-top: var(--gap-xl);
}

.footer-widgets {
    padding: var(--gap-xl) 0 var(--gap-lg);
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-xl);
}

.footer-bottom {
    border-top: 1px solid var(--ph-darker);
    padding: var(--gap-md) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

.site-info {
    color: var(--ph-gray-darker);
    font-size: 12px;
}

.site-info a {
    color: var(--ph-gray-dark);
}

.site-info a:hover {
    color: var(--ph-orange);
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}

.footer-navigation a {
    color: var(--ph-gray-dark);
    font-size: 12px;
    transition: color var(--transition-fast);
}

.footer-navigation a:hover {
    color: var(--ph-orange);
}

/* ==========================================================================
   8. Scroll to Top - Pornhub Style
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--ph-orange);
    color: var(--ph-black);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 0.9;
    visibility: visible;
}

.scroll-to-top:hover {
    opacity: 1;
    background: var(--ph-orange-hover);
}

/* ==========================================================================
   9. Archive & Search Pages - Pornhub Style
   ========================================================================== */

.archive-header,
.search-header {
    margin: var(--gap-lg) 0;
    padding: 0 0 var(--gap-md);
    border-bottom: 3px solid var(--ph-orange);
}

.archive-title,
.search-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ph-white);
}

.archive-title span,
.search-title span {
    color: var(--ph-orange);
}

.archive-description,
.search-count {
    color: var(--ph-gray-dark);
    font-size: 14px;
}

/* No Results - Pornhub Style */
.no-results {
    text-align: center;
    padding: var(--gap-xl);
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    margin: var(--gap-lg) 0;
}

.no-results h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    color: var(--ph-orange);
}

.no-results p {
    color: var(--ph-gray);
    margin-bottom: var(--gap-lg);
}

/* Ad Zones - Pornhub Style */
.ad-zone {
    margin: var(--gap-lg) 0;
    text-align: center;
    padding: var(--gap-md);
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    border: 1px solid var(--ph-card);
}

/* ==========================================================================
   10. Responsive Design - Mobile First
   ========================================================================== */

@media (max-width: 1024px) {
    .single-video-layout {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .site-branding {
        order: 1;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 8px;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
        background: var(--ph-darker);
        margin-top: 8px;
        border-radius: var(--radius-sm);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--ph-card);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md) var(--gap-sm);
    }
    
    .video-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .video-meta-stats {
        font-size: 11px;
        gap: 8px;
    }
    
    .container {
        padding: 0 var(--gap-sm);
    }
    
    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }
    
    .video-grid {
        gap: var(--gap-sm);
    }
    
    .video-title {
        font-size: 12px;
        min-height: 33px;
    }
    
    .video-meta-stats {
        font-size: 10px;
        gap: 6px;
    }
    
    .video-duration {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .load-more-btn {
        padding: 10px 32px;
        font-size: 13px;
    }
    
    .single-video .video-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   11. Accessibility
   ========================================================================== */

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--ph-orange);
    outline-offset: 2px;
}

.skip-link:focus {
    clip: auto;
    height: auto;
    width: auto;
    position: fixed;
    top: 10px;
    left: 10px;
    background: var(--ph-orange);
    color: var(--ph-black);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   12. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .load-more-wrapper,
    .scroll-to-top,
    .ad-zone {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}


/* ==========================================================================
   13. Pagination - Pornhub Style
   ========================================================================== */

.pagination-wrapper {
    margin: var(--gap-xl) 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.pagination li {
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--ph-darker);
    color: var(--ph-white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--ph-orange);
    color: var(--ph-black);
}

.pagination .active span,
.pagination .current {
    background: var(--ph-orange);
    color: var(--ph-black);
    cursor: default;
}

.pagination .prev a,
.pagination .next a {
    padding: 0 16px;
}

.pagination .prev svg,
.pagination .next svg {
    width: 16px;
    height: 16px;
}

.pagination .dots {
    background: transparent;
    color: var(--ph-gray);
    cursor: default;
    pointer-events: none;
}

.pagination .dots:hover {
    background: transparent;
    color: var(--ph-gray);
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination .prev a,
    .pagination .next a {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pagination .prev a,
    .pagination .next a {
        padding: 0 10px;
    }
}


/* ==========================================================================
   14. Single Video Page - Optimized Layout
   ========================================================================== */

/* Video Title BEFORE Player */
.video-header-top {
    margin: 0 0 var(--gap-md);
    padding: var(--gap-md) 0;
    border-bottom: 2px solid var(--ph-card);
}

.video-header-top .video-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ph-white);
    margin: 0;
}

/* Video Meta Info AFTER Player - Single Location */
.video-meta-single {
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    margin: var(--gap-md) 0;
    border: 1px solid var(--ph-card);
}

.video-meta-single .meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-md);
}

.video-meta-single .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ph-gray);
    padding: var(--gap-sm);
    background: var(--ph-card);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.video-meta-single .meta-item:hover {
    background: var(--ph-darker);
    transform: translateY(-2px);
}

.video-meta-single .meta-item svg {
    flex-shrink: 0;
    color: var(--ph-orange);
}

.video-meta-single .meta-item strong {
    color: var(--ph-white);
    font-weight: 700;
    margin-right: 4px;
}

/* Hide old stats bar on single page */
.single-video .video-stats-bar {
    display: none;
}

/* Responsive - Single Video Page */
@media (max-width: 1024px) {
    .video-meta-single .meta-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-header-top .video-title {
        font-size: 22px;
    }
    
    .video-meta-single {
        padding: var(--gap-md);
    }
    
    .video-meta-single .meta-row {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
    }
    
    .video-meta-single .meta-item {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .video-header-top {
        padding: var(--gap-sm) 0;
    }
    
    .video-header-top .video-title {
        font-size: 18px;
    }
    
    .video-meta-single {
        padding: var(--gap-sm);
    }
    
    .video-meta-single .meta-item {
        font-size: 12px;
        padding: 8px;
        gap: 6px;
    }
    
    .video-meta-single .meta-item svg {
        width: 16px;
        height: 16px;
    }
}


/* ==========================================================================
   15. 404 Error Page - Pornhub Style
   ========================================================================== */

.error-404-content {
    padding: var(--gap-xl) 0;
}

.error-404-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--gap-xl);
    padding: var(--gap-xl);
    background: var(--ph-darker);
    border-radius: var(--radius-md);
    border: 2px solid var(--ph-card);
}

.error-404-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--ph-orange), var(--ph-orange-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--gap-sm);
}

.error-404-subtitle {
    font-size: 2rem;
    margin-bottom: var(--gap-md);
    color: var(--ph-white);
    font-weight: 700;
}

.error-404-text {
    color: var(--ph-gray);
    margin-bottom: var(--gap-lg);
    font-size: 15px;
    line-height: 1.6;
}

.error-404-search {
    margin-bottom: var(--gap-lg);
}

.error-404-search .search-form {
    max-width: 400px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--ph-orange);
    color: var(--ph-black);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--ph-orange-hover);
    color: var(--ph-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 144, 0, 0.4);
}

.btn-primary {
    background: var(--ph-orange);
    color: var(--ph-black);
}

.btn-secondary {
    background: var(--ph-darker);
    color: var(--ph-white);
}

.btn-secondary:hover {
    background: var(--ph-card);
    color: var(--ph-white);
}

.error-404-actions {
    margin-top: var(--gap-md);
}

.error-404-videos {
    margin-top: var(--gap-xl);
}

.error-404-videos h3 {
    text-align: center;
    margin-bottom: var(--gap-lg);
    font-size: 1.5rem;
    color: var(--ph-white);
    font-weight: 700;
}

@media (max-width: 768px) {
    .error-404-title {
        font-size: 5rem;
    }
    
    .error-404-subtitle {
        font-size: 1.5rem;
    }
    
    .error-404-inner {
        padding: var(--gap-lg);
    }
}

@media (max-width: 480px) {
    .error-404-title {
        font-size: 4rem;
    }
    
    .error-404-subtitle {
        font-size: 1.25rem;
    }
    
    .error-404-text {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ==========================================================================
   16. Loading States & Animations
   ========================================================================== */

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ph-black);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.load-more-btn .btn-loader {
    display: inline-block;
    margin: 0 auto;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--ph-darker);
    border-top-color: var(--ph-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   17. Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==========================================================================
   18. Dark Mode Support (Already Dark by Default)
   ========================================================================== */

@media (prefers-color-scheme: light) {
    /* Keep dark theme even if user prefers light */
    /* This is an adult site, dark theme is standard */
}

/* ==========================================================================
   19. High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --ph-orange: #ffaa00;
        --ph-white: #ffffff;
        --ph-black: #000000;
    }
    
    .video-thumbnail-link img {
        border: 1px solid var(--ph-gray-darker);
    }
    
    a:focus,
    button:focus,
    input:focus {
        outline: 3px solid var(--ph-orange);
        outline-offset: 3px;
    }
}
