/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0f19;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== LAYOUT CONTAINER ===== */
.app {
    display: flex;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    background: #070b14;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid #1a1f2e;
    padding: 20px 0;
    overflow-y: auto;
}

.logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid #1a1f2e;
    margin-bottom: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.side-nav {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #8a94a6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.side-nav a i {
    width: 20px;
    font-size: 16px;
}

.side-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.side-nav a.active {
    background: #e50914;
    color: #ffffff;
    font-weight: 600;
}

/* ===== DESKTOP HEADERS ===== */
.desktop-header {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

/* ===== TOP HEADER ===== */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 220px;
    height: 70px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 999;
    display: flex;
    align-items: center;
    transition: left 0.3s ease; /* Add transition for smooth sidebar toggle */
}


.top-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
}

.header-content .logo img {
    height: 35px;
}

/* ===== SEARCH BARS ===== */
.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-bar form {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #e50914;
}

.search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #1a1f2e;
    border-radius: 25px;
    padding: 10px 20px;
    width: 400px;
    position: relative;
}

.search-box i {
    color: #8a94a6;
    margin-right: 10px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    width: 100%;
    outline: none;
    padding: 12px 20px 12px 45px;
}

.search-box input::placeholder {
    color: #8a94a6;
}

/* ===== USER MENU & AUTH ===== */
.user-menu {
    display: flex;
    gap: 10px;
}

/* ===== Auth Buttons (Login) ===== */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between icons and Login */
}

/* Base style using system preference */
.btn-simple-login,
.logout-btn {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

/* ===== DEFAULT: Dark Theme (White Text/Icon) ===== */
.btn-simple-login,
.logout-btn {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
  color: white; /* White for dark mode */
}

.btn-simple-login i,
.logout-btn i {
  color: white;
  font-size: 1rem;
  margin-right: 1rem; /* ≈ 2-character space */
}

.btn-simple-login:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: underline;
}

/* ===== LIGHT MODE: When body has .light-mode class ===== */
body.light-mode .btn-simple-login,
body.light-mode .logout-btn {
  color: #111827; /* Near-black for light mode */
}

body.light-mode .btn-simple-login i,
body.light-mode .logout-btn i {
  color: #111827;
}

body.light-mode .btn-simple-login:hover,
body.light-mode .logout-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ===== Logout Button: Full width in dropdown ===== */
.logout-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

/* ===== Responsive: Mobile Optimization ===== */
@media (max-width: 480px) {
  .btn-simple-login,
  .logout-btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }

  .btn-simple-login i,
  .logout-btn i {
    font-size: 0.9rem;
    margin-right: 0.9rem;
  }
}


.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 1px solid #666;
    color: white;
}

.btn-register {
    background: #e50914;
    border: 1px solid #e50914;
    color: white;
}

.btn-login:hover {
    background: #333;
    border-color: #888;
}

.btn-register:hover {
    background: #f40612;
    border-color: #f40612;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-account {
    position: relative;
}

.user-dropdown {
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 25px;
    background: #2d2d2d;
    border: 1px solid #444;
}

.user-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.user-info i {
    color: #888;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e50914;
}

.dropdown-user-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.dropdown-user-info p {
    font-size: 13px;
    color: #b3b3b3;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 15px 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.dropdown-menu a:hover {
    color: white;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
}

.logout-btn {
    color: #e50914 !important;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background-color: #141414;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item a:hover,
.nav-item a.active {
    color: white;
}

/* ===== MAIN CONTENT AREA ===== */
.content {
    margin-left: 220px;
    margin-top: 70px;
    width: calc(100% - 220px);
    min-height: calc(100vh - 70px);
    padding: 20px 0;
    overflow-x: hidden;
}

/* ===== SPECIFIC PAGE FIXES ===== */

/* Home page specific */
.hero-slider {
    height: 75vh;
    position: relative;
    overflow: hidden;
    margin: 30px 30px 0;
    border-radius: 12px;
}

/* Login and Register pages */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #0f0f0f;
    margin: 0; /* remove sidebar offset */
}


/* Details page */
.details-header {
    margin-top: -20px;
    position: relative;
}

/* Player page */
.player-container {
    margin-left: 220px;
    margin-top: 70px;
    width: calc(100% - 220px);
    padding: 20px;
}

/* Settings page */
.settings-container {
    margin-left: 220px;
    margin-top: 70px;
    width: calc(100% - 220px);
    padding: 30px;
}

/* Movies, Series, Animation, Trending, Watchlist pages */
.page-header {
    margin-top: 20px;
    padding: 0 30px;
}

/* ===== FILTERS ===== */
.filters-section {
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.filters-title {
    margin-bottom: 15px;
    font-size: 16px;
    color: #b3b3b3;
}

.platform-filters {
    background: #070b14;
    border-bottom: 1px solid #1a1f2e;
    padding: 20px 30px;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 20px;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #e50914;
    border-color: #e50914;
    color: white;
}

.filter-btn img {
    height: 20px;
    width: auto;
}

/* ===== SERIES PAGE FILTERS - CENTERED ===== */
.series-filters-section {
    margin-left: 220px; /* Account for sidebar width */
    margin-top: 0;
    padding: 30px 0;
    border-bottom: 1px solid #1a1f2e;
    background: #0b0f19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.series-filters-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 30px;
}

.series-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

.series-filter-btn {
    padding: 10px 20px;
    background: #1a1f2e;
    border: 1px solid #2d3546;
    border-radius: 25px;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 44px;
    text-align: center;
}

.series-filter-btn:hover {
    background: #2d3546;
    border-color: #3a4256;
    color: #ffffff;
    transform: translateY(-2px);
}

.series-filter-btn.active {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.series-filter-btn img {
    height: 20px;
    width: auto;
    border-radius: 3px;
    object-fit: contain;
    display: block;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .series-filters-section {
        margin-left: 200px; /* Adjusted for smaller sidebar */
        width: calc(100% - 200px);
    }
    
    .series-filters-section {
        padding: 25px 0;
    }
    
    .series-filters-title {
        font-size: 18px;
        padding: 0 20px;
        margin-bottom: 18px;
    }
    
    .series-filters {
        gap: 10px;
        padding: 0 20px;
    }
    
    .series-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .series-filter-btn img {
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .series-filters-section {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }
    
    .series-filters-title {
        font-size: 18px !important;
        padding: 0 15px !important;
        margin-bottom: 15px !important;
    }
    
    .series-filters {
        gap: 8px;
        padding: 0 15px !important;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #e50914 #1a1f2e;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .series-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .series-filters::-webkit-scrollbar-track {
        background: #1a1f2e;
        border-radius: 2px;
    }
    
    .series-filters::-webkit-scrollbar-thumb {
        background: #e50914;
        border-radius: 2px;
    }
    
    .series-filter-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-height: 38px;
        flex-shrink: 0;
    }
    
    .series-filter-btn img {
        height: 16px !important;
    }
    
    /* On small screens, show logos only */
    @media (max-width: 480px) {
        .series-filters {
            gap: 6px;
        }
        
        .series-filter-btn {
            padding: 6px 12px !important;
            font-size: 0 !important;
            width: 44px;
            justify-content: center;
        }
        
        .series-filter-btn span {
            display: none;
        }
        
        .series-filter-btn img {
            height: 20px !important;
            margin: 0;
        }
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .series-filters-section {
        padding: 15px 0 !important;
    }
    
    .series-filter-btn {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }
    
    .series-filter-btn img {
        height: 18px !important;
    }
}

/* Hover effects for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .series-filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}



/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.content-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 10px;
}

.card-year {
    color: #888;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
}

/* Option 1: Pure white */
.card-overview {
    color: #ffffff !important;
}

/* Option 2: Slightly lighter for better contrast */
.card-overview {
    color: #f8f9fa !important;
}

/* Option 3: With gradient effect */
.card-overview {
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Option 4: With transparency */
.card-overview {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== ROW SECTIONS ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.section-tabs {
    display: flex;
    background: #2d2d2d;
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #e50914;
    color: white;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.row {
    margin: 40px 30px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.row-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.row-tabs {
    display: flex;
    background: #1a1f2e;
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
}

.slide-controls {
    display: flex;
    gap: 10px;
}

.slide-prev,
.slide-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2d2d2d;
    border: 1px solid #444;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slide-prev:hover,
.slide-next:hover {
    background: #e50914;
    border-color: #e50914;
}

/* ===== ROW LISTS ===== */
/* ===== PLATFORM FILTERS - SINGLE ROW SCROLL ===== */
.platform-filters {
    margin: 30px 0;
    padding: 0 30px;
}

/* ===== PLATFORM FILTERS - HIDE SCROLLBARS ===== */
.platforms-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -30px;
    padding: 0 30px;
}

.platforms-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    transition: transform 0.3s ease;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #1a1f2e;
    border: 2px solid #2d3546;
    border-radius: 12px;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    flex-shrink: 0;
    gap: 8px;
    text-align: center;
}

.platform-btn:hover {
    background: #2d3546;
    border-color: #3a4256;
    color: #ffffff;
    transform: translateY(-2px);
}

.platform-btn.active {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.platform-btn img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.platform-btn span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

/* Hide scrollbar completely */
.platforms-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.platforms-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== CONTENT SECTIONS - HIDE SCROLLBARS ===== */
.content-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -30px;
    padding: 0 30px;
}

.row-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.row-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.row-list.grabbing {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    user-select: none;
}

/* ===== CARD STYLES ===== */
.trending-card,
.movie-card,
.series-card,
.animation-card {
    flex: 0 0 180px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    scroll-snap-align: start;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-card:hover .card-image img,
.movie-card:hover .card-image img,
.series-card:hover .card-image img,
.animation-card:hover .card-image img {
    transform: scale(1.05);
}

.card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-info {
    padding: 15px;
}

.card-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info .year {
    font-size: 12px;
    color: #b3b3b3;
    font-weight: 500;
}

/* Continue Watching specific */
.continue-card {
    flex: 0 0 200px;
}

.continue-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar .progress {
    height: 100%;
    background: #e50914;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

.continue-info {
    padding: 15px;
}

.continue-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-info .time-left {
    font-size: 12px;
    color: #b3b3b3;
}

/* Upcoming Movies specific */
.upcoming-card {
    flex: 0 0 160px;
}

.upcoming-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.upcoming-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(229, 9, 20, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.upcoming-info {
    padding: 15px;
}

.upcoming-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-info .release-date {
    font-size: 11px;
    color: #b3b3b3;
}

/* ===== SLIDE CONTROLS ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slide-controls {
    display: flex;
    gap: 8px;
}

.slide-prev,
.slide-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-prev:hover,
.slide-next:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
}

.slide-prev:disabled,
.slide-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== TRENDING TABS ===== */
.section-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: #e50914;
    color: white;
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Small Mobile */
@media (max-width: 480px) {
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 120px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .continue-card {
        flex: 0 0 140px;
    }
    
    .continue-image {
        height: 130px;
    }
    
    .upcoming-card {
        flex: 0 0 120px;
    }
    
    .upcoming-image {
        height: 140px;
    }
    
    .platform-btn {
        min-width: 90px;
        padding: 10px 12px;
    }
    
    .platform-btn img {
        height: 22px;
    }
    
    .platform-btn span {
        color: white;
        font-size: 11px;
    }
}

.poster {
    min-width: 160px;
    background: #1a1f2e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d3546;
    transition: all 0.3s;
    position: relative;
}

.poster:hover {
    transform: translateY(-5px);
    border-color: #e50914;
}

.poster img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.poster .rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.poster-info {
    padding: 15px;
}

.poster-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-info p {
    font-size: 12px;
    color: #e50914;
    font-weight: 600;
}

/* ===== CARDS ===== */
.trending-card,
.movie-card,
.series-card,
.animation-card {
    flex: 0 0 180px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s;
}

.trending-card:hover,
.movie-card:hover,
.series-card:hover,
.animation-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.2);
}

.trending-card .card-image {
    position: relative;
    height: 240px;
}

.trending-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-card .card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-card .card-info {
    padding: 15px;
}

.trending-card .card-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card .card-info .year {
    font-size: 12px;
    color: #e50914;
    font-weight: 600;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 30%, transparent 70%);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 60px;
    max-width: 500px;
    z-index: 2;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 25px;
}

.actions {
    display: flex;
    gap: 15px;
}

.actions .play {
    background: #e50914;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.actions .play:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.actions .info {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.actions .info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: #e50914;
    border-color: #e50914;
}

/* ===== DETAILS PAGE ===== */
.details-header {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
}

.backdrop-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
}

.details-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    display: flex;
    gap: 30px;
}

.details-poster {
    flex: 0 0 300px;
}

.details-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.details-info {
    flex: 1;
}

.details-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.details-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #b3b3b3;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-weight: 600;
}

.details-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.action-btn {
    padding: 12px 25px;
    background-color: #e50914;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background-color: #f40612;
}

.action-btn.outline {
    background-color: transparent;
    border: 1px solid #666;
}

.action-btn.outline:hover {
    background-color: #333;
    border-color: #888;
}

.details-overview {
    margin: 25px 0;
    line-height: 1.8;
    color: #cccccc;
}

/* Cast Section Styles */
.cast-section {
    margin: 40px 0;
    padding: 0 20px;
}

.cast-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.cast-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cast-image {
    width: 100%;
    height: 0;
    padding-bottom: 150%; /* Creates a 2:3 aspect ratio */
    position: relative;
    overflow: hidden;
}

.cast-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-info {
    padding: 15px;
}

.cast-name {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-secondary);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .cast-section {
        padding: 0 15px;
        margin: 30px 0;
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cast-section .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .cast-section {
        padding: 0 10px;
        margin: 25px 0;
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cast-info {
        padding: 10px;
    }
    
    .cast-name {
        font-size: 0.9rem;
    }
    
    .cast-character {
        font-size: 0.8rem;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Ensure container doesn't overflow */
.details-content, .content {
    overflow-x: hidden;
}

/* Optional: Add scroll-snap for better mobile experience */
@media (max-width: 768px) {
    .cast-grid {
        scroll-snap-type: x mandatory;
    }
    
    .cast-card {
        scroll-snap-align: start;
    }
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    margin: 40px 0;
}

.review-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    color: #e50914;
}

.review-rating {
    color: #ffd700;
    font-weight: 600;
}

.review-content {
    line-height: 1.6;
    color: #cccccc;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    padding: 8px 16px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    background-color: #e50914;
    border-color: #e50914;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number.active,
.page-number:hover {
    background-color: #e50914;
    border-color: #e50914;
}

/* ===== CONTINUE WATCHING ===== */
.continue-section {
    padding-top: 20px;
    padding-bottom: 40px;
}

.continue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.continue-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s;
}

.continue-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
}

.continue-image {
    position: relative;
    height: 180px;
}

.continue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
}

.progress-bar .progress {
    height: 100%;
    background: #e50914;
    border-radius: 0 2px 2px 0;
}

.continue-info {
    padding: 15px;
}

.continue-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-info .time-left {
    font-size: 12px;
    color: #b3b3b3;
}

/* ===== UPCOMING MOVIES ===== */
.upcoming-section {
    padding-top: 20px;
    padding-bottom: 60px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.upcoming-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
}

.upcoming-image {
    position: relative;
    height: 180px;
}

.upcoming-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.upcoming-info {
    padding: 15px;
}

.upcoming-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-info .release-date {
    font-size: 11px;
    color: #b3b3b3;
}

/* ===== DESKTOP TRENDING GRID ===== */
.trending-grid.desktop-trending {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.featured-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px;
    color: white;
}

.featured-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.featured-desc {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.featured-meta .rating {
    background: #e50914;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.featured-meta .type {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.watch-btn {
    background: white;
    color: #0f0f0f;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}

.watch-btn:hover {
    background: #e50914;
    color: white;
}

.trending-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== FOOTER ===== */
/* ===== FOOTER FIXES ===== */
.app {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.footer {
    background-color: #1a1a1a;
    padding: 50px 0 30px;
    border-top: 1px solid #333;
    margin-left: 220px;
    width: calc(100% - 220px);
    margin-top: auto;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer {
        margin-left: 0;
        width: 100%;
        padding: 30px 0 80px; /* Extra padding for mobile bottom nav */
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #070b14;
        border-top: 1px solid #1a1f2e;
        z-index: 1000;
        padding: 12px 0;
    }
}

/* Desktop - hide mobile nav */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 30px 0;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #b3b3b3;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #070b14;
    border-bottom: 1px solid #1a1f2e;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #070b14;
    border-bottom: 1px solid #1a1f2e;
    z-index: 1000;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    font-size: 24px;
    font-weight: 800;
    color: #e50914;
    text-decoration: none;
}

.mobile-logo img {
    height: 30px;
}

.mobile-search a,
.mobile-user a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.mobile-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-search-bar {
    padding: 10px 15px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    display: none;
}

.mobile-search-bar form {
    display: flex;
    gap: 10px;
}

.mobile-search-bar input {
    flex: 1;
    padding: 10px 15px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.mobile-search-bar button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #070b14 !important;
    border-top: 1px solid #1a1f2e !important;
    z-index: 1000 !important;
    padding: 12px 0 !important;
}

.mobile-nav {
    display: flex !important;
    justify-content: space-around !important;
    width: 100%;
}

.mobile-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #8a94a6 !important;
    font-size: 11px !important;
    gap: 5px !important;
    transition: color 0.3s !important;
}

.mobile-nav a.active {
    color: #e50914 !important;
}

.mobile-nav a i {
    font-size: 20px !important;
}

/* Add padding to bottom for mobile nav */
body {
    padding-bottom: 60px;
}

/* ===== MOBILE TRENDING ===== */
.mobile-trending {
    display: none;
}

.mobile-trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-trending-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e50914;
}

.mobile-tabs {
    display: flex;
    gap: 15px;
}

.mobile-tab {
    color: #8a94a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
}

.mobile-tab.active {
    color: white;
}

.mobile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e50914;
}

/* ===== WATCHLIST DROPDOWN ===== */
.watchlist-dropdown {
    position: relative;
}

.watchlist-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.watchlist-menu.show {
    display: block;
}

.watchlist-menu a {
    display: block;
    padding: 10px 15px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s;
}

.watchlist-menu a:hover {
    background-color: #2d2d2d;
    color: white;
}

.watchlist-menu a.active {
    color: #e50914;
    background-color: #2d2d2d;
}

/* ===== SETTINGS PAGE ===== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e50914;
}

.form-btn {
    padding: 12px 25px;
    background-color: #e50914;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-btn:hover {
    background-color: #f40612;
}

/* ===== PLAYER PAGE ===== */
.player-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-player iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.player-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.source-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.source-btn {
    padding: 8px 16px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.source-btn.active {
    background-color: #e50914;
    border-color: #e50914;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: #666;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #b3b3b3;
}

.empty-state p {
    color: #888;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== UTILITY CLASSES ===== */
.fixed-header-space {
    padding-top: 70px;
}

.fixed-sidebar-space {
    padding-left: 220px;
}

/* ===== SPECIFIC FIXES FOR HEADER CUTTING ===== */

/* Ensure all sections have proper top margin */
.section {
    margin-top: 30px;
    padding: 0 30px;
}

/* Fix for page headers */
.page-title {
    margin-top: 40px;
    padding: 0 30px;
}

/* ===== ANIMATION PAGE HEADER ===== */
.animation-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 40px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-header .container {
    padding: 0 30px;
    width: 100%;
}

.animation-header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.animation-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.animation-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ANIMATION CONTENT ===== */
.animation-content {
    margin-left: 220px;
    margin-top: 0;
    padding: 30px 0;
    width: calc(100% - 220px);
}

.animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .animation-header {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .animation-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .animation-title {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .animation-header {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .animation-header .container {
        padding: 0 !important;
    }
    
    .animation-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
    
    .animation-grid {
        padding: 20px 0 !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }
    
    .animation-title {
        font-size: 32px !important;
    }
    
    .animation-subtitle {
        font-size: 16px !important;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .animation-header {
        padding: 25px 15px !important;
    }
    
    .animation-title {
        font-size: 28px !important;
    }
    
    .animation-subtitle {
        font-size: 14px !important;
    }
    
    .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .animation-title {
        font-size: 24px !important;
    }
    
    .animation-subtitle {
        font-size: 13px !important;
    }
    
    .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ===== series PAGE HEADER ===== */
.series-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 40px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-header .container {
    padding: 0 30px;
    width: 100%;
}

.series-header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.series-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.series-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== series CONTENT ===== */
.series-content {
    margin-left: 220px;
    margin-top: 0;
    padding: 30px 0;
    width: calc(100% - 220px);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .series-header {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .series-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .series-title {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .series-header {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .series-header .container {
        padding: 0 !important;
    }
    
    .series-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
    
    .series-grid {
        padding: 20px 0 !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }
    
    .series-title {
        font-size: 32px !important;
    }
    
    .series-subtitle {
        font-size: 16px !important;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .series-header {
        padding: 25px 15px !important;
    }
    
    .series-title {
        font-size: 28px !important;
    }
    
    .series-subtitle {
        font-size: 14px !important;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .series-title {
        font-size: 24px !important;
    }
    
    .series-subtitle {
        font-size: 13px !important;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ===== history PAGE HEADER ===== */
.history-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 40px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-header .container {
    padding: 0 30px;
    width: 100%;
}

.history-header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.history-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.history-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== history CONTENT ===== */
.history-content {
    margin-left: 220px;
    margin-top: 0;
    padding: 30px 0;
    width: calc(100% - 220px);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .history-header {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .history-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .history-title {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .history-header {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .history-header .container {
        padding: 0 !important;
    }
    
    .history-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
    
    .history-grid {
        padding: 20px 0 !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }
    
    .history-title {
        font-size: 32px !important;
    }
    
    .history-subtitle {
        font-size: 16px !important;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .history-header {
        padding: 25px 15px !important;
    }
    
    .history-title {
        font-size: 28px !important;
    }
    
    .history-subtitle {
        font-size: 14px !important;
    }
    
    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .history-title {
        font-size: 24px !important;
    }
    
    .history-subtitle {
        font-size: 13px !important;
    }
    
    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ===== watchlist PAGE HEADER ===== */
.watchlist-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 40px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-header .container {
    padding: 0 30px;
    width: 100%;
}

.watchlist-header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.watchlist-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.watchlist-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== watchlist CONTENT ===== */
.watchlist-content {
    margin-left: 220px;
    margin-top: 0;
    padding: 30px 0;
    width: calc(100% - 220px);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .watchlist-header {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .watchlist-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .watchlist-title {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .watchlist-header {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .watchlist-header .container {
        padding: 0 !important;
    }
    
    .watchlist-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
    
    .watchlist-grid {
        padding: 20px 0 !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }
    
    .watchlist-title {
        font-size: 32px !important;
    }
    
    .watchlist-subtitle {
        font-size: 16px !important;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .watchlist-header {
        padding: 25px 15px !important;
    }
    
    .watchlist-title {
        font-size: 28px !important;
    }
    
    .watchlist-subtitle {
        font-size: 14px !important;
    }
    
    .watchlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .watchlist-title {
        font-size: 24px !important;
    }
    
    .watchlist-subtitle {
        font-size: 13px !important;
    }
    
    .watchlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ===== trending PAGE HEADER ===== */
.trending-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 40px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-header .container {
    padding: 0 30px;
    width: 100%;
}

.trending-header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.trending-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.trending-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTENT TYPE FILTERS ===== */
.content-type-filters {
    background: #070b14;
    border-bottom: 1px solid #1a1f2e;
    padding: 20px 30px;
    margin-top: 0;
}

.content-type-filters .filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.content-type-filters .filter-btn {
    padding: 10px 24px;
    background-color: #1a1f2e;
    border: 1px solid #2d3546;
    border-radius: 25px;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.content-type-filters .filter-btn:hover {
    background-color: #2d3546;
    border-color: #3a4256;
    color: #ffffff;
    transform: translateY(-2px);
}

.content-type-filters .filter-btn.active {
    background-color: #e50914;
    border-color: #e50914;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.content-type-filters .filter-btn.active:hover {
    background-color: #f40612;
    border-color: #f40612;
    transform: translateY(-2px);
}

/* Filter button icons (optional) */
.content-type-filters .filter-btn[data-type="all"]::before {
    font-size: 16px;
}

.content-type-filters .filter-btn[data-type="movie"]::before {
    font-size: 16px;
}

.content-type-filters .filter-btn[data-type="tv"]::before {
    font-size: 16px;
}

/* Animation page specific filter alignment */
.animation-header + .content-type-filters {
    margin-top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-type-filters {
        padding: 20px;
    }
    
    .content-type-filters .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .content-type-filters {
        padding: 15px 20px !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .content-type-filters .filters {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .content-type-filters .filters::-webkit-scrollbar {
        display: none;
    }
    
    .content-type-filters .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Hide icons on very small screens */
    @media (max-width: 480px) {
        .content-type-filters .filter-btn::before {
            content: "";
            display: none;
        }
        
        .content-type-filters .filter-btn {
            padding: 8px 14px;
            font-size: 12px;
        }
    }
}

/* Desktop adjustment when sidebar is collapsed */
@media (min-width: 769px) {
    .content-wrapper .content-type-filters {
        margin-left: 0;
        width: 100%;
    }
}

/* Hover effects for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .content-type-filters .filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .content-type-filters .filter-btn.active:hover {
        box-shadow: 0 6px 16px rgba(229, 9, 20, 0.4);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .content-type-filters .filter-btn,
    .content-type-filters .filter-btn:hover,
    .content-type-filters .filter-btn.active:hover {
        transition: none;
        transform: none;
    }
}

/* ===== SETTINGS PAGE HEADER ===== */
.settings-container {
    margin-left: 220px;
    margin-top: 70px;
    width: calc(100% - 220px);
    min-height: calc(100vh - 70px);
    padding: 60px 0;
    background: #0b0f19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.settings-container .page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.settings-container .page-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .settings-container {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 50px 0;
    }
    
    .settings-container .page-title {
        font-size: 40px;
        padding: 0 30px;
    }
    
    .settings-container .page-subtitle {
        font-size: 17px;
        padding: 0 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .settings-container {
        margin-left: 0 !important;
        margin-top: 60px !important;
        width: 100% !important;
        padding: 40px 20px !important;
    }
    
    .settings-container .page-title {
        font-size: 32px !important;
        padding: 0 20px !important;
        margin-bottom: 10px !important;
    }
    
    .settings-container .page-subtitle {
        font-size: 16px !important;
        padding: 0 20px !important;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .settings-container {
        padding: 30px 15px !important;
    }
    
    .settings-container .page-title {
        font-size: 28px !important;
        padding: 0 15px !important;
    }
    
    .settings-container .page-subtitle {
        font-size: 14px !important;
        padding: 0 15px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .settings-container .page-title {
        font-size: 24px !important;
    }
    
    .settings-container .page-subtitle {
        font-size: 13px !important;
    }
}

/* ===== ANIMATION TABS ===== */
.animation-tabs {
    background: #070b14;
    padding: 20px 30px;
    border-bottom: 1px solid #1a1f2e;
}

.animation-tabs .tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.animation-tabs .tab-btn {
    padding: 10px 32px;
    background: transparent;
    border: 1px solid #2d3546;
    border-radius: 25px;
    color: #8a94a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.animation-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3a4256;
    color: #ffffff;
    transform: translateY(-2px);
}

.animation-tabs .tab-btn.active {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.animation-tabs .tab-btn.active:hover {
    background: #f40612;
    border-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.4);
}

/* Optional: Add icons to tabs */
.animation-tabs .tab-btn[data-type="movies"]::before {
    margin-right: 8px;
    font-size: 14px;
}

.animation-tabs .tab-btn[data-type="series"]::before {
    margin-right: 8px;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .animation-tabs {
        padding: 20px;
    }
    
    .animation-tabs .tab-btn {
        padding: 10px 28px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .animation-tabs {
        padding: 15px 20px !important;
    }
    
    .animation-tabs .tabs {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .animation-tabs .tab-btn {
        padding: 8px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
    
    /* Hide icons on very small screens */
    @media (max-width: 480px) {
        .animation-tabs .tab-btn::before {
            content: "";
            display: none;
        }
        
        .animation-tabs .tab-btn {
            padding: 8px 16px;
            font-size: 12px;
            min-width: 100px;
        }
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .animation-tabs .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 90px;
    }
}

/* Hover effects for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .animation-tabs .tab-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animation-tabs .tab-btn,
    .animation-tabs .tab-btn:hover,
    .animation-tabs .tab-btn.active:hover {
        transition: none;
        transform: none;
    }
}



/* Fix for authentication pages */
.auth-container {
    margin-top: 20px;
}

/* Fix for player page video */
.video-player {
    margin-top: 20px;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* ===== LOADING STATES ===== */
.loading,
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .top-header {
        left: 200px;
    }
    
    .content,
    .auth-wrapper,
    .player-container,
    .settings-container {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .search-box {
        width: 300px;
    }
    
    .hero-slider {
        height: 65vh;
    }
    
    .slide-content {
        left: 40px;
    }
    
    .slide-content h1 {
        font-size: 40px;
    }
    
    .upcoming-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .continue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-header,
    .mobile-bottom-nav {
        display: none;
    }
    
    .desktop-header,
    .main-nav {
        display: block;
    }
    
    .search-bar {
        max-width: 400px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
    
    .details-poster {
        flex: 0 0 250px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .sidebar,
    .top-header,
    .trending-grid.desktop-trending,
    .desktop-header,
    .main-nav {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-trending {
        display: block !important;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .mobile-bottom-nav,
    .mobile-nav {
        display: flex !important;
    }
    
    /* Adjust content for mobile */
    .content,
    .auth-wrapper,
    .player-container,
    .settings-container,
    .page-header {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }
    
    /* Adjust content for mobile header */
    .content {
        margin-top: 60px !important;
        padding-top: 20px;
        padding-bottom: 70px !important;
    }
    
    /* Auth pages on mobile */
    .auth-wrapper {
        margin-top: 60px;
        padding: 20px;
    }
    
    /* Details page mobile */
    .details-header {
        height: auto;
        min-height: 300px;
    }
    
    .details-content {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .details-poster {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 auto 20px;
    }
    
    .details-title {
        font-size: 24px;
        text-align: center;
    }
    
    .details-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .details-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cast-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        overflow-x: visible;
    }
    
    .cast-image {
        width: 100px;
        height: 100px;
    }
    
    .cast-name {
        font-size: 12px;
    }
    
    .cast-character {
        font-size: 11px;
    }
    
    /* Player page mobile */
    .video-player iframe {
        height: 250px;
    }
    
    .player-actions {
        flex-wrap: wrap;
    }
    
    .source-selector {
        flex-wrap: wrap;
    }
    
    .source-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Footer mobile */
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer {
        padding: 40px 0 80px;
    }
    
    /* Pagination mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn,
    .page-number {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .page-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    /* Settings page mobile */
    .settings-section {
        padding: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .mobile-bottom-nav {
        padding: 8px 0;
    }
    
    .mobile-bottom-nav .nav-item {
        font-size: 10px;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 16px;
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .mobile-nav a span {
        display: none;
    }
    
    .mobile-nav a i {
        font-size: 24px;
    }
    
    .details-title {
        font-size: 20px;
    }
    
    .details-meta {
        font-size: 12px;
    }
    
    .details-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .action-btn {
        text-align: center;
        justify-content: center;
    }
}

/* ===== DESKTOP ONLY (min-width: 769px) ===== */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-trending,
    .mobile-header,
    .mobile-search-bar {
        display: none !important;
    }
    
    .sidebar,
    .top-header,
    .trending-grid.desktop-trending,
    .content {
        display: block !important;
    }
}

/* ===== MEDIUM DESKTOP (1200px to 992px) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .details-content {
        gap: 20px;
    }
    
    .details-poster {
        flex: 0 0 250px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ACCESSIBILITY & PREFERENCES ===== */

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f0f0f;
        color: #ffffff;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn,
    .action-btn,
    .filter-btn.active {
        border-width: 2px;
    }
    
    .card-image img {
        border: 1px solid #333;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .content-card:hover {
        transform: none;
    }
    
    .card-image img {
        transition: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .content-card:hover {
        transform: none;
    }
    
    .card-image img {
        transition: none;
    }
    
    .filter-btn:hover,
    .page-btn:hover,
    .page-number:hover,
    .source-btn:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .action-btn,
    .btn,
    .filter-btn,
    .page-btn,
    .page-number,
    .source-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-bottom-nav .nav-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .card-actions button {
        min-height: 36px;
        min-width: 36px;
    }
}

/* Print styles */
@media print {
    .desktop-header,
    .mobile-header,
    .main-nav,
    .mobile-bottom-nav,
    .footer,
    .ad-container,
    .player-actions,
    .source-selector,
    .details-actions,
    .watchlist-dropdown,
    .card-actions {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .content-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        background-color: #121212;
        padding: 0.5rem 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        flex-wrap: wrap;
        gap: 0;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        color: white;
        text-decoration: none;
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
        font-weight: 500;
        min-width: 70px;
        /* Prevent shrinking */
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.2rem;
        color: white;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 0.8rem;
        line-height: 1;
        color: white;
        text-align: center;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: #007bff;
    }

    /* More Menu */
    .more-menu-container {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .more-menu {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1e1e1e;
        border-radius: 10px;
        padding: 0.5rem 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        min-width: 120px;
        z-index: 1001;
    }

    .more-menu.hidden {
        display: none;
    }

    .more-menu .more-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        width: 100%;
    }

    .more-menu .more-item i {
        font-size: 1rem;
        color: white;
    }

    .more-menu .more-item:hover {
        background-color: #2d2d2d;
        color: #007bff;
    }
}

* ===== RESPONSIVE DESIGN ===== */

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider {
        height: 60vh;
        margin: 20px 20px 0;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 160px;
    }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #2d2d2d;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #2d2d2d;
}

.autocomplete-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.autocomplete-meta {
    color: #b3b3b3;
    font-size: 12px;
    font-weight: 400;
}

/* Search Box Styles */
.search-box {
    display: flex;
    align-items: center;
    background: #1a1f2e;
    border-radius: 25px;
    padding: 10px 20px;
    width: 400px;
    position: relative;
    transition: all 0.3s;
}

.search-box:focus-within {
    background: #0f1523;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.search-box i {
    color: #8a94a6;
    font-size: 16px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    width: 100%;
    outline: none;
    margin-left: 10px;
}

.search-box input::placeholder {
    color: #8a94a6;
}

/* Scrollbar for autocomplete */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-box {
        width: 100%;
        margin: 0 10px;
    }
    
    .autocomplete-dropdown {
        max-height: 300px;
        margin-top: 8px;
    }
}

/* Loading state (optional) */
.autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #b3b3b3;
    font-size: 14px;
}

.autocomplete-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Common Legal Pages Styles - Add to style.css */
.legal-header {
    margin-left: 220px;
    margin-top: 70px;
    padding: 60px 0;
    background: linear-gradient(135deg, #070b14 0%, #0f1523 100%);
    border-bottom: 1px solid #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-header .container {
    padding: 0 30px;
    width: 100%;
}

.legal-header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.legal-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.legal-subtitle {
    font-size: 18px;
    color: #8a94a6;
    line-height: 1.6;
    text-align: center;
}

.legal-content {
    margin-left: 220px;
    margin-top: 0;
    padding: 60px 0;
    width: calc(100% - 220px);
    background: #0b0f19;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1a1f2e;
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.3;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.legal-section ul, .legal-section ol {
    margin: 20px 0 30px 20px;
    padding-left: 20px;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.8;
    color: #b3b3b3;
    margin-bottom: 10px;
    padding-left: 10px;
}

.contact-info {
    background: #1a1f2e;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
    border-left: 4px solid #e50914;
}

.legal-acceptance {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(229, 9, 20, 0.2);
    text-align: center;
}

.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    min-width: 250px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification.success {
    background: #4CAF50;
    color: white;
    border-left: 4px solid #2E7D32;
}

.notification.error {
    background: #f44336;
    color: white;
    border-left: 4px solid #c62828;
}

.notification.info {
    background: #2196F3;
    color: white;
    border-left: 4px solid #1565C0;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== RESPONSIVE HOME PAGE STYLES ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-slider {
        height: 80vh;
        margin: 30px 40px 0;
    }
    
    .slide-content {
        left: 80px;
        max-width: 600px;
    }
    
    .slide-content h1 {
        font-size: 52px;
    }
    
    .slide-content p {
        font-size: 18px;
        max-width: 90%;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 200px;
    }
    
    .card-image {
        height: 280px;
    }
    
    .upcoming-card {
        flex: 0 0 180px;
    }
    
    .upcoming-image {
        height: 200px;
    }
}

/* Standard Desktop (1025px - 1399px) */
@media (min-width: 1025px) and (max-width: 1399px) {
    .hero-slider {
        height: 75vh;
        margin: 30px 30px 0;
    }
    
    .slide-content {
        left: 60px;
        max-width: 500px;
    }
    
    .slide-content h1 {
        font-size: 48px;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 180px;
    }
    
    .card-image {
        height: 240px;
    }
    
    .upcoming-card {
        flex: 0 0 160px;
    }
    
    .upcoming-image {
        height: 180px;
    }
}

/* Tablet Landscape (992px - 1024px) */
@media (min-width: 992px) and (max-width: 1024px) {
    .hero-slider {
        height: 70vh;
        margin: 25px 25px 0;
    }
    
    .slide-content {
        left: 50px;
        max-width: 450px;
    }
    
    .slide-content h1 {
        font-size: 42px;
    }
    
    .slide-content p {
        font-size: 15px;
        max-width: 95%;
    }
    
    .actions {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 170px;
    }
    
    .card-image {
        height: 230px;
    }
    
    .upcoming-card {
        flex: 0 0 150px;
    }
    
    .upcoming-image {
        height: 170px;
    }
    
    .platform-btn {
        min-width: 110px;
        padding: 12px 18px;
    }
    
    .platform-btn img {
        height: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
}

/* Tablet Portrait (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-slider {
        height: 65vh;
        margin: 20px 20px 0;
    }
    
    .slide-content {
        left: 40px;
        max-width: 400px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .actions .play,
    .actions .info {
        width: 200px;
        justify-content: center;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 160px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .upcoming-card {
        flex: 0 0 140px;
    }
    
    .upcoming-image {
        height: 160px;
    }
    
    .platform-filters,
    .section {
        padding: 0 20px;
    }
    
    .platforms-scroll-wrapper,
    .content-scroll-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .platform-btn {
        min-width: 100px;
        padding: 10px 15px;
    }
    
    .platform-btn img {
        height: 25px;
    }
    
    .platform-btn span {
        color: white;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .platform-banner {
        padding: 15px 0;
    }
    
    .platform-title {
        font-size: 20px;
    }
    
    .platform-title img {
        height: 35px;
    }
}

/* Mobile Landscape (577px - 768px) */
@media (max-width: 768px) {
    /* Hide desktop controls on mobile */
    .slide-controls,
    .slider-controls {
        display: none !important;
    }
    
    .hero-slider {
        height: 50vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .slide-overlay {
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%) !important;
    }
    
    .slide-content {
        left: 20px !important;
        right: 20px !important;
        bottom: 40px !important;
        max-width: 100% !important;
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 32px !important;
        text-align: center;
    }
    
    .slide-content p {
        font-size: 14px !important;
        text-align: center;
        max-width: 100%;
    }
    
    .actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .actions .play,
    .actions .info {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .platform-filters {
        padding: 15px 20px !important;
    }
    
    .platforms-scroll-wrapper {
        margin: 0 -20px !important;
        padding: 0 20px !important;
    }
    
    .platforms-list {
        padding: 15px 0;
    }
    
    .platform-btn {
        min-width: 90px;
        padding: 10px 12px;
    }
    
    .platform-btn img {
        height: 22px;
    }
    
    .platform-btn span {
        color: white;
        font-size: 11px;
    }
    
    .platform-banner {
        padding: 12px 0;
        margin: 15px 0;
    }
    
    .platform-title {
        font-size: 18px;
        justify-content: center;
    }
    
    .platform-title img {
        height: 30px;
    }
    
    .section {
        padding: 0 20px !important;
        margin-top: 25px;
    }
    
    .content-scroll-wrapper {
        margin: 0 -20px !important;
        padding: 0 20px !important;
    }
    
    .row-list {
        padding: 15px 0;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 140px;
    }
    
    .card-image {
        height: 210px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-info h4 {
        font-size: 13px;
    }
    
    .card-info .year {
        font-size: 11px;
    }
    
    .upcoming-card {
        flex: 0 0 140px;
    }
    
    .upcoming-image {
        height: 160px;
    }
    
    .upcoming-info {
        padding: 12px;
    }
    
    .upcoming-info h4 {
        font-size: 12px;
    }
    
    .upcoming-info .release-date {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-tabs {
        padding: 3px;
    }
    
    .tab-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .empty-section {
        padding: 30px 20px;
        text-align: center;
    }
}

/* Mobile Portrait (481px - 576px) */
@media (max-width: 576px) {
    .hero-slider {
        height: 45vh !important;
    }
    
    .slide-content {
        left: 15px !important;
        right: 15px !important;
        bottom: 30px !important;
    }
    
    .slide-content h1 {
        font-size: 28px !important;
    }
    
    .slide-content p {
        font-size: 13px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .actions .play,
    .actions .info {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .platform-filters {
        padding: 15px !important;
    }
    
    .platforms-scroll-wrapper {
        margin: 0 -15px !important;
        padding: 0 15px !important;
    }
    
    .platforms-list {
        gap: 8px;
    }
    
    .platform-btn {
        min-width: 85px;
        padding: 8px 10px;
    }
    
    .platform-btn img {
        height: 20px;
    }
    
    .platform-btn span {
        color: white;
        font-size: 10px;
    }
    
    .section {
        padding: 0 15px !important;
        margin-top: 20px;
    }
    
    .content-scroll-wrapper {
        margin: 0 -15px !important;
        padding: 0 15px !important;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 120px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .upcoming-card {
        flex: 0 0 120px;
    }
    
    .upcoming-image {
        height: 140px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .section-tabs {
        padding: 2px;
    }
    
    .tab-btn {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .row-list {
        gap: 12px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-slider {
        height: 40vh !important;
    }
    
    .slide-content h1 {
        font-size: 24px !important;
    }
    
    .slide-content p {
        font-size: 12px !important;
        -webkit-line-clamp: 2;
    }
    
    .platform-btn {
        min-width: 75px;
        padding: 6px 8px;
    }
    
    .platform-btn img {
        height: 25px;
        margin-bottom: 0;
    }
    
    .platform-title {
        font-size: 16px;
    }
    
    .platform-title span {
        display: none;
    }
    
    .platform-title img {
        height: 35px;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 110px;
    }
    
    .card-image {
        height: 165px;
    }
    
    .card-info {
        padding: 10px;
    }
    
    .card-info h4 {
        font-size: 12px;
    }
    
    .upcoming-card {
        flex: 0 0 110px;
    }
    
    .upcoming-image {
        height: 130px;
    }
    
    .upcoming-info h4 {
        font-size: 11px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .row-list {
        gap: 10px;
    }
}

/* Very Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .hero-slider {
        height: 35vh !important;
    }
    
    .slide-content h1 {
        font-size: 20px !important;
    }
    
    .actions .play,
    .actions .info {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .platform-btn {
        min-width: 70px;
        padding: 5px;
    }
    
    .platform-btn img {
        height: 22px;
    }
    
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card {
        flex: 0 0 100px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .upcoming-card {
        flex: 0 0 100px;
    }
    
    .upcoming-image {
        height: 120px;
    }
    
    .section-title {
        font-size: 15px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .platform-btn,
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card,
    .upcoming-card {
        cursor: default;
    }
    
    .platform-btn:active,
    .trending-card:active,
    .movie-card:active,
    .series-card:active,
    .animation-card:active,
    .upcoming-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-slider .slide {
        background-size: cover;
        background-position: center;
    }
    
    .card-image img,
    .upcoming-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .trending-card,
    .movie-card,
    .series-card,
    .animation-card,
    .upcoming-card,
    .card-image img,
    .platform-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Mobile responsive fix for top header */
@media (max-width: 768px) {
    .top-header {
        left: 0 !important; /* Remove sidebar offset on mobile */
        right: 0 !important;
        width: 100% !important;
        height: 60px; /* Slightly smaller on mobile */
    }
    
    .top-header .container {
        padding: 0 15px !important; /* Reduce padding on mobile */
    }
    
    .header-content {
        height: 60px !important; /* Match header height */
    }
    
    /* Adjust content to account for mobile header */
    .content {
        margin-top: 60px !important; /* Adjust for mobile header height */
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Fix for search box on mobile */
    .search-box {
        width: 200px !important; /* Smaller search box on mobile */
        margin-right: 10px;
    }
    
    /* Fix for user dropdown on mobile */
    .user-name {
        display: none; /* Hide username on very small screens */
    }
    
    .user-info {
        padding: 6px 10px;
    }
    
/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-header {
        left: 200px; /* Match sidebar width on tablet */
    }
    
    .search-box {
        width: 300px; /* Slightly smaller on tablet */
    }
}

/* Ensure header is above everything except modals */
.top-header {
    z-index: 999;
}

/* Fix for dropdown menu visibility */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* Add some space below header */
    right: 0;
    z-index: 1000; /* Make sure dropdown is above other content */
}

/* Ensure header doesn't overlap with sidebar */
.sidebar {
    z-index: 1000;
}

.top-header {
    z-index: 999;
}

