/*
Theme Name: AnimeStream Child
Theme URI: https://themesia.com/animestream-wordpress-theme
Author: Themesia
Author URI: https://themesia.com
Description: child theme for animestream.
Template: animestream
Version: 1.0.3
Tags: black, yellow, blue, purple, light, two-columns, right-sidebar, custom-header, custom-menu, featured-images
Text Domain: animestream-child
*/

/* =========================================================
   OHLI365 Anilife Based Clean Layout
   기준:
   - 부모 AnimeStream 구조 유지
   - 차일드 테마 CSS만 사용
   - 과한 grid/fixed width 제거
   - 애니라이프식 간격/색상/카드 밀도 보정
========================================================= */

/* ===============================
   1) 공통 기본값
================================ */

body {
    background: #eef0f2 !important;
    color: #222 !important;
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.2em !important;
    margin: 0 auto !important;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #0c70de;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   2) PC 레이아웃
================================ */

@media only screen and (min-width: 881px) {

    .postbody {
        float: left !important;
        width: 70% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #sidebar {
        float: right !important;
        width: 30% !important;
        max-width: none !important;
        min-width: 0 !important;
        position: relative !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
    }

    #sidebar .section,
    #sidebar .bixbox {
        margin-left: 15px !important;
    }

    .th {
        background: #ffffff !important;
        height: 60px !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    .th .centernav,
    #main-menu .centernav {
        max-width: 1220px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    #main-menu {
        margin: 0 0 15px !important;
        background: #0c70de !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #main-menu ul li {
        margin: 0 10px !important;
    }

    #main-menu ul li a {
        display: block !important;
        height: 42px !important;
        line-height: 42px !important;
        padding: 0 10px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    #main-menu ul li a:hover {
        color: #ffffff !important;
        background: rgba(0,0,0,.25) !important;
    }

    .bixbox,
    #sidebar .section {
        background: #ffffff !important;
        border-radius: 3px !important;
        box-shadow: 1px 3px 8px rgba(49,49,49,.1) !important;
        overflow: hidden !important;
        margin-bottom: 18px !important;
        border: 0 !important;
    }

    .releases {
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        border-bottom: 1px solid #ececec !important;
        padding: 8px 15px !important;
        min-height: 38px !important;
        height: auto !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .releases.hothome,
    .releases.latesthome {
        background: #0c70de !important;
        color: #ffffff !important;
    }

    #sidebar .section h3,
    .releases h1,
    .releases h2,
    .releases h3,
    .releases > h2 {
        font-size: 15px !important;
        color: #333333 !important;
        line-height: 20px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        position: relative !important;
    }

    .releases.hothome h1,
    .releases.hothome h2,
    .releases.hothome h3,
    .releases.latesthome h1,
    .releases.latesthome h2,
    .releases.latesthome h3 {
        color: #ffffff !important;
    }

    .releases .vl {
        display: inline-block !important;
        height: 18px !important;
        line-height: 18px !important;
        padding: 0 6px !important;
        margin-top: 1px !important;
        margin-right: -3px !important;
        border-radius: 2px !important;
        background: #0c70de !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    .releases.hothome .vl,
    .releases.latesthome .vl {
        background: #ffffff !important;
        color: #111111 !important;
        line-height: 21px !important;
    }

    .listupd {
        padding: 10px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .bs {
        float: left !important;
        width: 20% !important;
        box-sizing: border-box !important;
    }

    .bs .bsx {
        overflow: hidden !important;
        margin: 7px !important;
        margin-bottom: 15px !important;
        position: relative !important;
        transition: all .2s !important;
        box-sizing: border-box !important;
    }

    .bs .bsx .limit {
        padding: 142% 0 0 !important;
        position: relative !important;
        overflow: hidden !important;
        background: #333333 !important;
        border-radius: 4% !important;
    }

    .bs .bsx .limit img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 120px !important;
        top: 0 !important;
        left: 0 !important;
        position: absolute !important;
        object-fit: cover !important;
        transition: all .15s ease-out !important;
    }

    .bs .bsx:hover .limit img {
        transform: scale(1.05) !important;
    }

    .bs .bsx .tt {
        height: 33px !important;
        overflow: hidden !important;
        font-size: 13px !important;
        margin: 8px 0 0 !important;
        line-height: 1.25em !important;
        text-align: center !important;
        font-weight: 500 !important;
        color: #222222 !important;
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
    }

    .bs .bsx .tt a {
        color: #222222 !important;
        font-weight: 500 !important;
    }

    .bs .bsx .tt h2 {
        display: none !important;
        font-size: 0 !important;
        margin: 0 !important;
        height: 0 !important;
    }

    .bs .bsx .limit .typez {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        z-index: 2 !important;
        padding: 2px 5px !important;
        border-radius: 3px !important;
        background: #333333 !important;
        color: #ffffff !important;
        font-size: 12px !important;
        line-height: normal !important;
    }

    .bs .bsx .limit .typez.TV {
        background: #0c70de !important;
    }

    .bs .bsx .limit .typez.Movie {
        background: #9c27b0 !important;
    }

    .bs .bsx .limit .typez.ONA,
    .bs .bsx .limit .typez.OVA,
    .bs .bsx .limit .typez.Special {
        background: #f44336 !important;
    }

    .bs .bsx .limit .bt {
        position: absolute !important;
        bottom: 0 !important;
        z-index: 2 !important;
        width: 100% !important;
        color: #ffffff !important;
        font-size: 12px !important;
        overflow: hidden !important;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.6) 30%, rgba(0,0,0,.8) 60%, rgba(0,0,0,.7) 100%) !important;
        padding-bottom: 5px !important;
        padding-top: 12px !important;
    }

    .listupd.popularslider,
    .popularslider.owl-carousel,
    .listupd.owl-carousel {
        overflow: hidden !important;
    }

    .owl-carousel .owl-item .bs {
        width: 100% !important;
        float: none !important;
    }

    .owl-carousel .owl-item .bs .bsx {
        margin: 7px !important;
        margin-bottom: 12px !important;
    }

    .owl-carousel .owl-item img {
        display: block !important;
        width: 100% !important;
    }

    #sidebar .section > ul {
        font-size: 13px !important;
    }

    #sidebar .section > ul > li {
        padding: 7px 15px !important;
        border-bottom: 1px solid #ececec !important;
        overflow: hidden !important;
    }

    #sidebar .section ul.genre {
        overflow: hidden !important;
        list-style: none !important;
        position: relative !important;
        padding: 5px 0 15px !important;
        font-size: inherit !important;
    }

    #sidebar .section ul.genre li {
        float: left !important;
        width: 33.33% !important;
        padding: 0 !important;
        border-bottom: 0 !important;
    }

    #sidebar .section ul.genre li a {
        display: inline-block !important;
        padding: 5px 15px !important;
        color: #333333 !important;
        font-size: 13px !important;
    }

    .serieslist ul li {
        padding: 12px 15px !important;
        border-bottom: 1px solid #ececec !important;
        overflow: hidden !important;
    }

    .serieslist ul li .imgseries {
        float: left !important;
        overflow: hidden !important;
        width: 45px !important;
        margin-right: 10px !important;
    }

    .serieslist ul li .imgseries img {
        width: 100% !important;
        height: auto !important;
        border-radius: 5% !important;
    }

    #sidebar .serieslist ul li .leftseries h4 {
        margin: 0 0 3px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4em !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .serieslist ul li .leftseries span {
        overflow: hidden !important;
        color: #888888 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-bottom: 3px !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* ===============================
   3) 태블릿 / 모바일 기본 레이아웃
================================ */

@media only screen and (max-width: 880px) {
    #content {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .wrapper {
        margin: 0 !important;
        padding: 0 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .postbody,
    #sidebar {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #sidebar .section,
    #sidebar .bixbox {
        margin-left: 0 !important;
    }

    .bixbox {
        border-radius: 0 !important;
        margin-bottom: 12px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }
}

/* ===============================
   4) 모바일 헤더 / 메뉴
================================ */

.ohli365-mobile-quicknav,
.ohli365-mobile-nav-layer {
    display: none;
}

@media only screen and (max-width: 768px) {
    body {
        background: #f3f4f6 !important;
        color: #111827 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif !important;
    }

    .th {
        height: 52px !important;
        background: #0c70de !important;
        border-bottom: 1px solid rgba(255,255,255,.22) !important;
    }

    .th .centernav {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        height: 52px !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    .mobilelogo,
    .logos,
    .mainheader {
        display: none !important;
    }

    .shme {
        display: flex !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: #ffffff !important;
        order: 1 !important;
    }

    .shme i {
        font-size: 28px !important;
        line-height: 1 !important;
    }

    .searchx {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
        order: 2 !important;
        float: none !important;
    }

    .searchx #form {
        width: 100% !important;
        position: relative !important;
    }

    .searchx #form #s {
        width: 100% !important;
        height: 36px !important;
        border-radius: 4px !important;
        border: 0 !important;
        background: #ffffff !important;
        color: #222222 !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        padding: 0 36px 0 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .searchx #form #submitsearch {
        width: 34px !important;
        height: 36px !important;
        top: 0 !important;
        right: 0 !important;
        line-height: 36px !important;
        color: #c4c4c4 !important;
    }

    .topmobile {
        display: flex !important;
        order: 3 !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: #ffffff !important;
        background: rgba(255,255,255,.15) !important;
        border-radius: 4px !important;
    }

    #thememode {
        display: flex !important;
        order: 4 !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        color: #ffffff !important;
    }

    #thememode #switchtext {
        display: none !important;
    }

    #thememode .switch {
        transform: scale(.78) !important;
        margin: 0 !important;
    }

    .srcmob,
    #main-menu {
        display: none !important;
    }

    .ohli365-mobile-quicknav {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        height: 42px !important;
        background: #0c70de !important;
        border-top: 1px solid rgba(255,255,255,.18) !important;
        border-bottom: 1px solid rgba(0,0,0,.12) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 40 !important;
    }

    .ohli365-mobile-quicknav a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 42px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        letter-spacing: -0.035em !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        border-right: 1px solid rgba(255,255,255,.08) !important;
        box-sizing: border-box !important;
    }

    .ohli365-mobile-quicknav a:last-child {
        border-right: 0 !important;
    }

    .ohli365-mobile-nav-layer {
        display: none !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 999999 !important;
        background: rgba(0,0,0,.78) !important;
    }

    .ohli365-mobile-nav-layer.is-open {
        display: block !important;
    }

    body.ohli365-mobile-menu-open {
        overflow: hidden !important;
    }

    .ohli365-mobile-nav-panel {
        position: absolute !important;
        left: 0 !important;
        top: 94px !important;
        width: 100% !important;
        padding: 18px 28px 24px !important;
        box-sizing: border-box !important;
        background: rgba(0,0,0,.72) !important;
        color: #ffffff !important;
    }

    .ohli365-mobile-nav-panel a,
    .ohli365-mobile-nav-group {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 19px !important;
        color: #ffffff !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        letter-spacing: -0.03em !important;
        text-decoration: none !important;
    }
}

/* ===============================
   5) 모바일 카드
================================ */

@media only screen and (max-width: 768px) {
    .releases,
    .releases.hothome,
    .releases.latesthome,
    .bixbox .releases {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        margin: 0 !important;
        background: #0c70de !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .releases h1,
    .releases h2,
    .releases h3,
    .releases h4 {
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        font-size: 16px !important;
        line-height: 38px !important;
        font-weight: 900 !important;
        letter-spacing: -0.03em !important;
    }

    .releases .vl {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 22px !important;
        line-height: 22px !important;
        padding: 0 8px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        background: #ffffff !important;
        color: #0c70de !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }

    .listupd {
        padding: 9px 8px 12px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    .bs {
        float: left !important;
        width: 33.333333% !important;
        box-sizing: border-box !important;
    }

    .bs .bsx {
        margin: 5px !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
    }

    .bs .bsx .limit {
        padding: 142% 0 0 !important;
        position: relative !important;
        overflow: hidden !important;
        background: #e5e7eb !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 7px rgba(15,23,42,.12) !important;
    }

    .bs .bsx .limit img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        position: absolute !important;
        object-fit: cover !important;
    }

    .bs .bsx .tt {
        display: block !important;
        height: 18px !important;
        max-height: 18px !important;
        min-height: 18px !important;
        margin: 6px 0 0 !important;
        padding: 0 2px !important;
        color: #111827 !important;
        font-size: 12px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        letter-spacing: -0.035em !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .bs .bsx .tt h2 {
        display: none !important;
    }

    .listupd.popularslider {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .listupd.popularslider .bs {
        display: inline-block !important;
        float: none !important;
        width: 138px !important;
        max-width: 138px !important;
        vertical-align: top !important;
    }

    #sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        clear: both !important;
        margin-top: 12px !important;
    }
}

/* ===============================
   6) Footer
================================ */

#footer.ohli365-footer-applied,
footer.ohli365-footer-applied {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 28px !important;
    background: #222222 !important;
    color: #ffffff !important;
    text-align: center !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

.ohli365-footer-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    margin: 0 0 28px !important;
    background: #0c70de !important;
}

.ohli365-footer-menu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 130px !important;
    height: 42px !important;
    padding: 0 18px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.ohli365-footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
}

.ohli365-footer-brand img {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.ohli365-footer-logo-text {
    color: rgba(255,255,255,.50) !important;
    font-size: 38px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.ohli365-footer-logo-text span {
    color: #3b82f6 !important;
}

.ohli365-footer-copy {
    margin: 0 16px 6px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

.ohli365-footer-disclaimer {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    color: #f3f4f6 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

/* =========================================================
   A365 UP Badge
   오늘 업데이트 애니 표시
========================================================= */
.a365-up-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 16px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 59, 48, .35);
}

.a365-up-badge.is-floating {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    margin-left: 0;
}

.a365-card-badges .a365-up-badge {
    margin-left: 0;
}

@media (max-width: 768px) {
    .a365-up-badge {
        min-width: 24px;
        height: 15px;
        padding: 0 5px;
        font-size: 9px;
    }
}

/* =========================================================
   OHLI365 Sidebar Gap Final Fix
   목적:
   - 70% + 30% 구조에서 사이드바 margin-left 때문에 겹쳐 보이는 문제 해결
   - 부모 테마 수정 금지
   - PC에서만 본문/사이드바 사이 15px 여백 확보
========================================================= */

@media only screen and (min-width: 881px) {
    .postbody {
        float: left !important;
        width: calc(70% - 8px) !important;
        max-width: calc(70% - 8px) !important;
        box-sizing: border-box !important;
    }

    #sidebar {
        float: right !important;
        width: calc(30% - 7px) !important;
        max-width: calc(30% - 7px) !important;
        padding-left: 15px !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1 !important;
    }

    #sidebar .section,
    #sidebar .bixbox,
    #sidebar #mainepisode {
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }
}

@media only screen and (max-width: 880px) {
    .postbody,
    #sidebar {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        box-sizing: border-box !important;
    }

    #sidebar .section,
    #sidebar .bixbox,
    #sidebar #mainepisode {
        margin-left: 0 !important;
    }
}

/* A365 series detail box */
.a365-series-detailbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 34px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.a365-series-detailbox .a365-info-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.a365-series-detailbox span {
    display: block;
    line-height: 1.45;
    font-size: 14px;
}

.a365-series-detailbox span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 2px;
    background: #1677e8;
    vertical-align: 1px;
}

@media (max-width: 768px) {
    .a365-series-detailbox {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* =========================================================
   OHLI365 - Single Anime Detail Box / Anilife-like Layout
   Scope: child theme only
   ========================================================= */

/* 전체 본문 폭을 애니라이프처럼 조밀하게 */
body.single-anime #content,
body.single-anime .wrapper {
    font-size: 13.5px;
}

/* 상세 카드 박스 */
body.single-anime .animefull,
body.single-anime .bixbox.animefull {
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}

/* 이미지 + 정보 영역 */
body.single-anime .animefull .bigcontent {
    display: grid !important;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* 썸네일 영역 */
body.single-anime .animefull .thumbook {
    width: 165px !important;
    max-width: 165px !important;
    margin: 0 !important;
}

body.single-anime .animefull .thumbook .thumb,
body.single-anime .animefull .thumbook .thumb img {
    width: 165px !important;
    max-width: 165px !important;
}

body.single-anime .animefull .thumbook .thumb img {
    height: 235px !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* 북마크 버튼 */
body.single-anime .animefull .bookmark,
body.single-anime .animefull .rt .bookmark {
    width: 165px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    background: #1473e6 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 우측 정보 영역 */
body.single-anime .animefull .infox {
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* 제목 */
body.single-anime .animefull .infox h1,
body.single-anime .animefull .infox .entry-title {
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.5px;
}

/* 제목 아래 설명 */
body.single-anime .animefull .mindesc,
body.single-anime .animefull .ninfo .mindesc {
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

body.single-anime .animefull .mindesc b {
    font-weight: 700;
}

/* 메타 정보 2열 */
body.single-anime .animefull .a365-series-detailbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    margin: 6px 0 9px !important;
    padding: 0 !important;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row {
    position: relative;
    display: block;
    padding-left: 15px;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #1473e6;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row b {
    color: #222;
    font-weight: 700;
}

/* 파란 장르 버튼 */
body.single-anime .animefull .genxed {
    margin: 8px 0 4px !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .genxed a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #2b7cff !important;
    border-radius: 4px !important;
    color: #1769d8 !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 주황 태그 버튼 */
body.single-anime .animefull .taged,
body.single-anime .animefull .taged.min {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .taged a,
body.single-anime .animefull .taged.min a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #ff8a3d !important;
    border-radius: 4px !important;
    color: #ff6b00 !important;
    background: #fffaf5 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 더보기/닫기 회색 바 */
body.single-anime .animefull .infox .a365-more,
body.single-anime .animefull .infox .more,
body.single-anime .animefull .infox .showmore,
body.single-anime .animefull .infox .hid {
    background: #eee !important;
    color: #555 !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    border-radius: 0 !important;
    margin-top: 8px !important;
}

/* 줄거리 박스 */
body.single-anime .bixbox .releases h2,
body.single-anime .bixbox h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.single-anime .bixbox {
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* 에피소드 목록 애니라이프형 */
body.single-anime .eplister,
body.single-anime .eplister ul {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-anime .eplister li,
body.single-anime .a365-episode-list li,
body.single-anime .a365-episode-row {
    min-height: 42px;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

body.single-anime .eplister li:nth-child(odd),
body.single-anime .a365-episode-list li:nth-child(odd),
body.single-anime .a365-episode-row:nth-child(odd) {
    background: #f7f7f7;
}

body.single-anime .eplister .epl-num,
body.single-anime .a365-episode-no {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

body.single-anime .eplister .epl-title,
body.single-anime .a365-episode-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 모바일 */
@media (max-width: 768px) {
    body.single-anime .animefull,
    body.single-anime .bixbox.animefull {
        padding: 14px;
    }

    body.single-anime .animefull .bigcontent {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    body.single-anime .animefull .thumbook,
    body.single-anime .animefull .thumbook .thumb,
    body.single-anime .animefull .thumbook .thumb img {
        width: 120px !important;
        max-width: 120px !important;
    }

    body.single-anime .animefull .thumbook .thumb img {
        height: 172px !important;
    }

    body.single-anime .animefull .bookmark,
    body.single-anime .animefull .rt .bookmark {
        width: 120px !important;
    }

    body.single-anime .animefull .infox h1,
    body.single-anime .animefull .infox .entry-title {
        font-size: 18px !important;
    }

    body.single-anime .animefull .a365-series-detailbox {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.single-anime .animefull .mindesc {
        font-size: 13px !important;
    }
}

/* =========================================================
   OHLI365 - Single Anime Detail Box / Anilife-like Layout
   Scope: child theme only
   ========================================================= */

/* 전체 본문 폭을 애니라이프처럼 조밀하게 */
body.single-anime #content,
body.single-anime .wrapper {
    font-size: 13.5px;
}

/* 상세 카드 박스 */
body.single-anime .animefull,
body.single-anime .bixbox.animefull {
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}

/* 이미지 + 정보 영역 */
body.single-anime .animefull .bigcontent {
    display: grid !important;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* 썸네일 영역 */
body.single-anime .animefull .thumbook {
    width: 165px !important;
    max-width: 165px !important;
    margin: 0 !important;
}

body.single-anime .animefull .thumbook .thumb,
body.single-anime .animefull .thumbook .thumb img {
    width: 165px !important;
    max-width: 165px !important;
}

body.single-anime .animefull .thumbook .thumb img {
    height: 235px !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* 북마크 버튼 */
body.single-anime .animefull .bookmark,
body.single-anime .animefull .rt .bookmark {
    width: 165px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    background: #1473e6 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 우측 정보 영역 */
body.single-anime .animefull .infox {
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* 제목 */
body.single-anime .animefull .infox h1,
body.single-anime .animefull .infox .entry-title {
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.5px;
}

/* 제목 아래 설명 */
body.single-anime .animefull .mindesc,
body.single-anime .animefull .ninfo .mindesc {
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

body.single-anime .animefull .mindesc b {
    font-weight: 700;
}

/* 메타 정보 2열 */
body.single-anime .animefull .a365-series-detailbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    margin: 6px 0 9px !important;
    padding: 0 !important;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row {
    position: relative;
    display: block;
    padding-left: 15px;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #1473e6;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row b {
    color: #222;
    font-weight: 700;
}

/* 파란 장르 버튼 */
body.single-anime .animefull .genxed {
    margin: 8px 0 4px !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .genxed a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #2b7cff !important;
    border-radius: 4px !important;
    color: #1769d8 !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 주황 태그 버튼 */
body.single-anime .animefull .taged,
body.single-anime .animefull .taged.min {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .taged a,
body.single-anime .animefull .taged.min a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #ff8a3d !important;
    border-radius: 4px !important;
    color: #ff6b00 !important;
    background: #fffaf5 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 더보기/닫기 회색 바 */
body.single-anime .animefull .infox .a365-more,
body.single-anime .animefull .infox .more,
body.single-anime .animefull .infox .showmore,
body.single-anime .animefull .infox .hid {
    background: #eee !important;
    color: #555 !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    border-radius: 0 !important;
    margin-top: 8px !important;
}

/* 줄거리 박스 */
body.single-anime .bixbox .releases h2,
body.single-anime .bixbox h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.single-anime .bixbox {
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* 에피소드 목록 애니라이프형 */
body.single-anime .eplister,
body.single-anime .eplister ul {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-anime .eplister li,
body.single-anime .a365-episode-list li,
body.single-anime .a365-episode-row {
    min-height: 42px;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

body.single-anime .eplister li:nth-child(odd),
body.single-anime .a365-episode-list li:nth-child(odd),
body.single-anime .a365-episode-row:nth-child(odd) {
    background: #f7f7f7;
}

body.single-anime .eplister .epl-num,
body.single-anime .a365-episode-no {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

body.single-anime .eplister .epl-title,
body.single-anime .a365-episode-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 모바일 */
@media (max-width: 768px) {
    body.single-anime .animefull,
    body.single-anime .bixbox.animefull {
        padding: 14px;
    }

    body.single-anime .animefull .bigcontent {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    body.single-anime .animefull .thumbook,
    body.single-anime .animefull .thumbook .thumb,
    body.single-anime .animefull .thumbook .thumb img {
        width: 120px !important;
        max-width: 120px !important;
    }

    body.single-anime .animefull .thumbook .thumb img {
        height: 172px !important;
    }

    body.single-anime .animefull .bookmark,
    body.single-anime .animefull .rt .bookmark {
        width: 120px !important;
    }

    body.single-anime .animefull .infox h1,
    body.single-anime .animefull .infox .entry-title {
        font-size: 18px !important;
    }

    body.single-anime .animefull .a365-series-detailbox {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.single-anime .animefull .mindesc {
        font-size: 13px !important;
    }
}

/* =========================================================
   OHLI365 - Single Anime Detail Box / Anilife-like Layout
   Scope: child theme only
   ========================================================= */

/* 전체 본문 폭을 애니라이프처럼 조밀하게 */
body.single-anime #content,
body.single-anime .wrapper {
    font-size: 13.5px;
}

/* 상세 카드 박스 */
body.single-anime .animefull,
body.single-anime .bixbox.animefull {
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}

/* 이미지 + 정보 영역 */
body.single-anime .animefull .bigcontent {
    display: grid !important;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* 썸네일 영역 */
body.single-anime .animefull .thumbook {
    width: 165px !important;
    max-width: 165px !important;
    margin: 0 !important;
}

body.single-anime .animefull .thumbook .thumb,
body.single-anime .animefull .thumbook .thumb img {
    width: 165px !important;
    max-width: 165px !important;
}

body.single-anime .animefull .thumbook .thumb img {
    height: 235px !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* 북마크 버튼 */
body.single-anime .animefull .bookmark,
body.single-anime .animefull .rt .bookmark {
    width: 165px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    background: #1473e6 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 우측 정보 영역 */
body.single-anime .animefull .infox {
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* 제목 */
body.single-anime .animefull .infox h1,
body.single-anime .animefull .infox .entry-title {
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.5px;
}

/* 제목 아래 설명 */
body.single-anime .animefull .mindesc,
body.single-anime .animefull .ninfo .mindesc {
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

body.single-anime .animefull .mindesc b {
    font-weight: 700;
}

/* 메타 정보 2열 */
body.single-anime .animefull .a365-series-detailbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    margin: 6px 0 9px !important;
    padding: 0 !important;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row {
    position: relative;
    display: block;
    padding-left: 15px;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #1473e6;
}

body.single-anime .animefull .a365-series-detailbox .a365-info-row b {
    color: #222;
    font-weight: 700;
}

/* 파란 장르 버튼 */
body.single-anime .animefull .genxed {
    margin: 8px 0 4px !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .genxed a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #2b7cff !important;
    border-radius: 4px !important;
    color: #1769d8 !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 주황 태그 버튼 */
body.single-anime .animefull .taged,
body.single-anime .animefull .taged.min {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.single-anime .animefull .taged a,
body.single-anime .animefull .taged.min a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #ff8a3d !important;
    border-radius: 4px !important;
    color: #ff6b00 !important;
    background: #fffaf5 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 더보기/닫기 회색 바 */
body.single-anime .animefull .infox .a365-more,
body.single-anime .animefull .infox .more,
body.single-anime .animefull .infox .showmore,
body.single-anime .animefull .infox .hid {
    background: #eee !important;
    color: #555 !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    border-radius: 0 !important;
    margin-top: 8px !important;
}

/* 줄거리 박스 */
body.single-anime .bixbox .releases h2,
body.single-anime .bixbox h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.single-anime .bixbox {
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* 에피소드 목록 애니라이프형 */
body.single-anime .eplister,
body.single-anime .eplister ul {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-anime .eplister li,
body.single-anime .a365-episode-list li,
body.single-anime .a365-episode-row {
    min-height: 42px;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

body.single-anime .eplister li:nth-child(odd),
body.single-anime .a365-episode-list li:nth-child(odd),
body.single-anime .a365-episode-row:nth-child(odd) {
    background: #f7f7f7;
}

body.single-anime .eplister .epl-num,
body.single-anime .a365-episode-no {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

body.single-anime .eplister .epl-title,
body.single-anime .a365-episode-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 모바일 */
@media (max-width: 768px) {
    body.single-anime .animefull,
    body.single-anime .bixbox.animefull {
        padding: 14px;
    }

    body.single-anime .animefull .bigcontent {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    body.single-anime .animefull .thumbook,
    body.single-anime .animefull .thumbook .thumb,
    body.single-anime .animefull .thumbook .thumb img {
        width: 120px !important;
        max-width: 120px !important;
    }

    body.single-anime .animefull .thumbook .thumb img {
        height: 172px !important;
    }

    body.single-anime .animefull .bookmark,
    body.single-anime .animefull .rt .bookmark {
        width: 120px !important;
    }

    body.single-anime .animefull .infox h1,
    body.single-anime .animefull .infox .entry-title {
        font-size: 18px !important;
    }

    body.single-anime .animefull .a365-series-detailbox {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.single-anime .animefull .mindesc {
        font-size: 13px !important;
    }
}

/* OHLI365 - match Anilife content density */
body.single-anime .wrapper {
    max-width: 1180px !important;
}

body.single-anime #content .wrapper {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 22px;
    align-items: start;
}

body.single-anime #content .wrapper > main,
body.single-anime #content .wrapper > .postbody,
body.single-anime #content .wrapper > .content,
body.single-anime #content .wrapper > .bixbox {
    min-width: 0;
}

@media (max-width: 1024px) {
    body.single-anime #content .wrapper {
        display: block;
    }
}

/* =========================================================
   A365 Episode Player UX Patch
   Scope: episode/player page only
   Goal: Anilife-like clean player/detail layout
   ========================================================= */

body.single-post {
    background: #eef0f3;
}

/* 전체 콘텐츠 폭 안정화 */
body.single-post #content,
body.single-post .wrapper,
body.single-post .postbody,
body.single-post .bixbox {
    box-sizing: border-box;
}

/* 플레이어 상단 제목 박스 */
body.single-post .bixbox:first-child,
body.single-post .player-title-box,
body.single-post .entry-header {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* 제목 가독성 */
body.single-post h1,
body.single-post .entry-title {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

/* 플레이어 버튼 영역 */
body.single-post .server,
body.single-post .player-buttons,
body.single-post .mirror,
body.single-post .naveps {
    text-align: center;
}

/* 플레이어 선택 버튼 공통 */
body.single-post .server button,
body.single-post .server a,
body.single-post .player-buttons button,
body.single-post .player-buttons a,
body.single-post .mirror button,
body.single-post .mirror a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    margin: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* 영상 영역 */
body.single-post .player,
body.single-post .video-content,
body.single-post .embed-responsive,
body.single-post .responsive-embed,
body.single-post iframe,
body.single-post video {
    max-width: 100%;
}

/* 플레이어 박스 중앙 정렬 */
body.single-post .player,
body.single-post .video-content {
    background: #000;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* iframe/video 16:9 안정화 */
body.single-post .player iframe,
body.single-post .video-content iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 520px;
    display: block;
    background: #000;
}

/* 플레이어 하단 도구 버튼 */
body.single-post .a365-player-tools,
body.single-post .player-tools,
body.single-post .report-video,
body.single-post .player-footer {
    background: #fff;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 10px 18px;
    box-sizing: border-box;
}

/* 단축키 박스 축소 */
body.single-post .a365-shortcut-box,
body.single-post .shortcut-box,
body.single-post .keyboard-shortcuts {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* 단축키 항목 가로 정렬 */
body.single-post .a365-shortcut-box ul,
body.single-post .shortcut-box ul,
body.single-post .keyboard-shortcuts ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 파란 사각 불릿 */
body.single-post .a365-shortcut-box li::before,
body.single-post .shortcut-box li::before,
body.single-post .keyboard-shortcuts li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1478df;
    border-radius: 2px;
    margin-right: 7px;
    vertical-align: middle;
}

/* 이전/목록/다음 버튼 */
body.single-post .naveps,
body.single-post .episode-nav,
body.single-post .a365-episode-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

body.single-post .naveps a,
body.single-post .episode-nav a,
body.single-post .a365-episode-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    background: #fff;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 1px 5px rgba(0,0,0,.05);
}

body.single-post .naveps a:hover,
body.single-post .episode-nav a:hover,
body.single-post .a365-episode-nav a:hover {
    background: #1478df;
    color: #fff;
}

/* 작품 정보 카드 */
body.single-post .animefull,
body.single-post .a365-series-info-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: 22px;
    margin-top: 18px;
}

/* 작품 정보 내부 */
body.single-post .animefull .bigcontent,
body.single-post .a365-series-info-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

/* 포스터 */
body.single-post .animefull .thumb img,
body.single-post .a365-series-poster img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
}

/* 작품 제목 */
body.single-post .animefull h1,
body.single-post .animefull h2,
body.single-post .a365-series-title {
    font-size: 22px;
    line-height: 1.35;
    color: #1478df;
    font-weight: 800;
    margin: 0 0 14px;
}

/* 메타 정보 2열 */
body.single-post .a365-meta-grid,
body.single-post .animefull .spe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
    margin-bottom: 16px;
}

/* 메타 정보 불릿 */
body.single-post .a365-meta-grid div::before,
body.single-post .animefull .spe span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1478df;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 줄거리 */
body.single-post .animefull .mindesc,
body.single-post .a365-series-desc {
    font-size: 15px;
    line-height: 1.85;
    color: #222;
    margin-top: 12px;
}

/* 더보기 버튼 */
body.single-post .a365-more,
body.single-post .more,
body.single-post .showmore {
    display: block;
    text-align: center;
    background: #eee;
    color: #666;
    min-height: 28px;
    line-height: 28px;
    margin-top: 10px;
    border-radius: 2px;
}

/* 신고 페이지 폼 정리 */
body.page .a365-report-form,
body.page .report-form {
    background: #fff;
    max-width: 760px;
    margin: 24px auto;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

body.page .a365-report-form input[type="text"],
body.page .a365-report-form textarea,
body.page .report-form input[type="text"],
body.page .report-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 12px;
    box-sizing: border-box;
}

/* 모바일 */
@media (max-width: 768px) {
    body.single-post h1,
    body.single-post .entry-title {
        font-size: 19px;
    }

    body.single-post .player iframe,
    body.single-post .video-content iframe {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    body.single-post .a365-shortcut-box ul,
    body.single-post .shortcut-box ul,
    body.single-post .keyboard-shortcuts ul {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        font-size: 13px;
    }

    body.single-post .naveps,
    body.single-post .episode-nav,
    body.single-post .a365-episode-nav {
        grid-template-columns: 1fr;
    }

    body.single-post .animefull .bigcontent,
    body.single-post .a365-series-info-inner {
        grid-template-columns: 110px 1fr;
        gap: 14px;
    }

    body.single-post .animefull .thumb img,
    body.single-post .a365-series-poster img {
        max-width: 110px;
    }

    body.single-post .a365-meta-grid,
    body.single-post .animefull .spe {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 13px;
    }

    body.single-post .animefull,
    body.single-post .a365-series-info-card {
        padding: 14px;
    }
}

/* 초소형 모바일 */
@media (max-width: 430px) {
    body.single-post .animefull .bigcontent,
    body.single-post .a365-series-info-inner {
        grid-template-columns: 1fr;
    }

    body.single-post .animefull .thumb img,
    body.single-post .a365-series-poster img {
        max-width: 180px;
    }
}


/* =========================================================
   A365 Quarter / Season Pages
   - /quarter/
   - taxonomy-season.php
========================================================= */

.a365-quarter-page,
.a365-season-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 14px 40px;
    box-sizing: border-box;
}

.a365-quarter-box,
.a365-season-head {
    background: #fff;
    border-radius: 0;
    margin-bottom: 14px;
}

.a365-quarter-title,
.a365-season-head h1 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
}

.a365-season-head p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.a365-quarter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.a365-quarter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    background: #f1f1f1;
    border-radius: 4px;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}

.a365-quarter-item:hover {
    background: #e7e7e7;
    color: #0877e8;
}

.a365-quarter-item em {
    font-style: normal;
    color: #bbb;
    font-size: 14px;
    font-weight: 600;
}

.a365-season-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
}

.a365-season-card {
    min-width: 0;
}

.a365-season-card a {
    display: block;
    color: #222;
    text-decoration: none !important;
}

.a365-season-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    border-radius: 7px;
    background: #2b2b2b;
}

.a365-season-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.a365-season-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    background: linear-gradient(180deg, #333, #111);
}

.a365-season-type {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 3px 7px;
    background: #0877e8;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.a365-season-episode {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    padding: 22px 8px 8px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}

.a365-season-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    margin: 8px 0 0;
    overflow: hidden;
    color: #222;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-align: center;
}

.a365-season-card a:hover .a365-season-card-title {
    color: #0877e8;
}

.a365-season-pagination {
    margin: 30px 0 0;
    text-align: center;
}

.a365-season-pagination ul {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a365-season-pagination a,
.a365-season-pagination span {
    display: block;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    background: #f1f1f1;
    color: #333;
    font-size: 14px;
    line-height: 34px;
    text-decoration: none !important;
}

.a365-season-pagination .current {
    background: #0877e8;
    color: #fff;
}

.a365-quarter-empty,
.a365-season-empty {
    padding: 40px 20px;
    background: #fff;
    color: #777;
    text-align: center;
}

@media (max-width: 1024px) {
    .a365-season-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .a365-quarter-page,
    .a365-season-page {
        padding: 12px 12px 34px;
    }

    .a365-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .a365-quarter-grid {
        gap: 14px 20px;
    }

    .a365-quarter-item {
        min-height: 50px;
        padding: 0 16px;
        font-size: 14px;
    }

    .a365-season-card-title {
        font-size: 13px;
        line-height: 1.42;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .a365-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .a365-quarter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .a365-quarter-item {
        min-height: 48px;
        padding: 0 12px;
        font-size: 13px;
    }

    .a365-quarter-item em {
        display: none;
    }

    .a365-season-type {
        font-size: 11px;
        padding: 3px 6px;
    }

    .a365-season-episode {
        font-size: 12px;
        padding: 20px 7px 7px;
    }
}

/* =========================================================
   A365 Quarter / Season Pages
========================================================= */

.a365-quarter-page,
.a365-season-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 14px 40px;
    box-sizing: border-box;
}

.a365-quarter-title,
.a365-season-head h1 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
}

.a365-quarter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.a365-quarter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    background: #f1f1f1;
    border-radius: 4px;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.a365-quarter-item:hover {
    background: #e7e7e7;
    color: #0877e8;
}

.a365-quarter-item em {
    font-style: normal;
    color: #bbb;
    font-size: 14px;
    font-weight: 600;
}

.a365-season-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
}

.a365-season-card a {
    display: block;
    color: #222;
    text-decoration: none !important;
}

.a365-season-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    border-radius: 7px;
    background: #2b2b2b;
}

.a365-season-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.a365-season-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    background: linear-gradient(180deg, #333, #111);
}

.a365-season-type {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 3px 7px;
    background: #0877e8;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.a365-season-episode {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    padding: 22px 8px 8px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}

.a365-season-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    margin: 8px 0 0;
    overflow: hidden;
    color: #222;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-align: center;
}

.a365-season-pagination {
    margin: 30px 0 0;
    text-align: center;
}

.a365-season-pagination ul {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a365-season-pagination a,
.a365-season-pagination span {
    display: block;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    background: #f1f1f1;
    color: #333;
    font-size: 14px;
    line-height: 34px;
    text-decoration: none !important;
}

.a365-season-pagination .current {
    background: #0877e8;
    color: #fff;
}

.a365-quarter-empty,
.a365-season-empty {
    padding: 40px 20px;
    background: #fff;
    color: #777;
    text-align: center;
}

@media (max-width: 1024px) {
    .a365-season-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .a365-quarter-page,
    .a365-season-page {
        padding: 12px 12px 34px;
    }

    .a365-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .a365-quarter-grid {
        gap: 14px 20px;
    }

    .a365-quarter-item {
        min-height: 50px;
        padding: 0 16px;
        font-size: 14px;
    }

    .a365-season-card-title {
        font-size: 13px;
        line-height: 1.42;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .a365-season-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .a365-quarter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .a365-quarter-item {
        min-height: 48px;
        padding: 0 12px;
        font-size: 13px;
    }

    .a365-quarter-item em {
        display: none;
    }

    .a365-season-type {
        font-size: 11px;
        padding: 3px 6px;
    }

    .a365-season-episode {
        font-size: 12px;
        padding: 20px 7px 7px;
    }
}
