.mpPlayerMain {
    margin-top: 1px;
	position: relative;
    padding: 5px;
    background: #0a0a0a;
}
.mp-s-sl span {
    vertical-align: top;
}
.sl-a-list {
    /* padding: 5px; */
    border: 1px solid #131313;
    background: #000000;
    margin-top: 2px;
    display: flex;
    text-align: center;
    justify-content: center;
}
.sl-src {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 10px;
}
.miru-epg{
    background: #0c0c0c;
    border-radius: 5px;
    margin-top: 5px;
}
.mp-ep-group{
	margin-top: -5px;
    padding: 5px;
    margin-bottom: 10px;
}
.mp-group-title{
    background: #0089ff;
    border-radius: 5px 5px 0 0;
    padding: 5px 20px;
    font-size: 14px;
    line-height: 14px;
    display: inline-block;
    color: #fff;
}
.mp-ep-list{
    border: 2px #ffffff42 solid;
    border-radius: 0 5px 5px 5px;
    padding: 3px;
    position: relative;
}
.sl-area .active {
    font-family: monospace;
    font-size: 1.1rem;
    background: rgb(77 56 43);
    border-radius: 4px;
}
.mp-s-sl {
    background: rgb(84 84 84);
    margin-top: 2px;
    border-bottom: 1px dashed #ffffff00;
    padding: 5px 5px 8px;
    border-radius: 4px;
	margin-inline: 2px;
}
	.mp-ep-btn{
    width: calc(20.2% - 40px);
	height: 49px;
    display: inline-block;
    background: #545454;
    border-radius: 2px;
    margin: 5px;
   font-family: sarabun, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 0 5px;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #878787;
    border-radius: 4px;
}
.mp-ep-cover{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: url('../images/load4.gif') rgba(14, 14, 14, 0.9) no-repeat;
    background-position: center center;
    background-size: 50px;
    display: none;
}
.mp-p-err{
    position: relative;
    height: 450px;
    background: url('../images/error-icon-4.png') #4d382b no-repeat;
    text-align: center;
    vertical-align: middle;
    line-height: 450px;
    color: #5d0e0e;
    font-weight: 600;
    background-position: -131px -113px;
    background-size: 440px;
}
.mp-ep-btn:hover{
    background: #4d382b;
}
.mp-ep-btn:active{
    background: #c12e20;
}
.mp-active{
    background: #4d382b;
}
.mp-active:hover{
    background: #4d382b;
}
.mp-active:active{
    background: #4d382b;
}
.sl-title{
    background: #080808;
    color: #fff;
    font-weight: 600;
	display: none;
}
.mpPlayerMain{
    margin-top: 10px;
}
.action-hide {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 45px;
    height: 45px;
    display: none;
}

@media only screen and (max-width: 351px) {
    .mp-ep-btn {
        width: -webkit-fill-available;
        margin: 2px;
    }
}

@media only screen and (max-width: 700px) {
    .mp-ep-btn{
        width: calc(33.3333333% - 10px);
    }
    .mp-p-err{
        height: 276px;
        line-height: 276px;
    }
	.ads-bokplayer {
		top: 32% !important;
	}
}


.mpIframe {
    position: relative; /* สำคัญมาก */
}

.ads-bokplayer {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    max-width: 90%;
    pointer-events: auto;
}

.ads-bokplayer img {
    max-width: 100%;
    height: auto;
    display: block;
}
.ads-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0,0,0,.75);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 21;
}
.ads-close:hover {
    background: #e74c3c;
    transition: .3s;
}
/* ==========================================
   1. ปุ่ม EP หลัก: กำหนดพื้นที่และเว้นระยะด้านล่าง
   ========================================== */
.mp-ep-btn {
    position: relative !important;
    padding-top: 8px !important;
    padding-bottom: 20px !important; /* เว้นพื้นที่ล่างเผื่อคำว่า "ดูแล้ว" */
    min-height: 48px !important;     /* ล็อกความสูงปุ่มให้เท่ากันทุกปุ่ม */
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* ==========================================
   2. ข้อความ "ดูแล้ว": ลอยขอบล่างตรงกลาง
   ========================================== */
.mp-ep-btn .ep-status,
.ep-status {
    position: absolute !important;
    bottom: 3px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    pointer-events: none !important;
}

/* ==========================================
   3. ลบจุด Bullet และ Pseudo elements ของธีม
   ========================================== */
.mp-ep-btn .ep-status::before,
.ep-status::before {
    content: none !important;
    display: none !important;
}

/* ==========================================
   4. สีข้อความ "ดูแล้ว" (สีเขียวสด)
   ========================================== */
.mp-ep-btn.is-watched .ep-status,
.is-watched .ep-status {
    color: #5bb381 !important;
}
