body {
    color: #222;
}

.movie-container {
    margin-top: 5px;
}

a:hover {
    text-decoration: none !important;
    text-shadow: 0px 0px 2px #222;
}

header {
    padding: 10px;
    height: 130px;
    background: #000 url(../image/wallpaper.jpg?v=3) center center;
    background-size: cover;
}

.iw_img {
    width: 100%;
    height: 255px;
}

.fhx2 {
    font-size: 18px;
}

.fhx3 {
    font-size: 20px;
}

.fhx4 {
    font-size: 22px;
}

.fhx5 {
    font-size: 24px;
}

.iw_col:hover {
    text-decoration: none;
}

.iw_title {
    position: relative;
    margin-top: -36px;
    width: 100%;
    font-size: 12px;
    padding: 0 5px;
    height: 36px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    color: #FFF;
    text-align: center;
    background: rgba(0, 0, 0, 0.83);
}

.iw_col:hover .iw_title {
    background: rgba(0, 0, 0, 0.92);
    text-decoration: none;
}

.ribbon-imdb {
    position: absolute;
    color: #f5de50;
    background: rgba(0, 0, 0, 0.8);
    font-size: 10px;
    float: left;
    clear: both;
    padding: 3px;
    left: 20px;
    top: 5px;
    border-radius: 3px;
    white-space: nowrap;
    display: block;
}

.ribbon-res {
    position: absolute;
    color: #FFF;
    background: rgba(255, 0, 0, 0.8);
    font-size: 10px;
    float: left;
    clear: both;
    padding: 3px;
    left: 20px;
    top: 30px;
    border-radius: 3px;
    white-space: nowrap;
    display: block;
}

.view_anime {
    text-align: right;
    font-size: 12px;
}

.read_page {
    text-align: right;
    margin-top: 20px;
}

.anime_sum {
    min-height: 70px;
    max-height: 140px;
    overflow: hidden;
    margin-bottom: 5px;
}

.anime_read_o {
    cursor: pointer;
}

.img-animeview {
    height: 255px;
}

.tag-anime {
    font-size: 11px;
}

.tag-anime-play {
    font-size: 11px;
    margin-top: 30px;
}

.list-group-reruest .list-group-item {
    height: auto;
    padding: 8px 10px;
    margin-bottom: 7px;
}

.list-group-reruest .list-group-item .left {
    float: left;
    font-size: 22px;
    margin-top: -3px;
    margin-right: 20px;
}

.list-group-item {
    height: auto;
    padding: 10px 10px 8px 10px;
    margin-bottom: 7px;
}

.list-group-item h5 {
    line-height: 20px;
}

.list-group-item .left {
    float: left;
    font-size: 22px;
    margin-top: -3px;
    color: #EE4A4A;
    margin-right: 20px;
}

.views,
.list-group-item .right .views {
    font-size: 12px;
    color: #787878;
}

.text-mode {
    text-align: right;
    margin-top: 10px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
}

.anime_center {
    text-align: center;
    line-height: 25px;
}

.jumbotron-footer {
    color: #ffffff !important;
    margin-top: 30px;
    padding: 20 0 10 0 !important;
    margin-bottom: 0 !important;
}

.text-credit {
    font-size: 12px !important;
    color: #f1f1f1 !important;
}

.iw_grid {
    margin-bottom: 20px;
}

.container-player {
    margin-bottom: 15px;
}

.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 100px;
    right: 10px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* image replacement properties */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: rgba(86, 151, 232, 0.8) url(https://i.imgur.com/uSmhNWU.png?v=297) no-repeat center 50%;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity .3s 0s, visibility 0s .3s;
    -moz-transition: opacity .3s 0s, visibility 0s .3s;
    transition: opacity .3s 0s, visibility 0s .3s;
}

.cd-top.cd-is-visible,
.cd-top.cd-fade-out,
.no-touch .cd-top:hover {
    -webkit-transition: opacity .3s 0s, visibility 0s 0s;
    -moz-transition: opacity .3s 0s, visibility 0s 0s;
    transition: opacity .3s 0s, visibility 0s 0s;
}

.cd-top.cd-is-visible {
    /* the button becomes visible */
    visibility: visible;
    opacity: 0.8;
}

.cd-top.cd-fade-out {
    /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
    opacity: .5;
}

.no-touch .cd-top:hover {
    background-color: #5697e8;
    opacity: 1;
}

@media only screen and (min-width: 768px) {
    .cd-top {
        right: 20px;
        bottom: 20px;
    }
}

@media only screen and (min-width: 1024px) {
    .cd-top {
        height: 60px;
        width: 60px;
        right: 30px;
        bottom: 30px;
    }
}

.title-mode-2 {
    background-color: #333;
    color: #FFF;
    text-align: center;
    display: block;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-download {
    margin-right: 10px !important;
}

.spinner {
    text-align: center;
    margin: 100px 0 100px 0;
}

.alert-success-b {
    background-color: #77b300;
    border-color: #809a00;
    color: #ffffff;
}

.alert-success-b hr {
    border-top-color: #6a8000;
}

.alert-success-b .alert-link {
    color: #e6e6e6;
}

.alert-info-b {
    background-color: #9933cc;
    border-color: #6e2caf;
    color: #ffffff;
}

.alert-info-b hr {
    border-top-color: #61279b;
}

.alert-info-b .alert-link {
    color: #e6e6e6;
}

.alert-warning-b {
    background-color: #ff8800;
    border-color: #f05800;
    color: #ffffff;
}

.alert-warning-b hr {
    border-top-color: #d64f00;
}

.alert-warning-b .alert-link {
    color: #e6e6e6;
}

.alert-danger-b {
    background-color: #cc0000;
    border-color: #bd001f;
    color: #ffffff;
}

.alert-danger-b hr {
    border-top-color: #a3001b;
}

.alert-danger-b .alert-link {
    color: #e6e6e6;
}


#p9fe {
    text-align: center;
    z-index: 9999;
    position: fixed !important;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: block;
    padding: 10% 0
}

#p9fe * {
    text-align: center;
}

.p9fe-title{
    color: #fff;
    margin-top: 50px;
    font-size: 26px;
    letter-spacing: 0;
}

.p9fe-text {
    color: #fff;
    line-height: 1.65;
    margin-bottom: 50px;
}

#p9fe~* {
    display: none
}

.iw_tags>div {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    margin: 3px 4px;
    border-radius: 3px;
}

.iw_tags>div>a {
    color: #fff;
    font-weight: normal;
}

.iw_header {
    font-size: 18px;
    color: #FFFFFF;
    border-bottom: 1px solid #CCC;
    margin: 5px 0px 10px 0px;
    font-weight: normal;
}

.iw_header-w {
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid #fff;
    margin: 5px 0px 10px 0px;
    font-weight: normal;
}

.fx1 {
    margin-top: 10px;
}

.anime-title {
    font-size: 18px;
    font-weight: normal;
}

.misa-search {
    margin-top: 40px;
    display: flex !important;
    align-items: center;
}

.misa-search .form-group {
    margin-bottom: 0 !important;
    display: inline-block;
}

.misa-search input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #666 !important;
    border-radius: 4px 0 0 4px !important;
    height: 40px !important;
    border-right: none !important;
    color: #fff !important;
}

.misa-search button {
    border-radius: 0 4px 4px 0 !important;
    height: 40px !important;
    padding: 0 15px !important;
    border: 1px solid #666 !important;
    border-left: none !important;
}

.iw_grid:hover>a>.iw_img {
    opacity: 0.5;
}

.iplay {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    position: absolute;
    top: 80;
    left: 85;
    color: #fff;
    display: none;
    opacity: 0.8;
}

.iw_grid:hover>a>.iplay {
    display: inline-block;
}

.hilight {
    color: #222;
}

.misa-hilight {
    margin-bottom: 10px;
    margin-top: 20px;
}

.misa-hilight-wrap {
    width: 100%;
    height: 220px;
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    opacity: 0.9;
}

.misa-hilight-content {
    position: absolute;
    z-index: 5;
    top: 30px;
    left: 40px;
}

.img-hilight {
    border: 3px solid #222 !important;
}

.lilight-recom {
    background: #D63C3C;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    padding: 3px;
}

.title-hilight {
    font-weight: bold;
    font-size: 16px;
    padding: 3px;
}

.sum-hilight {
    background: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    line-height: 20px;
    padding: 3px;
    color: #fff;
    border-radius: 5px;
    height: 80px;
    overflow: hidden;
}

/* ========================================
   SCHEDULE PAGE CSS VARIABLES & STYLES
   ======================================== */
:root {
    --accent-cyan: #00f0ff;
    --accent-magenta: #ff2d95;
    --text-muted: rgba(255,255,255,0.5);
    --text-main: #fff;
    --surface: rgba(255,255,255,0.04);
    --border-color: rgba(255,255,255,0.08);
    --font-heading: 'Sarabun', 'Kanit', sans-serif;
    --font-body: 'Sarabun', 'Kanit', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* ── Schedule Page Header ── */
.sch-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 28px;
}
.sch-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}
.sch-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}
.sch-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

/* ── Year & Month Bars ── */
.sch-year-bar {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    flex-wrap: wrap;
    padding-left: 10px;
}
.sch-year-btn {
    padding: 6px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-right: none;
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    transform: skewX(-15deg);
}
.sch-year-btn:last-child { border-right: 1px solid rgba(255,255,255,0.08); }
.sch-year-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--accent-cyan); text-decoration: none; }
.sch-year-btn.active { background: var(--accent-magenta); border-color: var(--accent-magenta); color: #fff; box-shadow: 0 0 16px rgba(255,45,149,0.3); }
.sch-year-btn>span { display: inline-block; transform: skewX(15deg); }

.sch-month-bar {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding-left: 10px;
}
.sch-month-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-right: none;
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s;
    transform: skewX(-15deg);
}
.sch-month-btn:last-child { border-right: 1px solid rgba(255,255,255,0.08); }
.sch-month-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--accent-cyan); text-decoration: none; }
.sch-month-btn.active { background: var(--accent-magenta); border-color: var(--accent-magenta); color: #fff; box-shadow: 0 0 12px rgba(255,45,149,0.25); }
.sch-month-btn>span { display: inline-block; transform: skewX(15deg); }

/* ── Current Month Highlight ── */
.sch-current-month {
    background: linear-gradient(135deg, rgba(255,45,149,0.08), rgba(0,240,255,0.05));
    border: 1px solid rgba(255,45,149,0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.sch-current-month::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--accent-magenta), var(--accent-cyan));
}
.sch-month-section { margin-bottom: 28px; }
.sch-month-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 20px 10px 24px 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0,240,255,0.3);
    z-index: 1;
}
.sch-count {
    margin-left: auto;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: 400;
}
.sch-month-label::before {
    content: '';
    position: absolute;
    top: 0; left: -10px; right: 10px; bottom: 0;
    background: linear-gradient(90deg, rgba(0,240,255,0.1), rgba(255,45,149,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--accent-cyan);
    transform: skewX(-15deg);
    z-index: -1;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.sch-month-label::after {
    content: '';
    position: absolute;
    top: -1px; right: 30px;
    width: 50px; height: 3px;
    background: var(--accent-magenta);
    box-shadow: 0 0 10px var(--accent-magenta);
    transform: skewX(-15deg);
}

@keyframes schPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,149,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,45,149,0); }
}

/* ── Schedule Grid ── */
.sch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.sch-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s ease;
    cursor: pointer;
}
.sch-card:hover {
    border-color: rgba(255,45,149,0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 20px rgba(255,45,149,0.1);
}
.sch-panel {
    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: -8px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    grid-column: 1 / -1;
}
.sch-sample-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    overflow: hidden;
    max-height: 152px;
    transition: max-height 0.3s ease-in-out;
}
.sch-sample-img {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, border-color 0.2s;
    object-fit: cover;
    background: #000;
}
.sch-sample-img:hover { transform: scale(1.05); border-color: var(--accent-magenta); }
.sch-card-today { border-color: rgba(255,45,149,0.4) !important; box-shadow: 0 0 24px rgba(255,45,149,0.15); }
.sch-card-aired { opacity: 0.5; }
.sch-card-aired:hover { opacity: 0.9; }
.sch-card-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.sch-card:hover .sch-card-bg { transform: scale(1.06); }

/* Date badge */
.sch-card-date {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 3;
}
.sch-date-day { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.sch-date-month { font-size: 9px; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.5px; }

/* Today badge */
.sch-badge-today {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--accent-magenta);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 8px;
    z-index: 3;
    animation: schPulse 2s infinite;
}
.sch-badge-preview {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(10,10,15,0.7);
    color: var(--accent-cyan);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,240,255,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.sch-badge-today~.sch-badge-preview { top: 34px; }

/* Getchu icon */
.sch-card-getchu {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid rgba(0,240,255,0.2);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.25s, background 0.25s;
}
.sch-card:hover .sch-card-getchu { opacity: 1; }
.sch-card-getchu:hover { background: rgba(0,240,255,0.2); color: #fff; text-decoration: none; }
.sch-badge-today~.sch-card-getchu { top: 34px; }
.sch-badge-preview~.sch-card-getchu { top: 34px; }
.sch-badge-today~.sch-badge-preview~.sch-card-getchu { top: 60px; }

/* Overlay info */
.sch-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.88));
    padding: 40px 12px 12px;
    z-index: 2;
}
.sch-card-title { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
a.sch-card-title:hover { color: var(--accent-magenta); text-decoration: none; }
.sch-card-alt { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; flex-wrap: wrap; }
.sch-card-ep { background: rgba(0,240,255,0.15); color: var(--accent-cyan); padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: 10px; }
.sch-card-day { color: rgba(255,255,255,0.45); font-size: 10px; }
.sch-card-note { color: var(--accent-magenta); font-size: 10px; opacity: 0.85; }
.sch-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.sch-empty i { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.3; }
.sch-empty p { font-size: 14px; }

@media (max-width: 767px) {
    .sch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sch-current-month { padding: 16px; }
    .sch-page-header { gap: 12px; }
    .sch-header-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .sch-title { font-size: 18px; }
    .sch-card-date { padding: 4px 8px; }
    .sch-date-day { font-size: 16px; }
    .sch-card-title { font-size: 12px; }
}