/* Slider styles */
#mainSlider .carousel-item {
    height: 500px;
}

#mainSlider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#mainSlider .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
}

/* Card styles */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-img-top {
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Typography */
.card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mainSlider .carousel-item {
        height: 300px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
}

/* Loading state */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Loading placeholder */
.loading-card {
    background: #f8f9fa;
    animation: pulse 1.5s infinite;
}

.loading-img {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.loading-title {
    height: 20px;
    width: 80%;
    margin: 10px 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.loading-text {
    height: 15px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .loading-img {
        height: 200px;
    }
} 

/* Pull to refresh */
#pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* Infinite scroll loader */
#infinite-scroll-loader {
    padding: 20px;
}

/* Card image placeholder */
.card-img-top {
    background: #f8f9fa;
    min-height: 300px;
}

@media (max-width: 768px) {
    .card-img-top {
        min-height: 200px;
    }
} 

/* Animation cho card mới */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
} 

/* Player wrapper */
.player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Episode list */
.episode-list {
    max-height: 500px;
    overflow-y: auto;
}

.episode-item.active {
    background-color: #007bff;
    color: white;
} 

/* Logo styling */
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 10px;
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-text:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Thêm animation cho logo khi load trang */
@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-brand {
    animation: logoEntrance 0.5s ease-out;
}

/* Thêm hiệu ứng pulse cho logo */
@keyframes logoPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.logo-text:hover {
    animation: logoPulse 1s infinite;
}

/* Thêm hiệu ứng gradient animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo-text {
    background: linear-gradient(45deg, #ff4e50, #f9d423, #ff4e50);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s ease infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 20px;
        letter-spacing: 1px;
    }
} 