/* General Styles */
:root {
    --bg-color: #12151e;
    --card-bg: #1a1d29;
    --text-color: #e0e0e0;
    --primary-color: #ff8c00;
    --secondary-color: #00bcd4;
    --border-color: #2a2f42;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Header */
header { background-color: var(--card-bg); padding: 10px 20px; border-bottom: 1px solid var(--border-color); }
nav { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5em; font-weight: bold; color: var(--primary-color); text-decoration: none; }
.nav-links a { color: var(--text-color); text-decoration: none; margin: 0 15px; font-weight: bold; }
.search-bar { display: flex; }
.search-bar input { background: #252a38; border: 1px solid var(--border-color); border-radius: 5px 0 0 5px; color: white; padding: 8px; }
.search-bar button { background: var(--primary-color); border: none; padding: 8px 12px; border-radius: 0 5px 5px 0; cursor: pointer; }

/* Movie Details Card */
.movie-details-card { background-color: var(--card-bg); border-radius: 8px; padding: 25px; border: 1px solid var(--border-color); }
.movie-title { font-size: 1.8em; margin-top: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; }
.details-flex { display: flex; gap: 25px; }
.poster img { max-width: 250px; border-radius: 8px; }
.info p { margin: 10px 0; line-height: 1.6; }
.info strong { color: var(--secondary-color); min-width: 90px; display: inline-block; }

/* Screenshots */
.screenshots h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-top: 30px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 15px; }
.gallery img { width: 100%; border-radius: 5px; }

/* Download Section */
.download-section { margin-top: 30px; }
.download-section h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.btn { display: block; text-align: center; padding: 12px; margin: 10px 0; text-decoration: none; border-radius: 5px; font-weight: bold; transition: all 0.3s ease; }
.btn-download { background-color: var(--secondary-color); color: #111; }
.btn-download-alt { background-color: var(--primary-color); color: #111; }
.btn-watch { background-color: #1e88e5; color: white; }

/* Download Info/Final Page Styles */
.centered-container { display: flex; justify-content: center; align-items: center; min-height: 90vh; }
.download-card { background: var(--card-bg); padding: 30px; border-radius: 10px; width: 100%; max-width: 600px; text-align: center; border: 1px solid var(--border-color); }
.download-card h3 { font-size: 1.5em; margin-top: 0; }
.info-box { background: rgba(0,0,0,0.2); padding: 15px; margin: 20px 0; border-radius: 5px; }
.info-box p { margin: 8px 0; font-size: 1.1em; }
.btn-continue { background-color: #1e88e5; color: white; font-size: 1.2em; padding: 15px; }
.btn-back { background-color: #444; color: white; }
.note { font-size: 0.9em; color: #aaa; margin-top: 20px; }

/* Final Download Page */
.final-download-card .file-name { background: rgba(0,0,0,0.3); padding: 10px; border-radius: 5px; word-break: break-all; margin-bottom: 20px; }
.file-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; text-align: left; margin-bottom: 25px; }
.info-item { background: #252a38; padding: 15px; border-radius: 5px; }
.info-item span { display: block; font-size: 0.8em; color: #aaa; margin-bottom: 5px; }
.final-buttons .btn { margin: 8px 0; }
.btn-final-oneclick { background: #1e88e5; color: white; }
.btn-final-highspeed { background: #00c853; color: white; }
.btn-final-more { background: var(--primary-color); color: #111; width: 100%; border: none; font-size: 1em; }
.btn-telegram { background: #0088cc; color: white; }
.btn-back-final { color: #ccc; font-size: 0.9em; }
.server-note { margin: 15px 0; color: #bbb; }
.loading-btn { background: #555; color: #ccc; cursor: wait; }
.ready-btn { background: #4caf50; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .details-flex { flex-direction: column; align-items: center; }
    .file-info-grid { grid-template-columns: 1fr 1fr; }
    nav { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .file-info-grid { grid-template-columns: 1fr; }
}

/* --- Home Page: Movie Grid Styles --- */

.section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.movie-grid {
    display: grid;
    /* এই লাইনটি কার্ডগুলোকে রেসপন্সিভ গ্রিডে সাজাবে */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px; /* কার্ডগুলোর মধ্যে ফাঁকা জায়গা */
}

.movie-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.poster-container {
    position: relative;
}

.movie-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3; /* পোস্টারের সাইজ ঠিক রাখার জন্য */
    object-fit: cover;
    display: block;
}

.quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--primary-color);
    color: #111;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}

.movie-card-info {
    padding: 15px;
    flex-grow: 1; /* লেখা কম বা বেশি হলেও কার্ডের সাইজ ঠিক থাকবে */
}

.movie-card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* মুভির নাম বড় হলে ... দেখাবে */
}

.movie-card-info p {
    margin: 0;
    font-size: 0.9em;
    color: #aaa;
}

.no-movies-message {
    color: #aaa;
    grid-column: 1 / -1; /* সম্পূর্ণ গ্রিড জুড়ে দেখানোর জন্য */
    text-align: center;
    padding: 40px;
}