/* FilmyFly Theme Styles */
:root {
    --primary-color: #0088cc;
    /* Blue link color */
    --accent-pink: #ff00ff;
    --accent-green: #00cc00;
    --accent-gold: #ffcc00;
    --bg-color: #f9f9f9;
    --header-bg: #fff;
    --text-color: #333;
    --border-color: #ddd;
    --section-header-bg: #e0eee0;
    /* Light greenish/blue for section headers */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    /* Dark background outside the phone view */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Simulate Mobile App View */
body>* {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    box-sizing: border-box;
}

/* Specific Wrapper to ensure full height white bg if needed, 
   but body > * selector might miss some if not wrapped. 
   Better to target specific containers or wrap everything in a main div.
   Let's assume the user content flows naturally.
*/

html {
    background: #333;
}

/* Override container max-width since we are constrained globally */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

/* Movie Details Specifics */
.movie-detail-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.movie-title-header {
    font-size: 20px;
    /* Reduced from 28px */
    font-weight: 700;
    text-align: center;
    color: #a52a2a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.meta-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.meta-table td {
    padding: 5px 0;
    vertical-align: top;
}

.meta-key {
    font-weight: bold;
    color: #555;
    width: 100px;
}

.meta-value {
    color: #333;
}

/* Section Dividers in Movie Page */
.detail-section-title {
    text-align: center;
    background: var(--section-header-bg);
    color: var(--primary-color);
    /* Blue */
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 18px;
    border: 1px solid #b3d9ff;
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Era */
header {
    background: #000;
    /* As per image top strip seems dark or image based, but let's keep it simple or allow image bg */
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-area {
    width: 100%;
    max-width: 800px;
    /* Constrain width like image */
    margin: 0 auto;
    background: #000;
    /* Placeholder for the banner image */
    color: #fff;
    padding: 10px;
}

.filmyfly-logo {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #fff, #39ff14, #ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

/* Search Bar */
.search-container {
    background: #005c99;
    /* Dark blue strip */
    padding: 8px;
    text-align: center;
    border-bottom: 2px dashed #fff;
}

.search-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 5px;
}

.search-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #000;
    font-size: 16px;
    font-weight: bold;
}

.search-btn {
    background: #ddd;
    border: 2px solid #000;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

/* Home Search Bar Premium Style */
.home-search-container {
    padding: 15px 10px;
    background: #fff;
    margin-bottom: 10px;
}

.home-search-form {
    display: flex;
    overflow: hidden;
    border: 2px solid #0088cc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.home-search-btn {
    background: #0088cc;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.home-search-btn:hover {
    background: #005c99;
}

/* Info Links */
.info-links {
    text-align: center;
    background: #f0f8ff;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.info-link-item {
    display: block;
    color: #005c99;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Section Dividers */
.section-divider {
    background: #e6f2ff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 8px;
    margin: 20px 0 10px 0;
    color: #005c99;
    font-weight: bold;
    font-size: 18px;
}

.fire-icon {
    color: #ff4500;
}

/* Movie List Style */
.movie-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

.movie-list-item {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    gap: 15px;
    text-align: left;
}

.movie-poster-thumb {
    width: 80px;
    /* Reduced from 100px */
    flex-shrink: 0;
}

.movie-poster-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.movie-content {
    flex-grow: 1;
}

.movie-title-link {
    font-size: 14px;
    /* Reduced from 16px */
    font-weight: bold;
    color: #a52a2a;
    /* Brownish red title color from image */
    margin-bottom: 5px;
    display: block;
    line-height: 1.3;
}

.movie-title-link:hover {
    text-decoration: underline;
}

.tags-row {
    margin-top: 5px;
}

.tag-pill {
    display: inline-block;
    padding: 2px 6px;
    /* Reduced padding */
    border-radius: 20px;
    font-size: 10px;
    /* Reduced from 11px */
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
    margin-bottom: 3px;
}

.release-year {
    display: block;
    font-size: 11px;
    color: #aeaeae;
    /* Light gray for year */
    font-weight: normal;
    margin-top: 2px;
}

.tag-pink {
    background: #ff00ff;
}

.tag-gold {
    background: #daa520;
    color: #000;
}

/* Dark Golden Rod */

/* Consolidated Mobile-First Layout */
.container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media screen and (max-width: 480px) {
    body>* {
        max-width: 100%;
        width: 100%;
    }

    .home-search-input {
        font-size: 14px;
        padding: 10px;
    }

    .home-search-btn {
        padding: 0 15px;
        font-size: 14px;
    }

    .movie-list-item {
        gap: 10px;
        padding: 8px;
    }
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Drawer Menu Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #000;
    /* Match Header BG */
}

.menu-toggle {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.logo-area-new {
    flex-grow: 1;
    text-align: center;
}

.header-right-placeholder {
    width: 30px;
    /* Balance the menu icon */
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden by default */
    width: 250px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.drawer-menu.active {
    left: 0;
}

.drawer-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.close-drawer {
    cursor: pointer;
    font-size: 20px;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-list li {
    border-bottom: 1px solid #eee;
}

.drawer-list li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.drawer-list li a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.drawer-subtitle {
    padding: 10px 15px;
    background: #f9f9f9;
    font-size: 12px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
}

/* Reference Image Styling (Restored) */
.file-info-header {
    background: #e6f2ff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #d32f2f;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
}

.info-key {
    font-weight: 700;
    color: #000;
}

.text-red {
    color: #d32f2f;
    font-weight: 700;
}

.text-orange {
    color: #ff9800;
    font-weight: 700;
}

.text-green {
    color: #2e7d32;
    font-weight: 700;
}

.text-blue {
    color: #1565c0;
    font-weight: 700;
}

.text-purple {
    color: #9c27b0;
    font-weight: 700;
}

.blue-header-bar {
    background: #006eb3;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Pink Download Button (Highlighted) */
.dl-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, #ff4da6, #d81b60);
    color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    box-sizing: border-box;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dl-btn:hover {
    background: linear-gradient(to bottom, #ff69b4, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.text-center {
    text-align: center;
}