/* Modern Player Styles - Compatible Version */

/* صفحه اصلی */
.watch-modern-page {
    background: #f9fafb;
    min-height: 100vh;
}

.watch-modern-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Grid Layout */
.watch-modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .watch-modern-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* پلیر ویدیو */
.watch-modern-player {
    position: relative;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.watch-modern-player video {
    width: 100%;
    height: 100%;
    display: block;
}

/* عنوان */
.watch-modern-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin: 1.5rem 0 1rem;
}

@media (max-width: 768px) {
    .watch-modern-title {
        font-size: 1.5rem;
    }
}

/* آمار و دکمه‌های اکشن */
.watch-modern-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.watch-modern-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.watch-modern-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watch-modern-stat svg {
    width: 1.25rem;
    height: 1.25rem;
}

.watch-modern-stat-value {
    font-weight: 600;
}

/* دکمه‌های اکشن */
.watch-modern-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* باکس لایک/دیسلایک */
.watch-modern-like-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
}

.watch-modern-like-btn,
.watch-modern-dislike-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
    color: #374151;
}

.watch-modern-like-btn:hover,
.watch-modern-dislike-btn:hover {
    background: #e5e7eb;
}

.watch-modern-like-btn.active {
    background: #dbeafe;
    color: #2563eb;
}

.watch-modern-dislike-btn.active {
    background: #fee2e2;
    color: #dc2626;
}

.watch-modern-like-box .divider {
    width: 1px;
    height: 1.5rem;
    background: #d1d5db;
}

/* دکمه‌های دیگر */
.watch-modern-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
    text-decoration: none;
}

.watch-modern-action-btn:hover {
    background: #e5e7eb;
}

.watch-modern-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.watch-modern-action-btn.more {
    padding: 0.625rem;
}

/* باکس کانال */
.watch-modern-channel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.watch-modern-channel-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.watch-modern-channel-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

.watch-modern-channel-avatar:hover {
    border-color: #3b82f6;
}

.watch-modern-channel-details {
    flex: 1;
}

.watch-modern-channel-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.watch-modern-channel-name:hover {
    color: #2563eb;
}

.watch-modern-channel-name svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

.watch-modern-channel-subscribers {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* باکس توضیحات */
.watch-modern-description {
    background: #f3f4f6;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.watch-modern-description:hover {
    background: #e5e7eb;
}

.watch-modern-description-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.watch-modern-description-meta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.watch-modern-description-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.watch-modern-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.watch-modern-tag.primary {
    background: #dbeafe;
    color: #1e40af;
}

.watch-modern-tag.primary:hover {
    background: #bfdbfe;
}

.watch-modern-tag.secondary {
    background: #e9d5ff;
    color: #6b21a8;
}

.watch-modern-tag.secondary:hover {
    background: #d8b4fe;
}

.watch-modern-description-text {
    font-size: 0.875rem;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-modern-description.expanded .watch-modern-description-text {
    -webkit-line-clamp: unset;
}

.watch-modern-description-arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.watch-modern-description.expanded .watch-modern-description-arrow {
    transform: rotate(180deg);
}

/* Sidebar */
.watch-modern-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* تبلیغات Sidebar */
.watch-modern-ad {
    background: linear-gradient(135deg, #eff6ff 0%, #fae8ff 100%);
    border-radius: 0.75rem;
    padding: 1rem;
}

/* AutoPlay Toggle */
.watch-modern-autoplay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.watch-modern-autoplay-label {
    font-weight: 600;
    color: #111827;
}

/* Toggle Switch */
.watch-modern-toggle {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
}

.watch-modern-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.watch-modern-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 9999px;
}

.watch-modern-toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.watch-modern-toggle input:checked + .watch-modern-toggle-slider {
    background-color: #2563eb;
}

.watch-modern-toggle input:checked + .watch-modern-toggle-slider:before {
    transform: translateX(1.25rem);
}

/* عنوان بخش‌ها */
.watch-modern-section-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

/* کارت ویدیو */
.watch-modern-video-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.watch-modern-video-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.watch-modern-video-thumbnail {
    position: relative;
    width: 100%;
    height: 8rem;
    overflow: hidden;
}

.watch-modern-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-modern-video-info {
    padding: 0.75rem;
}

.watch-modern-video-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-modern-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.watch-modern-video-meta svg {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.25rem;
}

/* دکمه بارگذاری بیشتر */
.watch-modern-load-more {
    width: 100%;
    margin-top: 1rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.watch-modern-load-more:hover {
    background: #e5e7eb;
}

.watch-modern-load-more svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* انیمیشن چرخش */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Badge ها */
.watch-modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.watch-modern-badge.private {
    background: #fef3c7;
    color: #92400e;
}

.watch-modern-badge.unlisted {
    background: #f3f4f6;
    color: #374151;
}

.watch-modern-badge svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .watch-modern-container {
        padding: 1rem 0.5rem;
    }
    
    .watch-modern-stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .watch-modern-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .watch-modern-channel {
        flex-direction: column;
    }
}

/* Dark elements */
.watch-modern-player-processing {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
}

.watch-modern-processing-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.watch-modern-processing-content svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.watch-modern-processing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

