/* TMDB Plugin Enhanced Styles with Modal Support */

/* Reset and Base Styles */
.tmdb-section, .tmdb-movies-page, .tmdb-series-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px 0;
}

/* Section Header */
.tmdb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.tmdb-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tmdb-view-all {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tmdb-view-all:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Horizontal Slider */
.tmdb-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tmdb-slider::-webkit-scrollbar {
    height: 6px;
}

.tmdb-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tmdb-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.tmdb-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Slider Navigation */
.tmdb-slider-container {
    position: relative;
}

.tmdb-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmdb-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.tmdb-slider-prev {
    left: 10px;
}

.tmdb-slider-next {
    right: 10px;
}

/* Movie Cards in Slider */
.tmdb-card {
    flex: 0 0 auto;
    width: 180px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmdb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tmdb-card-image {
    width: 100%;
    height: 270px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1f2937;
}

.tmdb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tmdb-card:hover .tmdb-card-image img {
    transform: scale(1.05);
}

.tmdb-card-content {
    padding: 12px 4px;
}

.tmdb-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmdb-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.tmdb-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 500;
}

.star {
    font-size: 0.875rem;
}

.tmdb-year {
    color: #9ca3af;
    font-weight: 400;
}

/* Grid Pages */
.tmdb-page-header {
    margin-bottom: 30px;
}

.tmdb-page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.tmdb-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tmdb-filters select {
    background: #374151;
    color: #ffffff;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tmdb-filters select:hover,
.tmdb-filters select:focus {
    border-color: #ef4444;
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Grid Layout */
.tmdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tmdb-grid-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmdb-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.tmdb-grid-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1f2937;
}

.tmdb-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tmdb-grid-card:hover .tmdb-grid-image img {
    transform: scale(1.1);
}

/* Overlay Effect */
.tmdb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.tmdb-grid-card:hover .tmdb-overlay {
    opacity: 1;
}

.tmdb-overlay-content {
    color: #ffffff;
    width: 100%;
}

.tmdb-overview {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #e5e7eb;
}

/* Buttons */
.tmdb-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tmdb-btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tmdb-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.tmdb-btn-secondary {
    background: #374151;
    color: #ffffff;
    border: 1px solid #4b5563;
}

.tmdb-btn-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* Button Icons */
.play-icon, .plus-icon {
    font-size: 1rem;
}

/* Grid Card Content */
.tmdb-grid-content {
    padding: 15px 5px;
}

.tmdb-grid-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmdb-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Pagination */
.tmdb-pagination {
    text-align: center;
    margin-top: 40px;
}

#tmdb-load-more {
    padding: 12px 30px;
    font-size: 0.875rem;
}

/* Loading State */
.tmdb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tmdb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ef4444;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* MODAL STYLES */

/* Modal Overlay */
.tmdb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
}

.tmdb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.tmdb-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #0f172a;
}

/* Modal Close Button */
.tmdb-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tmdb-modal-close:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* Modal Loading Spinner */
.tmdb-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: #ffffff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(239, 68, 68, 0.3);
    border-top: 4px solid #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Hero Section */
.tmdb-detail-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.tmdb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.8) 40%,
        rgba(15, 23, 42, 0.6) 70%,
        rgba(15, 23, 42, 0.3) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.tmdb-hero-content {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tmdb-hero-poster {
    flex: 0 0 300px;
}

.tmdb-hero-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tmdb-hero-info {
    flex: 1;
    color: white;
}

.tmdb-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.tmdb-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tmdb-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tmdb-release-date,
.tmdb-runtime,
.tmdb-genres {
    color: #e5e7eb;
}

.tmdb-hero-overview {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e5e7eb;
    max-width: 600px;
}

.tmdb-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tmdb-hero-actions .tmdb-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Detail Content Sections */
.tmdb-detail-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tmdb-section {
    margin-bottom: 50px;
}

.tmdb-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Cast Grid */
.tmdb-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.tmdb-cast-member {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tmdb-cast-member:hover {
    transform: translateY(-5px);
}

.tmdb-cast-photo {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #374151;
}

.tmdb-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-cast-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.tmdb-cast-character {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* Videos Grid */
.tmdb-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tmdb-video-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.tmdb-video-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #374151;
}

.tmdb-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.tmdb-video-card:hover .tmdb-play-overlay {
    background: rgba(239, 68, 68, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.tmdb-video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0 0 0;
    line-height: 1.3;
}

/* Similar Content Grid */
.tmdb-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.tmdb-similar-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tmdb-similar-card:hover {
    transform: translateY(-5px);
}

.tmdb-similar-image {
    position: relative;
    width: 100%;
    height: 225px;
    border-radius: 8px;
    overflow: hidden;
    background: #374151;
}

.tmdb-similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-similar-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.tmdb-similar-rating {
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tmdb-similar-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Modal */
.tmdb-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
}

.tmdb-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.tmdb-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tmdb-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tmdb-video-close:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

.tmdb-video-container iframe {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Error State */
.tmdb-error {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
    font-size: 1.1rem;
}

/* Body Modal Open State */
body.modal-open {
    overflow: hidden;
}

/* Dark Theme Support */
.tmdb-section {
    background: #0f172a;
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
}

.tmdb-movies-page,
.tmdb-series-page {
    background: #0f172a;
    min-height: 100vh;
    padding: 30px 20px;
    border-radius: 16px;
    margin: 20px 0;
}

/* Animation Keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tmdb-modal-content {
    animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tmdb-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tmdb-hero-poster {
        flex: 0 0 250px;
    }
    
    .tmdb-hero-title {
        font-size: 2.5rem;
    }
    
    .tmdb-detail-content {
        padding: 30px 20px;
    }
    
    .tmdb-cast-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .tmdb-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .tmdb-title {
        font-size: 1.5rem;
    }
    
    .tmdb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tmdb-slider {
        gap: 12px;
        padding: 10px 5px;
    }
    
    .tmdb-card {
        width: 140px;
    }
    
    .tmdb-card-image {
        height: 210px;
    }
    
    .tmdb-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .tmdb-grid-image {
        height: 225px;
    }
    
    .tmdb-filters {
        gap: 10px;
    }
    
    .tmdb-filters select {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .tmdb-page-header h1 {
        font-size: 1.875rem;
    }
    
    .tmdb-movies-page,
    .tmdb-series-page {
        padding: 20px 15px;
    }
    
    /* Modal Responsive */
    .tmdb-hero-overlay {
        padding: 20px;
    }
    
    .tmdb-hero-poster {
        flex: 0 0 200px;
    }
    
    .tmdb-hero-title {
        font-size: 2rem;
    }
    
    .tmdb-hero-meta {
        font-size: 0.9rem;
        gap: 15px;
    }
    
    .tmdb-hero-overview {
        font-size: 1rem;
    }
    
    .tmdb-hero-actions .tmdb-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tmdb-cast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .tmdb-cast-photo {
        height: 150px;
    }
    
    .tmdb-videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tmdb-similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .tmdb-video-container {
        padding: 20px;
    }
    
    .tmdb-video-container iframe {
        width: 100%;
        height: 250px;
    }
    
    .tmdb-slider-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .tmdb-slider {
        gap: 8px;
    }
    
    .tmdb-card {
        width: 120px;
    }
    
    .tmdb-card-image {
        height: 180px;
    }
    
    .tmdb-card-title {
        font-size: 0.8rem;
    }
    
    .tmdb-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .tmdb-grid-image {
        height: 195px;
    }
    
    .tmdb-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .tmdb-filters select {
        width: 100%;
        min-width: auto;
    }
    
    /* Modal Mobile */
    .tmdb-hero-overlay {
        padding: 15px;
    }
    
    .tmdb-hero-poster {
        flex: 0 0 150px;
    }
    
    .tmdb-hero-title {
        font-size: 1.5rem;
    }
    
    .tmdb-hero-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .tmdb-hero-overview {
        font-size: 0.9rem;
    }
    
    .tmdb-detail-content {
        padding: 20px 15px;
    }
    
    .tmdb-section-title {
        font-size: 1.25rem;
    }
    
    .tmdb-cast-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .tmdb-cast-photo {
        height: 120px;
    }
    
    .tmdb-cast-name {
        font-size: 0.8rem;
    }
    
    .tmdb-cast-character {
        font-size: 0.7rem;
    }
    
    .tmdb-similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .tmdb-similar-image {
        height: 150px;
    }
    
    .tmdb-modal-close,
    .tmdb-video-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Animation Effects */
.tmdb-card-enter {
    opacity: 0;
    transform: translateY(20px);
}

.tmdb-card-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Skeleton Loading */
.tmdb-skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Search and Filter Enhancements */
.tmdb-search-container {
    margin-bottom: 20px;
}

.tmdb-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    background: #374151;
    color: #ffffff;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tmdb-search-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.tmdb-search-input::placeholder {
    color: #9ca3af;
}

/* Genre Tags */
.tmdb-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tmdb-genre-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* No Results State */
.tmdb-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.tmdb-no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.tmdb-no-results p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Popular Badge */
.tmdb-popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Quality Badge */
.tmdb-quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Advanced Hover Effects */
.tmdb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.tmdb-card:hover::before {
    opacity: 1;
}

/* Scrollbar Styling for Main Content */
.tmdb-movies-page::-webkit-scrollbar,
.tmdb-series-page::-webkit-scrollbar {
    width: 8px;
}

.tmdb-movies-page::-webkit-scrollbar-track,
.tmdb-series-page::-webkit-scrollbar-track {
    background: #1f2937;
}

.tmdb-movies-page::-webkit-scrollbar-thumb,
.tmdb-series-page::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.tmdb-movies-page::-webkit-scrollbar-thumb:hover,
.tmdb-series-page::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Focus States for Accessibility */
.tmdb-card:focus,
.tmdb-grid-card:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.tmdb-btn:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .tmdb-section,
    .tmdb-movies-page,
    .tmdb-series-page {
        background: white !important;
        color: black !important;
    }
    
    .tmdb-title,
    .tmdb-card-title,
    .tmdb-grid-title {
        color: black !important;
    }
    
    .tmdb-btn,
    .tmdb-overlay {
        display: none !important;
    }
}