:root {
    --primary-color: #ff4081;
    --background-color: #121212;
    --text-color: #ffffff;
    --card-background: #1e1e1e;
    --hover-color: #ff6699;
    --secondary-background: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin-top: 80px; /* Add this instead of padding-top */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--card-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main.container {
    margin-top: 90px; /* Just slightly more than header height */
    padding: 0 20px;
}

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

.logo img {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

nav a i {
    font-size: 1.1rem;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    main.container {
        margin-top: 130px;
    }
    
    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1; /* Add this to ensure it stays above other elements */
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 1.5rem;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em; /* Approximately 2 lines of text */
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1;
    color: white;
    text-transform: capitalize;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results p {
    color: #888;
    font-size: 1.1rem;
}

/* Video Page Styles */
.video-container {
    margin-bottom: 2rem;
    position: relative; /* Add this */
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000; /* Add this for better loading appearance */
}

.video-container .duration-badge {
    position: absolute;
    right: 20px;  /* Adjust this value as needed */
    bottom: 70px; /* Adjust this to position above the video controls */
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 2;
    color: white;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    background: linear-gradient(to bottom, var(--card-background), var(--secondary-background));
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.video-info h1 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.9rem;
    align-items: center;
}

.meta-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Tags Styles */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tag:hover {
    transform: translateY(-2px);
}

/* Related Videos Section */
h2 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
}

.letter-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.letter-link:hover,
.letter-link.active {
    background: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .letter-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

.section {
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.popular-section .section-title {
    margin-top: 0;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 2rem;
    }
    
    .popular-section {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Footer Styles */
/* Footer Styles */
footer {
    background-color: var(--card-background);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legal-notice {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    text-align: center;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

/* Static Pages Styles */
.static-page {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.static-page h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-page section {
    margin-bottom: 2rem;
}

.static-page h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.static-page p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.static-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.static-page li {
    margin-bottom: 0.5rem;
}

/* Add to your existing CSS */
.touch-device .card:hover {
    transform: none; /* Disable hover effect on touch devices */
}

.touch-device .play-overlay {
    opacity: 0.7; /* Always show play button on touch devices */
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-link:hover:not(.current, .disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.page-link.current {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link.prev,
.page-link.next {
    font-size: 0.8rem;
}

.dots {
    color: var(--text-color);
    padding: 0 5px;
}

/* Results count */
.results-info {
    text-align: center;
    color: #888;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .video-info h1 {
        font-size: 1.5rem;
    }

    .meta-info {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 10px;
    }
}

/* Views Counter */
.views-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
}


/* Text Logo Styles */
.text-logo {
    display: flex;
    align-items: center;
}

.text-logo::before {
    content: "\f21e"; /* Heartbeat */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.6rem;
    margin-right: 0.5rem;
    color: #f44336;
}

.logo {
    text-decoration: none; /* Removes the underline */
}

.domain-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary-color), var(--hover-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.2rem 0;
}

/* Two-word styling */
.domain-first-word {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary-color), var(--hover-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.2rem 0;
}

.domain-second-word {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
    padding: 0.2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .domain-name, .domain-first-word, .domain-second-word {
        font-size: 1.5rem;
    }
    
    .text-logo::before {
        font-size: 1.4rem;
    }
}


/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}