/*
Theme Name: FilmyFly Theme
Theme URI: https://filmy4wap.co.in/
Author: FilmyFly Team
Author URI: https://filmy4wap.co.in/
Description: Lightweight, high-speed, mobile-first native WordPress movie theme with Elite SEO and retro UI.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: filmyfly
*/

body * {
    margin: 0;
    padding: 0;
    font-family: verdana, "Comic Sans MS", Helvetica, sans-serif;
    box-sizing: border-box;
}

body, td {
    margin: 0;
    padding: 0;
    font-size: small;
}

body {
    background: #fff;
    color: #000;
    overflow-x: hidden;
}

a {
    color: #006699;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    width: 100%;
    min-width: 200px;
    max-width: 100%;
    margin: auto;
    padding: 0;
    overflow-x: hidden;
}

img {
    border: 0;
    vertical-align: middle;
}

table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
}

table tr, table th {
    background: #fff;
}

table td {
    padding: 5px;
}

h1 {
    color: #000;
    border: 1px solid rgb(170, 187, 204);
    font-size: 110%;
    padding: 5px;
    font-weight: bold;
    text-align: center;
}

h2 {
    color: #006699;
    background: rgb(221, 231, 241);
    border: 1px solid rgb(170, 187, 204);
    font-size: 110%;
    padding: 7px 5px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
}

h2 a {
    color: #006699;
}

h3 {
    color: #fff;
    background: #006699;
    padding: 6px;
    font-size: 110%;
    text-align: center;
    text-transform: uppercase;
}

p {
    padding: 6px 0;
}

/* =========================================
   Header Logo & Search Bar
   ========================================= */
.A1 {
    background-color: rgb(221, 231, 241);
    border: 1px solid rgb(170, 187, 204);
    line-height: 0;
}

.A1 > a {
    display: block;
    line-height: 0;
}

.A1 > a > img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 60px;
    object-fit: cover;
    margin: 0 auto;
}

.search {
    background: #006699;
    border: 1px dashed #fff;
    padding: 2px;
    color: #fff;
    font-weight: bold;
}

.search input[type="text"] {
    max-width: 62%;
    padding: 2px 4px;
}

.search input[type="submit"] {
    padding: 1px 6px;
    cursor: pointer;
}

.site-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 6px 4px;
    font-weight: bold;
    text-align: center;
    font-size: 13px;
}

/* =========================================
   Official Notice Banner
   ========================================= */
.ff-domain-notice {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 44px 8px 10px;
    background: #fff3cd;
    color: #b00020;
    border: 1px solid #e1a900;
    font-family: Verdana, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.ff-domain-notice-text {
    display: block;
    color: #b00020;
    font-weight: 900;
    white-space: nowrap;
}

.ff-domain-notice a {
    color: #006699;
    font-weight: 900;
    text-decoration: underline;
}

.ff-domain-notice-close {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 27px;
    height: 27px;
    padding: 0;
    transform: translateY(-50%);
    background: #fff;
    color: #b00020;
    border: 1px solid #d49b00;
    border-radius: 50%;
    font-size: 21px;
    font-weight: 900;
    line-height: 23px;
    cursor: pointer;
}

/* =========================================
   Movie Post Grid Rows (A10)
   ========================================= */
.A10 {
    background: -webkit-linear-gradient(top, #fcfeee 0%, #eeeeee 100%);
    background: linear-gradient(to bottom, #fcfeee 0%, #eeeeee 100%);
    border-bottom: 1px solid #ccc;
    font-weight: normal;
    padding: 4px;
}

.A10 table {
    table-layout: auto;
}

.A10 td:first-child {
    width: 63px;
    min-width: 63px;
    max-width: 90px;
    vertical-align: top;
}

.A10 img, .row-thumb {
    display: block;
    width: 60px;
    min-width: 60px;
    max-width: none;
    height: 65px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0;
    margin-right: 5px;
}

.row-thumb-link {
    display: block;
    width: 60px;
    height: 65px;
    margin-right: 5px;
}

.row-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 3px;
}

.row-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    border-radius: 10px;
}

/* =========================================
   Categories List (.cat)
   ========================================= */
.cat, .foldername {
    background: #fcfcfc;
    border-bottom: 1px #ccc solid;
    padding: 12px 7px;
    font-size: 1.28em;
    font-weight: bold;
    display: block;
    color: #006699;
}

.cat:hover, .foldername:hover {
    background: #f3f3f3;
}

/* =========================================
   Single Movie Poster Box (Auto-Fit Fix)
   ========================================= */
.movie-thumb {
    display: block;
    text-align: center;
    padding: 8px 10px;
    background: #fff;
    line-height: 0;
}

.movie-cover {
    display: inline-block;
    max-width: 100%;
    width: auto;
    max-height: 420px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* =========================================
   Single Movie Detail Rows (File Info)
   ========================================= */
.file-info-title {
    background: rgb(221, 231, 241);
    color: #c40000;
    border: 1px solid rgb(170, 187, 204);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 6px;
}

.fname {
    display: block;
    border-bottom: 1px #ccc solid;
    padding: 7px 8px;
    font-size: 13px;
    line-height: 1.45;
}

.fname strong {
    color: #000;
    margin-right: 4px;
    font-weight: bold;
}

.colora { display: inline; color: #c40000; font-weight: bold; }
.colorb { display: inline; color: #c24d00; font-weight: bold; }
.colorc { display: inline; color: #007000; font-weight: bold; }
.colord { display: inline; color: #0033cc; font-weight: bold; }
.colore { display: inline; color: #008080; font-weight: bold; }
.colorf { display: inline; color: #993333; font-weight: bold; }
.colorg { display: inline; color: #9933ff; font-weight: bold; }

/* =========================================
   Post Content Area (Screenshots/Story)
   ========================================= */
.post-content-area {
    padding: 10px 8px;
    background: #fff;
    text-align: center;
    line-height: 1.5;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    margin: 6px auto;
    display: block;
}

/* =========================================
   SEO LSI Tag Cloud (.Atag)
   ========================================= */
.Atag {
    background-color: rgb(221, 231, 241);
    border: 1px solid rgb(170, 187, 204);
    padding: 6px;
    font-size: 11px;
    line-height: 1.45;
    margin: 8px 0;
}

/* =========================================
   Numbered Pagination
   ========================================= */
.wp-custom-pagination {
    text-align: center;
    padding: 12px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: #f3f3f3;
    margin: 6px 0;
}

.wp-custom-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px #000 solid;
    border-radius: 3px;
    background: #555;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    text-shadow: 1px 1px 1px #000;
}

.wp-custom-pagination .page-numbers.current {
    background: #006699;
    border-color: #004466;
}

.wp-custom-pagination .page-numbers:hover:not(.current) {
    background: #111;
    color: #fff;
}

/* =========================================
   Telegram & Footer Buttons
   ========================================= */
.telegram-join {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px 0;
    border-radius: 10px;
    background: #005a9c;
    color: #fff;
    font-weight: bold;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    margin: 0 2px;
    padding: 0 8px;
    border: none;
    background-color: transparent;
    color: white;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    line-height: 18px;
    isolation: isolate;
}

.button::before {
    content: "";
    position: absolute;
    inset: 11px 0;
    background: #4caf50;
    z-index: -1;
}

.button1 { color: black; }
.button1::before { background-color: white; border: 2px solid #4caf50; }
.button2 { color: black; }
.button2::before { background-color: white; border: 2px solid #008cba; }
.button3 { color: black; }
.button3::before { background-color: white; border: 2px solid #f44336; }
.button4 { color: black; }
.button4::before { background-color: white; border: 2px solid #e7e7e7; }
.button5 { color: black; }
.button5::before { background-color: white; border: 2px solid #555; }

.footer-spacer {
    height: 64px;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

#androidBanner {
    display: none;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 600px) {
    .ff-domain-notice {
        min-height: 38px;
        padding: 6px 36px 6px 8px;
        font-size: 13px;
    }
    .ff-domain-notice-text {
        white-space: normal;
    }
    .fname strong, .fname > span, 
    .fname .colora, .fname .colorb, .fname .colorc, 
    .fname .colord, .fname .colore, .fname .colorf, .fname .colorg {
        display: inline;
        line-height: 1.2;
    }
}