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

/* Page transition animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* New animations for category cards */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes cardClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes tagEntrance {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tagHover {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes tagClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Age Verification Modal */
.age-verification-modal {
    display: flex; /* Changed from 'none' to 'flex' to show by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.age-verification-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border: 2px solid #ff9000;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 144, 0, 0.4);
    position: relative;
    animation: bounceIn 0.5s ease-out;
    transform-origin: center;
}

.age-verification-content h2 {
    color: #ff9000;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.5);
}

.age-verification-content p {
    color: #f0f0f0;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}

.age-verification-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.age-verification-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.age-verification-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Loading Indicator */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #ff9000;
    font-size: 18px;
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

.loading-message::after {
    content: "";
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* Error and No Videos Messages */
.error-message, .no-videos-message, .no-results {
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-out;
}

.no-results h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.no-results p {
    color: #aaa;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #222222 0%, #1a1a1a 100%);
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo h1 a {
    color: #ff9000;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.5);
    transition: all 0.3s ease;
}

.logo h1 a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 144, 0, 0.8);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #ccc;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ff9000;
    background: rgba(255, 144, 0, 0.1);
    transform: translateY(-2px);
}

.search-bar {
    display: flex;
    background: #333;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-bar:hover {
    border-color: #ff9000;
    box-shadow: 0 0 15px rgba(255, 144, 0, 0.3);
    transform: translateY(-2px);
}

.search-bar input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    width: 200px;
    font-size: 14px;
}

.search-bar button {
    background: #ff9000;
    border: none;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.search-bar button:hover {
    background: #ff7700;
    transform: scale(1.1);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    padding: 40px 0;
    border-bottom: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.7s ease-out;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-icon-large {
    font-size: 48px;
    color: #ff9000;
    background: rgba(255, 144, 0, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 144, 0, 0.3);
    animation: pulse 2s infinite;
}

.category-details h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #ff9000;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.5);
}

.category-details p {
    font-size: 18px;
    color: #ccc;
    max-width: 600px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

.section-header h2 {
    font-size: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.view-all {
    color: #ff9000;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 144, 0, 0.1);
    border: 1px solid rgba(255, 144, 0, 0.3);
}

.view-all:hover {
    color: #fff;
    background: #ff9000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 144, 0, 0.3);
}

.search-info {
    color: #aaa;
    font-size: 14px;
}

.search-info span {
    color: #ff9000;
    font-weight: 500;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.category-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    cursor: pointer;
    position: relative;
    animation: cardEntrance 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 25px rgba(255, 144, 0, 0.4);
    border-color: #ff9000;
    animation: cardHover 0.6s ease infinite;
}

.category-card.card-clicked {
    animation: cardClick 0.3s ease;
}

.category-icon {
    font-size: 36px;
    color: #ff9000;
    background: rgba(255, 144, 0, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 144, 0, 0.2);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 25px rgba(255, 144, 0, 0.4);
}

.category-card h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    color: #ff9000;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.5);
}

.category-card span {
    display: block;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.tag {
    background: linear-gradient(135deg, #333333 0%, #222222 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: tagEntrance 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.tag:hover {
    background: linear-gradient(135deg, #ff9000 0%, #ff7700 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 144, 0, 0.4);
    border-color: #ff9000;
    animation: tagHover 0.5s ease infinite;
}

.tag.tag-clicked {
    animation: tagClick 0.3s ease;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.video-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    position: relative;
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: backwards;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 144, 0, 0.4);
    border-color: #ff9000;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-card:hover .video-duration {
    background: #ff9000;
    transform: scale(1.1);
}

.no-thumbnail {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: 18px;
    animation: pulse 2s infinite;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.video-card:hover .video-title {
    color: #ff9000;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 13px;
}

.video-views, .video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 30px 0;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease-out;
}

.pagination button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #333333 0%, #222222 100%);
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 45px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9000 0%, #ff7700 100%);
    border-color: #ff9000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 144, 0, 0.4);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination button.active {
    background: linear-gradient(135deg, #ff9000 0%, #ff7700 100%);
    border-color: #ff9000;
    box-shadow: 0 0 15px rgba(255, 144, 0, 0.4);
    transform: scale(1.1);
}

.pagination-ellipsis {
    padding: 10px 5px;
    color: #aaa;
    font-size: 16px;
}

.pagination .page-info {
    color: #fff;
    font-size: 14px;
    margin: 0 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ff9000 0%, #ff7700 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff9000 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 144, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #333333 0%, #222222 100%);
    color: #fff;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    border-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    border-top: 2px solid #333;
    padding: 50px 0 30px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ff9000;
    margin-bottom: 20px;
    font-size: 22px;
    text-shadow: 0 0 10px rgba(255, 144, 0, 0.5);
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background: #ff9000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 144, 0, 0.4);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    transition: color 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #ff9000;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: "▶";
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination button {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .category-info {
        flex-direction: column;
        text-align: center;
    }
    
    .category-details h1 {
        font-size: 28px;
    }
    
    .category-details p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .age-verification-content {
        padding: 30px 20px;
    }
    
    .age-verification-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .category-icon-large {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
}