/*
Theme Name: Viet69 Clone
Description: A WordPress theme inspired by viet69.my structure for video content
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

/* Header Styles */
#header {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    padding: 15px 0;
    border-bottom: 2px solid #333;
    position: relative;
}

#logo {
    text-align: center;
    margin-bottom: 20px;
}

#logo .custom-logo {
    max-width: 120px;
    height: auto;
}

/* Navigation */
#primary-nav {
    background: #2a2a2a;
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
}

#primary-nav .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#primary-nav .menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#primary-nav .menu li a:hover {
    background: #be262d;
    color: #fff;
}

/* Alert Section */
.v69-alert {
    background: #1e1e1e;
    color: #eee;
    padding: 10px;
    border-radius: 6px;
    max-width: 900px;
    margin: 10px auto;
    text-align: center;
    font-size: 14px;
}

.v69-alert strong {
    color: #fff;
}

.v69-alert a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.v69-alert a:hover {
    color: #f90;
}

/* Search Box */
#search-box {
    text-align: center;
    margin: 20px 0;
}

.timkiem {
    display: inline-flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 25px;
    padding: 5px;
    max-width: 500px;
    width: 100%;
}

.timkiem .icon-search {
    color: #be262d;
    margin: 0 10px;
}

.searchTxt {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    outline: none;
    font-size: 14px;
}

.searchTxt::placeholder {
    color: #999;
}

.searchBtn {
    background: #be262d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.searchBtn:hover {
    background: #a01e24;
}

/* Container */
#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Title */
#page-title {
    color: #be262d;
    font-size: 24px;
    margin: 20px 0;
    text-align: center;
}

/* Video Flexbox Layout - Optimized for 30 videos per page */
#video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
}

/* Video item flex basis for different screen sizes */
.video-item {
    flex: 0 0 calc(16.666% - 13px); /* 6 items per row on large screens */
    max-width: calc(16.666% - 13px);
}

@media (min-width: 1200px) {
    .video-item {
        flex: 0 0 calc(16.666% - 17px); /* 6 items per row */
        max-width: calc(16.666% - 17px);
    }
    #video-list {
        gap: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .video-item {
        flex: 0 0 calc(20% - 15px); /* 5 items per row */
        max-width: calc(20% - 15px);
    }
    #video-list {
        gap: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .video-item {
        flex: 0 0 calc(25% - 12px); /* 4 items per row */
        max-width: calc(25% - 12px);
    }
    #video-list {
        gap: 15px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .video-item {
        flex: 0 0 calc(50% - 8px); /* 2 items per row */
        max-width: calc(50% - 8px);
    }
    #video-list {
        gap: 12px;
    }
}

@media (max-width: 479px) {
    .video-item {
        flex: 0 0 calc(50% - 4px); /* 2 items per row on mobile */
        max-width: calc(50% - 4px);
    }
    #video-list {
        gap: 8px;
    }
}

.video-item {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(190, 38, 45, 0.3);
    border-color: rgba(190, 38, 45, 0.5);
}

.video-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) saturate(1.1);
}

.video-item:hover .video-image {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.2);
}

.ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(190, 38, 45, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-name {
    padding: 20px;
    background: linear-gradient(180deg, rgba(42,42,42,0.95), rgba(31,31,31,0.98));
    position: relative;
    z-index: 2;
}

.video-name a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.video-name a:hover {
    color: #be262d;
    text-shadow: 0 1px 4px rgba(190, 38, 45, 0.3);
}

/* Add play button overlay */
.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    border: 3px solid rgba(255,255,255,0.2);
}

.video-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Add gradient overlay */
.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(190, 38, 45, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.video-item:hover::before {
    opacity: 1;
}

/* Add subtle animation */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.video-item:nth-child(odd) {
    animation: cardFloat 6s ease-in-out infinite;
}

.video-item:nth-child(even) {
    animation: cardFloat 6s ease-in-out infinite 3s;
}

/* Search Form Styles */
.timkiem {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 25px;
    padding: 8px 15px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.timkiem:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(190, 38, 45, 0.3);
}

.timkiem:focus-within {
    box-shadow: 0 6px 20px rgba(190, 38, 45, 0.2);
    border-color: rgba(190, 38, 45, 0.5);
}

.icon-search {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.icon-search img {
    width: 20px;
    height: 20px;
    filter: brightness(0.8);
}

.searchTxt {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
    font-family: inherit;
}

.searchTxt::placeholder {
    color: #888;
    font-style: italic;
}

.searchBtn {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.searchBtn:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 38, 45, 0.4);
}

.searchBtn:active {
    transform: translateY(0);
}

/* Mobile search form */
@media (max-width: 768px) {
    .timkiem {
        margin: 15px 10px;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .searchTxt {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .searchBtn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 15px;
    }
    
    .icon-search img {
        width: 18px;
        height: 18px;
    }
}

/* VLXX Ticker Banner Styles */
.vlxx-ticker-link {
    display: block;
    text-decoration: none;
    margin: 10px auto;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #be262d, #d32f2f);
    box-shadow: 0 4px 15px rgba(190, 38, 45, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.vlxx-ticker {
    position: relative;
    height: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #be262d, #d32f2f);
}

.vlxx-ticker__track {
    display: flex;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.vlxx-ticker__item {
    flex-shrink: 0;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-width: 100%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vlxx-ticker__item .brand {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.vlxx-ticker-link:hover .vlxx-ticker__track {
    animation-play-state: paused;
}

.vlxx-ticker-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 38, 45, 0.4);
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Mobile ticker */
@media (max-width: 768px) {
    .vlxx-ticker {
        height: 35px;
    }
    
    .vlxx-ticker__item {
        font-size: 12px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .vlxx-ticker {
        height: 30px;
    }
    
    .vlxx-ticker__item {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Navigation Menu Styles */
#primary-nav {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 8px;
    margin: 15px auto;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

#primary-nav .menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

#primary-nav .menu li {
    margin: 0;
    padding: 0;
}

#primary-nav .menu li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
    white-space: nowrap;
}

#primary-nav .menu li:last-child a {
    border-right: none;
}

#primary-nav .menu li a:hover {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 38, 45, 0.3);
}

#primary-nav .menu li a i {
    margin-right: 4px;
    font-size: 10px;
    width: 12px;
    text-align: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        margin: 10px auto;
    }
    
    #primary-nav .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    #primary-nav .menu.active,
    #primary-nav .menu.mobile-open {
        display: flex;
    }
    
    #primary-nav .menu li {
        width: 100%;
    }
    
    #primary-nav .menu li a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        justify-content: flex-start;
        padding: 10px 15px;
        font-size: 11px;
    }
    
    #primary-nav .menu li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    #primary-nav .menu li a {
        font-size: 10px;
        padding: 8px 12px;
    }
    
    #primary-nav .menu li a i {
        font-size: 9px;
        width: 10px;
    }
}

/* Footer Styles */
#footer {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    color: #dadada;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner .page-header {
    color: #be262d;
    font-size: 18px;
    margin: 20px 0 15px 0;
    border-bottom: 2px solid #be262d;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-inner .page-header i {
    margin-right: 8px;
    font-size: 16px;
}

.search-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.search-history a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.search-history a:hover {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 38, 45, 0.4);
}

.search-history a i {
    margin-right: 4px;
    font-size: 10px;
}

.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
}

.tag-cloud-link {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    color: #dadada;
    text-decoration: none;
    border-radius: 15px;
    font-size: 11px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.tag-cloud-link:hover {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(190, 38, 45, 0.3);
}

.footer-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-description strong {
    color: #be262d;
    font-weight: bold;
}

.footer-description em {
    color: #fff;
    font-style: italic;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
}

.footer-copy strong {
    color: #be262d;
    font-weight: bold;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-inner {
        padding: 0 15px;
    }
    
    .footer-inner .page-header {
        font-size: 16px;
        margin: 15px 0 10px 0;
    }
    
    .search-history {
        gap: 6px;
    }
    
    .search-history a {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .wp-block-tag-cloud {
        gap: 4px;
    }
    
    .tag-cloud-link {
        padding: 3px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .search-history a {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .tag-cloud-link {
        padding: 2px 6px;
        font-size: 9px;
    }
}

/* Pagination */
.pagenavi {
    text-align: center;
    margin: 30px 0;
}

.pagenavi span,
.pagenavi a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagenavi span.active {
    background: #be262d;
}

.pagenavi a:hover {
    background: #be262d;
}

/* Footer */
#footer {
    background: #1a1a1a;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 2px solid #333;
}

.page-header {
    color: #be262d;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.search-history {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.search-history a {
    background: #2a2a2a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.search-history a:hover {
    background: #be262d;
}

.footer-wrap {
    text-align: center;
    color: #dadada;
    font-size: 12px;
    opacity: 0.8;
}

/* Grid layout for search-history tag block with id tbkey */
.search-history#tbkey {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.search-history#tbkey a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-history#tbkey a i {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .search-history#tbkey {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .search-history#tbkey {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
    .search-history#tbkey a {
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 12px;
    }
}

/* Grid layout for WP core tag cloud rendered as search-history */
.search-history.wp-block-tag-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.search-history.wp-block-tag-cloud .tag-cloud-link {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .search-history.wp-block-tag-cloud {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .search-history.wp-block-tag-cloud {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 6px;
    }
    .search-history.wp-block-tag-cloud .tag-cloud-link {
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 12px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #be262d;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px auto;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header - Single Compact Section */
    #header {
        padding: 5px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    }
    
    /* Mobile header layout - everything in one compact section */
    #header > * {
        margin-bottom: 3px;
    }
    
    #header > *:last-child {
        margin-bottom: 0;
    }
    
    /* Logo compact */
    #logo {
        margin-bottom: 5px;
        text-align: center;
    }
    
    #logo .custom-logo {
        max-width: 80px;
        height: auto;
    }
    
    /* Navigation integrated */
    #primary-nav {
        padding: 0;
        margin-bottom: 0;
        background: transparent;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin: 5px auto;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #primary-nav .menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: #2a2a2a;
        padding: 10px 0;
        margin-top: 5px;
        border-radius: 6px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    #primary-nav .menu.mobile-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    #primary-nav .menu li {
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
    
    #primary-nav .menu li a {
        display: block;
        padding: 8px 15px;
        margin: 0;
        border-radius: 4px;
        width: 90%;
        margin: 0 auto;
        font-size: 14px;
    }
    
    /* Search box integrated into header */
    #search-box {
        margin: 5px 0;
        padding: 0 10px;
    }
    
    .timkiem {
        max-width: 100%;
        margin: 0;
        padding: 2px;
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .searchTxt {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .searchBtn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Alert integrated into header */
    .v69-alert {
        margin: 3px 10px;
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    /* Container and content */
    #container {
        padding: 0 5px;
    }
    
    #page-title {
        font-size: 18px;
        margin: 10px 0;
    }
    
    #video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 10px 0;
    }
    
    .video-item {
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0,0,0,0.4);
        background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .video-item:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 2px rgba(190, 38, 45, 0.4);
    }
    
    .video-image {
        height: 200px;
        filter: brightness(0.95) saturate(1.1);
    }
    
    .video-item:hover .video-image {
        transform: scale(1.05);
        filter: brightness(1.05) saturate(1.2);
    }
    
    .video-name {
        padding: 18px;
        background: linear-gradient(180deg, rgba(42,42,42,0.98), rgba(26,26,26,1));
    }
    
    .video-name a {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    }
    
    .ribbon {
        padding: 6px 10px;
        font-size: 11px;
        top: 10px;
        right: 10px;
        border-radius: 15px;
        box-shadow: 0 2px 6px rgba(190, 38, 45, 0.5);
    }
    
    /* Mobile play button - smaller and more touch-friendly */
    .video-item::after {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    /* Mobile gradient overlay - more subtle */
    .video-item::before {
        background: linear-gradient(45deg, transparent 40%, rgba(190, 38, 45, 0.08) 100%);
    }
    
    .video-image {
        height: 140px;
    }
    
    .video-name {
        padding: 8px;
    }
    
    .video-name a {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Footer optimization */
    .search-history {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin: 15px 0;
    }
    
    .search-history a {
        display: block;
        width: 100%;
        text-align: center;
        margin: 2px 0;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .footer-wrap {
        padding: 0 10px;
    }
    
    .pagenavi {
        margin: 15px 5px;
    }
    
    .pagenavi span,
    .pagenavi a {
        padding: 5px 8px;
        margin: 0 2px;
        font-size: 13px;
    }
    
    .page-header {
        font-size: 16px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    /* Ultra compact mobile header - Single section */
    #header {
        padding: 3px 0;
    }
    
    #logo {
        margin-bottom: 3px;
    }
    
    #logo .custom-logo {
        max-width: 60px;
    }
    
    #primary-nav {
        padding: 0;
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle {
        padding: 4px 8px;
        font-size: 11px;
        margin: 2px auto;
    }
    
    #primary-nav .menu {
        padding: 8px 0;
        margin-top: 3px;
    }
    
    #primary-nav .menu li a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Search integrated into compact header */
    #search-box {
        margin: 3px 0;
        padding: 0 5px;
    }
    
    .timkiem {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        border-radius: 6px;
        padding: 4px 6px;
        margin: 0 5px;
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .searchTxt {
        padding: 8px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-width: 0;
    }
    
    .searchBtn {
        border-radius: 4px;
        margin-top: 0;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Alert ultra compact */
    .v69-alert {
        font-size: 9px;
        padding: 3px 6px;
        margin: 2px 5px;
        border-radius: 3px;
    }
    
    /* Content optimization */
    #container {
        padding: 0 3px;
    }
    
    #page-title {
        font-size: 16px;
        margin: 8px 0;
    }
    
    #video-list {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 8px 0;
    }
    
    .video-item {
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.3);
        background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
        border: 1px solid rgba(255,255,255,0.08);
    }
    
    .video-item:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 1px rgba(190, 38, 45, 0.3);
    }
    
    .video-image {
        height: 160px;
        filter: brightness(0.9) saturate(1.05);
    }
    
    .video-item:hover .video-image {
        transform: scale(1.03);
        filter: brightness(1) saturate(1.1);
    }
    
    .video-name {
        padding: 16px;
        background: linear-gradient(180deg, rgba(42,42,42,0.98), rgba(26,26,26,1));
    }
    
    .video-name a {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    }
    
    .ribbon {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
        right: 8px;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(190, 38, 45, 0.4);
    }
    
    /* Small mobile play button */
    .video-item::after {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border: 2px solid rgba(255,255,255,0.25);
    }
    
    /* Small mobile gradient overlay */
    .video-item::before {
        background: linear-gradient(45deg, transparent 50%, rgba(190, 38, 45, 0.05) 100%);
    }
    
    .video-image {
        height: 120px;
    }
    
    .video-name {
        padding: 6px;
    }
    
    .video-name a {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .ribbon {
        top: 5px;
        right: 5px;
        padding: 2px 6px;
        font-size: 10px;
    }
    
    /* Footer compact */
    .search-history {
        margin: 10px 0;
        gap: 3px;
    }
    
    .search-history a {
        font-size: 11px;
        padding: 4px 8px;
        margin: 1px 0;
    }
    
    .footer-wrap {
        padding: 0 5px;
    }
    
    .page-header {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .pagenavi {
        margin: 10px 3px;
    }
    
    .pagenavi span,
    .pagenavi a {
        padding: 4px 6px;
        margin: 0 1px;
        font-size: 12px;
    }
}

/* Video Player Styles */
.video-player {
    margin: 20px 0;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Video Content Section */
.video-content {
    margin: 20px 0;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-description {
    margin: 15px 0;
    line-height: 1.6;
    color: #ddd;
}

.video-description p {
    margin: 10px 0;
}

.video-tags {
    margin: 15px 0;
}

.actress-tag {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.actress-tag:last-child {
    border-bottom: none;
}

.actress-tag i {
    margin-right: 8px;
    width: 16px;
    display: inline-block;
}

.actress-tag a {
    color: #be262d;
    text-decoration: none;
    margin-right: 5px;
    padding: 2px 6px;
    background: #1a1a1a;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.actress-tag a:hover {
    background: #be262d;
    color: #fff;
}

.page-header {
    color: #be262d;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
}

.page-header i {
    margin-right: 8px;
    font-size: 18px;
}

/* Comments Section */
#comments {
    margin: 20px 0;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.comments {
    margin: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.total {
    color: #be262d;
    font-weight: bold;
    font-size: 16px;
}

.sort-by {
    position: relative;
    display: inline-block;
}

.sort-by > a {
    color: #ddd;
    text-decoration: none;
    padding: 5px 10px;
    background: #1a1a1a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-by > a:hover {
    background: #333;
}

.options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    min-width: 120px;
}

.options a {
    display: block;
    padding: 8px 15px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.options a:last-child {
    border-bottom: none;
}

.options a:hover,
.options a.active {
    background: #be262d;
    color: #fff;
}

.comment-content {
    margin-bottom: 20px;
}

.comment-placeholder-content {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    font-size: 14px;
    cursor: pointer;
}

.comment-placeholder-content:focus {
    outline: none;
    border-color: #be262d;
}

.write-comment {
    background: #1a1a1a;
    border-radius: 5px;
    padding: 20px;
    margin-top: 10px;
}

.write-comment.hidden {
    display: none;
}

.comment-form {
    margin: 0;
}

.comment-form input[type="text"] {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    resize: vertical;
    font-family: inherit;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #be262d;
}

.post-button {
    background: #be262d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.post-button:hover {
    background: #a01e24;
}

.cancel-button {
    background: #666;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cancel-button:hover {
    background: #555;
}

.comments-wrapper {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 5px;
    border-left: 3px solid #be262d;
}

.comment-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

.comment-author {
    font-weight: bold;
    color: #be262d;
    font-size: 14px;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-text {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.comment-actions a:hover {
    color: #be262d;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 5px;
}

/* Pagination Styles */
.pagination,
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 5px;
    flex-wrap: wrap;
}

.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.page-numbers li {
    margin: 0;
    padding: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: #2a2a2a;
    color: #ddd;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.page-numbers a:hover {
    background: #be262d;
    color: #fff;
    border-color: #be262d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(190, 38, 45, 0.3);
}

.page-numbers .current {
    background: #be262d;
    color: #fff;
    border-color: #be262d;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(190, 38, 45, 0.3);
}

.page-numbers .prev,
.page-numbers .next {
    background: #1a1a1a;
    color: #be262d;
    border-color: #be262d;
    font-weight: bold;
    font-size: 16px;
    min-width: 50px;
}

.page-numbers .prev:hover,
.page-numbers .next:hover {
    background: #be262d;
    color: #fff;
    transform: translateY(-2px);
}

.page-numbers .dots {
    background: transparent;
    color: #999;
    border: none;
    cursor: default;
}

.page-numbers .dots:hover {
    background: transparent;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Pagination container */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 5px;
}

.pagination-wrapper {
    margin: 40px 0;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.page-numbers:hover::before {
    left: 100%;
}

.page-numbers:hover {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 38, 45, 0.4);
    border-color: rgba(190, 38, 45, 0.5);
}

.page-numbers.current {
    background: linear-gradient(135deg, #be262d, #d32f2f);
    color: #fff;
    box-shadow: 0 4px 15px rgba(190, 38, 45, 0.3);
    border-color: rgba(190, 38, 45, 0.6);
    font-weight: bold;
}

.page-numbers.current:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(190, 38, 45, 0.5);
}

.page-numbers.dots {
    background: transparent;
    color: #888;
    cursor: default;
    border: none;
    min-width: 20px;
    padding: 0 8px;
}

.page-numbers.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: auto;
}

.page-numbers.prev i,
.page-numbers.next i {
    margin: 0 4px;
    font-size: 12px;
}

.page-numbers.prev {
    margin-right: 12px;
}

.page-numbers.next {
    margin-left: 12px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mobile responsive for pagination */
@media (max-width: 768px) {
    .pagination,
    .page-numbers,
    .nav-links {
        margin: 20px 0;
        gap: 3px;
    }
    
    .page-numbers a,
    .page-numbers span {
        min-width: 35px;
        height: 35px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .page-numbers .prev,
    .page-numbers .next {
        min-width: 40px;
        font-size: 14px;
    }
    
    .page-numbers .dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-numbers a,
    .page-numbers span {
        min-width: 30px;
        height: 30px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .page-numbers .prev,
    .page-numbers .next {
        min-width: 35px;
        font-size: 12px;
    }
}

/* Mobile responsive for comments */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comment-actions {
        flex-wrap: wrap;
    }
}

.video-embed iframe {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-player video {
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-player p {
    margin: 10px 0;
    text-align: center;
}

.video-player a {
    color: #be262d;
    text-decoration: none;
    font-weight: bold;
}

.video-player a:hover {
    color: #a01e24;
    text-decoration: underline;
}

/* Video fallback styles */
.video-player .video-fallback {
    background: #1a1a1a;
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
}

.video-player .video-fallback a {
    display: inline-block;
    background: #be262d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.video-player .video-fallback a:hover {
    background: #a01e24;
}

/* Touch improvements for mobile */
@media (max-width: 768px) {
    .video-item {
        transition: transform 0.2s ease;
    }
    
    .video-item:active {
        transform: scale(0.98);
    }
    
    .searchBtn:active,
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Improve touch targets */
    #primary-nav .menu li a,
    .search-history a,
    .pagenavi a,
    .pagenavi span {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile video player */
    .video-player {
        margin: 10px 0;
        padding: 5px;
    }
    
    .video-embed iframe,
    .video-player video {
        height: 250px;
    }
}

/* Enhanced Mobile Pagination */
@media (max-width: 768px) {
    .nav-links {
        gap: 4px;
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .page-numbers.prev {
        margin-right: 8px;
    }
    
    .page-numbers.next {
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 3px;
        padding: 8px 12px;
    }
    
    .page-numbers {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        padding: 0 6px;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 10px;
        font-size: 11px;
    }
    
    .page-numbers.prev {
        margin-right: 6px;
    }
    
    .page-numbers.next {
        margin-left: 6px;
    }
}
