/* ================================
   CINEMA MODE VIDEO SHOW STYLES
   ================================ */

/* ========== BASE STYLES ========== */
* {
    transition: color 0.2s ease, background-color 0.2s ease,
        border-color 0.2s ease;
}

.cinema-container {
    background-color: #fdf0d5;
    color: #003049;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

/* ========== VIDEO PLAYER SECTION ========== */
.video-player-section {
    position: relative;
    background: #000;
    padding: 32px;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

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

/* ========== VIDEO INFO SECTION ========== */
.video-info-section {
    margin: 0 auto;
    padding: 48px 32px;
    max-width: 1400px;
}

.video-main-info {
    margin-bottom: 48px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #003049;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
    font-size: 1rem;
    color: #669bbc;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item i {
    font-size: 1rem;
    opacity: 0.8;
}

.video-description {
    color: #003049;
    line-height: 1.6;
    font-size: 1.1rem;
}

.video-description p {
    margin: 0;
}

/* ========== VIDEO DETAILS GRID ========== */
.video-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-top: 1px solid #003049;
    border-bottom: 1px solid #003049;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-label {
    font-size: 0.9rem;
    color: #c1121f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    color: #003049;
    font-size: 1.1rem;
}

/* ========== TAGS ========== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(0, 48, 73, 0.1);
    color: #003049;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 48, 73, 0.2);
    transition: all 0.2s ease;
}

.tag:hover,
.tag:focus {
    background: rgba(0, 48, 73, 0.15);
    border-color: rgba(0, 48, 73, 0.3);
}

/* ========== SIMILAR VIDEOS SECTION ========== */
.correlati-block,
.similar-videos-section {
    margin: 0 auto;
    padding: 32px;
    max-width: 1400px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 32px 0;
    color: #003049;
}

/* ========== CAROUSEL ========== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* ========== VIDEO CARDS ========== */
.video-card {
    background-color: #fdf0d5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 550px;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    border-radius: 0;
}

.video-card:hover {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.card {
    background: none;
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.video-card:hover .card {
    box-shadow: 0 12px 40px rgba(0, 48, 73, 0.25);
}

.video-link {
    position: relative;
    display: block;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.95) saturate(0.9);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.1) rotate(0.5deg);
    filter: brightness(1.1) saturate(1.1) contrast(1.05);
}

/* ========== OVERLAY EFFECTS ========== */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.video-card:hover .overlay,
.video-link:hover .overlay {
    opacity: 1;
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

.play-icon {
    font-size: 3.5rem;
    color: white;
    opacity: 0;
    transform: scale(0.3) rotate(-45deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.video-link:hover .play-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: pulse 2s infinite ease-in-out;
}

/* ========== CARD BODY ========== */
.card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 10px;
    flex-direction: row;
    gap: 1rem;
    background-color: #fdf0d5;
    color: #003049;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 85px;
}

.video-card:hover .card-body {
    padding: 18px 12px;
    background: linear-gradient(135deg, #fdf0d5 0%, #f8e8c8 100%);
}

.card-title {
    flex: 1;
    font-size: 1.4rem;
    font-weight: bold;
    color: #003049;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    transition: all 0.4s ease;
    position: relative;
}

.video-card:hover .card-title {
    color: #001a2e;
    transform: translateX(3px);
    letter-spacing: 0.5px;
}

.card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    font-size: 0.9rem;
    text-align: right;
    color: rgba(0, 48, 73, 0.75);
    transition: all 0.4s ease;
}

.video-card:hover .card-meta {
    color: rgba(0, 48, 73, 0.9);
    transform: translateX(-3px);
}

.meta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.video-card:hover .meta-row {
    transform: scale(1.02);
}

/* ========== CAROUSEL NAVIGATION ========== */
.arrow__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(
        135deg,
        rgba(0, 48, 73, 0.2),
        rgba(120, 0, 0, 0.15)
    );
    border: 1px solid rgba(0, 48, 73, 0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.arrow__btn:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 48, 73, 0.4),
        rgba(120, 0, 0, 0.3)
    );
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-wrapper:hover .arrow__btn {
    opacity: 1;
}

.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}

/* ========== NO VIDEOS MESSAGE ========== */
.no-videos {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(0, 48, 73, 0.7);
    margin-top: 20px;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(253, 240, 213, 0.8),
        rgba(248, 232, 200, 0.9)
    );
    border: 1px solid rgba(0, 48, 73, 0.1);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
    }
}

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

@keyframes carouselFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========== ANIMATION DELAYS ========== */
.video-card:nth-child(1) {
    animation-delay: 0.1s;
}
.video-card:nth-child(2) {
    animation-delay: 0.2s;
}
.video-card:nth-child(3) {
    animation-delay: 0.3s;
}
.video-card:nth-child(4) {
    animation-delay: 0.4s;
}
.video-card:nth-child(5) {
    animation-delay: 0.5s;
}
.video-card:nth-child(6) {
    animation-delay: 0.6s;
}

.item {
    opacity: 0;
    animation: carouselFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.item:nth-child(1) {
    animation-delay: 0.1s;
}
.item:nth-child(2) {
    animation-delay: 0.2s;
}
.item:nth-child(3) {
    animation-delay: 0.3s;
}
.item:nth-child(4) {
    animation-delay: 0.4s;
}
.item:nth-child(5) {
    animation-delay: 0.5s;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop: 1400px+ */
@media (min-width: 1400px) {
    .video-card {
        width: 600px;
    }

    .card-title {
        font-size: 1.5rem;
    }
}

/* Desktop: 1200px - 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .video-card {
        width: 520px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-meta {
        font-size: 0.85rem;
    }
}

/* Large Tablet: 992px - 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 40px 24px;
    }

    .video-card {
        width: 450px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .carousel {
        gap: 20px;
    }
}

/* Tablet: 768px - 991px */
@media (max-width: 991px) and (min-width: 768px) {
    .video-player-section {
        padding: 24px;
    }

    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 32px 24px;
    }

    .video-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 16px;
        font-size: 0.95rem;
    }

    .video-description {
        font-size: 1rem;
    }

    .video-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
        padding-top: 32px;
    }

    .video-card {
        width: 380px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-meta {
        font-size: 0.8rem;
    }

    .carousel {
        gap: 16px;
        padding: 12px 0;
    }

    .arrow__btn {
        display: none;
    }
}

/* Mobile Large: 576px - 767px */
@media (max-width: 767px) and (min-width: 576px) {
    .video-player-section {
        padding: 20px;
    }

    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 28px 20px;
    }

    .video-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .video-meta {
        font-size: 0.9rem;
        gap: 12px;
    }

    .video-card {
        width: 320px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .card-body {
        height: 80px;
        padding: 12px 8px;
    }

    .carousel {
        gap: 14px;
        padding: 10px 0;
    }

    .play-icon {
        font-size: 3rem;
    }

    .video-card:hover {
        transform: scale(1.04);
    }

    .arrow__btn {
        display: none;
    }
}

/* Mobile: 480px - 575px */
@media (max-width: 575px) and (min-width: 480px) {
    .video-player-section {
        padding: 16px;
    }

    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 24px 16px;
    }

    .video-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .video-card {
        width: 280px;
    }

    .card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        height: auto;
        padding: 10px;
    }

    .card-title {
        font-size: 0.9rem;
        text-align: left;
    }

    .card-meta {
        align-items: flex-start;
        text-align: left;
        font-size: 0.7rem;
    }

    .meta-row {
        gap: 0.5rem;
    }

    .carousel {
        gap: 12px;
        padding: 8px 0;
    }

    .play-icon {
        font-size: 2.8rem;
    }

    .video-card:hover {
        transform: scale(1.02);
    }
}

/* Mobile Small: 320px - 479px */
@media (max-width: 479px) {
    .video-player-section {
        padding: 12px;
    }

    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 20px 12px;
    }

    .video-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .video-meta {
        font-size: 0.85rem;
        gap: 10px;
    }

    .video-description {
        font-size: 0.95rem;
    }

    .video-card {
        width: 240px;
    }

    .card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        height: auto;
        padding: 8px;
    }

    .card-title {
        font-size: 0.8rem;
        text-align: left;
        line-height: 1.3;
    }

    .card-meta {
        align-items: flex-start;
        text-align: left;
        font-size: 0.65rem;
    }

    .meta-row {
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .carousel {
        gap: 10px;
        padding: 6px 0;
    }

    .play-icon {
        font-size: 2.5rem;
    }

    .video-card:hover {
        transform: scale(1.01);
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 1rem;
    }

    .detail-label {
        font-size: 0.8rem;
    }
}

/* Mobile Extra Small: max 319px */
@media (max-width: 319px) {
    .video-player-section {
        padding: 8px;
    }

    .video-info-section,
    .similar-videos-section,
    .correlati-block {
        padding: 16px 8px;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .video-card {
        width: 200px;
    }

    .card-title {
        font-size: 0.7rem;
    }

    .card-meta {
        font-size: 0.6rem;
    }

    .play-icon {
        font-size: 2rem;
    }

    .carousel {
        gap: 8px;
    }
}
