/* ============================================================
   SINGLE VIDEO PAGE  (single-video.php)
   ============================================================ */

/* ── Banner ────────────────────────────────────────────────── */
.sv-banner {
    position: relative;
    padding: 12rem 0 7rem;
    background: linear-gradient(135deg, #0d1827 0%, #1D4E89 100%);
    margin-top: 126px;
    overflow: hidden;
}

/* Blurred thumbnail as a decorative background layer */
.sv-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(6px);
    transform: scale(1.05); /* hide blur edges */
}

.sv-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Breadcrumb */
.sv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.sv-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.sv-breadcrumb a:hover {
    color: #fff;
}

.sv-breadcrumb-current {
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.sv-banner-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.sv-banner-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

.sv-banner-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Type pills */
.sv-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.sv-type-pill--yt  { background: rgba(196, 48, 43, 0.85); }
.sv-type-pill--mp4 { background: rgba(13, 17, 23, 0.65); }

/* ── Main two-column layout ────────────────────────────────── */
.sv-main-section {
    padding: 4rem 0 5rem;
    background: var(--color-bg-light, #f5f7fa);
}

.sv-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

/* ── Video Player ──────────────────────────────────────────── */
.sv-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d1117;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.sv-player iframe,
.sv-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sv-player video {
    object-fit: contain;
}

/* Description below player */
.sv-description {
    margin-top: 1.75rem;
    background: #fff;
    border-radius: var(--radius-md, 8px);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm, 0 1px 6px rgba(0,0,0,0.06));
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text, #333);
}

.sv-description h2,
.sv-description h3 {
    color: var(--color-secondary, #0d1827);
}

.sv-error {
    padding: 2rem;
    background: #fff0f0;
    border-left: 4px solid #c0392b;
    border-radius: var(--radius-md, 8px);
    color: #c0392b;
    font-size: 0.9375rem;
}

/* ── Sidebar cards ─────────────────────────────────────────── */
.sv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sv-sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm, 0 1px 6px rgba(0,0,0,0.06));
}

.sv-sidebar-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-secondary, #0d1827);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Share buttons */
.sv-share-btns {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sv-share-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    color: #fff;
}

.sv-share-btn:hover {
    opacity: 0.88;
    transform: translateX(3px);
}

.sv-share-btn--linkedin  { background: #0077b5; }
.sv-share-btn--twitter   { background: #000; }
.sv-share-btn--facebook  { background: #1877f2; }

/* Detail list */
.sv-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sv-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.sv-detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sv-detail-label {
    color: var(--color-text-light, #666);
    font-weight: 500;
}

.sv-detail-value {
    color: var(--color-secondary, #0d1827);
    font-weight: 600;
    text-align: right;
}

/* CTA card */
.sv-cta-card {
    background: linear-gradient(135deg, #1D4E89 0%, #2a5f9e 100%);
    color: #fff;
}

.sv-cta-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sv-cta-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.sv-cta-card .btn {
    width: 100%;
    text-align: center;
    background: #fff;
    color: var(--color-primary, #1D4E89);
    border: none;
}

.sv-cta-card .btn:hover {
    background: rgba(255,255,255,0.9);
}

/* ── Related Videos ────────────────────────────────────────── */
.sv-related-section {
    padding: 4rem 0 5rem;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.sv-related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary, #0d1827);
    margin-bottom: 2rem;
}

.sv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.sv-related-card {
    background: var(--color-bg-light, #f5f7fa);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.sv-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.12));
}

.sv-related-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d1117;
    overflow: hidden;
}

.sv-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.sv-related-card:hover .sv-related-thumb img {
    transform: scale(1.05);
}

.sv-related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1D4E89, #2a5f9e);
}

/* Play icon overlay */
.sv-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
}

.sv-related-card:hover .sv-play-icon {
    opacity: 1;
}

.sv-play-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.sv-related-duration {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.sv-related-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(13,17,23,0.8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.sv-related-badge--yt {
    background: rgba(196, 48, 43, 0.9);
}

.sv-related-body {
    padding: 1.1rem 1.25rem 1.4rem;
}

.sv-related-body h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.sv-related-body h3 a {
    color: var(--color-secondary, #0d1827);
    text-decoration: none;
    transition: color 0.2s;
}

.sv-related-body h3 a:hover {
    color: var(--color-primary, #1D4E89);
}

.sv-related-body p {
    font-size: 0.875rem;
    color: var(--color-text-light, #666);
    line-height: 1.55;
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sv-layout {
        grid-template-columns: 1fr;
    }
    .sv-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .sv-cta-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .sv-banner {
        padding: 10rem 0 5rem;
    }
    .sv-related-grid {
        grid-template-columns: 1fr;
    }
    .sv-sidebar {
        grid-template-columns: 1fr;
    }
    .sv-banner-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .sv-banner {
        padding: 9rem 0 4rem;
    }
    .sv-description {
        padding: 1.25rem 1.25rem;
    }
}
