* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #f5c518;
    --accent-color: #0066ff;
    --bg-color: #121212;
    --header-bg: #1c1c1c;
    --footer-bg: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --card-bg: #1e1e1e;
    --border-color: #2a2a2a;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcement-bar {
    background: linear-gradient(90deg, var(--primary-color), #c80913);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-bar p {
    margin: 0;
}

.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    position: relative;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}

.nav-menu > li > a::after {
    display: none;
}

.nav-menu > li.active > a,
.nav-menu > li > a.active {
    color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 180px;
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #c40812;
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--card-bg);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--border-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 180px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--border-color);
    color: var(--primary-color);
}

.site-main {
    flex: 1;
    padding: 30px 0;
}

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 80px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-year,
.hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-rating svg {
    color: var(--secondary-color);
}

.genre-badge {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hero-overview {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #c40812;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.hero-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--primary-color);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-default {
    background: linear-gradient(135deg, var(--header-bg), var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40vh;
    min-height: 300px;
}

.hero-default .hero-content {
    max-width: none;
    padding: 40px;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    transform: scale(0.8);
}

.movie-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    background: #c40812;
    transform: scale(1.1);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-rating svg {
    color: var(--secondary-color);
}

.movie-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.movie-badge {
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.badge-quality {
    background: rgba(229, 9, 20, 0.85);
}

.badge-runtime {
    background: rgba(0, 0, 0, 0.75);
}

.quality-badge-large {
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.movie-title a:hover {
    color: var(--primary-color);
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.movie-genre {
    background: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.carousel-track .movie-card {
    flex: 0 0 calc(16.666% - 17px);
    min-width: 180px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.filter-section {
    margin-bottom: 30px;
}

.sticky-filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
    padding: 15px 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    transition: box-shadow 0.3s ease;
}

.sticky-filter-bar.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    min-width: 180px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.genre-tag {
    background: var(--card-bg);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.genre-tag:hover,
.genre-tag.active {
    background: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    background: var(--card-bg);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
}

.page-dots {
    padding: 10px;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.movie-details-page {
    position: relative;
}

.movie-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center top;
    z-index: -1;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.5) 0%, var(--bg-color) 100%);
}

.movie-details {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    margin-bottom: 50px;
}

.movie-poster-large {
    flex: 0 0 300px;
}

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

.movie-info-large {
    flex: 1;
    padding-top: 20px;
}

.movie-title-large {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.movie-meta-large {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 15px;
}

.meta-item.rating svg {
    color: var(--secondary-color);
}

.movie-genres-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.movie-genres-large .genre-tag {
    background: var(--primary-color);
}

.movie-overview {
    margin-bottom: 30px;
}

.movie-overview h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.movie-overview p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.movie-actions {
    margin-top: 30px;
}

.trailer-section {
    margin: 50px 0;
}

.trailer-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.trailer-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.trailer-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.trailer-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.trailer-embed.floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 180px;
    z-index: 1500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.floating-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.floating-close-btn:hover {
    background: #c40812;
    transform: scale(1.1);
}

.trailer-embed.floating .floating-close-btn {
    display: flex;
}

@media (max-width: 480px) {
    .trailer-embed.floating {
        width: 260px;
        height: 146px;
        bottom: 10px;
        right: 10px;
    }
}

.search-form-large {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input-large {
    flex: 1;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results-info {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.page-content {
    max-width: 800px;
    line-height: 1.8;
    color: var(--text-muted);
}

.page-content p {
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.site-footer {
    background: linear-gradient(180deg, var(--footer-bg) 0%, #0a0a0a 100%);
    margin-top: auto;
}

.footer-top {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    color: var(--primary-color);
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--primary-color);
    font-size: 13px;
    font-style: italic;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #000; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.youtube:hover { background: #ff0000; }
.social-link.telegram:hover { background: var(--primary-color); }

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

.footer-links .link-icon {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links .request-movie-link {
    color: var(--secondary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links .separator {
    color: var(--border-color);
}

.ad-container {
    margin: 30px 0;
    text-align: center;
}

.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.trailer-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .carousel-track .movie-card {
        flex: 0 0 calc(25% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .footer-col h4::after {
        left: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .movie-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .movie-poster-large {
        flex: none;
        max-width: 300px;
    }
    
    .movie-meta-large,
    .movie-genres-large {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-form {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .carousel-wrapper {
        padding: 0;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .carousel-track .movie-card {
        flex: 0 0 45%;
        scroll-snap-align: start;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .movie-title-large {
        font-size: 28px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .movie-info {
        padding: 10px;
    }
    
    .movie-title {
        font-size: 13px;
    }
    
    .movie-meta {
        font-size: 11px;
    }
}

.has-mega-menu {
    position: static;
}

.mega-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mega-menu-trigger .dropdown-arrow {
    transition: transform 0.3s ease;
}

.has-mega-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 25px;
    min-width: 600px;
    max-width: 800px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 10px solid var(--card-bg);
}

.mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    background: var(--bg-color);
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text-color);
}

.mega-menu-item:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.genre-emoji {
    font-size: 24px;
    line-height: 1;
}

.genre-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.view-all-genres {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-all-genres:hover {
    color: #ff3d3d;
    text-decoration: underline;
}

body[dir="rtl"] .mega-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(15px);
}

body[dir="rtl"] .has-mega-menu:hover .mega-menu {
    transform: translateX(50%) translateY(5px);
}

body[dir="rtl"] .mega-menu::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

@media (max-width: 1024px) {
    .mega-menu {
        min-width: 500px;
        max-width: 600px;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .has-mega-menu {
        position: relative;
    }
    
    .mega-menu {
        position: static;
        min-width: auto;
        max-width: none;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        background: transparent;
        transform: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    
    .has-mega-menu.mobile-open .mega-menu {
        max-height: 500px;
        padding: 15px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .mega-menu::before {
        display: none;
    }
    
    .mega-menu-content {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        padding: 15px;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mega-menu-item {
        padding: 10px 12px;
    }
    
    .genre-emoji {
        font-size: 20px;
    }
    
    .genre-name {
        font-size: 13px;
    }
    
    .mega-menu-footer {
        padding-top: 10px;
    }
    
    body[dir="rtl"] .mega-menu {
        transform: none;
    }
    
    body[dir="rtl"] .has-mega-menu.mobile-open .mega-menu {
        transform: none;
    }
}

.movie-tabs {
    margin: 40px 0;
}

.tabs-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn svg {
    flex-shrink: 0;
}

.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

.cast-section,
.crew-section {
    margin-bottom: 40px;
}

.cast-section h3,
.crew-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cast-grid,
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.cast-card,
.crew-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.cast-card:hover,
.crew-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cast-photo,
.crew-photo {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.cast-photo img,
.crew-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cast-card:hover .cast-photo img,
.crew-card:hover .crew-photo img {
    transform: scale(1.05);
}

.cast-info,
.crew-info {
    padding: 12px;
}

.cast-name,
.crew-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cast-character,
.crew-job {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.similar-movies-grid {
    margin-top: 20px;
}

.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-content svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content p {
    font-size: 18px;
    margin-bottom: 8px;
}

.no-content-hint {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .tabs-nav {
        gap: 0;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .cast-grid,
    .crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .cast-info,
    .crew-info {
        padding: 10px;
    }
    
    .cast-name,
    .crew-name {
        font-size: 13px;
    }
    
    .cast-character,
    .crew-job {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tab-btn span {
        display: none;
    }
    
    .tab-btn {
        padding: 12px 18px;
    }
    
    .cast-grid,
    .crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--card-bg);
    border-radius: 25px;
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(229, 57, 53, 0.15);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: #ef5350;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #66bb6a;
}

.profile-page {
    padding: 30px 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-initial {
    font-size: 32px;
    font-weight: 700;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-email {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 5px;
}

.profile-joined {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.profile-tab-btn:hover {
    background: var(--border-color);
}

.profile-tab-btn.active {
    background: transparent;
    border-color: var(--primary-color);
    color: #fff;
}

.profile-tab-btn.active svg {
    color: var(--primary-color);
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border-radius: 16px;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    background: rgba(255,255,255,0.2);
}

.btn-action.active {
    background: var(--primary-color);
}

.btn-action.active svg {
    fill: currentColor;
}

.watchlist-btn.active {
    background: var(--accent-color);
}

.favorite-btn.active {
    background: #e91e63;
}

.favorite-btn.active svg {
    color: #fff;
}

.movie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #4caf50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-tabs {
        justify-content: center;
    }
    
    .profile-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .movie-actions {
        flex-direction: column;
    }
    
    .btn-action {
        justify-content: center;
    }
}

.continue-watching-section {
    margin-bottom: 40px;
}

.continue-watching-section .section-header h2 {
    display: flex;
    align-items: center;
}

.continue-watching-section .section-header h2 svg {
    color: var(--primary-color);
}

.continue-watching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.continue-watching-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.continue-watching-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cw-poster {
    position: relative;
    flex: 0 0 120px;
    height: 180px;
    overflow: hidden;
}

.cw-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.continue-watching-card:hover .cw-poster img {
    transform: scale(1.05);
}

.cw-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.continue-watching-card:hover .cw-play-overlay {
    opacity: 1;
}

.cw-play-btn {
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.cw-play-btn:hover {
    transform: scale(1.1);
    background: #c40812;
}

.cw-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.cw-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.cw-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cw-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-title a:hover {
    color: var(--primary-color);
}

.cw-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cw-time-left {
    font-size: 13px;
    color: var(--text-muted);
}

.cw-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cw-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.cw-continue-btn:hover {
    background: #c40812;
}

.cw-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cw-remove-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

@media (max-width: 576px) {
    .continue-watching-grid {
        grid-template-columns: 1fr;
    }
    
    .cw-poster {
        flex: 0 0 100px;
        height: 150px;
    }
    
    .cw-info {
        padding: 12px;
    }
    
    .cw-title {
        font-size: 14px;
    }
}

.advanced-filters-section {
    margin-bottom: 25px;
}

.advanced-filters-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.advanced-filters-toggle:hover {
    background: var(--border-color);
}

.advanced-filters-toggle .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.advanced-filters-toggle .toggle-icon.open {
    transform: rotate(180deg);
}

.advanced-filters-toggle .filter-count {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.advanced-filters-content {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 25px;
    margin-top: -10px;
}

.advanced-filters-content.open {
    display: block;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-genres {
    margin-bottom: 25px;
}

.genre-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.genre-checkbox input[type="checkbox"] {
    display: none;
}

.genre-checkbox .checkbox-label {
    background: var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.genre-checkbox input[type="checkbox"]:checked + .checkbox-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.genre-checkbox:hover .checkbox-label {
    background: rgba(229, 9, 20, 0.3);
}

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

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 10px;
}

.active-filters-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.search-results-info {
    margin-bottom: 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-filters-content {
        padding: 15px;
    }
    
    .genre-checkbox .checkbox-label {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.ajax-load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.btn-load-more {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: #c40812;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more.loading {
    pointer-events: none;
}

.ajax-loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.ajax-loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-more-movies {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
    display: none;
}

.no-more-movies.visible {
    display: block;
}

.movie-card.ajax-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movies-grid .movie-card:nth-child(n) {
    animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

.ajax-pagination-info {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.ajax-error-message {
    background: rgba(229, 9, 20, 0.15);
    color: #ff6b6b;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.ajax-error-message.visible {
    display: block;
}

/* Collections Styles */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.collections-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.collection-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.collection-link {
    display: block;
}

.collection-backdrop {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.collection-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.collection-poster {
    position: relative;
    z-index: 2;
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.collection-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.collection-info {
    position: relative;
    z-index: 2;
    flex: 1;
}

.collection-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.collection-count {
    color: var(--text-muted);
    font-size: 13px;
}

/* Collection Hero (Single Collection Page) */
.collection-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.collection-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%);
}

.collection-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.collection-hero-poster {
    flex-shrink: 0;
}

.collection-hero-poster img {
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.collection-hero-info h1 {
    font-size: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
}

.collection-overview {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.collection-stats {
    display: flex;
    gap: 20px;
}

.collection-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.collection-stat svg {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .collection-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .collection-hero-poster img {
        width: 150px;
    }
    
    .collection-hero-info h1 {
        font-size: 26px;
    }
    
    .collection-stats {
        justify-content: center;
    }
    
    .collections-grid,
    .collections-grid-home {
        grid-template-columns: 1fr;
    }
    
    .collection-backdrop {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        min-height: 180px;
    }
    
    .collection-poster {
        margin-bottom: 10px;
    }
}

/* TV Shows Styles */
.badge-tv {
    background: var(--accent-color);
}

.badge-seasons {
    background: #4a90d9;
}

.badge-status {
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Seasons Accordion */
.seasons-section {
    margin-top: 40px;
}

.seasons-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.seasons-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255,255,255,0.05);
}

.accordion-header.active {
    background: rgba(255,255,255,0.08);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.season-thumb {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.season-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.season-name {
    font-weight: 600;
    font-size: 16px;
}

.episode-count, .air-date {
    font-size: 13px;
    color: var(--text-muted);
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 20px 20px;
}

.accordion-content.active {
    display: block;
}

.season-overview {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Episodes List */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.episode-card {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.episode-card:hover {
    background: rgba(255,255,255,0.06);
}

.episode-thumb {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    height: 85px;
    border-radius: 6px;
    overflow: hidden;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.episode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.episode-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.episode-overview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 5px 0 0;
}

/* Season Page */
.season-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
}

.season-poster {
    width: 200px;
    border-radius: 8px;
}

.season-info-detail {
    flex: 1;
}

.season-info-detail h1 {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.season-info-detail h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.season-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.season-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.season-overview-detail {
    color: var(--text-muted);
    line-height: 1.7;
}

.episodes-section {
    margin-top: 30px;
}

.episodes-section h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    opacity: 0.5;
}

/* Responsive TV Styles */
@media (max-width: 768px) {
    .season-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .season-poster {
        width: 150px;
    }
    
    .season-meta {
        justify-content: center;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        flex-direction: column;
    }
    
    .episode-thumb {
        width: 100%;
        height: 180px;
    }
    
    .accordion-title {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .season-thumb {
        display: none;
    }
}

/* Review System Styles */
.review-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.review-form-container h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.star-rating-picker {
    margin-bottom: 20px;
}

.star-rating-picker label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.star-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn.active,
.star-btn:hover {
    color: var(--secondary-color);
}

.star-btn.active svg,
.star-btn:hover svg {
    fill: currentColor;
}

.star-btn svg {
    display: block;
}

.rating-value {
    margin-left: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 50px;
}

.review-text-container {
    margin-bottom: 20px;
}

.review-text-container label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.review-text-container textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
}

.review-text-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.review-form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.login-prompt {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.reviews-list {
    margin-top: 20px;
}

.reviews-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.reviews-header h3 {
    font-size: 18px;
}

.review-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-avatar .avatar-initial {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.review-meta {
    flex: 1;
}

.review-username {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 197, 24, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.review-rating svg {
    color: var(--secondary-color);
}

.review-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

.admin-delete-review:hover {
    color: #ff4444;
}

.load-more-reviews {
    text-align: center;
    margin-top: 20px;
}

.rating-label {
    font-size: 11px;
    margin-left: 5px;
    opacity: 0.7;
    font-weight: normal;
}

.user-rating-display svg {
    color: var(--accent-color) !important;
}

/* My Reviews in Profile */
.my-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-review-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.my-review-poster {
    flex-shrink: 0;
    width: 100px;
}

.my-review-poster img {
    width: 100%;
    border-radius: 8px;
}

.my-review-content {
    flex: 1;
}

.my-review-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.my-review-title a:hover {
    color: var(--primary-color);
}

.my-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 197, 24, 0.15);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.my-review-rating svg {
    color: var(--secondary-color);
}

.my-review-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.my-review-date {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

.my-review-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .stars-container {
        gap: 2px;
    }
    
    .star-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .review-header {
        flex-wrap: wrap;
    }
    
    .my-review-card {
        flex-direction: column;
    }
    
    .my-review-poster {
        width: 80px;
    }
}

/* Movie Request Page Styles */
.request-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.request-header {
    text-align: center;
    margin-bottom: 40px;
}

.request-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.request-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.request-form-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.request-form-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.request-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.request-form label .required {
    color: var(--primary-color);
}

.request-form label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.request-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.request-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.request-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.request-form .btn-lg {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.autocomplete-item:hover {
    background: var(--border-color);
}

.autocomplete-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.autocomplete-info {
    display: flex;
    flex-direction: column;
}

.autocomplete-title {
    font-weight: 500;
}

.autocomplete-year {
    color: var(--text-muted);
    font-size: 13px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-prompt p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.login-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.guest-note {
    font-size: 13px;
    color: var(--text-muted);
}

.my-requests {
    margin-top: 40px;
}

.my-requests h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
}

.request-info {
    flex: 1;
}

.request-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.request-notes {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.request-date {
    color: var(--text-muted);
    font-size: 12px;
}

.request-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-approved {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-fulfilled {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.admin-response {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.empty-requests {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.request-movie-link {
    color: var(--secondary-color) !important;
}

.request-movie-link:hover {
    color: var(--primary-color) !important;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .request-item {
        flex-direction: column;
    }
    
    .request-status {
        text-align: left;
        width: 100%;
    }
}

.badge-comments {
    background: rgba(0, 102, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.comment-form-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-text-container textarea {
    width: 100%;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    padding: 15px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.comment-text-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.comments-list {
    margin-top: 20px;
}

.comments-header {
    margin-bottom: 20px;
}

.comments-header h3 {
    font-size: 20px;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.comment-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.comment-card.is-reply {
    margin-left: 50px;
    background: rgba(30, 30, 30, 0.7);
    border-left: 3px solid var(--accent-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar .avatar-initial {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.comment-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-username {
    font-weight: 600;
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-actions .btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.comment-actions .btn-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 12px;
}

.comment-footer {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.comment-reply-btn:hover {
    color: var(--accent-color);
    background: rgba(0, 102, 255, 0.1);
}

.comment-replies {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-form-container {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.reply-form-container.inline-reply {
    margin-left: 50px;
    margin-top: 15px;
}

.replying-to-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-form textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reply-form-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.edit-form-container {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 15px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-form textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.edit-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.edit-form-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.load-more-comments {
    text-align: center;
    margin-top: 20px;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-comments svg {
    opacity: 0.5;
    margin-bottom: 15px;
}

.no-comments p {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-comments-hint {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .comment-card.is-reply {
        margin-left: 20px;
    }
    
    .reply-form-container.inline-reply {
        margin-left: 20px;
    }
    
    .comment-header {
        flex-wrap: wrap;
    }
    
    .comment-actions {
        width: 100%;
        margin-top: 10px;
    }
}

.recently-viewed-section {
    margin-bottom: 40px;
}

.recently-viewed-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.recently-viewed-section .section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recently-viewed-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}

.recently-viewed-scroll::-webkit-scrollbar {
    height: 6px;
}

.recently-viewed-scroll::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 3px;
}

.recently-viewed-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.recently-viewed-scroll::-webkit-scrollbar-thumb:hover {
    background: #c40812;
}

.recently-viewed-item {
    flex: 0 0 auto;
    width: 130px;
}

.recently-viewed-poster {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.recently-viewed-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recently-viewed-item:hover .recently-viewed-poster img {
    transform: scale(1.05);
}

.recently-viewed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recently-viewed-item:hover .recently-viewed-overlay {
    opacity: 1;
}

.play-btn-small {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-btn-small:hover {
    background: #c40812;
    transform: scale(1.1);
}

.recently-viewed-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recently-viewed-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.recently-viewed-title a:hover {
    color: var(--primary-color);
}

.clear-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
}

.clear-history-btn svg {
    flex-shrink: 0;
}

.history-header {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .recently-viewed-item {
        width: 110px;
    }
    
    .recently-viewed-title {
        font-size: 12px;
    }
    
    .recently-viewed-section .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.notification-settings {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.notification-settings h2 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-settings h2 svg {
    color: var(--primary-color);
}

.notification-form-group {
    margin-bottom: 25px;
}

.notification-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.notification-form-group .description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 500;
}

.genre-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.genre-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.genre-checkbox:hover {
    background: var(--border-color);
}

.genre-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.genre-checkbox span {
    font-size: 14px;
}

.frequency-select {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    cursor: pointer;
}

.frequency-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.notification-save-btn {
    margin-top: 10px;
}

.notification-message {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.notification-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.notification-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

@media (max-width: 768px) {
    .genre-checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .frequency-select {
        width: 100%;
    }
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    background: var(--card-bg);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #128C7E;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0d65d9;
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #333333;
}

.share-telegram {
    background: #0088cc;
}

.share-telegram:hover {
    background: #006699;
}

.share-copy {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.share-copy:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.share-copy.copied {
    background: #28a745;
    border-color: #28a745;
}

.share-native {
    background: var(--primary-color);
    display: none;
}

.share-native:hover {
    background: #c40812;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-btn {
        width: 44px;
        height: 44px;
    }
    
    .share-native {
        display: flex;
    }
}

@media (max-width: 480px) {
    .share-icons {
        gap: 8px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
}


/* Recommendations Section Styles */
.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.recommendation-card .recommendation-reason {
    font-size: 11px;
    color: var(--secondary-color);
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-card .movie-info {
    padding-bottom: 8px;
}

.recommendation-card .movie-title {
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .recommendation-card .recommendation-reason {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active span {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .breadcrumb-list {
        gap: 6px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item {
        font-size: 12px;
    }
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-install-icon {
    background: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-icon svg {
    color: #fff;
}

.pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    font-size: 16px;
    color: var(--text-color);
}

.pwa-install-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pwa-dismiss-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-dismiss-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-color);
}

.pwa-install-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install-btn:hover {
    background: #c40812;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .pwa-install-content {
        margin-bottom: 10px;
    }
    
    .pwa-install-actions {
        justify-content: flex-end;
    }
}

/* AdSense Ad Slots */
.ad-slot {
    text-align: center;
    padding: 15px 0;
    overflow: hidden;
}

.ad-slot-header {
    margin-bottom: 20px;
}

.ad-slot-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.ad-slot-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
}

.ad-slot-sidebar {
    margin-bottom: 20px;
}
