/* =========================================
   1. GLOBAL SETTINGS & RESET
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background-color: #0c0c0c; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: white; 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* =========================================
   2. NAVBAR (CENTERED LOGO)
   ========================================= */
.navbar {
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: #111; 
    padding: 15px 0; 
    border-bottom: 2px solid #ff4757;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    height: 70px;
}

.logo { 
    font-size: 30px; 
    font-weight: bold; 
    color: white; 
    text-decoration: none; 
    letter-spacing: 1.5px;
}

.logo span { 
    color: #ff4757; 
}

/* =========================================
   3. SEARCH BAR & FILTERS (HOME PAGE)
   ========================================= */
.search-section { 
    display: flex; 
    justify-content: center; 
    padding: 40px 20px 10px; 
}

.search-container {
    display: flex; 
    width: 100%; 
    max-width: 600px; 
    background: #1a1a1a;
    border-radius: 30px; 
    border: 2px solid #ff4757; 
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}

#myInput { 
    flex: 1; 
    border: none; 
    background: transparent; 
    padding: 14px 25px; 
    color: white; 
    outline: none; 
    font-size: 16px; 
}

.search-btn { 
    background: #ff4757; 
    border: none; 
    color: white; 
    padding: 0 25px; 
    cursor: pointer; 
}

.filters-wrapper { text-align: center; padding: 20px; }

.filter-btn {
    background: #1a1a1a; color: white; border: 1px solid #333;
    padding: 8px 18px; border-radius: 5px; cursor: pointer; 
    font-size: 13px; transition: 0.3s; margin: 4px;
}

.filter-btn:hover, .filter-btn.active { 
    background: #ff4757; 
    border-color: #ff4757; 
}

/* =========================================
   4. HOME PAGE CARDS (GRID)
   ========================================= */
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }

.anime-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 25px; 
    justify-items: center;
}

.card { 
    width: 100%; 
    max-width: 200px; 
    background: #1a1a1a; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #222; 
    transition: 0.4s;
    position: relative;
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: #ff4757; 
}

.card-img-box { width: 100%; height: 270px; overflow: hidden; }

.card img { 
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s; 
}

.card:hover img { transform: scale(1.1); }

.card-info { padding: 15px; text-align: center; }

.card-tags { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }

.tag-lang { background: #ff4757; color: white; font-size: 10px; font-weight: bold; padding: 2px 7px; border-radius: 3px; }

.tag-genre { background: #2f3542; color: #ced4da; font-size: 10px; padding: 2px 7px; border-radius: 3px; }

/* =========================================
   5. POST PAGE STYLES (DOWNLOAD PAGE)
   ========================================= */
/* Post Page Specific Styles */
.post-container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 30px; 
    background: #111; /* Solid Dark Background */
    border-radius: 15px;
    border: 1px solid #222;
}

.anime-header { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
}

/* Photo ko bada karne ke liye */
.post-poster { 
    width: 320px; /* Poster size increased */
    flex-shrink: 0;
    position: relative;
}

.post-poster img { 
    width: 100%; 
    height: auto;
    border-radius: 12px; 
    border: 3px solid #ff4757; /* Red Border for Highlight */
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.imdb-rating {
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: #f5c518; 
    color: #000; 
    padding: 5px 12px; 
    font-weight: bold; 
    border-radius: 5px; 
    font-size: 14px;
}

.post-details { 
    flex: 1; 
    min-width: 320px; 
}

.anime-title { 
    font-size: 36px; 
    color: #ff4757; 
    margin-bottom: 15px; 
    text-transform: uppercase;
}

.anime-meta { margin-bottom: 25px; }

.meta-item { 
    background: #222; 
    color: #ff4757; 
    padding: 6px 15px; 
    border-radius: 5px; 
    margin-right: 10px; 
    border: 1px solid #ff4757;
    font-size: 13px;
    font-weight: bold;
}

.storyline h3 { 
    color: #fff; 
    margin-bottom: 10px; 
    border-bottom: 2px solid #ff4757; 
    display: inline-block;
}

.storyline p { 
    color: #ccc; 
    font-size: 16px; 
    line-height: 1.8;
}

/* Download Section Colors */
.season-box { 
    border: 2px solid #333; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-top: 20px;
}

.season-header { 
    background: #ff4757; 
    padding: 15px; 
    text-align: center; 
    font-weight: bold; 
    font-size: 20px;
}

.dl-btn {
    display: block; 
    background: #444; 
    color: white; 
    text-decoration: none; 
    padding: 15px; 
    border-radius: 8px; 
    font-weight: bold;
    transition: 0.3s;
}

.btn-fhd { 
    background: #ff4757; /* 1080p is highlighted RED */
}

.btn-fhd:hover { 
    background: #fff; 
    color: #ff4757; 
}

/* Mobile Fix */
@media (max-width: 768px) {
    .post-poster { width: 100%; max-width: 300px; margin: 0 auto; }
    .anime-header { text-align: center; flex-direction: column; }
    .anime-title { font-size: 28px; }
}
/* =========================================
   6. FOOTER & RESPONSIVE
   ========================================= */
footer { 
    background: #111; padding: 40px 20px; text-align: center; 
    border-top: 2px solid #ff4757; margin-top: 60px; 
}

@media (max-width: 768px) {
    .anime-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .card-img-box { height: 210px; }
    .anime-header { flex-direction: column; align-items: center; text-align: center; }
    .post-poster { width: 100%; max-width: 250px; }
}
/* Post Container Styling */
.post-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: #111;
    border-radius: 12px;
}

.post-header {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Photo ko bada karne ke liye */
.poster-side {
    width: 300px; /* Badi Photo size */
    position: relative;
    flex-shrink: 0;
}

.main-thumbnail {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #ff4757;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

.imdb-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f5c518;
    color: black;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 13px;
}

.info-side {
    flex: 1;
    min-width: 300px;
}

.post-title {
    color: #ff4757;
    font-size: 28px;
    margin-bottom: 15px;
}

.details-grid p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #ddd;
}

.sub-heading {
    margin-top: 20px;
    font-size: 20px;
    border-bottom: 2px solid #ff4757;
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 10px;
}

.divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 30px 0;
}

/* Season Box Fix */
.season-box {
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
}

.season-header {
    background: #ff4757;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.quality-box {
    background: #0c0c0c;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #222;
}

.dl-btn {
    display: block;
    margin-top: 10px;
    background: #333;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-fhd {
    background: #ff4757;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .poster-side {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 20px;
    }
    .post-header {
        text-align: center;
    }
}

/* All Download Buttons - Common Red Style */
.dl-btn {
    display: block;
    margin-top: 10px;
    background: #ff4757; /* Pure Red Base */
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* 480p Button Specific Hover */
.btn-480:hover {
    background: #ff6b81; /* Lighter red on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* 720p Button Specific Hover */
.btn-720:hover {
    background: #ff4757; 
    border-color: white; /* White border on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* 1080p Button (FHD) Specific Hover */
.btn-fhd:hover {
    background: white;
    color: #ff4757; /* White button with Red text on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Layout Balance */
.quality-box {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #333;
}

.quality-box span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #bbb;
    font-weight: 500;
}

