/*
 * episode-card.css - Horizontal Card Design (No Slider)
 */

.horizontal-episode-card-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0.5rem 0; /* MODIFIED: Reduced bottom margin */
    box-sizing: border-box;
    overflow: hidden;
    height: 130px;
    display: block;
}

.horizontal-episode-card-container .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130px;
    width: 100%;
}

.horizontal-episode-skeleton {
    width: 100%;
    max-height: 130px;
    background-color: #242832;
    border-radius: 1.5rem;
    display: flex;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

.horizontal-episode-skeleton-backdrop {
    position: relative;
    flex: 0 0 200px;
    background-color: #1a1c23;
    border-radius: 1rem;
    margin: 0.8rem;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-color: #1a1c23; }
    50% { background-color: #292d38; }
    100% { background-color: #1a1c23; }
}

.horizontal-episode-skeleton-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
}

.horizontal-episode-skeleton-title {
    height: 24px;
    background-color: #1a1c23;
    border-radius: 6px;
    width: 90%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.horizontal-episode-skeleton-overview {
    height: 2.7rem;
    background-color: #1a1c23;
    border-radius: 6px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.horizontal-episode-skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.horizontal-episode-skeleton-date {
    height: 16px;
    width: 100px;
    background-color: #1a1c23;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.horizontal-episode-skeleton-nav {
    display: flex;
    gap: 0.5rem;
}

.horizontal-episode-skeleton-nav span {
    width: 36px;
    height: 36px;
    background-color: #1a1c23;
    border-radius: 0.75rem;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.horizontal-episode-card {
    width: 100%;
    max-height: 130px;
    background-color: #242832;
    border-radius: 1.5rem;
    display: flex;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.horizontal-episode-backdrop {
    position: relative;
    flex: 0 0 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    box-sizing: border-box;
}

.horizontal-episode-backdrop-inner {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    overflow: hidden;
}

.horizontal-episode-backdrop-inner:hover {
    border-color: #db6937;
    transform: scale(1.05);
}

.horizontal-episode-backdrop-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.horizontal-episode-backdrop-inner:hover::before {
    opacity: 1;
}

.horizontal-episode-play-btn {
    position: absolute;
    z-index: 2;
    width: 5rem;
    height: 5rem;
    background: rgb(255 255 255 / 0%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding-left: .5rem;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.horizontal-episode-backdrop-inner:hover .horizontal-episode-play-btn {
    opacity: 1;
    transform: scale(1);
}

.horizontal-episode-play-btn:hover {
    transform: scale(1.1);
}

.horizontal-episode-play-btn i::after {
    color: #fff;
    content: "\ea63";
    font-family: unicons-line;
    font-size: 3rem;
    font-style: normal;
    margin: 0 auto;
}

.horizontal-episode-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.horizontal-episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9ecef;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-episode-overview {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.horizontal-episode-unavailable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 35, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    z-index: 10;
}

.horizontal-episode-unavailable-content {
    text-align: center;
    color: #6c757d;
}

.horizontal-episode-unavailable-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #dc3545;
}

.horizontal-episode-unavailable-content .date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e9ecef;
    margin-top: 0.5rem;
}

.horizontal-episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.horizontal-episode-air-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.horizontal-episode-air-date i {
    margin-right: 0.4rem;
    color: #6c757d;
}

.horizontal-episode-navigation {
    display: flex;
    gap: 0.5rem;
}

.horizontal-episode-nav-btn {
    background-color: #1a1c23;
    border: 1px solid #292d38;
    color: #6c757d;
    border-radius: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.horizontal-episode-nav-btn:hover:not(:disabled) {
    border-color: #dc3545;
    color: #dc3545;
}

.horizontal-episode-nav-btn i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.horizontal-episode-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .horizontal-episode-backdrop {
        flex: 0 0 180px;
    }
    .horizontal-episode-details {
        padding: 0.8rem;
    }
    .horizontal-episode-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .horizontal-episode-card-container {
        height: 130px;
    }
    .horizontal-episode-card {
        max-height: none;
        min-height: 130px;
    }
    .horizontal-episode-skeleton {
        max-height: none;
        min-height: 130px;
    }
    .horizontal-episode-backdrop {
        flex: 0 0 120px;
        padding: 0.6rem;
    }
    .horizontal-episode-skeleton-backdrop {
        flex: 0 0 120px;
        margin: 0.6rem;
    }
    .horizontal-episode-backdrop-inner {
        border-radius: 0.75rem;
        height: calc(100% - 2px);
    }
    .horizontal-episode-details {
        padding: 0.8rem;
    }
    .horizontal-episode-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .horizontal-episode-overview {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        height: 2.4rem;
        margin-bottom: 0.4rem;
    }
    .horizontal-episode-air-date {
        font-size: 0.75rem;
    }
}

.horizontal-episode-card {
    transition: none;
}

