/* Base Styles */
:root {
    --primary-color: #e50914;
    --primary-dark: #b2070f;
    --secondary-color: #221f1f;
    --light-color: #f5f5f1;
    --dark-color: #221f1f;
    --text-color: #333;
    --text-light: #fff;
    --bg-color: #fff;
    --bg-secondary: #f8f9fa;
    --border-color: #ddd;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
/* BADGE */
    --y-color: #d9dc35;
    --g-color: #35dc51;
    --b-color: #3591dc;
    --u-color: #bb35dc;
    --r-color: #e50914;
    --ge-color: #1809e5;
    --space-sm: 0.5rem;
    --text-xs: 0.65rem;
    --radius-sm: 4px;
}

[data-theme="dark"] {
    --primary-color: #e50914;
    --primary-dark: #b2070f;
    --secondary-color: #1a1a1a;
    --light-color: #f5f5f1;
    --dark-color: #121212;
    --text-color: #f5f5f1;
    --text-light: #fff;
    --bg-color: #121212;
    --bg-secondary: #1a1a1a;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navbar */
.header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: var(--text-light);
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    margin: 0 20px;
    max-width: 500px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-bar button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--primary-dark);
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 15px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-switcher button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
}

.hamburger {
    display: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    margin: 20px 0 40px;
    position: relative;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 600px;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.meta-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.meta-info span {
    margin-right: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.meta-info .rating {
    color: #f5c518;
    font-weight: bold;
}

.meta-info .rating i {
    margin-right: 5px;
}

.meta-info .quality {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.hero-content .overview {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
}

.btn-play, .btn-detail {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-play {
    background-color: var(--primary-color);
    color: white;
}

.btn-play:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-detail {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-detail:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-play i, .btn-detail i {
    margin-right: 8px;
}

/* Movie Sections */
.movie-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

/* Animation for Loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Create staggered animation */
.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-card:nth-child(5) { animation-delay: 0.5s; }
.movie-card:nth-child(6) { animation-delay: 0.6s; }
.movie-card:nth-child(7) { animation-delay: 0.7s; }
.movie-card:nth-child(8) { animation-delay: 0.8s; }
.movie-card:nth-child(9) { animation-delay: 0.9s; }
.movie-card:nth-child(10) { animation-delay: 1.0s; }
.movie-card:nth-child(11) { animation-delay: 1.1s; }
.movie-card:nth-child(12) { animation-delay: 1.2s; }
.movie-card:nth-child(13) { animation-delay: 1.3s; }
.movie-card:nth-child(14) { animation-delay: 1.4s; }
.movie-card:nth-child(15) { animation-delay: 1.5s; }
.movie-card:nth-child(16) { animation-delay: 1.6s; }
.movie-card:nth-child(17) { animation-delay: 1.7s; }
.movie-card:nth-child(18) { animation-delay: 1.8s; }
.movie-card:nth-child(19) { animation-delay: 1.9s; }
.movie-card:nth-child(19) { animation-delay: 1.10s; }

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.rating {
    background-color: rgba(0, 0, 0, 0.7);
    color: #f5c518;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.play-btn {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    transition: transform 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.details-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background-color: white;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info .meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

.movie-info .quality {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.section-footer {
    text-align: right;
    margin-top: 20px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
}

.view-all i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.view-all:hover i {
    transform: translateX(5px);
}

/* Movie Detail Page */
.movie-detail {
    margin: 30px 0;
}

.detail-header {
    display: flex;
    margin-bottom: 40px;
}

.detail-poster {
    flex: 0 0 300px;
    height: min-content;
    margin-right: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-content {
    flex: 1;
}

.detail-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.detail-content h1 span {
    font-weight: normal;
    color: #777;
}

.meta-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-info span {
    margin-right: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.meta-info .rating {
    color: #f5c518;
    font-weight: bold;
}

.meta-info .rating i {
    margin-right: 5px;
}

.meta-info .votes i {
    margin-right: 5px;
}

.meta-info .runtime i {
    margin-right: 5px;
}

.meta-info .quality {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.genre-tag {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.genre-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.synopsis {
    margin-bottom: 30px;
}

.synopsis h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.synopsis p {
    line-height: 1.8;
}

.detail-buttons {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-play, .btn-trailer, .btn-bookmark {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-play {
    background-color: var(--primary-color);
    color: white;
}

.btn-play:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-trailer {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.btn-trailer:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-bookmark {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-bookmark:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-play i, .btn-trailer i, .btn-bookmark i {
    margin-right: 8px;
}

.cast-crew {
    margin-bottom: 40px;
}

.cast-crew h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.cast-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.cast-item:hover {
    transform: translateY(-5px);
}

.cast-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cast-info {
    padding: 10px;
}

.cast-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-info p {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail Tabs */
.detail-tabs {
    margin-top: 40px;
}

.tabs {
    display: flex;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tabs li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    position: relative;
}

.tabs li.active {
    color: var(--primary-color);
}

.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.review-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author h4 {
    font-size: 16px;
    color: var(--text-color);
}

.rating {
    color: #f5c518;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.rating i {
    margin-right: 5px;
}

.review-content {
    margin-bottom: 15px;
    line-height: 1.7;
}

.review-date {
    font-size: 14px;
    color: #777;
}

.no-reviews, .no-videos {
    text-align: center;
    padding: 40px;
    color: #777;
    font-style: italic;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.video-item h4 {
    padding: 15px;
    font-size: 16px;
    color: var(--text-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Watch Page */
.watch-page {
    margin: 30px 0;
}

.watch-header {
    margin-bottom: 30px;
}

.watch-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.breadcrumb {
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #777;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.player-container {
    margin-bottom: 40px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-options {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.quality-selector, .server-selector {
    display: flex;
    align-items: center;
}

.quality-selector span, .server-selector span {
    margin-right: 10px;
    font-weight: 600;
}

.quality-selector select, .server-selector select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}

.watch-details {
    display: flex;
    margin-bottom: 40px;
    gap: 30px;
}

.detail-left {
    flex: 1;
}

.detail-left h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-left .meta-info {
    margin-bottom: 20px;
}

.detail-left .overview {
    line-height: 1.8;
}

.detail-right {
    flex: 0 0 300px;
}

.download-options, .subtitle-options {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.download-options h3, .subtitle-options h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.download-options ul, .subtitle-options ul {
    list-style: none;
}

.download-options li, .subtitle-options li {
    margin-bottom: 10px;
}

.download-options a, .subtitle-options a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: color 0.3s;
}

.download-options a:hover, .subtitle-options a:hover {
    color: var(--primary-color);
}

.download-options i, .subtitle-options i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.related-movies h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 4px;
}

.no-trailer {
    text-align: center;
    padding: 40px;
    color: #777;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .detail-header {
        flex-direction: column;
    }
    
    .detail-poster {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 300px;
    }
    
    .watch-details {
        flex-direction: column;
    }
    
    .detail-right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .nav-links.active {
        display: block;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 0 0 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-slide {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-content iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-play, .btn-detail {
        margin-right: 0;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
/* ==========================================
   SEARCH PAGE STYLES
   ========================================== */

.search-results {
    margin-top: 30px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.search-meta {
    font-size: 14px;
    color: #777;
}

.search-query {
    font-weight: bold;
    color: var(--text-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.result-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.result-poster {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-card:hover .result-poster img {
    transform: scale(1.05);
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.result-card:hover .result-overlay {
    opacity: 1;
}

.rating {
    background-color: rgba(0, 0, 0, 0.7);
    color: #f5c518;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.play-btn {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    transition: transform 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.details-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background-color: white;
}

.result-info {
    padding: 15px;
}

.result-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

.result-type {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin: 30px 0;
}

.no-results i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-home {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-home:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.current-page {
    font-size: 14px;
    color: #777;
}

/* Filter Section */
.search-filters {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.filter-apply {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-apply:hover {
    background-color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .result-poster {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .result-info h3 {
        font-size: 14px;
    }
    
    .result-meta {
        font-size: 12px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Badges */
.movie-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    z-index: 2;
    animation: pulse 2s infinite;
    padding: 2px;
}

.movie-badge.popular {
    background-color: var(--y-color);
}
.movie-badge.upcoming {
    background-color: var(--g-color);
}
.movie-badge.rated {
    background-color: var(--u-color);
}
.movie-badge.playing {
    background-color: var(--b-color);
}
.movie-badge.recommendation {
    background-color: var(--r-color);
}
.movie-badge.genr {
    background-color: var(--ge-color);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Genre Section Styles */
.genre-section {
    padding: 40px 0;
    background-color: var(--section-bg);
}

.genre-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.genre-section h2 {
    font-size: 28px;
    color: var(--heading-color);
    margin: 0;
    position: relative;
    display: inline-block;
}

.genre-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Genre Grid Styles */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

/* Genre Card Styles */
.genre-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.genre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.genre-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.genre-card h3 {
    color: white;
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.genre-card:hover h3 {
    transform: scale(1.05);
}

.genre-card .movie-count {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.genre-card:hover .movie-count {
    background-color: var(--primary-color);
    transform: translateY(3px);
}

/* Genre Card Colors (example for different genres) */
.genre-card.action {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.genre-card.adventure {
    background: linear-gradient(135deg, #4b6cb7, #182848);
}

.genre-card.animation {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.genre-card.comedy {
    background: linear-gradient(135deg, #f46b45, #eea849);
}

.genre-card.crime {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.genre-card.documentary {
    background: linear-gradient(135deg, #1d976c, #93f9b9);
}

.genre-card.drama {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
}

.genre-card.family {
    background: linear-gradient(135deg, #f857a6, #ff5858);
}

.genre-card.fantasy {
    background: linear-gradient(135deg, #c471f5, #fa71cd);
}

.genre-card.history {
    background: linear-gradient(135deg, #614385, #516395);
}

.genre-card.horror {
    background: linear-gradient(135deg, #870000, #190a05);
}

.genre-card.music {
    background: linear-gradient(135deg, #4776e6, #8e54e9);
}

.genre-card.mystery {
    background: linear-gradient(135deg, #4568dc, #b06ab3);
}

.genre-card.romance {
    background: linear-gradient(135deg, #ff512f, #dd2476);
}

.genre-card.sci-fi {
    background: linear-gradient(135deg, #0cebeb, #20e3b2, #29ffc6);
}

.genre-card.thriller {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

.genre-card.war {
    background: linear-gradient(135deg, #636363, #a2ab58);
}

.genre-card.western {
    background: linear-gradient(135deg, #ba8b02, #181818);
}

/* Animation for Loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.genre-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Create staggered animation */
.genre-card:nth-child(1) { animation-delay: 0.1s; }
.genre-card:nth-child(2) { animation-delay: 0.2s; }
.genre-card:nth-child(3) { animation-delay: 0.3s; }
.genre-card:nth-child(4) { animation-delay: 0.4s; }
.genre-card:nth-child(5) { animation-delay: 0.5s; }
.genre-card:nth-child(6) { animation-delay: 0.6s; }
.genre-card:nth-child(7) { animation-delay: 0.7s; }
.genre-card:nth-child(8) { animation-delay: 0.8s; }
.genre-card:nth-child(9) { animation-delay: 0.9s; }
.genre-card:nth-child(10) { animation-delay: 1.0s; }
.genre-card:nth-child(11) { animation-delay: 1.1s; }
.genre-card:nth-child(12) { animation-delay: 1.2s; }
.genre-card:nth-child(13) { animation-delay: 1.3s; }
.genre-card:nth-child(14) { animation-delay: 1.4s; }
.genre-card:nth-child(15) { animation-delay: 1.5s; }
.genre-card:nth-child(16) { animation-delay: 1.6s; }
.genre-card:nth-child(17) { animation-delay: 1.7s; }
.genre-card:nth-child(18) { animation-delay: 1.8s; }
.genre-card:nth-child(19) { animation-delay: 1.9s; }