* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    /* Enable mobile browser address bar hiding */
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    overflow-x: hidden;
    /* Enable mobile browser address bar hiding */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

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

/* Header Styles */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ff2c2c30;
}



.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #ff2c2c;
    text-decoration: none;
}

.logo i {
    color: #ff2c2c;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff2c2c;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 44, 44, 0.3);
}

.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 180px;
    padding: 5px;
}

.search-btn {
    background: transparent;
    border: none;
    color: #ff2c2c;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #e02424;
}

.search-box i {
    color: #ff2c2c;
    cursor: pointer;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.user-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.user-icon .fa-sign-in-alt {
    color: #fff;
    font-size: 16px;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.user-icon:hover .fa-sign-in-alt {
    transform: scale(1.1);
}

.user-icon span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* User Avatar in Header */
.user-icon img.user-avatar{width:40px;height:40px;border-radius:50%;object-fit:contain;border:2px solid #2a2a2a;background:#1a1a1a;padding:3px;transition:all 0.2s ease}
.user-icon img.user-avatar:hover{border-color:rgba(255, 255, 255, 0.3);transform:scale(1.05)}

/* User dropdown styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #ff2c2c;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(255, 44, 44, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff2c2c;
    z-index: 1;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 44, 44, 0.05);
}

.dropdown-header span {
    color: #ff2c2c;
    font-weight: 700;
    font-size: 14px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 44, 44, 0.3), transparent);
    margin: 5px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 44, 44, 0.1);
    color: #ff2c2c;
    transform: translateX(5px);
}

.dropdown-item:active {
    background: rgba(255, 44, 44, 0.2);
    transform: translateX(3px);
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Special styling for logout button */
.dropdown-item#logoutBtn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dropdown-item#logoutBtn:hover i {
    color: #dc3545;
}

/* Login button specific styles - pill shape for not logged in */
.user-icon:has(.fa-sign-in-alt) {
    background: linear-gradient(135deg, #ff2c2c 0%, #d42424 50%, #801515 100%);
    animation: loginPulse 2s infinite;
    min-width: 40px;
    width: auto;
    border-radius: 25px;
    padding: 0 16px;
}

@keyframes loginPulse {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 44, 44, 0.5);
    }
}

/* Mobile responsive styles for login button */
@media (max-width: 768px) {
    .user-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .user-icon:has(.fa-sign-in-alt) {
        min-width: 50px;
        height: 44px;
        padding: 0 16px;
        border-radius: 22px;
    }
    
    .user-icon .fa-sign-in-alt {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .user-icon span {
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .user-icon:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .user-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .user-icon:has(.fa-sign-in-alt) {
        min-width: 70px;
        height: 48px;
        padding: 0 20px;
        border-radius: 24px;
    }
    
    .user-icon .fa-sign-in-alt {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .user-icon span {
        font-size: 10px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .user-icon:hover {
        transform: none;
    }
    
    .user-icon:active {
        transform: scale(0.95);
    }
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #ff2c2c30;
    z-index: 1000;
    padding: 8px 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 60px;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.bottom-nav .nav-item span {
    font-size: 10px;
    line-height: 1;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: #ff2c2c;
}

.bottom-nav .nav-item:hover i,
.bottom-nav .nav-item.active i {
    color: #ff2c2c;
}

/* Trending Carousel */
.trending-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0;
}

.carousel-inner {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

/* Loading state */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    border-radius: 15px;
    color: white;
    font-size: 18px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.carousel-content {
    position: absolute;
    bottom: 60px;
    left: 40px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.carousel-title {
    font-size: 2.8rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-year {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 500px;
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #ff2c2c;
    color: white;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

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

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        bottom: 10px;
    }
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: #ff2c2c;
    border-color: #ff2c2c;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
}

.section-title {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title i {
    color: #ff2c2c;
}

.see-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 44, 44, 0.1);
    border: 1px solid #ff2c2c;
    border-radius: 20px;
    color: #ff2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background: #ff2c2c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 44, 44, 0.3);
}

/* Anime Categories Section */
.anime-categories-section {
    margin: 40px 0;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-column {
    display: flex;
    flex-direction: column;
}

.category-header {
    margin-bottom: 20px;
    text-align: center;
}

.category-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
}

.category-title i {
    color: #ff2c2c;
    font-size: 1.1rem;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 400px;
}

.category-view-all {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ff2c2c;
    border-radius: 20px;
    color: #ff2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #ff2c2c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 44, 44, 0.3);
}

.category-anime-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-anime-card:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    transform: translateX(5px);
    border-color: rgba(255, 44, 44, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.category-anime-poster {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2a2a;
}

.category-anime-info {
    flex: 1;
    min-width: 0;
}

.category-anime-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-anime-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #ccc;
}

.category-anime-genre {
    color: #ff2c2c;
    font-weight: 500;
}

.category-anime-year {
    color: #aaa;
}

.category-anime-rating {
    color: #ffd700;
    font-weight: 600;
}

/* Mobile responsive styles for categories */
@media (max-width: 1200px) {
    .categories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-title {
        font-size: 1.2rem;
        padding: 10px 12px;
    }
    
    .category-title i {
        font-size: 1rem;
    }
    
    .category-anime-card {
        padding: 10px;
        gap: 10px;
    }
    
    .category-anime-poster {
        width: 50px;
        height: 70px;
    }
    
    .category-anime-title {
        font-size: 13px;
    }
    
    .category-anime-meta {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .anime-categories-section {
        margin: 30px 0;
    }
    
    .categories-row {
        gap: 25px;
    }
    
    .category-title {
        font-size: 1.1rem;
        padding: 8px 10px;
    }
    
    .category-anime-card {
        padding: 8px;
        gap: 8px;
    }
    
    .category-anime-poster {
        width: 45px;
        height: 65px;
    }
    
    .category-anime-title {
        font-size: 12px;
    }
    
    .category-anime-meta {
        font-size: 10px;
    }
}

.content-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: #ff2c2c #1a1a1a;
    margin-bottom: 30px;
}

/* Special styling for continue watching container when empty */
#continueWatchingContainer.empty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

@media (max-width: 768px) {
    .content-row {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 10px 5px;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .content-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 5px;
        -webkit-overflow-scrolling: touch;
    }
}

.content-row::-webkit-scrollbar {
    height: 8px;
}

.content-row::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.content-row::-webkit-scrollbar-thumb {
    background: #ff2c2c;
    border-radius: 10px;
}

/* Mobile scrollbar styling */
@media (max-width: 768px) {
    .content-row::-webkit-scrollbar {
        height: 6px;
    }
    
    .content-row::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 8px;
    }
    
    .content-row::-webkit-scrollbar-thumb {
        background: #ff2c2c;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .content-row::-webkit-scrollbar {
        height: 4px;
    }
    
    .content-row::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 6px;
    }
    
    .content-row::-webkit-scrollbar-thumb {
        background: #ff2c2c;
        border-radius: 6px;
    }
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #ff2c2c;
    width: 100%;
    min-height: 300px;
}

.loading-placeholder i {
    font-size: 40px;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-placeholder p {
    font-size: 16px;
    color: #aaa;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-card {
    min-width: 200px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Watch Now button for desktop hover */
.watch-now-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff2c2c 0%, #d42424 50%, #801515 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
}

.watch-now-btn:hover {
    background: linear-gradient(135deg, #e02424 0%, #c01a1a 50%, #6a0f0f 100%);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 44, 44, 0.6);
}

.content-card:hover .watch-now-btn {
    opacity: 1;
    visibility: visible;
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background: #2a2a2a;
}

.card-overlay {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
    padding: 15px;
    opacity: 1;
    transition: opacity 0.3s;
    margin-top: -5px;
    height: 80px;
    overflow: hidden;
}

.card-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.2;
}

.card-info {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.card-info span {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Star rating styling */
.rating-span {
    color: #ffd700 !important;
    font-weight: 600;
}

/* Content type styling */
.content-type {
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-type {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.tvshow-type {
    color: #3742fa;
    background: rgba(55, 66, 250, 0.1);
}

.anime-type {
    color: #3742fa;
    background: rgba(55, 66, 250, 0.1);
}

/* Anime format styling */
.anime-format {
    color: #3b82f6 !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.duration {
    color: #ccc;
    font-size: 12px;
}

/* Episode info styling */
.episode-info {
    color: #ff2c2c !important;
    font-weight: 600;
    font-size: 12px;
    background: rgba(255, 44, 44, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 44, 44, 0.3);
}

/* Upcoming anime card styling */
.upcoming-card {
    position: relative;
    overflow: hidden;
}

.upcoming-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff2c2c 0%, #e63946 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 44, 44, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.upcoming-badge i {
    font-size: 10px;
}

.release-date {
    color: #ffd700 !important;
    font-weight: 600;
    font-size: 12px;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.studio-name {
    color: #9c88ff !important;
    font-weight: 500;
    font-size: 11px;
    background: rgba(156, 136, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(156, 136, 255, 0.3);
}

/* Mobile season number styling for TV shows */
@media (max-width: 768px) {
    .season-info {
        color: #3742fa !important;
        font-weight: 600;
    }
}

/* Card actions removed - no buttons needed */

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 44, 44, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    padding: 20px;
    background: #0d0d0d;
    margin-top: 60px;
    border-top: 1px solid #ff2c2c30;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        position: relative;
    }
    
    .logo {
        font-size: 24px;
        margin-left: 0;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }
    
    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: flex;
    }
    
    /* Add bottom padding to main content to account for bottom nav */
    main {
        padding-bottom: 80px;
    }
    
    .disclaimer {
        margin-bottom: 80px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .search-box {
        padding: 6px 12px;
    }
    
    .search-box input {
        width: 140px;
        font-size: 14px;
    }
    
    .user-icon {
        width: 40px;
        height: 40px;
    }
    
    .trending-carousel {
        height: 450px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-year {
        font-size: 1rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 18px;
        max-width: 100%;
        opacity: 0.9;
        /* Limit to 3 lines on larger mobile */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    .carousel-content {
        left: 20px;
        bottom: 60px;
        max-width: calc(100% - 40px);
        padding: 20px;
        margin-right: 20px;
    }
    
    .carousel-actions {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .carousel-actions .btn {
        width: auto;
        min-width: 120px;
        justify-content: center;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 140px;
    }
    
    .content-card {
        width: 130px;
        min-width: 130px;
        height: auto;
    }
    
    .content-card img {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }
    
    .content-row {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile: Show card overlay by default */
    .card-overlay {
        padding: 12px;
        opacity: 1;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
        transition: opacity 0.3s ease;
        height: 90px;
    }
    
    /* Increase height for history cards on mobile */
    .history-card .card-overlay {
        height: 110px;
    }
    
    /* Hide watch now button on mobile */
    .watch-now-btn {
        display: none;
    }
    
    .card-title {
        font-size: 14px;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    .card-info {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* Add extra spacing for history cards on mobile */
    .history-card .card-info {
        margin-bottom: 10px;
    }
    
    /* Show card actions container on mobile */
    .content-card .card-actions {
        display: flex;
        gap: 8px;
    }
    
    /* Show only play button on mobile for non-trending cards */
    .content-card .card-actions .play-btn {
        display: flex;
    }
    
    .content-card .card-actions .add-btn {
        display: none;
    }
    
    .action-btn {
        padding: 3px 6px;
        font-size: 10px;
        gap: 2px;
    }
    
    .action-btn i {
        font-size: 9px;
    }
    
    .disclaimer {
        padding: 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        position: relative;
    }
    
    .logo {
        font-size: 22px;
        justify-content: center;
        margin-left: 0;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }
    
    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: flex;
    }
    
    /* Add bottom padding to main content to account for bottom nav */
    main {
        padding-bottom: 80px;
    }
    
    .disclaimer {
        margin-bottom: 80px;
    }
    
    .header-right {
        justify-content: center;
        gap: 20px;
    }
    
    .search-box {
        flex: 1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-box input {
        width: 100%;
        min-width: 120px;
    }
    
    .trending-carousel {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-year {
        font-size: 0.9rem;
    }
    
    .carousel-description {
        display: block;
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 15px;
        max-width: 100%;
        opacity: 0.85;
        /* Limit to 2 lines on small mobile */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .carousel-content {
        left: 15px;
        bottom: 50px;
        max-width: calc(100% - 30px);
        padding: 15px;
        margin-right: 15px;
    }
    
    .carousel-actions .btn {
        width: auto;
        min-width: 100px;
        justify-content: center;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 120px;
    }
    
    .content-card {
        width: 110px;
        min-width: 110px;
        height: auto;
    }
    
    .content-card img {
        height: 160px;
    }
    
    /* Mobile: Hide card overlay by default, show when active */
    .card-overlay {
        padding: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show overlay when card is active */
    .content-card.active .card-overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }
    
    /* Increase height for history cards on smaller mobile */
    .history-card .card-overlay {
        height: 100px;
    }
    
    .card-title {
        font-size: 12px;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    .card-info {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    /* Add extra spacing for history cards on smaller mobile */
    .history-card .card-info {
        margin-bottom: 8px;
    }
    
    /* Show card actions container on mobile */
    .content-card .card-actions {
        display: flex;
        gap: 6px;
    }
    
    /* Show only play button on mobile */
    .content-card .card-actions .play-btn {
        display: flex;
    }
    
    .content-card .card-actions .add-btn {
        display: none;
    }
    
    .action-btn {
        padding: 2px 5px;
        font-size: 9px;
        gap: 2px;
    }
    
    .action-btn i {
        font-size: 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    .content-row {
        gap: 8px;
    }
    
    .disclaimer {
        padding: 15px 10px;
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .content-row {
        gap: 8px;
    }
    
    .content-card {
        width: 95px;
        min-width: 95px;
        height: auto;
    }
    
    .content-card img {
        height: 140px;
    }
    
    /* Mobile: Show card overlay by default */
    .card-overlay {
        padding: 8px;
        opacity: 1;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
        height: 70px;
    }
    
    /* Increase height for history cards on very small mobile */
    .history-card .card-overlay {
        height: 90px;
    }
    
    /* Hide action buttons on mobile */
    .card-actions {
        display: none;
    }
    
    .action-btn {
        padding: 2px 4px;
        font-size: 9px;
        gap: 1px;
    }
    
    .action-btn i {
        font-size: 8px;
    }
    
    .search-box {
        max-width: 250px;
    }
    
    .search-box input {
        min-width: 100px;
    }
    
    .trending-carousel {
        height: 350px;
    }
    
    .carousel-title {
        font-size: 1.6rem;
    }
    
    /* Very small mobile devices - optimize login button */
    .user-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .user-icon:has(.fa-sign-in-alt) {
        min-width: 65px;
        height: 44px;
        padding: 0 16px;
        border-radius: 22px;
    }
    
    .user-icon .fa-sign-in-alt {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .user-icon span {
        font-size: 9px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .content-card:hover {
        transform: none;
    }
    
    .action-btn:hover {
        transform: none;
    }
    
    .user-icon:hover {
        transform: none;
    }
    
    /* Add active states for touch devices */
    .content-card:active {
        transform: scale(0.98);
    }
    
    .action-btn:active {
        transform: scale(0.95);
    }
    
    .user-icon:active {
        transform: scale(0.95);
    }
    
    /* Improve touch targets */
    .action-btn {
        min-height: 36px;
    }
    
    .bottom-nav .nav-item {
        min-height: 60px;
    }
    
    /* Show card overlay by default on touch devices */
    .card-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
        transition: opacity 0.3s ease;
        height: 100px;
    }
    
    /* Increase height for history cards on touch devices */
    .history-card .card-overlay {
        height: 120px;
    }
    
    /* Show card actions container on touch devices */
    .content-card .card-actions {
        display: flex;
        gap: 8px;
    }
    
    /* Show only play button on touch devices */
    .content-card .card-actions .play-btn {
        display: flex;
    }
    
    .content-card .card-actions .add-btn {
        display: none;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .logo {
        justify-content: flex-start;
        margin-left: 50px;
    }
    
    .header-right {
        justify-content: flex-end;
    }
    
    .search-box {
        max-width: none;
        margin: 0;
    }
    
    .trending-carousel {
        height: 400px;
    }
    
    .content-card {
        min-width: 180px;
        height: 220px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .content-card {
        will-change: transform;
    }
    
    .card-overlay {
        will-change: opacity;
    }
    
    /* Reduce animations on mobile for better performance */
    .content-card {
        transition: transform 0.2s ease;
    }
    
    .card-overlay {
        transition: opacity 0.2s ease;
    }
    
    .action-btn {
        transition: all 0.2s ease;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Login/Register Popup Styles */
.auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-popup.active {
    display: flex;
    opacity: 1;
}

.auth-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #ff2c2c;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(255, 44, 44, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-popup.active .auth-container {
    transform: scale(1);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2c2c, #801515, #ff2c2c);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ff2c2c30;
}

.auth-header h2 {
    color: #ff2c2c;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: #ff2c2c;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 44, 44, 0.2);
    transform: scale(1.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #ff2c2c;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 44, 44, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-btn {
    background: linear-gradient(135deg, #ff2c2c 0%, #d42424 50%, #801515 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    box-shadow: none;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.auth-btn:active {
    transform: translateY(0);
}

.login-btn {
    background: linear-gradient(135deg, #ff2c2c 0%, #d42424 50%, #801515 100%);
}

.register-btn {
    background: linear-gradient(135deg, #ff2c2c 0%, #d42424 50%, #801515 100%);
    box-shadow: none;
}

.register-btn:hover {
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-switch p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.auth-switch a {
    color: #ff2c2c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #e02424;
    text-decoration: underline;
}

/* Mobile responsive styles for auth popup */
@media (max-width: 768px) {
    .auth-container {
        width: 95%;
        padding: 25px 20px;
        margin: 20px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-btn {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 98%;
        padding: 20px 15px;
        margin: 10px;
    }
    
    .auth-header h2 {
        font-size: 18px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .auth-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .auth-switch p {
        font-size: 13px;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
    
    .dropdown-menu::before {
        right: 15px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dropdown-header {
        padding: 12px 16px 8px;
    }
    
    .dropdown-header span {
        font-size: 13px;
    }
    
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #ff2c2c;
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(255, 44, 44, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.toast.error {
    border-color: #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.toast.warning {
    border-color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.toast i {
    font-size: 16px;
}

.toast.success i {
    color: #28a745;
}

.toast.error i {
    color: #dc3545;
}

.toast.warning i {
    color: #ffc107;
}

.toast.info i {
    color: #ff2c2c;
}

/* Mobile responsive styles for toast */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .toast {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/* Continue Watching Styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 16px;
    border: 1px solid #ff2c2c30;
    margin: 20px 0;
    width: 100%;
    min-height: 300px;
}

.empty-state i {
    font-size: 48px;
    color: #ff2c2c;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.empty-state p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.5;
}

.empty-state p:last-of-type {
    margin-bottom: 24px;
}

.login-prompt-btn {
    background: linear-gradient(135deg, #ff2c2c 0%, #e63946 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 44, 44, 0.4);
}

.login-prompt-btn:active {
    transform: translateY(0);
}

/* History Card Styles */
.history-card {
    position: relative;
}

/* Remove History Button */
.remove-history-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8);
}

/* Show remove button on hover for desktop */
@media (min-width: 769px) {
    .history-card:hover .remove-history-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* Always show remove button on mobile for better touch access */
@media (max-width: 768px) {
    .remove-history-btn {
        opacity: 1;
        transform: scale(1);
    }
}

.remove-history-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.remove-history-btn:active {
    transform: scale(0.95);
}

.remove-history-btn i {
    font-size: 12px;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2c2c 0%, #e63946 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Progress Text Styles */
.progress-text {
    color: #ff2c2c !important;
    font-weight: 600;
    font-size: 12px;
}

/* History Card Content Type Styles */
.history-card .content-type.movie-type {
    color: #ff2c2c !important;
    background: rgba(255, 44, 44, 0.1) !important;
}

.history-card .content-type.tvshow-type {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.history-card .content-type.anime-type {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Progress Text Styles */
.progress-text {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;
}



/* Mobile responsive styles for continue watching */
@media (max-width: 768px) {
    .empty-state {
        padding: 40px 16px;
        margin: 16px 0;
        min-height: 250px;
    }
    
    .empty-state i {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .empty-state h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .empty-state p {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .empty-state p:last-of-type {
        margin-bottom: 20px;
    }
    
    .login-prompt-btn {
        padding: 10px 20px;
        font-size: 13px;
        gap: 6px;
    }
    
    .remove-history-btn {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
    }
    
    .remove-history-btn i {
        font-size: 10px;
    }
    
    .progress-bar {
        height: 4px;
        margin: 8px 0;
    }
    
    /* Ensure progress text is visible on mobile */
    .progress-text {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    /* Ensure empty container is centered on mobile */
    #continueWatchingContainer.empty-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 30px 12px;
        margin: 12px 0;
        min-height: 200px;
    }
    
    .empty-state i {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .empty-state h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .empty-state p {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .empty-state p:last-of-type {
        margin-bottom: 16px;
    }
    
    .login-prompt-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 4px;
    }
    
    .remove-history-btn {
        width: 20px;
        height: 20px;
        top: 4px;
        right: 4px;
    }
    
    .remove-history-btn i {
        font-size: 9px;
    }
    
    .progress-bar {
        height: 3px;
        margin: 6px 0;
    }
    
    /* Ensure progress text is visible on smaller mobile */
    .progress-text {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    /* Ensure empty container is centered on smaller mobile */
    #continueWatchingContainer.empty-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        padding: 0;
    }
}

/* Confirmation Popup Styles */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.confirmation-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #ff2c2c30;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #ff2c2c20;
}

.confirmation-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.close-confirmation {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-confirmation:hover {
    color: #ff2c2c;
    background: rgba(255, 44, 44, 0.1);
}

.confirmation-body {
    padding: 20px 24px;
}

.confirmation-body p {
    margin: 0 0 12px 0;
    color: #ccc;
    line-height: 1.5;
    font-size: 14px;
}

.confirmation-body p:last-child {
    margin-bottom: 0;
    color: #999;
    font-size: 13px;
}

.confirmation-body strong {
    color: #ff2c2c;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #ff2c2c20;
}

.btn-cancel, .btn-remove {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-remove:active {
    transform: translateY(0);
}

/* Mobile responsive styles for confirmation popup */
@media (max-width: 768px) {
    .confirmation-content {
        width: 95%;
        max-width: 350px;
    }
    
    .confirmation-header {
        padding: 16px 20px 12px;
    }
    
    .confirmation-header h3 {
        font-size: 16px;
    }
    
    .confirmation-body {
        padding: 16px 20px;
    }
    
    .confirmation-body p {
        font-size: 13px;
    }
    
    .confirmation-body p:last-child {
        font-size: 12px;
    }
    
    .confirmation-actions {
        padding: 12px 20px 16px;
        gap: 8px;
    }
    
    .btn-cancel, .btn-remove {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .confirmation-content {
        width: 98%;
        max-width: 300px;
    }
    
    .confirmation-header {
        padding: 12px 16px 8px;
    }
    
    .confirmation-header h3 {
        font-size: 15px;
    }
    
    .confirmation-body {
        padding: 12px 16px;
    }
    
    .confirmation-body p {
        font-size: 12px;
    }
    
    .confirmation-body p:last-child {
        font-size: 11px;
    }
    
    .confirmation-actions {
        padding: 8px 16px 12px;
        gap: 6px;
    }
    
    .btn-cancel, .btn-remove {
        padding: 8px 12px;
        font-size: 12px;
    }
}


/* Advertisement Section Styles */
.advertisement-container {
    margin: 30px auto;
    max-width: 1400px;
    padding: 0 20px;
    position: relative;
}

.advertisement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff2c2c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: rgba(255, 44, 44, 0.1);
    border: 1px solid rgba(255, 44, 44, 0.3);
    border-radius: 8px;
    width: fit-content;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.advertisement-label i {
    font-size: 16px;
    color: #ff2c2c;
}

.advertisement-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.advertisement-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff2c2c, #801515, #ff2c2c);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Mobile responsive styles for advertisement */
@media (max-width: 768px) {
    .advertisement-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .advertisement-label {
        font-size: 13px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    
    .advertisement-label i {
        font-size: 14px;
    }
    
    .advertisement-content {
        padding: 15px;
        min-height: 80px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .advertisement-container {
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .advertisement-label {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 10px;
    }
    
    .advertisement-label i {
        font-size: 13px;
    }
    
    .advertisement-content {
        padding: 12px;
        min-height: 70px;
        border-radius: 8px;
    }
}