/*
Theme Name: Movie Theme
*/

/* BASE */
body {
    background: #0f172a;
    color: #e5e7eb;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #22c55e; }

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #1f2937;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.logo img {
    width: 320px;
    height: auto;
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-form input {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    width: 200px;
}

.search-form button {
    background: #22c55e;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* FOOTER */
.site-footer {
    margin-top: 40px;
    background: #020617;
    border-top: 1px solid #1f2937;
    text-align: center;
    padding: 20px 0;
}

/* GRID CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.card {
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
}

/* LIST UI (Filmyzilla style) */
.list-container {
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #1f2937;
    transition: 0.2s;
}

.list-item:last-child { border-bottom: none; }

.list-item:hover { background: #1f2937; }

.folder-icon {
    margin-right: 10px;
}

.list-link {
    font-weight: 600;
}

/* MOVIE LIST */
.movie-list { background: #f2f2f2; }

.movie-row {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.movie-thumb img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
}

.movie-title {
    color: #0b79b7;
    font-size: 16px;
    font-weight: 500;
}

.movie-meta { font-size: 14px; margin-top: 3px; }

.label { color: red; font-weight: 500; }
.value { color: green; }

/* MOVIE HERO */
.movie-hero {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.movie-hero img {
    width: 180px;
    border-radius: 10px;
}

/* DOWNLOAD LIST */
.quality-heading {
    background: #e5e5e5;
    padding: 8px 10px;
    font-weight: bold;
    margin-top: 12px;
    border-left: 4px solid #999;
    color: red;
}

.file-row {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 16px;
}

.file-row:last-child { border-bottom: none; }

.arrow {
    color: maroon;
    margin-right: 6px;
    font-weight: bold;
}

.file-link { color: #0b79b7; }
.file-link:hover { color: red; }

/* PAGINATION */
.pagination { text-align: center; margin: 15px 0; }

.page-link,
.page-current {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    border: 1px solid #ccc;
    color: #0b79b7;
}

.page-current {
    background: #0b79b7;
    color: #fff;
    border-color: #0b79b7;
}

/* BREADCRUMB */
.breadcrumb {
    margin: 10px 0;
    font-size: 14px;
    color: #fff;
}

/* VIEWER */
.viewer-container {
    background: #111827;
    padding: 15px;
    border-radius: 12px;
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.viewer-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 8px;
    background: #000;
}

.viewer-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.viewer-buttons a {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
}

.back-btn { background: #22c55e; }
.open-btn { background: #3b82f6; }

.back-btn:hover { background: #16a34a; }
.open-btn:hover { background: #2563eb; }

/* ADS */
.ad-slot {
    text-align: center;
    margin: 15px 0;
}

/* MOBILE */
@media (max-width: 600px) {

    .logo img { width: 260px; }

    .header-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .search-form {
        width: 100%;
        justify-content: center;
    }

    .search-form input { width: 70%; }

    .movie-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
