/* ═══════════════════════════════════════════════════════════
   رادیک وب — استایل صفحه جزئیات ویدئو
   فایل: assets/css/video_detail.css
   پیشوند: rw-vd-
   ═══════════════════════════════════════════════════════════ */

.rw-vd-section,
.rw-vd-section * {
    box-sizing: border-box;
}

.rw-vd-section {
    padding: 30px 0 55px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    min-height: 60vh;
    direction: rtl;
    transition: background 0.3s ease;
}

.rw-vd-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ Breadcrumb ═══ */
.rw-vd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    color: var(--rw-muted, #6B7280) !important;
    margin-bottom: 22px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.rw-vd-breadcrumb i {
    font-size: 10px;
    color: #CBD5E1 !important;
}
.rw-vd-breadcrumb a {
    color: var(--rw-primary, #2563EB) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.rw-vd-breadcrumb a:hover {
    opacity: 0.75;
}
.rw-vd-breadcrumb a i {
    margin-left: 4px;
    color: inherit !important;
}
.rw-vd-breadcrumb span {
    color: var(--rw-text, #1F2937) !important;
    font-weight: 700;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══ Layout دو ستونه ═══ */
.rw-vd-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   ستون اصلی
   ═══════════════════════════════════════════════════════════ */
.rw-vd-main {
    min-width: 0;
}

/* ═══ پلیر ═══ */
.rw-vd-player-wrap {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 22px;
}
.rw-vd-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #0F172A);
}
.rw-vd-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.rw-vd-player:hover .rw-vd-player-cover {
    transform: scale(1.03);
}
.rw-vd-player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.rw-vd-player:hover .rw-vd-player-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(0, 0, 0, 0.4));
}
.rw-vd-play-btn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.rw-vd-play-btn i {
    line-height: 1;
    margin-right: -4px;
    color: inherit !important;
}
.rw-vd-player:hover .rw-vd-play-btn {
    transform: scale(1.12);
    background: var(--rw-primary, #2563EB);
    color: #fff !important;
}
.rw-vd-player:hover .rw-vd-play-btn i {
    color: #fff !important;
}

/* ═══ هدر (عنوان + متا) ═══ */
.rw-vd-header {
    background: var(--rw-card-bg, #fff);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.rw-vd-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0 0 14px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.rw-vd-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    color: var(--rw-muted, #64748B) !important;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.rw-vd-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rw-vd-meta i {
    font-size: 13px;
    opacity: 0.7;
    color: inherit !important;
}
.rw-vd-source {
    padding: 3px 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}
.rw-vd-source i {
    color: var(--rw-primary) !important;
}
.rw-vd-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    color: #fff !important;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}
.rw-vd-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.rw-vd-cat i {
    font-size: 12px;
    color: #fff !important;
}

/* ═══ توضیحات ═══ */
.rw-vd-desc-box {
    background: var(--rw-card-bg, #fff);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.rw-vd-desc-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0 0 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.rw-vd-desc-title i {
    font-size: 18px;
    color: var(--rw-primary, #2563EB) !important;
}
.rw-vd-desc-content {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    color: var(--rw-text, #374151) !important;
    line-height: 2;
    text-align: justify;
}

/* ═══ دکمه بازگشت ═══ */
.rw-vd-back {
    text-align: center;
    margin-top: 10px;
}
.rw-vd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    color: var(--rw-text, #4B5563) !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.rw-vd-back-btn:hover {
    border-color: var(--rw-primary);
    color: var(--rw-primary) !important;
    transform: translateX(-3px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}
.rw-vd-back-btn i {
    font-size: 13px;
    color: inherit !important;
}

/* ═══════════════════════════════════════════════════════════
   ستون کنار
   ═══════════════════════════════════════════════════════════ */
.rw-vd-sidebar {
    min-width: 0;
    position: sticky;
    top: 90px;
}

/* ═══ ویدئوهای مرتبط ═══ */
.rw-vd-related {
    background: var(--rw-card-bg, #fff);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.rw-vd-related-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    color: var(--rw-heading, #1E3A8A) !important;
    margin: 0 0 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.rw-vd-related-title i {
    font-size: 16px;
    color: var(--rw-primary, #2563EB) !important;
}

.rw-vd-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rw-vd-rel-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #F8FAFC;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.rw-vd-rel-card:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateX(-3px);
}

.rw-vd-rel-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
}
.rw-vd-rel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rw-vd-rel-cover i {
    color: inherit !important;
}
.rw-vd-rel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rw-primary, #2563EB) !important;
    border-radius: 50%;
    font-size: 11px;
    z-index: 2;
}
.rw-vd-rel-play i {
    color: inherit !important;
    margin-right: -1px;
}
.rw-vd-rel-dur {
    position: absolute;
    bottom: 3px;
    left: 3px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff !important;
    border-radius: 4px;
    font-family: monospace;
    font-size: 9px;
    font-weight: 700;
    direction: ltr;
    z-index: 2;
}

.rw-vd-rel-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.rw-vd-rel-title {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--rw-text, #1F2937) !important;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}
.rw-vd-rel-card:hover .rw-vd-rel-title {
    color: var(--rw-primary, #2563EB) !important;
}
.rw-vd-rel-src {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--rw-primary, #2563EB) !important;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 10px;
    align-self: flex-start;
}
.rw-vd-rel-src i {
    font-size: 10px;
    color: inherit !important;
}

/* ═══ دکمه CTA ═══ */
.rw-vd-sidebar-cta {
    margin-top: 8px;
}
.rw-vd-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--rw-primary, #2563EB), var(--rw-secondary, #1E3A8A)) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}
.rw-vd-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}
.rw-vd-cta-btn i {
    color: #fff !important;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .rw-vd-section {
    background: linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
}
[data-theme="dark"] .rw-vd-breadcrumb {
    background: #111C2F;
    border-color: #1E293B;
    color: #94A3B8 !important;
}
[data-theme="dark"] .rw-vd-breadcrumb span { color: #E2E8F0 !important; }
[data-theme="dark"] .rw-vd-breadcrumb a { color: #60A5FA !important; }
[data-theme="dark"] .rw-vd-header,
[data-theme="dark"] .rw-vd-desc-box,
[data-theme="dark"] .rw-vd-related {
    background: #111C2F;
    border-color: #1E293B;
}
[data-theme="dark"] .rw-vd-title { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vd-meta { color: #94A3B8 !important; border-bottom-color: #1E293B; }
[data-theme="dark"] .rw-vd-desc-title { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vd-desc-content { color: #CBD5E1 !important; }
[data-theme="dark"] .rw-vd-back-btn {
    background: #111C2F !important;
    border-color: #1E293B;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .rw-vd-related-title { color: #F1F5F9 !important; }
[data-theme="dark"] .rw-vd-rel-card { background: #16233A; }
[data-theme="dark"] .rw-vd-rel-card:hover { background: #1E2C47; }
[data-theme="dark"] .rw-vd-rel-title { color: #E2E8F0 !important; }

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rw-vd-layout { grid-template-columns: 1fr; }
    .rw-vd-sidebar { position: static; }
    .rw-vd-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
    .rw-vd-section { padding: 20px 0 35px; }
    .rw-vd-container { padding: 0 14px; }
    .rw-vd-header { padding: 16px 18px; }
    .rw-vd-desc-box { padding: 16px 18px; }
    .rw-vd-title { font-size: 1.3rem; }
    .rw-vd-play-btn { width: 60px; height: 60px; font-size: 24px; }
    .rw-vd-related-list { grid-template-columns: 1fr; }
    .rw-vd-rel-card { grid-template-columns: 90px 1fr; }
}