/* Replicate the content from admin-style.css for the main frontend */
/* Iran Sans Font Import */
@font-face {
    font-family: 'Iran Sans';
    src: url('https://cdn.fontcdn.ir/Font/IranSans/IranSans.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Iran Sans';
    src: url('https://cdn.fontcdn.ir/Font/IranSans/IranSansBold.ttf') format('truetype');
    font-weight: bold;
}

/* RTL Support for Persian/Farsi */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] header .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] header nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .video-grid {
    direction: rtl;
}

[dir="rtl"] .video-card p {
    text-align: right;
}

[dir="rtl"] .stats {
    flex-direction: row-reverse;
}

/* Frontend Styles - Dark Mode */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Iran Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #e0e0e0;
}

header {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 350px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.search-section:focus-within {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    outline: none;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    border-bottom: 2px solid white;
}

.nav-link.register-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
}

.nav-link.register-btn:hover {
    background: #d32f2f;
    color: white;
}

.nav-link.admin-link {
    background: rgba(255,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-link.admin-link:hover {
    background: rgba(255,0,0,0.4);
    border-color: white;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #333333;
    font-size: 0.9rem;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: #2d2d2d;
    color: #667eea;
    padding-left: 2rem;
}

.dropdown-link.logout-link:hover {
    background: #b71c1c;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-section {
        max-width: 250px;
    }

    .navbar {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo-section {
        flex-basis: 100%;
    }

    .search-section {
        flex-basis: 100%;
        max-width: none;
    }

    .navbar {
        flex-basis: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .nav-link.register-btn {
        padding: 0.5rem 1rem;
    }
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #161616 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    border: 1px solid #2a2a2a;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.25), 0 0 30px rgba(211, 47, 47, 0.15);
    border-color: #d32f2f;
}

.video-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Video Thumbnail Section */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Video Overlay - Play Button & Duration */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
}

.video-card:hover .play-button {
    opacity: 1;
    transform: scale(1);
}

/* Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

/* Video Grid Container */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

/* Video Card - Modern Design */
.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 320px;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(211, 47, 47, 0.3);
    border-color: #d32f2f;
}

.video-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 48px;
    height: 48px;
    background: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background: #ff5555;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.6);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Video Preview Info - Shows on Hover */
.video-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7) 60%, transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-card:hover .video-preview {
    transform: translateY(0);
}

.preview-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 600;
}

.preview-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.85rem;
    color: #d0d0d0;
}

.view-count, .like-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Video Info Card - Below Thumbnail */
.video-info-card {
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #161616 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    border-top: 1px solid rgba(211, 47, 47, 0.1);
}

.video-card:hover .video-info-card {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
}

.video-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e8e8e8;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.video-card:hover .video-title {
    color: #d32f2f;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

.video-description {
    margin: 0;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #a0a0a0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    word-break: break-word;
    font-weight: 400;
}

.video-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #999;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-count-meta {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
}

.video-page {
    max-width: 1400px;
    margin: 0 auto;
}

.player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: 100%;
    aspect-ratio: 16 / 9;
}

.player-container video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Modern Video Header - Pornhub Style */
.video-header-modern {
    background: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333333;
}

.video-title-section {
    margin-bottom: 1rem;
}

.video-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-stats-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #b0b0b0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-separator {
    color: #666;
    margin: 0 0.25rem;
}

.like-btn-modern {
    background: #2d2d2d;
    border: 2px solid #404040;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-btn-modern:hover {
    background: #3d3d3d;
    border-color: #d32f2f;
    color: #d32f2f;
}

.like-btn-modern.liked {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Modern Tags */
.video-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tag-link-modern {
    display: inline-block;
    background: rgba(211, 47, 47, 0.15);
    color: #d32f2f;
    padding: 0.5rem 0.95rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(211, 47, 47, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.tag-link-modern:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* Modern Description */
.description-modern {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #333333;
}

footer {
    background: #0a0a0a;
    color: #b0b0b0;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #333333;
}

footer p {
    margin: 0;
}

/* Slider/Carousel Styles - Modern Polish */
.slider-container {
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.3);
}

.slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    height: 350px;
    display: flex;
    align-items: center;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    animation: slideZoomIn 0.8s ease-out forwards;
}

@keyframes slideZoomIn {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.slide.active .slide-image {
    animation: imageZoom 8s ease-in-out infinite;
}

@keyframes imageZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Gradient Overlay */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

.slide-title {
    position: absolute;
    bottom: 30px;
    left: 40px;
    background: rgba(211, 47, 47, 0.95);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    max-width: 50%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 3;
    animation: titleSlideUp 0.8s ease-out 0.2s backwards;
    letter-spacing: 0.5px;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(211, 47, 47, 0.85);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.slider-btn:hover {
    background: rgba(211, 47, 47, 1);
    transform: translateY(-50%) scale(1.15);
    border-color: white;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
}

.slider-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 25px;
}

.next-btn {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.dot.active {
    background: #d32f2f;
    width: 40px;
    border-radius: 8px;
    border-color: #ff5555;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
}

/* Auto-play Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f 0%, #ff5555 100%);
    animation: progressBar 5s linear infinite;
    z-index: 11;
}

.slide:not(.active) ~ .slider-progress {
    animation: none;
    width: 0;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 250px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .slide-title {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        bottom: 20px;
        left: 20px;
        max-width: 75%;
        border-radius: 6px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 0.6rem;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .dot.active {
        width: 32px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    main {
        padding: 0 1rem;
    }

    header .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    header nav {
        width: 100%;
        justify-content: space-around;
    }
}

/* Modern Comments Section - Pornhub Style */
.comments-section-modern {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.comment-form-modern {
    background: transparent;
    padding: 0 0 2rem 0;
    border-bottom: 1px solid #333333;
    margin-bottom: 2rem;
}

.comment-form-modern textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #404040;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Iran Sans', 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100px;
    resize: vertical;
    transition: all 0.3s;
}

.comment-form-modern textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.btn-post-comment {
    background: #d32f2f;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-post-comment:hover {
    background: #b71c1c;
}

.comment-pending-msg {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
}

.login-to-comment-prompt {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
    border: 1px solid #333333;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item-modern {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.comment-item-modern:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-left {
    flex-shrink: 0;
}

.comment-avatar-link {
    display: block;
    text-decoration: none;
}

.comment-avatar-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d32f2f;
    transition: all 0.3s;
}

.comment-avatar-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.4);
}

.comment-avatar-default-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d32f2f, #ff5555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #d32f2f;
}

.comment-right {
    flex: 1;
}

.comment-header-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-username {
    font-weight: 700;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.comment-username:hover {
    color: #d32f2f;
}

.comment-date-modern {
    color: #888;
    font-size: 0.85rem;
}

.comment-text-modern {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    word-break: break-word;
}

.like-dislike-section {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
}

.like-dislike-section-top {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.like-dislike-container {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 25px;
    padding: 0;
    border: none;
    gap: 0.5rem;
}

.like-dislike-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Iran Sans', 'Segoe UI', sans-serif;
    position: relative;
}

.like-dislike-btn:hover {
    color: #e0e0e0;
    background: transparent;
}

.like-dislike-btn.active {
    color: #d32f2f;
}

.icon-thumb {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-emoji {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-badge {
    font-size: 0.85rem;
    color: inherit;
    min-width: 30px;
    text-align: center;
}

.separator {
    width: 1px;
    height: 24px;
    background: #333333;
    margin: 0 0.25rem;
}

.like-btn-youtube {
    color: #b0b0b0;
}

.like-btn-youtube.active {
    color: #d32f2f;
    background: transparent;
}

.dislike-btn-youtube {
    color: #b0b0b0;
}

.dislike-btn-youtube.active {
    color: #d32f2f;
}

@media (max-width: 768px) {
    .like-dislike-container {
        padding: 0.4rem 0.4rem;
    }

    .like-dislike-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .icon-thumb {
        width: 18px;
        height: 18px;
    }

    .btn-text {
        display: none;
    }
}

/* Mobile Responsive - Video Cards */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .video-card {
        height: 280px;
    }

    .video-title {
        font-size: 0.85rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin: 0;
    }

    .video-description {
        padding: 0.8rem 0;
        font-size: 0.7rem;
        line-height: 1.2;
        -webkit-line-clamp: 1;
    }

    .video-meta {
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .video-info-card {
        padding: 0.6rem;
        gap: 0.2rem;
    }

    .preview-title {
        font-size: 0.85rem;
        margin: 0 0 0.5rem;
    }

    .preview-stats {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .video-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .video-card {
        height: 260px;
    }

    .video-title {
        font-size: 0.8rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .video-description {
        padding: 0.6rem 0;
        font-size: 0.65rem;
        line-height: 1.1;
        -webkit-line-clamp: 1;
    }

    .video-meta {
        font-size: 0.65rem;
    }

    .video-info-card {
        padding: 0.5rem;
        gap: 0.15rem;
    }

    .video-card:hover {
        transform: translateY(-2px) scale(1);
    }
}
