/*
Theme Name: FilmyFly Style
Theme URI: https://example.com/
Author: Custom
Description: Movie website WordPress theme inspired by the supplied reference design.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: filmyfly-theme
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.15;
}

a {
    color: #087dcc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #fff;
}

.logo-area {
    height: 109px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    display: block;
    max-height: 105px;
    width: auto;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #4b25b7;
}

/* =========================
   NAVIGATION
========================= */

.main-nav {
    height: 33px;
    background: #6741c9;
    border-bottom: 2px solid #ff0000;
    overflow: hidden;
}

.main-nav .nav-inner {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.main-nav a:hover {
    color: #fff;
    text-decoration: none;
}

/* =========================
   MAIN CONTAINER
========================= */

.site-content {
    width: 100%;
    margin: 0 auto;
}

.content-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   INTRO
========================= */

.intro {
    padding: 4px 0 5px;
    font-size: 12px;
    line-height: 1.08;
}

.intro p {
    margin: 0 0 2px;
}

.intro-title {
    color: #087dcc;
    font-weight: bold;
    margin-bottom: 2px;
}

.intro strong {
    font-weight: bold;
}

.center-title {
    text-align: center;
    color: #333;
    margin: 9px 0 20px;
    font-size: 12px;
}

/* =========================
   CATEGORY BUTTONS
========================= */

.category-area {
    padding: 8px 24px 23px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
}

.category-button {
    background: #6842c9;
    color: #fff;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    white-space: nowrap;
}

.category-button:hover {
    background: #5530b0;
    color: #fff;
    text-decoration: none;
}

/* =========================
   SEARCH
========================= */

.search-area {
    background: #f4f4f4;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 9px 3px;
}

.search-form {
    display: flex;
    width: 100%;
    gap: 4px;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0 9px;
    font-size: 12px;
    outline: none;
}

.search-input:focus {
    border-color: #6741c9;
}

.search-submit {
    width: 100px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #168dd4;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.search-submit:hover {
    background: #0878bd;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
    margin: 0;
    height: 27px;
    background: #6741c9;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 27px;
    padding: 0 2px;
}

/* =========================
   TELEGRAM BUTTON
========================= */

.telegram-button {
    position: absolute;
    right: 0;
    margin-top: -2px;
    background: linear-gradient(90deg, #42d4c2, #168ddd);
    color: #fff;
    padding: 6px 12px;
    border-radius: 14px 0 0 14px;
    font-size: 12px;
    z-index: 5;
}

.telegram-button:hover {
    color: #fff;
    text-decoration: none;
}

/* =========================
   MOVIE GRID
========================= */

.movie-area {
    max-width: 820px;
    margin: 26px auto 0;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px dotted #eee;
    border-top: 1px dotted #eee;
}

.movie-card {
    min-width: 0;
    padding: 0 7px 10px;
    border-right: 1px dotted #eee;
    border-bottom: 1px dotted #eee;
}

.movie-poster {
    display: block;
    width: 118px;
    height: 164px;
    object-fit: cover;
    margin: 0 auto 4px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.movie-title {
    display: block;
    color: #0784cf;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.05;
}

.movie-title:hover {
    color: #005f99;
}

/* =========================
   SINGLE POST
========================= */

.single-container {
    max-width: 820px;
    margin: 20px auto;
}

.single-title {
    color: #087dcc;
    font-size: 20px;
    margin: 0 0 12px;
}

.single-thumbnail {
    display: block;
    max-width: 350px;
    margin: 0 auto 15px;
}

.single-content {
    font-size: 13px;
    line-height: 1.5;
}

.single-content img {
    max-width: 100%;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    background: #fff;
    color:black;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .logo-area {
        height: 95px;
    }

    .site-logo {
        max-width: 190px;
        max-height: 90px;
    }

    .intro {
        padding: 5px;
        font-size: 11px;
    }

    .category-area {
        padding: 10px 20px 20px;
    }

    .category-list {
        justify-content: center;
        gap: 9px;
    }

    .movie-area {
        width: 100%;
        margin-top: 20px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-poster {
        width: 125px;
        height: 175px;
    }

    .movie-title {
        font-size: 11px;
    }
}

@media (max-width: 380px) {

    .movie-poster {
        width: 110px;
        height: 155px;
    }

    .category-button {
        font-size: 11px;
    }

    .search-submit {
        width: 80px;
    }
}

