/*
Script Name: Movie Store
Description: Movies and TV Shows Affiliate Script.
Author: Nyein Chan
Author URI: http:///
Version: 5.0 (Cinematic Theme Upgrade)                             
*/

/* --- THEME VARIABLES (Day/Night Mode) --- */
:root {
    /* Default Dark Mode (Netflix Style) */
    --bg-color: #141414;
    --text-color: #e5e5e5;
    --nav-bg: rgba(20, 20, 20, 0.95);
    --card-bg: #222222;
    --accent-color: #E50914; 
    --headpage-fade: linear-gradient(to top, #141414 0%, rgba(20,20,20,0.5) 50%, rgba(20,20,20,0.1) 100%);
}

body.light-mode {
    /* Day Mode (Apple TV Style) */
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --accent-color: #007aff; 
    --headpage-fade: linear-gradient(to top, #f8f9fa 0%, rgba(248,249,250,0.7) 50%, rgba(248,249,250,0.2) 100%);
}

/*------------------ Body -----------------------*/
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: var(--text-color); text-decoration: none; }
a:hover, a:focus { color: var(--accent-color); text-decoration: none; }
b, strong { font-weight: 500; }
.btn { font-weight: 400; }
@media (min-width:768px){.container{width:100%}}
@media (min-width:992px){.container{width:100%}}
@media (min-width: 1200px) {.container {width: 1130px;}}
.whiteback { background: var(--card-bg); }

/*------------------ Header -----------------------*/
.site-logo { width: 100%; max-width: 180px; height: auto; display: block; }
.navbar, .navbar.navbar-default { 
    background-color: var(--nav-bg); 
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color 0.4s ease;
}
.navbar-brand { padding: 13px 15px 13px 15px; }
.navbar .navbar-nav > li > a {
    color: var(--text-color);
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: 500;
    font-size: 15px;
}
.navbar .navbar-nav > li > a:hover { color: var(--accent-color); }
@media (max-width: 1199px) { .navbar .navbar-brand { height: 60px; padding: 13px 5px 13px 15px; } }
.navbar-toggle { margin-top: 14px; }
.drop-row { width: 100%; display: inline-block; margin: 0px; padding: 0px; vertical-align: top; }
.dropdown-menu { min-width: 435px; background-color: var(--card-bg); border: 1px solid rgba(150,150,150,0.1); }
@media (max-width: 767px) { .dropdown-menu { min-width: 180px; } .drop-row { width: 100%; } }
.navbar .dropdown-menu li > a, .navbar.navbar-default .dropdown-menu li > a {
    font-size: 14px;
    padding: 8px 16px;
    display: block;
    color: var(--text-color);
    font-weight: 400;
}
.navbar .dropdown-menu li > a:hover,
.navbar.navbar-default .dropdown-menu li > a:hover,
.navbar .dropdown-menu li > a:focus,
.navbar.navbar-default .dropdown-menu li > a:focus {
    color: var(--accent-color);
    background-color: transparent;
}
.searchbut {
    display: inline-block; padding: 6px 5px 6px 12px; margin-top: 6px; margin-bottom: -2px;
    color: var(--text-color); background: none; font-size: 14px; line-height: 1.428;
    text-align: center; border: none; cursor: pointer;
}
.searchbut:hover { color: var(--accent-color); }
.searchbut i { font-size: 21px; }
.navbar .fakeinput { width: 70px; }
.dropdownjs::after { right: 5px; top: 2px; font-size: 17px; position: absolute; font-family: 'Material Icons'; content: "\e5c5"; pointer-events: none; color: var(--text-color); }
.navbar .navbar-form { background: transparent; }
.navbar .navbar-form .form-group .form-control, .navbar .navbar-form .form-control {
    border-color: inherit; color: var(--text-color); padding: 0; margin: 0; height: 28px; font-size: 14px; background: transparent;
}
@media (max-width: 767px) { .navbar .navbar-form .form-group .form-control, .navbar .navbar-form .form-control{ width: 100%; } }

/*------------------ Home Page -----------------------*/
.scrollcontent{position: relative;z-index: 1;padding-top: 15px;}
.scrollback {height:410px;display: block;position: relative;background: var(--card-bg);box-shadow: 0 0 6px rgba(0,0,0,0.27);}
.scrolltitle {position: relative;margin-bottom: 15px;font-weight: bold;border-bottom: 1px solid rgba(150,150,150,0.2);}
.scrolltitle h1 {color: var(--text-color);display: inline-block;border-bottom: 3px solid var(--accent-color);margin-bottom: -1px;line-height: 24px;font-size: 24px;font-weight: 400;padding-bottom: 10px;}
.homethumb {margin-right: 15px;float: left;overflow: hidden;}
.homethumb .overlay {position:absolute;left: 0px;width:180px;height:270px;background-color:rgba(0,0,0,0.5);opacity:0;visibility:hidden;transition:.25s;}
.homethumb:hover .overlay {cursor:pointer;visibility:visible;opacity:1;}
.homethumb .overlay p{font-size:14px;color:#fff;margin: 120px 10px 0px 10px;text-align: center;}
.homethumb i {color: var(--accent-color);font-size: 38px;position: absolute;width: 100%;text-align: center;margin-top: 75px;}
.featbox {
    float: left; padding: 20px; margin-bottom: 20px;
    background-color: var(--card-bg); color: var(--text-color);
    border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.featbox .btn {margin-top:20px;margin-bottom: 0px;text-transform: none;}
.featimage img{float: left;width: 167px;height: 250px;margin:0px 25px 0px 0px; box-shadow: 0 0 6px rgba(0,0,0,0.27);}
@media (max-width: 767px) { .featimage img {width: 30%;height:100%;} }
.feat-rating { font-size: 18px; width: 180px; padding: 8px 0px; }
.featbox h3 { font-size: 22px; font-weight: 400; margin: 0; height: 24px; overflow: hidden; color: var(--text-color); }
.featbox h4 { color: #888; font-size: 16px; margin-top: 5px; }

/*------------------ Index Pages -----------------------*/
.pagetopbox {padding: 25px 0px 25px 0px; background: transparent; }
.pagebottombox {padding:15px 0px 25px 0px;}
.pagetitle {clear: both;margin-bottom: 15px;margin-top: 15px;font-weight: bold;border-bottom: 1px solid rgba(150,150,150,0.2);}
.pagetitle h1 {color: var(--text-color);display: inline-block;border-bottom: 3px solid var(--accent-color);margin-bottom: -1px;line-height: 24px;font-size: 24px;font-weight: 400;padding-bottom: 10px;}

.genre-filter { position: relative; display: block; float: right; }
.genre-filter .dropdown { list-style: none; padding: 6px 15px 7px 15px; background: var(--accent-color); border-radius: 3px; box-shadow: 0 0 6px rgba(0,0,0,0.27); }
.genre-filter > li > a { color: #ffffff; font-weight: 400; font-size: 15px; }
.genre-filter .dropdown-menu { min-width: 140px; background: var(--card-bg); }
.genre-filter .dropdown-menu li > a { font-size: 14px; padding: 8px 16px; display: block; color: var(--text-color); }
.genre-filter .dropdown-menu li > a:hover { color: var(--accent-color); }

.pageresults input[type=radio] { position: absolute; z-index: 100; opacity: 0; cursor: pointer; height: 40px; width: 40px; }
.pageresults .control { background: var(--card-bg); width: 34px; height: 34px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.pageresults .control:hover, input[type=radio]:hover + .control, input[type=radio]:checked + .control { background: var(--accent-color) !important; color: #fff; }
.pageresults .control i { display: inline-block; margin-right: 5px; padding: 5px; cursor: pointer; vertical-align: bottom; box-shadow: 0 0 6px rgba(0,0,0,0.27); color: var(--text-color); }
.pageresults .control i:hover, input[type=radio]:hover + .control i, input[type=radio]:checked + .control i { color: #ffffff; }

/* Grid Posters */
.page-itemlist{list-style: none; margin:20px 0px 0px 0px; position: relative; padding: 0px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 5px;}
.page-item {
    background: var(--card-bg); border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease; border: 1px solid transparent;
    display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.page-item:hover { transform: scale(1.08); box-shadow: 0 14px 28px rgba(0,0,0,0.7); z-index: 10; border-color: var(--accent-color); }
.pagethumb { width: 100%; }
.pagethumb img { width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; }
.page-item h3 { font-size: 13px; font-weight: 500; margin-top: 12px; color: var(--text-color); line-height: 1.4; text-align: center; width: 100%; }
.page-item .genre { font-size: 12px; background: var(--accent-color); color:#fff; border-radius: 3px; padding: 2px 5px; display: inline-block; margin-top: 5px; }

/* Buttons */
.btn-warning { background-color: var(--accent-color) !important; color: #fff !important; }
.btn-warning:hover { filter: brightness(1.2); }
#back-top a { background: var(--accent-color); }

/*------------------ Movies TV Single Pages -----------------------*/
.headpage { background-color: var(--bg-color); position: relative; box-shadow: 0 0 6px rgba(0,0,0,0.27); background-size: cover; }
.headpageoverlay { background: var(--headpage-fade); padding-bottom: 40px; }
.headpageinfo { text-shadow: 0px 2px 4px rgba(0,0,0,0.8); color: #fff; float: left; max-width: 510px; margin-top: 30px; }
.product-title { font-size: 3em; font-weight: 800; margin: 0; }
.product-stock { color: #ddd; font-size: 16px; margin-top: 5px; }

/* Content Boxes Override */
.postmain, .post-sidebar-box {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.postmaintitle { border-bottom: 1px solid rgba(150, 150, 150, 0.2) !important; padding-bottom: 10px; margin-bottom: 15px; }
.postmaintitle h3 { color: var(--text-color) !important; margin-top: 0; }

/* TV Episode Tables */
.table > thead > tr > th { color: var(--text-color) !important; border-bottom: 2px solid rgba(150, 150, 150, 0.2) !important; }
.table > tbody > tr > td { color: var(--text-color) !important; border-top: 1px solid rgba(150, 150, 150, 0.1) !important; }
.table-hover > tbody > tr:hover, .table-hover > tbody > tr:hover > td { background-color: rgba(150, 150, 150, 0.1) !important; color: var(--text-color) !important; }

/* Reviews */
#reviews li { border-bottom: 1px solid rgba(150, 150, 150, 0.1) !important; padding-bottom: 15px; margin-bottom: 15px; }
#reviews h4.tit { color: var(--text-color) !important; font-weight: bold; }
#reviews .auth { color: #888 !important; font-size: 0.9em; margin-bottom: 8px; }
#reviews .cont { color: var(--text-color) !important; }

/* Sidebar */
.side-item { margin: 0px 0px 10px 0px; background: var(--bg-color); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.side-thumb { display: inline-block; width: 100px; height: 150px; }
.side-item img { width: 100px; height: 150px; object-fit: cover; }
.side-item .info { margin-top: 8px; display: inline-block; vertical-align: top; margin-left: 10px; width: 200px; }
.side-item h3 { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-color); }
.side-item h4 { color: #888; font-size: 12px; }

/* Pagination Styling */
.pagination-box { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0; clear: both; width: 100%; }
.pagination-box .page-info { color: var(--text-color); font-weight: 500; }
.pagination-box .btn-warning { background: var(--accent-color); color: #fff; padding: 10px 25px; border-radius: 50px; }

/* Footer */
body > footer { background: #111; padding-top: 15px; font-size: 12px; color: #888; width: 100%; height: 140px; clear: both; }
body > footer .footcontent a { color: #aaa; }
body > footer .footcontent a:hover { color: #fff; }

/* Responsive adjustments */
@media (max-width: 991px) { .page-itemlist { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .page-itemlist { grid-template-columns: repeat(2, 1fr); } }

/*------------------ Homepage Carousel (Slider) Fix -----------------------*/
.fcarousel .carousel-container {
    position: relative;
    margin: 10px 40px;
}

.jcarousel {
    position: relative;
    overflow: hidden;
}

.jcarousel ul {
    width: 20000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Upgraded Cinematic Slider Items (Resized for 6 items) */
.jcarousel li {
    float: left;
    width: 150px;
    height: 225px;
    border: 1px solid transparent;
    margin: 7px 12px; /* Adjusted margins to fit exactly 6 */
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Added hover pop effect to the slider */
.jcarousel li:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    z-index: 10;
    border-color: var(--accent-color);
}

.jcarousel li img {
    width: 150px;
    height: 225px;
    object-fit: cover;
}
/*------------------ Upgraded Modern Slider Arrows -----------------------*/
.fcarousel .carousel-prev, .fcarousel .carousel-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    
    /* Modern Glassmorphism/Circular Look */
    background: rgba(20, 20, 20, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 20;
    
    /* Hide old text but allow icons */
    text-indent: 0;
    font-size: 0; 
    color: transparent;
}

/* Position them to overlap the posters slightly */
.fcarousel .carousel-prev {
    left: -30px;
    background-image: none; /* Strips out the old PNG image */
}

.fcarousel .carousel-next {
    right: -30px;
    background-image: none; /* Strips out the old PNG image */
}

/* The glowing hover pop */
.fcarousel .carousel-prev:hover, .fcarousel .carousel-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5); /* Glow effect */
}

/* Injecting crisp Material Icons instead of blurry PNG images */
.fcarousel .carousel-prev::after {
    font-family: 'Material Icons';
    content: "\e314"; /* Material icon for left arrow */
    font-size: 38px;
    color: #ffffff;
}

.fcarousel .carousel-next::after {
    font-family: 'Material Icons';
    content: "\e315"; /* Material icon for right arrow */
    font-size: 38px;
    color: #ffffff;
}