.player-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.player-main { min-width: 0; overflow: hidden; }

.player-container { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; position: relative; }
.player-container video, .player-container .no-video img { width: 100%; height: 100%; object-fit: contain; }
.no-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); }

.video-tabs { display: flex; gap: 0.35rem; margin-top: 0.75rem; flex-wrap: wrap; }
.video-tab { padding: 0.45rem 1rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: all var(--transition); }
.video-tab:hover { border-color: var(--accent); color: var(--accent); }
.video-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-info { margin-top: 1.25rem; }
.post-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.post-meta { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-meta svg { vertical-align: middle; }
.meta-badge { background: rgba(0, 206, 201, 0.15); color: #00cec9; padding: 0.1rem 0.5rem; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 600; }
.live-indicator { display: flex; align-items: center; gap: 0.4rem; color: var(--green-live); font-weight: 600; }

.post-taxonomies { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.tag-chip { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(108,92,231,0.12); color: #9b8ce8; border-radius: var(--radius-xs); font-size: 0.75rem; transition: all var(--transition); }
.tag-chip:hover { background: rgba(108,92,231,0.25); color: #b3a5f5; }
.tag-more { font-size: 0.75rem; color: var(--text-muted); cursor: help; }
.post-description { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; padding: 1rem; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border); }


.gallery-section {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gallery-title svg {
    color: var(--accent);
}

.gallery-title h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.gallery-count-badge {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-controls {
    display: flex;
    gap: 0.5rem;
}

.gallery-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.gallery-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}

.gallery-slider {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.gallery-item {
    position: relative;
    min-width: 260px;
    height: 165px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 85vh;
}

#lightboxImg {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active #lightboxImg {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 12;
}

.lightbox-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}

.recommended-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.recommended-section .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.recommended-section .section-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 0; }

.player-sidebar { position: sticky; top: calc(var(--navbar-height) + 1rem); max-height: calc(100vh - var(--navbar-height) - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.sidebar-title { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.75rem; }
.sidebar-videos { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-video-card { display: flex; gap: 0.75rem; padding: 0.5rem; background: var(--bg-card); border-radius: var(--radius-sm); transition: all var(--transition); border: 1px solid transparent; }
.sidebar-video-card:hover { border-color: var(--border); background: var(--bg-card-hover); }
.sv-thumb { position: relative; width: 140px; min-width: 140px; aspect-ratio: 16/9; border-radius: var(--radius-xs); overflow: hidden; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sv-duration { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.85); color: #fff; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.7rem; font-weight: 600; }
.sv-info h4 { font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.25rem; }
.sv-info span { font-size: 0.7rem; color: var(--text-muted); }

@media (max-width: 1024px) {
    .player-layout { grid-template-columns: 1fr; }
    .player-sidebar { position: static; max-height: none; overflow-y: visible; }
}

@media (max-width: 768px) {
    .post-title { font-size: 1.1rem; }
    .gallery-img { min-width: 200px; height: 130px; }
    .sv-thumb { width: 100px; min-width: 100px; }
}

@media (max-width: 480px) {
    .recommended-section .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .recommended-section .video-card .card-body { padding: 0.4rem; }
    .recommended-section .video-card .card-title { font-size: 0.75rem; }
    .recommended-section .video-card .card-meta { font-size: 0.65rem; }
}
