/* 
 * Watch Lakorn - Netflix Style Theme (Mobile)
 * 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.4;
    vertical-align: top;
    background-color: #141414;
    background-image: none; /* Remove old background */
    min-height: 100%;
    height: auto;
}

.newmain {
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    padding: 65px 10px 80px;
    position: relative;
    box-sizing: border-box;
}

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

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

/* Red Text Brand Logo */
.mainlogo {
    display: inline-block !important;
    color: #e50914 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 18px;
    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;
}

.maingoogle {
    display: none;
}

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

/* Navbar navigation links - Horizontally Scrollable on very small screens */
.nav-x {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 60%;
}

.nav-x::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean navbar look */
}

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

.nav-x a, .nav-x .mSelect, .nav-x .mSelects {
    color: #e5e5e5;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    text-decoration: none;
    border: none !important;
    border-radius: 4px;
    height: auto;
    line-height: normal;
    background: transparent !important;
    cursor: pointer;
    white-space: nowrap;
}

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

.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;
    width: 100%;
    display: block;
}

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

.newlogohead {
    display: none; /* Hide header images in mobile */
}

.newlogo {
    display: none;
}

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

.newmaincontent {
    width: 100%;
    position: relative;
}

.newfooter {
    clear: both;
    width: 100%;
    background: #0f0f0f !important;
    padding: 30px 10px !important;
    margin-top: 40px;
    border-top: 1px solid #222222;
}

.newfooter-content {
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.newfooter-box {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newfooter-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newfooter-status, .newfooter-link, .newfooter-tag {
    float: none !important;
    width: 100% !important;
}

.newstatus, .newtag {
    float: none !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

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

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

/* Hide shadow side borders in mobile */
.content-hold-right, .content-hold-left, .content-hold, .sideright, .sideleft {
    display: none;
}

.content-left {
    float: none;
    width: 100%;
    background: transparent !important;
}

.content-right {
    display: none; /* Hidden on mobile */
}

.content {
    float: none;
    color: #e5e5e5;
    font-size: 12px;
    background: transparent !important;
}

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

.splitpage {
    float: none;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

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

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

/* Mobile Video Wrap (Sleek Two Column Grid) */
#vid_wrap {
    margin: 0;
    padding: 5px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    justify-content: flex-start;
}

/* Mobile Card (Fits 2 cards per row) */
.grid_view, .list_view {
    height: 180px !important;
    width: calc(50% - 4px) !important;
    margin: 0 !important;
    float: none !important;
    background: #181818;
    border: 1px solid #282828 !important;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.grid_view #desc, .list_view #desc {
    display: none !important;
}

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

.grid_view span.info_epi, .list_view span.info_epi {
    display: inline;
}

.grid_view span.list_commnets, .list_view span.list_commnets {
    display: none !important;
}

/* Mobile card titles */
.grid_view h2.title, .list_view h2.title {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 6px 6px 3px 6px !important;
    padding: 0 !important;
    text-align: left !important;
    height: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

/* Mobile card metadata */
.grid_view p.vid_epi, .list_view p.vid_epi {
    font-size: 9px !important;
    color: #e50914 !important;
    font-weight: 600;
    text-align: left !important;
    margin: 0 6px 2px 6px !important;
    text-transform: uppercase;
}

.grid_view p.vid_view, .list_view p.vid_view {
    font-size: 8px !important;
    color: #808080 !important;
    text-align: left !important;
    margin: 0 6px 6px 6px !important;
}

.grid_view .vid_info, .list_view .vid_info {
    display: none;
}

/* Mobile thumbnails */
.vid_thumb {
    margin: 0 !important;
    background: #000;
    position: relative;
    text-align: center;
    height: 90px;
    overflow: hidden;
    border-radius: 0 !important;
}

.vid_thumb a img {
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: 0 !important;
}

.grid_view .vid_thumb .vid_time, .list_view .vid_thumb .vid_time {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 1px 4px;
    font-size: 8px;
    border-radius: 2px;
}

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

/* Filters bar on mobile */
#style_change {
    padding: 5px;
    margin-bottom: 10px;
    font-size: 10px;
    color: #808080;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

#grid, #list {
    background-color: #242424;
    padding: 4px;
    border: 1px solid #333 !important;
    border-radius: 3px;
    display: inline-block;
    float: none !important;
    margin: 0 !important;
}

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

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

/* Mobile containers */
.sectionleft, .section_left {
    float: none !important;
    width: 100% !important;
    background: #181818;
    border: 1px solid #2f2f2f !important;
    border-radius: 6px;
    padding: 10px !important;
    box-sizing: border-box;
    margin-bottom: 15px !important;
}

/* Cards wrapper */
.boxshow, .boxshow_top {
    border: 1px solid #2f2f2f !important;
    background: #181818 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box;
}

.boxshow_body {
    width: 100% !important;
}

/* Sub-header groups */
.boxshow_body_menu, .boxshow_body_menu_app {
    background: #242424 !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
}

.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: 11px !important;
    text-transform: uppercase;
}

.boxshow h4 a, .boxshow_body_menu h4 a {
    color: #ffffff !important;
    padding: 3px 6px;
    border-radius: 3px;
}

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

/* Navigation items */
.pageselect {
    width: 100% !important;
    background: #202020 !important;
    border: 1px solid #2f2f2f !important;
    border-radius: 4px;
    padding: 8px 12px !important;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Load More button (Mobile) */
.bottom_show {
    background: #e50914 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    cursor: pointer;
    margin: 15px auto 0 !important;
    display: block !important;
    width: max-content;
}

/* Accordions */
.menu_head {
    height: auto !important;
    background: #242424 !important;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 11px !important;
    padding: 8px 12px !important;
}

.menu_body a {
    height: auto !important;
    background-color: #1a1a1a !important;
    color: #aaaaaa !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-bottom: 1px solid #242424 !important;
}

.menu_body a:hover {
    color: #ffffff !important;
    background-color: #242424 !important;
}

/* Player elements on mobile */
#mediaspace {
    margin-bottom: 15px;
    background: #000;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}