/* 
 * Watch Lakorn - Netflix Style Theme
 * Version: 5.0 (Redesign)
 * Author: Antigravity AI
 */

/* Import Google Fonts Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

body {
    color: #e5e5e5;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    vertical-align: top;
    background-color: #141414;
    background-image: none; /* Remove old tab.jpg background */
    min-height: 100%;
    height: auto;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.newmain {
    margin: 0 auto;
    max-width: 1080px;
    min-height: 100vh;
    padding: 70px 15px 100px;
    position: relative;
    box-sizing: border-box;
}

.newmain:after {
    clear: both;
    display: block;
    content: "";
}

/* Netflix Style Top Navbar */
.newmaintab {
    height: 55px;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0;
    position: fixed;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Brand Text-based Logo (Netflix Inspired) */
.mainlogo {
    display: inline-block !important;
    color: #e50914 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    text-indent: 0 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0;
    transition: transform 0.2s ease;
}

.mainlogo:hover {
    transform: scale(1.02);
}

.maingoogle {
    display: none; /* Remove old legacy button */
}

.h-nav {
    color: #fff;
    padding: 6px 3px;
}

/* Navbar navigation links */
.nav-x {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none; /* Reset float */
}

.nav-x li {
    display: inline-block;
    float: none;
    padding-left: 0;
    position: relative;
}

.nav-x a, .nav-x .mSelect, .nav-x .mSelects {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    text-decoration: none;
    border: none !important;
    border-radius: 4px;
    height: auto;
    line-height: normal;
    background: transparent !important;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}

.nav-x a:hover, .nav-x li:hover a, .nav-x .mSelect:hover, .nav-x .mSelects:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active Nav Link (Netflix Red Highlight) */
.nav-x .active a, .nav-x .active .mSelect, .nav-x .mSelects.active {
    color: #ffffff !important;
    background-color: #e50914 !important;
    font-weight: 700;
}

.newmainbody {
    position: relative;
    margin: 0 auto;
    height: auto !important;
    min-height: auto;
    width: 100%;
    display: block;
}

.newmainheader {
    width: 100%;
    position: relative;
    height: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #2f2f2f;
    margin-bottom: 20px;
}

.newlogohead {
    float: left;
    height: 90px;
    width: 225px;
    padding: 0 0 0 15px;
}

/* Hide old giant background logos in dark mode */
.newlogo {
    display: none;
}

.newadhead, .newadhead970 {
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.newadhead300 {
    display: none;
}

.newmaincontent {
    width: 100%;
    position: relative;
    display: flex;
    gap: 20px;
}

/* Column structures */
.content-left {
    float: none;
    width: 740px;
    background: transparent !important; /* Remove old bg-content.jpg */
    flex-grow: 1;
}

.content-right {
    float: none;
    width: 300px;
    background: #181818 !important; /* Remove old bg-content.jpg */
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.content {
    float: none;
    color: #e5e5e5;
    font-family: inherit;
    background: transparent !important;
}

.content a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content a:hover {
    color: #e50914;
}

.mainmenu {
    border-top: 1px solid #2f2f2f;
}

.splitpage {
    float: right;
    font-family: inherit;
    display: flex;
    gap: 5px;
    align-items: center;
}

.splitpage a, .splitpage span {
    padding: 4px 8px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
}

.splitpage a:hover {
    background: #e50914;
    border-color: #e50914;
}

#Related {
    width: 100%;
    text-align: center;
    display: inline-block;
    margin-top: 20px;
}

/* Sidebar banners */
#floating_left_160, #floating_right_160, #floating_left_banner, #floating_right_banner, #floating_bbanner, #floating_left, #floating_right {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
#floating_left_160:hover, #floating_right_160:hover, #floating_left_banner:hover, #floating_right_banner:hover, #floating_bbanner:hover, #floating_left:hover, #floating_right:hover {
    opacity: 1;
}

/* Movie List Container in Grid View */
#vid_wrap {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 12px;
}

/* Netflix Movie Card (.grid_view) */
.grid_view {
    height: 255px !important;
    width: 172px !important;
    margin: 0 !important;
    float: none !important;
    background: #181818;
    border: 1px solid #282828 !important;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Netflix hover zoom/glow effect */
.grid_view:hover {
    transform: scale(1.06);
    border-color: #e50914 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.grid_view #desc {
    display: none;
}

.grid_view span.info_list, .grid_view span.list_up_time, .grid_view span.title {
    display: none;
}

.grid_view span.info_epi {
    display: inline;
}

.grid_view span.list_commnets {
    display: none;
}

/* Card titles */
.grid_view h2.title {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 8px 8px 4px 8px !important;
    padding: 0 !important;
    text-align: left !important;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: none !important;
}

.grid_view h2.title a {
    color: #ffffff !important;
    text-decoration: none;
}

.grid_view h2.title a:hover {
    color: #e50914 !important;
}

/* EP Info and Metadata tags */
.grid_view p.vid_epi {
    font-weight: 600;
    font-size: 11px !important;
    color: #e50914 !important; /* Red color for EP info */
    text-align: left !important;
    margin: 0 8px 4px 8px !important;
    text-transform: uppercase;
}

.grid_view p.vid_view {
    font-style: normal;
    font-weight: normal;
    font-size: 10px !important;
    color: #808080 !important;
    text-align: left !important;
    margin: 0 8px 8px 8px !important;
}

.grid_view .vid_info, .list_view .vid_info {
    font-weight: normal;
    font-size: 11px;
    margin: 4px 8px;
    text-align: left;
    color: #808080;
}

/* Thumbnail and Badges */
.vid_thumb {
    margin: 0 !important;
    background: #000 !important;
    position: relative;
    text-align: center;
    border-radius: 0 !important;
    height: 115px;
    overflow: hidden;
}

.vid_thumb a img {
    width: 100% !important;
    height: 115px !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: opacity 0.2s ease;
}

.vid_thumb:hover a img {
    box-shadow: none !important;
    opacity: 0.85;
}

.grid_view .vid_thumb .vid_time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 5px;
    font-size: 9px;
    border-radius: 3px;
    font-weight: 500;
}

.grid_view .vid_thumb .vid_viewed {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(229, 9, 20, 0.95);
    color: #fff;
    padding: 2px 5px;
    font-weight: 700;
    font-size: 9px;
    border-radius: 3px;
    text-shadow: none !important;
}

/* List View layout */
.list_view {
    width: 100% !important;
    height: 115px !important;
    margin: 0 0 12px 0 !important;
    background: #181818;
    border: 1px solid #282828 !important;
    border-radius: 6px;
    overflow: hidden;
    display: flex !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.list_view .vid_thumb {
    float: none !important;
    width: 172px;
    height: 115px;
}

.list_view .vid_thumb a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.list_view .vid_info_wrap {
    float: none !important;
    flex-grow: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.list_view h2.title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    text-align: left !important;
    color: #ffffff !important;
}

.list_view h2.title a {
    color: #ffffff !important;
}

.list_view p.vid_epi {
    font-size: 11px;
    color: #e50914 !important;
    font-weight: 600;
    margin-bottom: 4px;
}

.list_view p.vid_view {
    font-size: 11px;
    color: #808080 !important;
}

.list_view #desc {
    display: block !important;
    color: #aaaaaa;
    font-size: 11px !important;
    margin-top: 5px;
}

.vid_info_wrap a {
    color: #ffffff;
}

.vid_info_wrap a:hover {
    color: #e50914;
    text-shadow: none !important;
    border-bottom: none !important;
}

/* Category lists selector/filter */
#style_change {
    padding: 0 0 10px;
    margin-bottom: 15px;
    font-size: 11px;
    color: #808080;
    display: flex;
    align-items: center;
    gap: 10px;
}

#style_change a {
    color: #ffffff;
}

#grid {
    float: none !important;
    background-color: #2a2a2a;
    border-radius: 3px;
    padding: 5px;
    border: 1px solid #3a3a3a !important;
    display: inline-block;
}

#list {
    float: none !important;
    background-color: #2a2a2a;
    border-radius: 3px;
    padding: 5px;
    border: 1px solid #3a3a3a !important;
    display: inline-block;
}

#grid:hover, #list:hover {
    background-color: #e50914;
    border-color: #e50914 !important;
}

.vid_sp {
    padding: 5px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #2f2f2f;
    clear: both;
}

.t_line {
    border-bottom: 1px solid #2f2f2f;
    border-top: 1px solid #2f2f2f;
}

/* Sidebar Section Box */
.sectionleft, .section_left {
    float: none !important;
    width: 100% !important;
    background: #181818;
    border: 1px solid #2f2f2f !important;
    border-radius: 8px;
    padding: 15px !important;
    box-sizing: border-box;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.sectionleft a, .section_left a {
    color: #ffffff;
}

.sectionleft a:hover, .section_left a:hover {
    color: #e50914;
    border-bottom: none !important;
}

/* Netflix Card Panels */
.boxshow, .boxshow_top {
    border: 1px solid #2f2f2f !important;
    background: #181818 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box;
}

.boxshow_body {
    width: 100% !important;
    border-radius: 0 !important;
}

/* Header bar for show groups */
.boxshow_body_menu, .boxshow_body_menu_app {
    background: #242424 !important; /* Flat dark background */
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.boxshow h4, .boxshow_top h4, .boxshow_body h4, .boxshow_body_menu h4 {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none !important;
}

.boxshow h4 a, .boxshow_body_menu h4 a {
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.boxshow h4 a:hover, .boxshow_body_menu h4 a:hover {
    color: #ffffff !important;
    background-color: #e50914 !important;
}

.boxshow span {
    float: none !important;
}

/* Page navigation controls */
.pageselect {
    width: 100% !important;
    background: #202020 !important;
    border: 1px solid #2f2f2f !important;
    border-radius: 6px;
    padding: 10px 15px !important;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.pageshow {
    margin-top: 15px;
}

/* Load More button */
.bottom_show {
    background: #e50914 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 24px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    margin: 20px auto 0 !important;
    display: block !important;
    width: max-content;
}

.bottom_show:hover {
    background-color: #b80710 !important;
    transform: translateY(-1px);
    text-shadow: none !important;
}

/* Side navigation category menus */
.menu_head {
    height: auto !important;
    background: #242424 !important;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px !important;
    padding: 10px 15px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
}

.menu_head:hover {
    background: #2e2e2e !important;
}

.menu_head a {
    color: #ffffff !important;
    text-shadow: none !important;
}

.menu_body {
    border: 1px solid #242424;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.menu_body a {
    height: auto !important;
    background-color: #1a1a1a !important;
    color: #aaaaaa !important;
    padding: 8px 20px !important;
    font-size: 12px !important;
    border-bottom: 1px solid #242424 !important;
    transition: color 0.2s ease, background 0.2s ease;
}

.menu_body a:hover {
    color: #ffffff !important;
    background-color: #242424 !important;
    border-bottom: 1px solid #242424 !important;
    text-shadow: none !important;
}

/* Footer Section */
.newfooter {
    background: #0f0f0f !important;
    border-top: 1px solid #222222;
    padding: 40px 0 !important;
    margin-top: 50px;
    height: auto !important;
}

.newfooter-content {
    max-width: 1080px;
    padding: 0 15px;
    box-sizing: border-box;
}

.newfooter-box {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newfooter-menu {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.newfooter-status, .newfooter-link, .newfooter-tag {
    float: none !important;
    width: auto !important;
    min-width: 200px;
    flex-grow: 1;
}

.newfooter-status h4, .newfooter-link h4, .newfooter-tag h4 {
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.newfooter-credit {
    float: none !important;
    text-align: left !important;
    color: #555555;
    font-size: 11px;
    border-top: 1px solid #1f1f1f;
    padding-top: 20px;
    margin-top: 10px;
}

.newfooter-credit a {
    color: #e50914 !important;
    font-weight: 600;
}

.newfooter-credit a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.newstatus li, .newtag li {
    padding: 4px 0;
}

.newstatus li a, .newtag li a {
    color: #808080 !important;
    font-size: 12px;
}

.newstatus li a:hover, .newtag li a:hover {
    color: #ffffff !important;
}

/* Forms & Inputs */
input[type="text"], input[type="password"], select, textarea {
    background-color: #2c2c2c !important;
    border: 1px solid #3c3c3c !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: #e50914 !important;
    outline: none;
}

input[type="submit"], input[type="button"] {
    background-color: #e50914 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #b80710 !important;
}