* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    max-width: 2000px;
    margin: 0 auto;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(91, 141, 238, 0.5));
    transition: filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 20px rgba(91, 141, 238, 0.8));
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 30px rgba(91, 141, 238, 0.5);
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: lowercase;
    line-height: 1;
    margin-top: 2px;
}

.browse-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.browse-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
    transform: scale(1.05);
}

.browse-btn.active {
    background: rgba(91, 141, 238, 0.8);
    border-color: rgba(91, 141, 238, 0.8);
}

.arrow-down {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.browse-btn.active .arrow-down {
    transform: rotate(180deg);
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #fff;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s ease;
}

.search-input.active {
    width: 250px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
}

.search-icon {
    cursor: pointer;
    font-size: 1.3rem;
    position: absolute;
    right: 8px;
}

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu .nav-link:hover {
    padding-left: 10px;
    border-bottom-color: rgba(91, 141, 238, 0.5);
}

.mobile-menu .nav-link::before {
    display: none;
}

.mobile-menu .nav-link.active {
    color: #5B8DEE;
    border-bottom-color: #5B8DEE;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.details-main {
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Server Dropdown Overlay */
.server-dropdown-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.server-dropdown {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.server-dropdown:hover {
    background: rgba(91, 141, 238, 0.8);
    border-color: rgba(91, 141, 238, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.4);
}

.server-dropdown:focus {
    border-color: rgba(91, 141, 238, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.2);
}

.server-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.8rem;
}

/* Episode Selector Section */
.episode-selector-section {
    background: #0a0a0a;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-selector-container {
    max-width: 1400px;
    margin: 0 auto;
}

.episode-selectors {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.episode-dropdown {
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.episode-dropdown:hover {
    background: rgba(91, 141, 238, 0.8);
    border-color: rgba(91, 141, 238, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.4);
}

.episode-dropdown:focus {
    border-color: rgba(91, 141, 238, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.2);
}

.episode-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.8rem;
}

/* Video Player */
.video-player-section {
    background: #000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5B8DEE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-loading p {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#videoPlayer.loaded {
    opacity: 1;
}

/* Movie Info Section */
.movie-info-section {
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, #0a0a0a 0%, #141414 100%);
}

.info-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.poster-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.poster-container img {
    width: 100%;
    height: auto;
    display: block;
}

.info-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.movie-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.movie-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #999;
}

.meta-separator {
    color: #555;
}

.rating-badge {
    color: #46d369;
    font-weight: 700;
}

.movie-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.genre-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.movie-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e5e5e5;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91, 141, 238, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Cast Section */
.cast-section,
.similar-section {
    padding: 3rem 2rem;
    background: #141414;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cast-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.5);
}

.cast-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #222;
}

.cast-info {
    padding: 1rem;
}

.cast-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cast-character {
    font-size: 0.85rem;
    color: #999;
}

/* Similar Movies */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.similar-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.similar-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.5);
    box-shadow: 0 8px 24px rgba(91, 141, 238, 0.3);
}

.similar-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #222;
}

.similar-info {
    padding: 1rem;
}

.similar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.similar-rating {
    color: #46d369;
    font-weight: 600;
}

.similar-year {
    color: #999;
}

/* Footer */
footer {
    background: linear-gradient(to top, #000, #0a0a0a);
    padding: 3rem 4% 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(91, 141, 238, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5B8DEE, #A855F7, transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Top - Logo & About */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(91, 141, 238, 0.6));
}

.footer-logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

.footer-logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.footer-about {
    max-width: 600px;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Media Links */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.social-message {
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border: 1px solid rgba(34, 158, 217, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link:hover {
    background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
    border-color: rgba(34, 158, 217, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

.social-link svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-link span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.telegram-link {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 136, 204, 0.5);
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5B8DEE, #A855F7);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(91, 141, 238, 0.3);
}

.footer-link:hover::before {
    width: 30px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(91, 141, 238, 0.3);
    position: relative;
    overflow: hidden;
    max-width: fit-content;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.support-btn:hover::before {
    width: 300px;
    height: 300px;
}

.support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(91, 141, 238, 0.5);
}

.support-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.coffee-icon {
    animation: steam 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-2deg);
    }
    75% {
        transform: translateY(-2px) rotate(2deg);
    }
}

.support-btn:hover .coffee-icon {
    animation: steamHover 0.6s ease-in-out infinite;
}

@keyframes steamHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-4px) rotate(5deg) scale(1.1);
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.copyright {
    color: #808080;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-container {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .movie-title {
        font-size: 2.5rem;
    }
}

/* Ad Blocker Controls */
.ad-blocker-controls {
    position: absolute;
    top: 50px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.ad-blocker-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ad-blocker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Toggle Switch */
.ad-blocker-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ad-blocker-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ad-blocker-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ad-blocker-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .ad-blocker-slider {
    background: linear-gradient(135deg, #46d369 0%, #5B8DEE 100%);
    border-color: #46d369;
}

input:checked + .ad-blocker-slider:before {
    transform: translateX(20px);
}

.ad-blocker-slider:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

input:checked + .ad-blocker-slider:hover {
    background: linear-gradient(135deg, #5B8DEE 0%, #46d369 100%);
}

/* Ad Blocker Status */
.ad-blocker-status {
    padding: 0.5rem 1rem;
    background: rgba(70, 211, 105, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(70, 211, 105, 0.4);
    border-radius: 20px;
    color: #46d369;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(70, 211, 105, 0.3);
    animation: fadeIn 0.3s ease;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    /* Footer responsive styles */
    footer {
        padding: 3rem 5% 2rem;
        margin-top: 3rem;
    }

    .footer-top {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-logo-image {
        width: 40px;
        height: 40px;
    }

    .footer-logo-text {
        font-size: 1.4rem;
    }

    .footer-logo-tagline {
        font-size: 0.6rem;
    }

    .footer-about {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-social {
        gap: 0.8rem;
    }

    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    /* Show browse button on mobile */
    .browse-btn {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    #desktopNav {
        display: none;
    }

    /* Mobile search improvements */
    .search-input.active {
        width: 200px;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
    }

    .search-icon {
        position: absolute;
        right: 10px;
        z-index: 1;
    }

    .header-content {
        padding: 1rem 3%;
    }

    .left-nav {
        gap: 1rem;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
    }

    .info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .poster-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .movie-title {
        font-size: 2rem;
    }

    .server-dropdown {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Episode selector mobile styles */
    .episode-selector-overlay {
        top: 50px;
        left: 10px;
        right: auto;
    }

    .episode-selectors {
        flex-direction: column;
        gap: 0.4rem;
    }

    .episode-dropdown {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 110px;
    }

    /* Ad Blocker mobile styles */
    .ad-blocker-controls {
        position: fixed;
        top: auto;
        bottom: 10px;
        right: 10px;
        left: auto;
        z-index: 1000;
        align-items: flex-end;
    }

    .ad-blocker-toggle-container {
        justify-content: space-between;
        padding: 0.6rem 1rem;
        min-width: 150px;
    }

    .ad-blocker-label {
        font-size: 0.75rem;
    }

    .ad-blocker-status {
        text-align: center;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
