/* Video Grid - Center Play Button Always Red */
.style-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.style-video-grid .video-card {
    background: transparent;
    cursor: pointer;
}

.style-video-grid .video-card:hover .video-thumb img {
    transform: scale(1.03);
}

.style-video-grid .video-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.style-video-grid .video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Center play button - always red/white */
.style-video-grid .video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #e74c3c !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
}

.style-video-grid .video-card:hover .play-btn,
.style-video-grid .play-btn:hover,
.style-video-grid .play-btn:active,
.style-video-grid .play-btn:focus {
    background: #e74c3c !important;
    color: #fff !important;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Triangle play icon */
.style-video-grid .play-btn svg {
    display: none;
}

.style-video-grid .play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff !important;
    margin-left: 4px;
}

.style-video-grid .video-thumb .duration {
    display: none;
}

.style-video-grid .video-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 0 0;
    padding: 0;
    color: #1a1a2e;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .style-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .style-video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .style-video-grid .video-thumb .play-btn {
        width: 44px;
        height: 44px;
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
}

.video-modal-close:hover {
    color: #e74c3c;
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

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

/* Podcast Section - With Podcast Icon */
.style-podcast-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.style-podcast-horizontal .podcast-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.style-podcast-horizontal .podcast-card:hover {
    transform: translateY(-5px);
}

.style-podcast-horizontal .podcast-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.style-podcast-horizontal .podcast-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Podcast icon - always visible */
.style-podcast-horizontal .podcast-image .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #e74c3c !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
}

.style-podcast-horizontal .podcast-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #c0392b !important;
}

/* Headphone/Podcast icon */
.style-podcast-horizontal .play-btn svg {
    display: none;
}

.style-podcast-horizontal .play-btn::before {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=white%3E%3Cpath d=M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z/%3E%3C/svg%3E);
    background-size: contain;
    background-repeat: no-repeat;
}

.style-podcast-horizontal .podcast-info {
    padding: 15px;
}

.style-podcast-horizontal .podcast-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a2e;
    line-height: 1.4;
}

.style-podcast-horizontal .podcast-info .author {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.style-podcast-horizontal .podcast-info .duration {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .style-podcast-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .style-podcast-horizontal {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Podcast Icon Fix */
.style-podcast-horizontal .play-btn::before {
    content: '🎧';
    font-size: 24px;
    width: auto;
    height: auto;
    background: none;
    margin: 0;
    filter: grayscale(1) brightness(10);
}

/* Podcast Info - Aesthetic Design */
.style-podcast-horizontal .podcast-info {
    padding: 18px 20px;
    background: #fff;
}

.style-podcast-horizontal .podcast-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-podcast-horizontal .podcast-info .author {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.style-podcast-horizontal .podcast-info .author::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=%23999%3E%3Cpath d=M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z/%3E%3C/svg%3E);
    background-size: contain;
    flex-shrink: 0;
}

.style-podcast-horizontal .podcast-info .duration {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.style-podcast-horizontal .podcast-info .duration::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=white%3E%3Cpath d=M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z/%3E%3C/svg%3E);
    background-size: contain;
}

/* Podcast Info - Author & Duration Side by Side */
.style-podcast-horizontal .podcast-info {
    padding: 16px 18px;
}

.style-podcast-horizontal .podcast-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a2e;
    line-height: 1.45;
}

/* Author and Duration in one row */
.style-podcast-horizontal .podcast-card .podcast-info {
    display: flex;
    flex-direction: column;
}

.style-podcast-horizontal .podcast-info .author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 13px;
    color: #777;
}

.style-podcast-horizontal .podcast-info .author::before {
    display: none;
}

.style-podcast-horizontal .podcast-info .duration {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
}

.style-podcast-horizontal .podcast-info .duration::before {
    display: none;
}

/* Podcast Meta - Author & Duration Row */
.style-podcast-horizontal .podcast-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.style-podcast-horizontal .podcast-meta .author {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin: 0;
}

.style-podcast-horizontal .podcast-meta .duration {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    background: none;
    padding: 0;
}

/* Podcast - Same style as Video */
.style-podcast-horizontal .podcast-card {
    background: transparent;
    cursor: pointer;
}

.style-podcast-horizontal .podcast-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.style-podcast-horizontal .podcast-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-podcast-horizontal .podcast-card:hover .podcast-image img {
    transform: scale(1.03);
}

.style-podcast-horizontal .podcast-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 0 0;
    padding: 0;
    color: #1a1a2e;
    line-height: 1.5;
}

/* Audio Modal */
.audio-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.audio-modal.active {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-modal-title {
    color: white;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-modal audio {
    flex: 2;
    max-width: 400px;
}

.audio-modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
