:root {
    --primary-color: #ff4d4d;
    --bg-dark: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Adult Modal */
.adult-modal {
    background: linear-gradient(135deg, #2a0000 0%, #1a0000 100%);
    border: 2px solid #ff0000;
    color: white;
}

.adult-modal .modal-header {
    border-bottom: 2px solid #ff4d4d;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.thumbnail-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.direct-link-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.video-title {
    font-size: 0.9rem;
    margin: 0.5rem;
    color: var(--text-light);
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.like-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: var(--primary-color);
}

.like-btn.liked {
    background: var(--primary-color);
}

.like-btn.liked i {
    color: white;
}

/* Ads Styling */
.ad-container {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    animation: adPulse 2s infinite;
}

@keyframes adPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.ad-button {
    background: linear-gradient(45deg, #ff4d4d, #ff0000);
    border: none;
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: buttonPulse 1.5s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Category Sidebar */
.category-sidebar {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 70px;
}

.sidebar-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.category-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Floating Telegram Button */
.telegram-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.telegram-float a {
    display: block;
    width: 50px;
    height: 50px;
    background: #0088cc;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.telegram-float a:hover {
    transform: scale(1.1);
}

/* Video Page Styles */
.video-player-container {
    background: black;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

video {
    width: 100%;
    max-height: 70vh;
}

.video-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* Watermark Animation */
.watermark {
    position: absolute;
    color: rgba(255,255,255,0.3);
    font-size: 2rem;
    pointer-events: none;
    animation: floatWatermark 10s infinite linear;
}

@keyframes floatWatermark {
    0% { transform: translate(0, 0); }
    25% { transform: translate(100px, 50px); }
    50% { transform: translate(200px, 100px); }
    75% { transform: translate(100px, 150px); }
    100% { transform: translate(0, 0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-title {
        font-size: 0.8rem;
    }
    
    .video-meta {
        font-size: 0.7rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add to your existing style.css */

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 75, 75, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255,75,75,0.5);
}

.video-card:hover .play-icon-small {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon-small i {
    color: white;
    font-size: 20px;
    margin-left: 2px;
}

/* Default thumbnail for videos without thumbnail */
.video-thumbnail-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Loading spinner for video page */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ff4d4d;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Add to your existing style.css */

/* Play button on thumbnails */
.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 75, 75, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255,75,75,0.5);
    z-index: 5;
}

.video-card:hover .play-icon-small {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon-small i {
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

/* Video duration badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

/* Direct link badge */
.direct-link-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d4d;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
}

/* Like button */
.like-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.like-btn:hover {
    background: #ff4d4d;
}

.like-btn.liked {
    background: #ff4d4d;
}

/* Video title */
.video-title {
    font-size: 14px;
    margin: 8px 5px 5px;
    color: #fff;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Video meta info */
.video-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 5px 8px;
    color: #999;
    font-size: 12px;
}

.video-meta i {
    margin-right: 3px;
}

/* Footer Styles */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 15px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff4d4d;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-links li {
        display: block;
        margin: 10px 0;
    }
}