/* Video Showcase Styles */
.toonz-video-showcase {
    width: 100%;
    color: #fff;
    background: transparent;
}

/* Header Section */
.toonz-video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
}

.toonz-video-header-left {
    flex: 1;
}

.toonz-video-header-right {
    flex: 1.5; /* Grow more to push left */
    max-width: 550px;
}

.toonz-video-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.toonz-video-heading-accent {
    color: #E87722;
}

.toonz-video-intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.toonz-video-header-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.toonz-video-header-cta span {
    margin-left: 10px;
    color: #E87722;
    transition: transform 0.3s ease;
}

.toonz-video-header-cta:hover span {
    transform: translateX(5px);
}

/* Grid Layout */
.toonz-video-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.toonz-video-tile {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    display: flex; /* Allow content to stretch */
}

/* Row 1 sizing - Remove fixed min-height to allow full control via Elementor sliders */
.toonz-video-tile.tile-large { 
    grid-column: span 8; 
}
.toonz-video-tile.tile-medium { 
    grid-column: span 4; 
}

/* Row 2 sizing - Keep aspect ratio for smaller items */
.toonz-video-tile.tile-small-3 { 
    grid-column: span 4; 
    aspect-ratio: 16 / 9;
}
.toonz-video-tile.tile-small-4 { 
    grid-column: span 3; 
    aspect-ratio: 16 / 9;
}

.toonz-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.toonz-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.toonz-play-icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.toonz-play-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-left: 4px; /* Optically centered */
}

/* Hover Effects */
.toonz-video-tile:hover .toonz-video-thumbnail {
    transform: scale(1.03);
}

.toonz-video-tile:hover .toonz-video-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.toonz-video-tile:hover .toonz-play-icon {
    transform: scale(1.1);
    background: rgba(232, 119, 34, 0.8);
    border-color: #E87722;
}

/* Bottom CTA */
.toonz-video-footer {
    text-align: center;
}

.toonz-video-footer-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #E87722;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.toonz-video-footer-cta span {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.toonz-video-footer-cta:hover {
    letter-spacing: 2.5px;
}

.toonz-video-footer-cta:hover span {
    transform: translateX(5px);
}

/* Custom Video Modal Styles */
#toonz-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
}

.toonz-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 0 50px rgba(0,0,0,1);
    border-radius: 12px;
    overflow: hidden;
}

.toonz-modal-content iframe,
.toonz-modal-content video {
    width: 100%;
    height: 100%;
}

.toonz-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.toonz-modal-close:hover {
    transform: scale(1.1);
    color: #E87722;
}

@media (max-width: 991px) {
    .toonz-video-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .toonz-video-header-right {
        max-width: 100%;
    }
    
    .toonz-video-tile.tile-large,
    .toonz-video-tile.tile-medium,
    .toonz-video-tile.tile-small-3,
    .toonz-video-tile.tile-small-4 {
        grid-column: span 12;
    }
}
