/* ============================================
   MOVIES STYLESHEET - amaderftp.net
   Developer: Md.Abdul Lotif (Mia)
   Mobile: 01738766788
   
   This file controls all movie/TV card styles,
   posters, grids, and movie-related elements.
   ============================================ */

/* ============================================
   CATEGORY TITLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: black;
    color: white;
}

.hero {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #141414;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: -2;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

/* ============ TOP HEADER STYLES ============ */
.top-header {
    background: rgba(0,0,0,0.8);
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.top-header-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-header-left a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.top-header-left a:hover {
    color: #E50914;
}

.top-header-left i {
    margin-right: 8px;
    color: #E50914;
}

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

.top-header-right a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.top-header-right a:hover {
    color: #E50914;
}

.top-header-right i {
    margin-right: 5px;
}

/* ============ MAIN HEADER STYLES ============ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(0,0,0,0.5);
}

.logo {
    width: 200px;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.menu-btn {
    background: #333;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.menu-btn:hover {
    background: #555;
}

.menu-btn.top-rated { background: #E50914; }
.menu-btn.top-rated:hover { background: #b00610; }
.menu-btn.popular { background: #FF9800; }
.menu-btn.popular:hover { background: #e68900; }
.menu-btn.now-playing { background: #4CAF50; }
.menu-btn.now-playing:hover { background: #45a049; }
.menu-btn.upcoming { background: #9C27B0; }
.menu-btn.upcoming:hover { background: #7B1FA2; }
.menu-btn.all { background: #2196F3; }
.menu-btn.all:hover { background: #0b7dda; }
.menu-btn.sync-tv { background: #00BCD4; }
.menu-btn.sync-tv:hover { background: #0097A7; }
.menu-btn.sync-movies { background: #FF5722; }
.menu-btn.sync-movies:hover { background: #E64A19; }
.menu-btn.sync-all { background: #9C27B0; }
.menu-btn.sync-all:hover { background: #7B1FA2; }

.signin {
    background: #E50914;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.signin:hover {
    background: #b00610;
}

.center {
    text-align: center;
    margin-top: 80px;
    padding: 0 20px;
}

.center h1 {
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 15px;
}

.center p {
    font-size: 20px;
    margin-bottom: 20px;
}

.search {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search input[type="text"] {
    font-size: 18px;
    height: 45px;
    width: 400px;
    padding: 0 15px;
    border: none;
    border-radius: 4px;
    outline: none;
}

.search select {
    font-size: 16px;
    height: 45px;
    padding: 0 15px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
    cursor: pointer;
}

.search button {
    font-size: 18px;
    height: 45px;
    padding: 0 25px;
    background: #E50914;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.search button:hover {
    background: #b00610;
}

.category-section {
    margin: 40px 50px;
}

.category-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #E50914;
    margin-top: 30px;
}

.category-title:first-of-type {
    margin-top: 0;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-info {
    padding: 10px;
    background: rgba(0,0,0,0.8);
}

.movie-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-rating {
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 3px;
}

.movie-year {
    font-size: 11px;
    color: #999;
}

.media-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 5px;
}

.badge-movie {
    background: #E50914;
}

.badge-tv {
    background: #2196F3;
}

/* Download Options Styles */
.download-options {
    margin-top: 8px;
}

.quality-select {
    width: 100%;
    padding: 6px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quality-select:hover {
    background: #444;
}

.quality-select option {
    background: #1a1a1a;
    color: white;
}

.watch-btn {
    width: 100%;
    padding: 6px;
    background: #E50914;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.watch-btn:hover {
    background: #b00610;
}

.message {
    text-align: center;
    padding: 12px;
    margin: 20px auto;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
    max-width: 600px;
}

.search-result {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0,0,0,0.9);
    border-radius: 10px;
    max-width: 400px;
}

.search-result img {
    max-width: 180px;
    border-radius: 10px;
    margin: 10px 0;
}

.search-result button {
    background: #E50914;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.language-select {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    margin: 20px 0;
}

.empty-state p {
    margin-bottom: 15px;
    color: #ccc;
}

.language-icon {
    margin-right: 10px;
}

/* ============ FOOTER STYLES ============ */
.footer {
    background: rgba(0,0,0,0.9);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
    font-size: 14px;
    color: #999;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    color: #E50914;
    transform: translateY(-3px);
}

/* ============ PAGINATION STYLES ============ */
.pagination-container {
    margin: 40px 0 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    text-align: center;
}

.pagination-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ccc;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    color: white;
    background: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #E50914;
    transform: translateY(-2px);
}

.pagination .active {
    background: #E50914;
    cursor: default;
}

.pagination .disabled {
    background: #222;
    color: #666;
    cursor: not-allowed;
}

.pagination .page-dots {
    background: transparent;
    cursor: default;
}

.pagination-info {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
}

/* ============ MOBILE RESPONSIVE FIXES ============ */
/* Extra large screens (desktops) */
@media (min-width: 1400px) {
    .movie-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 18px;
    }
    .category-section {
        margin: 40px 60px;
    }
}

/* Large screens (laptops) */
@media (max-width: 1200px) and (min-width: 993px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    .category-section {
        margin: 30px 40px;
    }
    .center h1 {
        font-size: 42px;
    }
}

/* Tablets and small laptops */
@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .category-section {
        margin: 25px 25px;
    }
    .center h1 {
        font-size: 36px;
    }
    .center p {
        font-size: 18px;
    }
    .search input[type="text"] {
        width: 280px;
        font-size: 16px;
    }
    .search button {
        font-size: 16px;
        padding: 0 20px;
    }
    .top-header {
        padding: 8px 25px;
    }
    .header {
        padding: 15px 25px;
    }
    .top-header-left, .top-header-right {
        gap: 12px;
    }
    .top-header-left a, .top-header-right a {
        font-size: 12px;
    }
    .menu-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .signin {
        padding: 6px 16px;
        font-size: 12px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Header adjustments */
    .top-header {
        padding: 8px 15px;
        flex-direction: column;
        text-align: center;
    }
    .top-header-left, .top-header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .header {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
    }
    .logo {
        width: 160px;
        margin-bottom: 5px;
    }
    .button-group {
        justify-content: center;
        gap: 8px;
    }
    .menu-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .signin {
        padding: 5px 14px;
        font-size: 11px;
    }
    
    /* Hero section adjustments */
    .center {
        margin-top: 40px;
        padding: 0 15px;
    }
    .center h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .center p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Search bar adjustments */
    .search {
        gap: 8px;
        flex-direction: column;
        width: 100%;
    }
    .search input[type="text"] {
        width: 90%;
        max-width: 300px;
        font-size: 14px;
        height: 40px;
    }
    .search select {
        width: 90%;
        max-width: 300px;
        font-size: 14px;
        height: 40px;
    }
    .search button {
        width: 90%;
        max-width: 300px;
        font-size: 14px;
        height: 40px;
        padding: 0;
    }
    
    /* Category section adjustments */
    .category-section {
        margin: 20px 15px;
    }
    .category-title {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-left: 8px;
    }
    
    /* Movie grid for mobile */
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .movie-info {
        padding: 6px;
    }
    .movie-title {
        font-size: 11px;
    }
    .movie-rating {
        font-size: 10px;
    }
    .movie-year {
        font-size: 9px;
    }
    .media-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    /* Download options mobile */
    .quality-select, .watch-btn {
        font-size: 8px;
        padding: 4px;
    }
    
    /* Search result card */
    .search-result {
        margin: 15px auto;
        padding: 15px;
        max-width: 90%;
    }
    .search-result img {
        max-width: 140px;
    }
    .search-result h3 {
        font-size: 18px;
    }
    .language-select {
        width: 90%;
        max-width: 200px;
        margin: 10px auto;
        display: block;
    }
    
    /* Message box */
    .message {
        margin: 15px 15px;
        padding: 10px;
        font-size: 13px;
        max-width: calc(100% - 30px);
    }
    
    /* Empty state */
    .empty-state {
        padding: 25px;
        margin: 15px 0;
    }
    .empty-state p {
        font-size: 13px;
    }
    
    /* Pagination for mobile */
    .pagination-container {
        margin: 25px 15px 15px 15px;
        padding: 12px;
    }
    .pagination {
        gap: 5px;
    }
    .pagination a, .pagination span {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 32px;
    }
    .pagination-info {
        font-size: 11px;
        margin-top: 10px;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 15px 20px;
        margin-top: 30px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-copyright {
        font-size: 11px;
    }
    .footer-social {
        gap: 15px;
        justify-content: center;
    }
    .footer-social a {
        font-size: 16px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-title {
        font-size: 20px;
    }
    .center h1 {
        font-size: 24px;
    }
    .center p {
        font-size: 12px;
    }
    .top-header-left, .top-header-right {
        gap: 10px;
    }
    .top-header-left a, .top-header-right a {
        font-size: 10px;
    }
    .menu-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    .signin {
        padding: 4px 12px;
        font-size: 10px;
    }
    .logo {
        width: 140px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .movie-title {
        font-size: 10px;
    }
    .movie-rating {
        font-size: 9px;
    }
    .movie-year {
        font-size: 8px;
    }
    .category-title {
        font-size: 18px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .center {
        margin-top: 30px;
    }
    .center h1 {
        font-size: 28px;
    }
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .top-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}