/* FilmyFly Full Stylesheet (mobile-first, full width fix) */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
}

body {
    font-family: Roboto, Arial, Tahoma, Verdana, sans-serif;
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0000cc;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Wider screens: center content like a mobile column */
@media (min-width: 768px) {
    body { background: #e9ecef; }
    .container {
        max-width: 720px;
        box-shadow: 0 0 12px rgba(0,0,0,0.15);
    }
}

/* Header Banner */
.header-banner {
    width: 100%;
    text-align: center;
    background: #000000;
    padding: 0;
    line-height: 0;
}
.header-banner img {
    display: block;
    width: 100%;
    max-height: 130px;
    object-fit: cover;
}

/* Search Bar */
.search-bar-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    background: #1e3a9f;
    padding: 12px 8px;
    border-top: 2px solid #ffffff;
}
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 65%;
    padding: 9px 10px;
    border: 1px solid #cfd6e4;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
}
.search-btn {
    flex: 0 0 auto;
    padding: 9px 14px;
    background: #e4e6eb;
    border: 1px solid #adadad;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
}
.search-btn:hover {
    background: #e5f3ff;
    border-color: #0078d7;
}

/* Sub Nav (Official website / Go to homepage) */
.sub-nav {
    background: #fff7b8;
    text-align: center;
    padding: 10px 6px;
    font-size: 15px;
    font-weight: bold;
    color: #0000cc;
    border-bottom: 1px solid #e6db55;
}
.sub-nav a {
    color: #0000cc;
    text-decoration: underline;
}
.sub-nav a:hover {
    text-decoration: none;
}

/* Warning Banner */
.warning-banner {
    background: #fffbe0;
    border: 1px solid #ffcc00;
    color: #cc0000;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    margin: 8px 6px;
    border-radius: 4px;
    line-height: 1.4;
}
.warning-banner a {
    color: #0000ff;
    font-weight: bold;
    text-decoration: underline;
}

/* Main Navigation Buttons */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #1e3a9f;
    padding: 10px 6px;
}
.nav-btn,
.nav-menu a {
    display: inline-block;
    background: #2f4fc4;
    color: #ffffff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
}
.nav-btn:hover,
.nav-menu a:hover {
    background: #4263d8;
}

/* Trending Bar */
.trending-bar {
    background: linear-gradient(to bottom, #ff9a1f, #f57c00);
    color: #ffffff;
    text-align: center;
    padding: 12px 8px;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* Section Bar (LATEST UPLOADS) */
.section-bar,
.latest-bar {
    background: #003366;
    color: #ffffff;
    text-align: center;
    padding: 14px 8px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Movie Title Bar */
.movie-title-bar {
    background: #e8f4ff;
    color: #003366;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    border-top: 1px solid #b8d4f8;
    border-bottom: 1px solid #b8d4f8;
    line-height: 1.4;
}

.official-site-link {
    text-align: center;
    padding: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #cc0000;
    background: #ffffff;
}
.official-site-link a {
    color: #0000ff;
}
.official-site-link a:hover {
    text-decoration: underline;
}

/* Movie Poster */
.poster-container {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: #ffffff;
}
.movie-poster {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border: 1px solid #b0b0b0;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* File Info Box */
.file-info-header {
    background: #e8f9ff;
    color: #ff6600;
    text-align: center;
    font-weight: bold;
    padding: 7px;
    border-top: 1px solid #b3ecff;
    border-bottom: 1px solid #b3ecff;
    font-size: 14px;
}
.file-info-content {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    background: #ffffff;
    word-wrap: break-word;
}
.file-info-content p { margin: 5px 0; }
.label-title    { color: #cc0000; font-weight: bold; }
.label-genre    { color: #d35400; font-weight: bold; }
.label-duration { color: #27ae60; font-weight: bold; }
.label-date     { color: #2980b9; font-weight: bold; }
.label-lang     { color: #16a085; font-weight: bold; }
.label-starcast { color: #8e44ad; font-weight: bold; }
.label-desc     { color: #333333; }

/* Download Section */
.download-section-bar {
    background: #003366;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.download-btn-box {
    text-align: center;
    padding: 12px;
    background: #fcfcfc;
}
.btn-download-main {
    display: block;
    background: linear-gradient(to bottom, #5cb85c, #419641);
    color: #ffffff;
    padding: 14px 15px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #357ebd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
}
.btn-download-main:hover {
    background: linear-gradient(to bottom, #47a447, #398439);
}

/* Screenshots Section */
.screenshot-bar {
    background: #004d99;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 13px;
}
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: #000000;
}
.screenshot-item {
    width: 100%;
}
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related / Trending / Latest movie list */
.related-bar {
    background: #003366;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
}
.related-list,
.movie-list {
    padding: 0;
    background: #ffffff;
}
.related-item,
.movie-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
}
.related-item:hover,
.movie-item:hover {
    background: #f7f9fa;
}
.related-thumb,
.movie-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 108px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #cccccc;
    border-radius: 2px;
}
.related-info,
.movie-info {
    flex: 1 1 auto;
    min-width: 0;
}
.related-info h4,
.movie-info h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    line-height: 1.3;
    color: #0000cc;
    font-weight: bold;
}
.related-info h4:hover,
.movie-info h4:hover {
    text-decoration: underline;
}
.movie-meta,
.related-info p {
    margin: 6px 0 0 0;
    font-size: 15px;
    color: #555555;
}
.badge-tag {
    display: inline-block;
    background: #800020;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Breadcrumb & Tags */
.breadcrumb-box {
    padding: 10px;
    font-size: 12px;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    line-height: 1.5;
}
.breadcrumb-box a { color: #0000cc; }
.breadcrumb-box a:hover { text-decoration: underline; }

.tags-box {
    background: #f1f1f1;
    padding: 12px;
    font-size: 14px;
    color: #444444;
    border-top: 2px solid #dcdcdc;
    line-height: 1.6;
}
.tags-box span {
    font-weight: bold;
    color: #cc0000;
}

/* Telegram */
.telegram-btn-box {
    text-align: center;
    padding: 16px 12px;
    background: #ffffff;
}
.btn-telegram {
    display: block;
    width: 100%;
    background: #0077b5;
    color: #ffffff;
    padding: 14px 18px;
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}
.btn-telegram:hover {
    background: #006699;
}

/* Footer Links & Buttons */
.footer-links-box {
    text-align: center;
    padding: 14px 10px;
    background: #e8f4ff;
    font-size: 16px;
    font-weight: bold;
    border-top: 2px solid #b8d4f8;
}
.footer-links-box a {
    color: #0000cc;
    margin: 0 6px;
}
.footer-links-box a:hover { text-decoration: underline; }

.footer-buttons {
    text-align: center;
    padding: 12px 10px;
    background: #ffffff;
}
.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    margin: 8px 0;
    font-size: 17px;
    font-weight: bold;
    background: #ffffff;
    border-radius: 4px;
    text-decoration: none;
}
.btn-request {
    color: #cc0000;
    border: 1px solid #cc0000;
}
.btn-home {
    color: #000000;
    border: 1px solid #000000;
}
.btn-outline:hover {
    background: #f5f5f5;
}

.site-description-footer {
    background: #fcfcfc;
    padding: 10px;
    font-size: 11px;
    text-align: center;
    color: #666666;
    border-top: 1px solid #dddddd;
}
.powered-by {
    text-align: center;
    background: #ffffff;
    padding: 14px 8px 28px;
    font-weight: bold;
    font-size: 16px;
    border-top: 1px solid #eeeeee;
}

/* Lightbox Modal Slider */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-content-wrap {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content-wrap img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.lightbox-counter {
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 12px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #ff4d4d;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 4px;
    transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.powered-by a { color: #1e3a9f; }
.powered-by a:hover { text-decoration: underline; }