/**
 * Scena Media - Style
 * Responsywny grid i modal popup
 * Dark Theme
 */

/* ========================
   CSS Variables
   ======================== */
:root {
    --scena-primary: #a78bfa;
    --scena-primary-hover: #c4b5fd;
    --scena-text: #ffffff;
    --scena-text-light: #d1d5db;
    --scena-bg: transparent;
    --scena-bg-alt: transparent;
    --scena-bg-card: transparent;
    --scena-border: rgba(255, 255, 255, 0.15);
    --scena-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --scena-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --scena-radius: 12px;
    --scena-radius-sm: 8px;
    --scena-transition: all 0.3s ease;
}

/* ========================
   Container & Slider
   ======================== */
.scena-media-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: transparent !important;
}

.scena-media-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 80px;
}

.scena-media-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}

.scena-media-grid::-webkit-scrollbar {
    display: none;
}

.scena-media-grid .scena-media-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    scroll-snap-align: start;
}

/* Slider navigation arrows */
.scena-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--scena-transition);
}

.scena-slider-nav:hover {
    background: #a78bfa;
    border-color: #a78bfa;
}

.scena-slider-nav.prev {
    left: 8px;
}

.scena-slider-nav.next {
    right: 8px;
}

.scena-slider-nav svg {
    width: 28px;
    height: 28px;
}

.scena-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================
   Media Card
   ======================== */
.scena-media-card {
    background: transparent;
    border-radius: var(--scena-radius);
    overflow: hidden;
    transition: var(--scena-transition);
    cursor: pointer;
    border: 2px solid #ffffff;
    position: relative;
}

.scena-media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.scena-media-card:hover .scena-play-overlay {
    opacity: 1;
}

.scena-media-card:hover .scena-card-thumbnail img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.scena-media-card:hover .scena-card-content {
    opacity: 1;
    transform: translateY(0);
}

/* Thumbnail */
.scena-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

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

/* Placeholder dla braku miniatury */
.scena-placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #333;
}

.scena-placeholder-thumb svg {
    width: 48px;
    height: 48px;
}

/* Play Overlay */
.scena-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--scena-transition);
}

.scena-play-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--scena-transition);
}

.scena-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.scena-media-card:hover .scena-play-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* Duration Badge */
.scena-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--scena-transition);
}

.scena-media-card:hover .scena-duration {
    opacity: 1;
}

/* Card Content - ukryte domyślnie, widoczne po hover */
.scena-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--scena-transition);
    pointer-events: none;
}

.scena-card-title {
    margin: 0;
    padding: 10px 12px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scena-card-excerpt {
    display: none;
}

.scena-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #ffffff;
}

.scena-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.scena-card-meta svg {
    opacity: 0.9;
}

/* ========================
   Plyr Player Customization
   ======================== */
.plyr-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.plyr-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.plyr-video {
    width: 100%;
    height: 100%;
}

/* Plyr CSS customization - dark theme with purple/white */
.plyr {
    --plyr-color-main: #a78bfa;
    --plyr-video-background: #000;
    --plyr-video-control-background: transparent;
    --plyr-video-control-background-hover: transparent;
    --plyr-range-fill-background: #a78bfa;
    --plyr-badge-background: #a78bfa;
    --plyr-badge-text-color: #000;
    --plyr-captions-background: rgba(0, 0, 0, 0.8);
    --plyr-captions-text-color: #fff;
    max-height: 55vh;
}

.plyr--video {
    background: #000;
    max-height: 55vh;
}

.plyr--video .plyr__video-wrapper {
    background: #000;
    max-height: 55vh;
}

.plyr__poster {
    background-color: #000;
}

.plyr--full-ui input[type=range] {
    color: #a78bfa;
}

.plyr__controls {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 40px 12px 12px;
}

.plyr__controls button,
.plyr__controls .plyr__control {
    color: #ffffff !important;
}

.plyr__controls button:hover,
.plyr__controls .plyr__control:hover {
    background: rgba(167, 139, 250, 0.3) !important;
    color: #a78bfa !important;
}

.plyr__control--overlaid {
    background: rgba(167, 139, 250, 0.9) !important;
    border: 2px solid #fff;
}

.plyr__control--overlaid:hover {
    background: #a78bfa !important;
}

.plyr__progress__buffer {
    background: rgba(255, 255, 255, 0.2);
}

.plyr__tooltip {
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.plyr__menu__container {
    background: #000000;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.plyr__menu__container [role="button"],
.plyr__menu__container [role="menuitemradio"] {
    color: #ffffff;
}

.plyr__menu__container [role="button"]:hover,
.plyr__menu__container [role="menuitemradio"]:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.plyr__menu__container [role="menuitemradio"][aria-checked="true"]::before {
    background: #a78bfa;
}

.plyr__volume input[type=range] {
    color: #a78bfa;
}

/* ========================
   Pagination
   ======================== */
.scena-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scena-pagination a,
.scena-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--scena-bg-alt);
    border: 1px solid var(--scena-border);
    border-radius: var(--scena-radius-sm);
    color: var(--scena-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--scena-transition);
}

.scena-pagination a:hover {
    background: var(--scena-primary);
    border-color: var(--scena-primary);
    color: white;
}

.scena-pagination .current {
    background: var(--scena-primary);
    border-color: var(--scena-primary);
    color: white;
}

/* ========================
   Modal Popup
   ======================== */
.scena-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scena-modal.active {
    display: flex;
}

.scena-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.scena-modal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: #000000;
    border-radius: var(--scena-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    animation: scenaModalIn 0.3s ease;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

@keyframes scenaModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scena-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000000;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--scena-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.scena-modal-close:hover,
.scena-modal-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.scena-modal-close svg {
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.scena-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

/* Modal Video Player */
.scena-modal-player {
    flex-shrink: 0;
    background: #000;
}

.scena-modal-video-wrapper {
    position: relative;
    width: 100%;
    max-height: 55vh;
    background: #000;
}

.scena-modal-video-wrapper iframe,
.scena-modal-video-wrapper video,
.scena-modal-video-wrapper .wp-video {
    width: 100% !important;
    height: 100% !important;
}

.scena-modal-video-wrapper .mejs-container {
    width: 100% !important;
    height: 100% !important;
}

.scena-oembed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.scena-oembed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal Header */
.scena-modal-header {
    padding: 16px 24px 12px;
    background: #000000;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.scena-modal-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.scena-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #a78bfa;
}

.scena-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Two Column Layout */
.scena-modal-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    background: #000000;
}

.scena-modal-column {
    overflow-y: auto;
    padding: 16px 20px;
}

.scena-modal-column-left {
    border-right: 1px solid rgba(167, 139, 250, 0.15);
    background: linear-gradient(180deg, rgba(15,15,20,0.98) 0%, rgba(10,10,15,1) 100%);
}

.scena-modal-column-right {
    background: #000000;
}

/* Opis w lewej kolumnie */
.scena-modal-video-description {
    font-size: 14px;
    line-height: 1.7;
    color: #e5e7eb;
}

.scena-modal-video-description:empty {
    display: none;
}

.scena-modal-video-description::before {
    content: "Opis";
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.scena-modal-video-description:empty::before {
    display: none;
}

.scena-modal-video-description p {
    margin: 0 0 10px 0;
    color: #e5e7eb;
}

.scena-modal-video-description p:last-child {
    margin-bottom: 0;
}

.scena-modal-video-description strong,
.scena-modal-video-description b {
    color: #ffffff;
    font-weight: 600;
}

.scena-modal-video-description a {
    color: #a78bfa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.scena-modal-video-description a:hover {
    color: #c4b5fd;
}

/* Mobile responsywność dla dwóch kolumn */
@media (max-width: 768px) {
    .scena-modal-two-columns {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .scena-modal-column-left {
        border-right: none;
        border-bottom: 1px solid rgba(167, 139, 250, 0.15);
        max-height: 200px;
    }
    
    .scena-modal-column {
        padding: 12px 16px;
    }
    
    .scena-modal-video-description {
        font-size: 13px;
    }
    
    .scena-modal-header {
        padding: 12px 16px 10px;
    }
    
    .scena-modal-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scena-modal-column {
        padding: 10px 12px;
    }
    
    .scena-modal-video-description {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .scena-modal-column-left {
        max-height: 150px;
    }
    
    .scena-modal-header {
        padding: 10px 12px 8px;
    }
    
    .scena-modal-title {
        font-size: 16px;
    }
    
    .scena-modal-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* Legacy - do usunięcia */
.scena-modal-info {
    display: none;
}

.scena-modal-description {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    padding-bottom: 16px;
}

.scena-modal-description p:last-child {
    margin-bottom: 0;
}

/* ========================
   Comments Section
   ======================== */
.scena-modal-comments h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.scena-comments-list {
    margin-bottom: 16px;
}

.scena-comment {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scena-comment:last-child {
    border-bottom: none;
}

.scena-comment-avatar {
    flex-shrink: 0;
}

.scena-comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.scena-comment-body {
    flex: 1;
    min-width: 0;
}

.scena-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.scena-comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
}

.scena-comment-date {
    font-size: 10px;
    color: #a78bfa;
}

.scena-comment-content {
    font-size: 12px;
    line-height: 1.4;
    color: #e5e7eb;
}

.scena-comment-content p {
    margin: 0;
}

.scena-comment-actions {
    margin-top: 8px;
}

/* Like Button */
.scena-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 16px;
    font-size: 12px;
    color: #a78bfa;
    cursor: pointer;
    transition: var(--scena-transition);
}

.scena-like-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: #a78bfa;
    color: #ffffff;
}

.scena-like-btn.liked {
    background: #a78bfa;
    border-color: #a78bfa;
    color: #000000;
}

.scena-like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment Form */
.scena-ajax-comment-form {
    background: rgba(167, 139, 250, 0.05);
    padding: 16px;
    border-radius: var(--scena-radius);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.scena-form-group {
    margin-bottom: 12px;
}

.scena-form-group input,
.scena-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--scena-radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: #ffffff;
    transition: var(--scena-transition);
    box-sizing: border-box;
}

.scena-form-group input::placeholder,
.scena-form-group textarea::placeholder {
    color: #6b7280;
}

.scena-form-group input:focus,
.scena-form-group textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.scena-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.scena-submit-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #a78bfa;
    border: none;
    border-radius: var(--scena-radius-sm);
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--scena-transition);
}

.scena-submit-comment:hover {
    background: #c4b5fd;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

.scena-submit-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* No items message */
.scena-no-items {
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
    font-size: 16px;
    background: #000000;
}

/* Loading spinner */
.scena-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.scena-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--scena-border);
    border-top-color: var(--scena-primary);
    border-radius: 50%;
    animation: scenaSpinner 0.8s linear infinite;
}

@keyframes scenaSpinner {
    to { transform: rotate(360deg); }
}

/* Success/Error messages */
.scena-message {
    padding: 12px 16px;
    border-radius: var(--scena-radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.scena-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.scena-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 1200px) {
    .scena-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .scena-media-container[data-columns="4"] .scena-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .scena-media-grid .scena-media-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .scena-media-container {
        padding: 16px;
    }
    
    .scena-media-grid {
        gap: 16px;
    }
    
    .scena-media-grid .scena-media-card {
        flex: 0 0 calc(100% - 32px);
        margin: 0 16px;
    }
    
    .scena-media-grid .scena-media-card:first-child {
        margin-left: 0;
    }
    
    .scena-media-card {
        border-width: 1px;
    }
    
    /* Na mobile pokazuj meta bez hover */
    .scena-card-content {
        opacity: 1;
        transform: translateY(0);
        padding: 10px;
    }
    
    .scena-card-meta {
        gap: 8px;
    }
    
    .scena-card-meta span {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .scena-duration {
        opacity: 1;
    }
    
    /* Ukryj strzałki na mobile - swipe działa */
    .scena-slider-nav {
        display: none;
    }
    
    .scena-media-slider-wrapper {
        padding: 0 16px;
    }
    
    .scena-card-title {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .scena-modal {
        padding: 0;
    }
    
    .scena-modal-container {
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }
    
    .scena-modal-content {
        max-height: 100vh;
    }
    
    .scena-modal-info {
        padding: 16px;
    }
    
    .scena-modal-title {
        font-size: 20px;
    }
    
    .scena-modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        z-index: 1000001;
    }
    
    .scena-card-title {
        font-size: 15px;
    }
    
    .scena-play-icon {
        width: 56px;
        height: 56px;
    }
    
    .scena-play-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .scena-comment {
        padding: 12px 0;
    }
    
    .scena-comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .scena-ajax-comment-form {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .scena-media-grid .scena-media-card {
        flex: 0 0 calc(100% - 16px);
        margin: 0 8px;
    }
    
    .scena-media-slider-wrapper {
        padding: 0 8px;
    }
    
    .scena-modal-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .scena-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .scena-comment-avatar img {
        width: 32px;
        height: 32px;
    }
}

/* ========================
   Single Template Styles
   ======================== */
.scena-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--scena-bg);
    color: var(--scena-text);
    min-height: 100vh;
}

.scena-single-video {
    margin-bottom: 16px;
    border-radius: var(--scena-radius);
    overflow: hidden;
    background: #000;
}

.scena-video-description {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--scena-radius-sm);
    border-left: 3px solid var(--scena-primary);
    color: var(--scena-text-light);
    font-size: 15px;
    line-height: 1.7;
}

.scena-video-description p {
    margin: 0 0 10px 0;
}

.scena-video-description p:last-child {
    margin-bottom: 0;
}

.scena-video-description a {
    color: var(--scena-primary);
    text-decoration: none;
    transition: var(--scena-transition);
}

.scena-video-description a:hover {
    color: var(--scena-primary-hover);
    text-decoration: underline;
}

.scena-single-header {
    margin-bottom: 24px;
}

.scena-single-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--scena-text);
    line-height: 1.3;
}

.scena-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--scena-text-light);
    font-size: 14px;
}

.scena-single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scena-single-meta a {
    color: var(--scena-primary);
    text-decoration: none;
    transition: var(--scena-transition);
}

.scena-single-meta a:hover {
    color: var(--scena-primary-hover);
    text-decoration: underline;
}

.scena-single-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--scena-text);
}

.scena-single-content a {
    color: var(--scena-primary);
}

.scena-single-comments {
    padding-top: 32px;
    border-top: 1px solid var(--scena-border);
}

.scena-single-comments h3 {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--scena-text);
}

.scena-single-comments h4 {
    margin: 24px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--scena-text);
}

.scena-no-comments {
    color: var(--scena-text-light);
    font-style: italic;
}

.scena-comments-closed {
    color: var(--scena-text-light);
    padding: 16px;
    background: var(--scena-bg-alt);
    border-radius: var(--scena-radius-sm);
}

/* Override for Elementor/theme - transparent backgrounds */
.scena-media-container,
section.elementor-section .scena-media-container {
    background-color: transparent !important;
}

.scena-media-card {
    background: transparent !important;
}

.scena-card-title {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Dark mode support - kept for consistency */
@media (prefers-color-scheme: light) {
    /* Light mode override if needed - currently disabled */
    /*
    :root {
        --scena-text: #1f2937;
        --scena-text-light: #6b7280;
        --scena-bg: #ffffff;
        --scena-bg-alt: #f9fafb;
        --scena-border: #e5e7eb;
    }
    */
}

/* Body scroll lock when modal open */
body.scena-modal-open {
    overflow: hidden;
}
