/* =========================================================
   Movie detail — info-hero (HH3D)
   ========================================================= */

/* Hide breadcrumb on movie detail */
body.single .rank-math-breadcrumb,
body.single-post .rank-math-breadcrumb,
body.single nav[aria-label="breadcrumbs"],
body.single-post nav[aria-label="breadcrumbs"],
body.single .breadcrumbs,
body.single-post .breadcrumbs {
    display: none !important;
}

/* Full-width single: no sidebar */
body.single .col.large-3,
body.single-post .col.large-3,
body.single .large-3.col,
body.single-post .large-3.col {
    display: none !important;
}

body.single .col.large-9,
body.single-post .col.large-9,
body.single .large-9.col,
body.single-post .large-9.col {
    max-width: 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
}

body.single .page-wrapper > .row > .large-9,
body.single-post .page-wrapper > .row > .large-9 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.info-hero,
.info-movie-v2,
.info-v2-lower.ah-frame-bg,
.info-v2-body.ah-frame-bg,
.info-v2-comments.ah-frame-bg,
.info-v2-inner {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

body.single,
body.single-post {
    --info-page-bg: #1c1c1c;
}

.info-hero {
    --info-page-bg: #1c1c1c;
    align-items: start;
    display: grid;
    grid-template-columns: 148px minmax(0px, 1fr);
    isolation: isolate;
    position: relative;
    background: var(--info-page-bg);
    border-radius: 0;
    gap: 18px;
    margin: 0;
    overflow: hidden;
    padding: 20px 16px 28px;
}

/* Blurred thumb ambient behind hero */
.info-hero:before,
.info-v2-ambient {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    inset: 0;
    pointer-events: none;
}

.info-v2-ambient {
    z-index: 0;
    overflow: hidden;
    opacity: 0.62;
}

.info-v2-ambient__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: blur(14px) saturate(1.15);
    transform: scale(1.08);
}

/* Soft letterbox mask — fades thumb at top/bottom */
.info-hero:before {
    background: linear-gradient(to bottom, var(--info-page-bg) 0, rgba(28, 28, 28, .72) 12%, rgba(28, 28, 28, .2) 26%, transparent 38%), linear-gradient(to top, var(--info-page-bg) 0, rgba(28, 28, 28, .78) 14%, rgba(28, 28, 28, .28) 30%, transparent 44%);
    content: "";
    z-index: 2;
}

.info-hero__media,
.info-hero__body {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.info-hero__poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    background: #222;
}

.info-hero__poster--empty {
    background: #2a2a2a;
}

.info-hero h1.info-hero__title,
.info-hero .info-hero__title {
    margin: 0 0 4px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0.01em;
    width: auto;
    display: inline-block;
    max-width: 100%;
    background: linear-gradient(180deg, #ffe08a 0%, #f5a623 45%, #fff6d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.info-hero h2.info-hero__origin,
.info-hero .info-hero__origin {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.35;
}

.info-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.info-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, color 0.15s ease;
}

.info-hero__tag:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.info-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 12px;
}

.info-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.info-hero__pill--ep {
    background: linear-gradient(135deg, rgb(58, 71, 213), rgb(0, 168, 216)) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.info-hero__pill--ep:hover {
    background: linear-gradient(135deg, rgb(48, 60, 190), rgb(0, 150, 198)) !important;
    color: #fff !important;
}

.info-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 500;
}

.info-hero__meta-item svg {
    opacity: 0.85;
    flex-shrink: 0;
}

.info-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1;
}

.info-hero__star {
    display: block;
    width: 22px;
    height: 22px;
    color: #f5c518;
    flex: 0 0 22px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.info-hero__rating-score {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.info-hero__rating-count {
    display: inline-block;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.info-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.info-hero__btn,
a.info-hero__btn,
button.info-hero__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none !important;
    letter-spacing: normal;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.12s ease;
    white-space: nowrap;
}

.info-hero__btn svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.info-hero__cta-tools .halim-rating-button.info-hero__tool--rate,
.info-hero__btn--rate,
a.info-hero__btn--rate,
.halim-rating-button.info-hero__tool--rate {
    font-size: 12px;
    font-weight: 700;
    min-height: 32px;
    height: auto;
    max-height: none;
    box-shadow: none !important;
    color: rgb(255, 255, 255) !important;
    transform: none !important;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    border-image: none;
    border-radius: 6px;
    margin: 0;
    padding: 0 11px;
    background: linear-gradient(135deg, rgb(58, 71, 213), rgb(0, 168, 216)) !important;
}

.info-hero__cta-tools .halim-rating-button.info-hero__tool--rate:hover,
.info-hero__btn--rate:hover,
a.info-hero__btn--rate:hover,
.halim-rating-button.info-hero__tool--rate:hover {
    background: linear-gradient(135deg, rgb(48, 60, 190), rgb(0, 150, 198)) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.info-movie-v2 .halim-rating-button,
.info-hero__btn--rate {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

/* Tool buttons — beat Flatsome + .info-hero__btn height:40px */
.info-hero .info-hero__tool,
.info-hero a.info-hero__btn.info-hero__tool,
.info-hero button.info-hero__btn.info-hero__tool,
.info-hero a.info-hero__btn--cmt,
.info-hero button.info-hero__btn--follow,
.info-hero a.info-hero__btn--rate {
    align-items: center;
    color: rgba(255, 255, 255, 0.92) !important;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: row;
    font-size: 12px !important;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    flex: 0 1 auto;
    gap: 5px;
    padding: 0 11px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
    position: relative;
    overflow: visible;
}

/* Comment — soft glass */
.info-hero a.info-hero__btn--cmt,
.info-hero .info-hero__tool--comment {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.info-hero a.info-hero__btn--cmt:hover,
.info-hero .info-hero__tool--comment:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

/* Follow — grey gradient */
.info-hero button.info-hero__btn--follow,
.info-hero .info-hero__tool--follow[data-action="follow"] {
    color: #fff !important;
    background: linear-gradient(135deg, rgb(74, 82, 88), rgb(95, 106, 114)) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.info-hero button.info-hero__btn--follow:hover,
.info-hero .info-hero__tool--follow[data-action="follow"]:hover {
    color: #fff !important;
    background: linear-gradient(135deg, rgb(88, 96, 104), rgb(110, 122, 130)) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.info-hero__tool--follow.active,
.info-hero__tool--follow.is-following,
.info-hero__tool--follow[data-action="unfollow"],
.info-hero button.info-hero__btn--follow.active,
.info-hero button.info-hero__btn--follow.is-following,
.info-hero button.info-hero__btn--follow[data-action="unfollow"],
.info-hero button.info-hero__btn--follow.is-following:hover,
.info-hero button.info-hero__btn--follow.is-following:focus,
.info-hero button.info-hero__btn--follow.is-following:active,
.info-hero button.info-hero__btn--follow[data-action="unfollow"]:hover,
.info-hero button.info-hero__btn--follow[data-action="unfollow"]:focus,
.info-hero button.info-hero__btn--follow[data-action="unfollow"]:active,
.info-hero .info-hero__tool--follow.is-following:hover,
.info-hero .info-hero__tool--follow.is-following:focus,
.info-hero .info-hero__tool--follow.is-following:active,
.info-hero .info-hero__tool--follow[data-action="unfollow"]:hover,
.info-hero .info-hero__tool--follow[data-action="unfollow"]:focus,
.info-hero .info-hero__tool--follow[data-action="unfollow"]:active {
    background: linear-gradient(135deg, #c2185b, #e91e63) !important;
    border-color: rgba(255, 130, 170, .55) !important;
    box-shadow: 0 2px 12px rgba(233, 30, 99, .42);
    color: #fff !important;
}

.info-hero__tool--follow.active i,
.info-hero__tool--follow.is-following i,
.info-hero__tool--follow[data-action="unfollow"] i,
.info-hero button.info-hero__btn--follow.active i,
.info-hero button.info-hero__btn--follow.is-following i,
.info-hero button.info-hero__btn--follow[data-action="unfollow"] i,
.info-hero__tool--follow.active svg,
.info-hero__tool--follow.is-following svg,
.info-hero button.info-hero__btn--follow.is-following svg,
.info-hero button.info-hero__btn--follow[data-action="unfollow"] svg {
    color: #fff !important;
    fill: #fff !important;
}

/* Rate — blue gradient (reinforce size) */
.info-hero a.info-hero__btn--rate {
    background: linear-gradient(135deg, rgb(58, 71, 213), rgb(0, 168, 216)) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.info-hero__tool-badge {
    align-items: center;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    border: none;
    border-radius: 999px;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    justify-content: center;
    line-height: 1;
    min-width: 16px;
    padding: 0 4px;
    pointer-events: none;
    position: absolute;
    right: -6px;
    top: -6px;
    z-index: 2;
}

.info-hero__tool-badge--wide {
    font-size: 8px;
    height: 16px;
    letter-spacing: -.03em;
    min-width: 26px;
    padding: 0 3px;
}

/* Primary watch CTA — own row */
.info-hero__watch,
.info-btn--primary,
.info-btn--watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    width: auto;
    min-width: 168px;
    max-width: none;
    min-height: 42px;
    padding: 0 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8a020, #c86a10 48%, #9a4a08);
    box-shadow: 0 2px 14px rgba(217, 146, 24, .35), inset 0 1px 0 hsla(0, 0%, 100%, .18);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    text-transform: none !important;
    transition: color 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease;
    -webkit-transition: color 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.info-hero__watch:hover,
.info-btn--primary:hover,
.info-btn--watch:hover {
    box-shadow: 0 4px 20px rgba(217, 146, 24, .45), inset 0 1px 0 hsla(0, 0%, 100%, .22);
    color: #fff !important;
    filter: brightness(1.03);
}

.info-hero__watch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.info-hero__watch-icon svg {
    margin-left: 2px;
}

@media (min-width: 1025px) {
    .info-hero {
        align-items: center;
        grid-template-columns: 196px minmax(0px, 1fr);
        border-radius: 0;
        gap: 22px;
        padding: 20px 22px 26px;
    }

    .info-hero,
    .info-movie-v2,
    .info-v2-lower.ah-frame-bg,
    .info-v2-body.ah-frame-bg,
    .info-v2-comments.ah-frame-bg,
    .info-v2-inner {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .info-hero__watch,
    .info-movie-v2 .info-btn--primary,
    .info-movie-v2 .info-btn--watch {
        font-size: 15px;
        min-height: 44px;
        min-width: 180px;
        padding: 0 28px;
        background: linear-gradient(135deg, #e8a020, #c86a10 48%, #9a4a08);
        border-radius: 8px;
        box-shadow: 0 2px 14px rgba(217, 146, 24, .35), inset 0 1px 0 hsla(0, 0%, 100%, .18);
        color: #fff !important;
        font-weight: 700;
    }
}

/* Mobile detail hero — poster giữa, stack dọc (HH3D) */
@media (max-width: 767px) {
    .info-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        grid-template-columns: none;
        gap: 0;
        padding: 18px 14px 22px;
    }

    .info-hero:before {
        background:
            linear-gradient(to bottom, rgba(28, 28, 28, 0.55) 0%, rgba(28, 28, 28, 0.2) 28%, transparent 48%),
            linear-gradient(to top, var(--info-page-bg) 0%, rgba(28, 28, 28, 0.82) 22%, rgba(28, 28, 28, 0.25) 48%, transparent 62%);
    }

    .info-hero__media {
        width: 168px;
        max-width: 48vw;
        margin: 0 auto 14px;
        z-index: 3;
    }

    .info-hero__poster {
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    }

    .info-hero__body {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-hero h1.info-hero__title,
    .info-hero .info-hero__title {
        font-size: 1.28rem;
        line-height: 1.28;
        text-align: center;
        margin: 0 0 6px;
    }

    .info-hero h2.info-hero__origin,
    .info-hero .info-hero__origin {
        text-align: center;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.62) !important;
        margin: 0 0 12px;
    }

    .info-hero__tags {
        justify-content: center;
        margin: 0 0 12px;
        gap: 6px;
    }

    .info-hero__tag {
        padding: 4px 10px;
        font-size: 0.72rem;
        background: rgba(255, 255, 255, 0.08);
    }

    .info-hero__meta {
        justify-content: center;
        gap: 10px 14px;
        margin: 0 0 10px;
    }

    .info-hero__rating {
        justify-content: center;
        margin: 0 0 14px;
        font-size: 0.9rem;
    }

    .info-hero__actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 10px;
    }

    .info-hero .info-hero__actions > .info-hero__btn,
    .info-hero .info-hero__actions > a.info-hero__btn,
    .info-hero .info-hero__actions > button.info-hero__btn,
    .info-hero .info-hero__actions .info-hero__btn.info-hero__tool,
    .info-hero .info-hero__actions a.info-hero__btn.info-hero__tool,
    .info-hero .info-hero__actions button.info-hero__btn.info-hero__tool,
    .info-hero .info-hero__actions a.info-hero__btn--rate,
    .info-hero .info-hero__actions .info-hero__btn--rate {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        padding: 0 6px !important;
        font-size: 0.72rem !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    .info-hero .info-hero__actions .info-hero__btn svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .info-hero__watch,
    .info-hero a.info-hero__watch {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 10px;
        font-size: 15px;
        box-shadow: 0 4px 18px rgba(217, 146, 24, 0.4), inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
    }

    /* Parts + schedule dưới hero */
    .info-v2-body .info-parts {
        margin: 4px 0 14px;
    }

    .info-v2-body .list-movies-part {
        justify-content: flex-start;
        gap: 8px;
    }

    .info-v2-body .list-movies-part > .movies-part > a {
        min-width: 72px;
        height: 36px;
        padding: 0 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        border-color: hsla(0, 0%, 100%, 0.1);
        font-size: 12px;
    }

    .info-v2-body .list-movies-part > .movies-part > a.active {
        background: #e6e6e6;
        border-color: transparent;
        color: #1a1a1a !important;
        box-shadow: none;
    }

    .info-v2-body .info-schedule {
        --info-accent: #f5c518;
        --info-accent-1: 245, 197, 24;
        background: rgba(255, 255, 255, 0.05);
        border-left: 3px solid rgba(255, 255, 255, 0.28);
        color: hsla(0, 0%, 100%, 0.78);
        font-size: 12.5px;
        line-height: 1.55;
        margin: 0 0 14px;
        padding: 10px 12px;
        text-align: left;
        border-radius: 0;
    }

    .info-v2-body .info-schedule a {
        color: #f5c518 !important;
        font-weight: 700;
    }

    .info-v2-body .info-schedule strong {
        color: #fff;
        font-weight: 800;
    }
}

/* =========================================================
   Detail lower shell — Chọn tập + Bình luận (shared bg)
   ========================================================= */

.info-v2-lower.ah-frame-bg {
    --info-page-bg: #1c1c1c;
    --info-accent: #f5a623;
    --info-accent-1: 245, 166, 35;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0px;
    position: relative;
    isolation: isolate;
    background: var(--info-page-bg);
    color: rgba(255, 255, 255, 0.9);
}

.info-v2-lower > .row,
.info-v2-lower > .row > .col,
.info-v2-lower > .row > .col > .col-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

/* =========================================================
   Detail body — schedule / Chọn tập / Nội dung
   ========================================================= */

.info-v2-body.ah-frame-bg {
    --info-page-bg: #1c1c1c;
    --info-accent: #f5a623;
    --info-accent-1: 245, 166, 35;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 16px 20px 18px;
    border: 1px solid hsla(0, 0%, 100%, 0.09);
    border-radius: 12px;
    background: var(--info-page-bg);
    color: rgba(255, 255, 255, 0.9);
}

/* —— Season / parts switcher (above schedule) —— */
.info-parts {
    margin: 4px 0 12px;
}

.list-movies-part {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.list-movies-part > .movies-part {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none;
}

.list-movies-part > .movies-part > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.list-movies-part > .movies-part > a:hover {
    border-color: rgba(var(--info-accent-1), 0.55);
    background: rgba(var(--info-accent-1), 0.12);
    color: #f2c66b !important;
}

.list-movies-part > .movies-part > a.active {
    border-color: transparent;
    background: linear-gradient(135deg, #ffc15a 0%, #f5a623 48%, #e08f12 100%);
    color: #1a1208 !important;
    box-shadow: 0 6px 14px rgba(245, 166, 35, 0.18);
}

.info-schedule {
    --info-accent: #5876c6;
    --info-accent-1: 88, 118, 198;
    background: rgba(var(--info-accent-1), 0.12);
    border-left: 3px solid rgba(var(--info-accent-1), 0.65);
    border-radius: 0;
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.info-v2-body .info-schedule {
    border-radius: 0;
    margin: 0 0 12px;
    padding: 8px 10px;
}

/* Kill Flatsome default list / tab chrome inside detail body */
.info-v2-body .nav-tabs,
.info-v2-body ul.nav {
    border-bottom: 0 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.info-v2-body .nav-tabs > li {
    float: none !important;
    margin: 0 !important;
}

.info-v2-body .nav-tabs > li > a,
.info-v2-body .hh3d-server-tab {
    background: transparent !important;
}

.info-schedule .hl-calendar,
.info-schedule .fa-calendar-alt,
.info-schedule .info-schedule__icon {
    margin-right: 4px;
    opacity: 0.9;
}

.info-schedule strong {
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.info-schedule a {
    color: var(--info-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.info-schedule a:hover {
    text-decoration: underline;
}

.info-block {
    margin: 0 0 22px;
}

.info-block__head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    margin: 0 0 14px;
}

.info-block__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: hsla(0, 0%, 100%, 0.85);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.info-block__title svg {
    flex-shrink: 0;
    display: block;
}

.info-movie-v2 .info-block--story > .info-block__title,
.info-v2-body .info-block--story > .info-block__title,
.info-block--story > .info-block__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 11px;
    border: 0;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
    border-left: 0;
    color: #f2c66b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-movie-v2 .info-block--story > .info-block__title::before,
.info-v2-body .info-block--story > .info-block__title::before,
.info-block--story > .info-block__title::before {
    content: "";
    flex-shrink: 0;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: rgb(var(--info-accent-1));
    box-shadow: 0 0 10px rgba(var(--info-accent-1), 0.35);
}

.info-block__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    min-height: 36px;
}

.info-ep-sort-btn,
.info-ep-reload-btn,
.info-v2-body .info-ep-sort-btn,
.info-v2-body .info-ep-reload-btn,
button.info-ep-sort-btn,
button.info-ep-reload-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: none !important;
    line-height: 1 !important;
    vertical-align: middle;
    cursor: pointer;
    float: none !important;
}

.info-ep-sort-btn:hover,
.info-ep-reload-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.info-ep-reload-btn.is-spinning .info-ep-reload-icon {
    animation: hh-ep-spin 0.45s linear;
}

@keyframes hh-ep-spin {
    to { transform: rotate(360deg); }
}

.info-ep-sort-btn[aria-pressed="true"] .info-ep-sort-icon--desc {
    display: none;
}

.info-ep-sort-btn[aria-pressed="true"] .info-ep-sort-icon--asc {
    display: block !important;
}

.info-ep-sort-btn:not([aria-pressed="true"]) .info-ep-sort-icon--asc {
    display: none !important;
}

.info-block__search {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #abb7c4;
    box-shadow: none !important;
    vertical-align: middle;
}

.info-block__search > svg {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
    color: #abb7c4;
    z-index: 1;
}

.info-block__search input,
.info-block__search input#keyword-ep,
.info-movie-v2 #keyword-ep,
.info-v2-body input#keyword-ep,
body.single .info-block__search input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 140px !important;
    max-width: 220px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 12px 0 32px !important;
    border: 1px solid hsla(0, 0%, 100%, 0.1) !important;
    border-radius: 4px !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.35) !important;
    background-color: rgba(0, 0, 0, 0.35) !important;
    color: #abb7c4 !important;
    font-size: 13px !important;
    line-height: 36px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.info-block__search input::placeholder,
.info-v2-body input#keyword-ep::placeholder {
    color: #abb7c4 !important;
    opacity: 0.7;
}

.info-block__search input:focus,
.info-v2-body input#keyword-ep:focus {
    background: rgba(0, 0, 0, 0.45) !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
    color: #abb7c4 !important;
    border-color: hsla(0, 0%, 100%, 0.18) !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.info-eps-empty {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.info-server-tabs {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    gap: 8px;
}

.hh3d-server-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.hh3d-server-tab__icon {
    flex-shrink: 0;
}

.info-eps-list-wrap {
    position: relative;
}

/* Default: ~4 rows (btn 40px + gap 8px) */
.info-eps-list-wrap:not(.is-expanded) .halim-list-eps {
    max-height: calc(4 * 40px + 3 * 8px);
    overflow: hidden;
}

.info-eps-list-wrap:not(.is-expanded).is-clipped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(18, 18, 18, 0.92) 70%);
}

.info-eps-list-wrap.is-expanded .halim-list-eps {
    max-height: none;
    overflow: visible;
}

.halim-list-eps {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    /* 1fr: các ô giãn đều hết hàng — hết khoảng trống lệch phải */
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 8px;
    width: 100%;
}

.info-eps-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #f2c66b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.info-eps-more:hover {
    border-color: rgba(var(--info-accent-1), 0.45);
    background: rgba(var(--info-accent-1), 0.1);
    color: #ffd27a;
}

.info-eps-more[hidden] {
    display: none !important;
}

.halim-episode {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.halim-episode a {
    display: block;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.halim-episode .halim-btn,
.halim-episode a .halim-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #2a2d33 !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.halim-episode .halim-btn:hover,
.halim-episode a:hover .halim-btn {
    background: #3a3f48 !important;
    color: #fff !important;
}

.halim-episode.is-active .halim-btn,
.halim-episode .halim-ep-current .halim-btn {
    background: linear-gradient(135deg, #ffc15a 0%, #f5a623 48%, #e08f12 100%) !important;
    color: #1a1208 !important;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.28) !important;
}

.halim-episode .halim-ep-current {
    display: block;
}

.halim-episode.is-hidden {
    display: none !important;
}

.halim-episode-empty {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Story / nội dung */
.info-block--story .halim-entry-box {
    position: relative;
}

.info-block--story .item-content {
    max-height: 7.2em;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.info-block--story .item-content.is-expanded {
    max-height: none;
}

.info-block--story .item-content p {
    margin: 0 0 0.75em;
}

.item-content-toggle {
    position: relative;
    margin-top: 4px;
}

.item-content-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--info-page-bg, #1c1c1c));
    pointer-events: none;
}

.info-block--story.is-open .item-content-gradient {
    display: none;
}

.show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--info-accent) !important;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.show-more::after {
    content: "▾";
    font-size: 0.75em;
}

.info-block--story.is-open .show-more::after {
    content: "▴";
}


/* =========================================================
   Comments — compact full-width shell (wpDiscuz)
   Scope: #myRating.info-v2-comments / .info-v2-comments
   ========================================================= */

.info-v2-comments.ah-frame-bg,
#myRating.info-v2-comments {
    --info-accent: #f5a623;
    --info-accent-1: 245, 166, 35;
    --cmt-line: hsla(0, 0%, 100%, 0.09);
    --cmt-soft: rgba(255, 255, 255, 0.04);
    --cmt-field: #0c0c0c;
    --cmt-card: rgba(18, 18, 18, 0.95);
    --cmt-text: rgba(255, 255, 255, 0.9);
    --cmt-muted: hsla(0, 0%, 100%, 0.45);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0 !important; /* chỉ top */
    margin-bottom: 0 !important;
    padding: 16px 20px 12px;
    border: 1px solid var(--cmt-line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--cmt-text);
    color-scheme: dark;
}

.info-comments__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Flatsome: diệt margin/padding bottom quanh khối bình luận */
.section:has(#myRating),
.section:has(#myRating) > .section-content,
.row:has(#myRating),
.col:has(#myRating),
.col:has(#myRating) > .col-inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Row trước khối bình luận — kéo gần lại */
.row:has(+ .row #myRating) > .col {
    padding-bottom: 8px !important;
}

/* Kill wpDiscuz #comments margin:50px — sát Rating Panel */
#myRating.info-v2-comments #comments,
#myRating #comments,
.info-v2-comments #comments,
#myRating.info-v2-comments .comments-area {
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    color: inherit !important;
    font-style: normal;
}

#myRating.info-v2-comments .info-comments__ratepanel {
    margin-bottom: 16px !important;
}

#myRating.info-v2-comments .wpd-main-form-wrapper,
#myRating.info-v2-comments .wpd-form-wrap {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* Khoảng cách form → list: chuyển sang divider/toolbar */
#myRating.info-v2-comments #wpdcom #wpd-threads,
#myRating.info-v2-comments #wpd-threads,
#myRating.info-v2-comments .wpd-thread-wrapper {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

#myRating.info-v2-comments.has-cmt-toolbar #wpdcom #wpd-threads,
#myRating.info-v2-comments.has-cmt-toolbar #wpd-threads,
#myRating.info-v2-comments.has-cmt-toolbar .wpd-thread-wrapper {
    margin-top: 0 !important;
}

/* —— Comment list divider + toolbar —— */
#myRating.info-v2-comments .hh-cmt-list-sep {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 22px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid hsla(0, 0%, 100%, 0.08);
}

#myRating.info-v2-comments .hh-cmt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#myRating.info-v2-comments .hh-cmt-toolbar.is-sorting {
    opacity: 0.72;
    pointer-events: none;
}

#myRating.info-v2-comments .hh-cmt-toolbar__left,
#myRating.info-v2-comments .hh-cmt-toolbar__right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#myRating.info-v2-comments .hh-cmt-toolbar__right {
    margin-left: auto;
}

#myRating.info-v2-comments .hh-cmt-toolbar__icon {
    flex: 0 0 auto;
    color: hsla(0, 0%, 100%, 0.55);
}

#myRating.info-v2-comments .hh-cmt-toolbar__title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Đè #wpdcom span{display:inline} của wpDiscuz — không thì số không căn giữa */
#myRating.info-v2-comments #wpdcom .hh-cmt-toolbar__badge,
#myRating.info-v2-comments .hh-cmt-toolbar__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.16);
    color: #f5c15a;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
    text-align: center;
    vertical-align: middle;
    flex: 0 0 24px;
    overflow: hidden;
    /* Font metrics làm glyph lệch lên — chỉnh quang học */
    transform: translateY(1px);
}

#myRating.info-v2-comments #wpdcom .hh-cmt-toolbar__badge[hidden],
#myRating.info-v2-comments .hh-cmt-toolbar__badge[hidden] {
    display: none !important;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-wrap {
    position: relative;
    flex: 0 0 auto;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 34px;
    min-width: 118px;
    max-width: 100%;
    margin: 0;
    padding: 0 10px 0 12px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 7px;
    background: #121212;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-btn:hover {
    border-color: hsla(0, 0%, 100%, 0.22);
    background: #171717;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-wrap.is-open .hh-cmt-toolbar__sort-btn,
#myRating.info-v2-comments .hh-cmt-toolbar__sort-btn:focus-visible {
    border-color: rgba(245, 166, 35, 0.85);
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.18);
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-value {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-chevron {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.18s ease, color 0.15s ease;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-wrap.is-open .hh-cmt-toolbar__sort-chevron {
    transform: rotate(180deg);
    color: rgba(245, 166, 35, 0.95);
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    box-sizing: border-box;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 10px;
    background: #141414;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-menu[hidden] {
    display: none !important;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-option {
    display: block;
    margin: 0;
    padding: 9px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-option:hover,
#myRating.info-v2-comments .hh-cmt-toolbar__sort-option:focus-visible {
    background: rgba(245, 166, 35, 0.14);
    color: #fff;
    outline: none;
}

#myRating.info-v2-comments .hh-cmt-toolbar__sort-option.is-active {
    background: rgba(245, 166, 35, 0.22);
    color: #f5a623;
}

#myRating.info-v2-comments .hh-cmt-empty {
    box-sizing: border-box;
    margin: 4px 0 8px;
    padding: 28px 16px;
    border: 1px dashed hsla(0, 0%, 100%, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

#myRating.info-v2-comments .hh-cmt-empty[hidden] {
    display: none !important;
}

#myRating.info-v2-comments .hh-cmt-empty__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
}

#myRating.info-v2-comments.is-cmt-empty .wpd-thread-list:empty,
#myRating.info-v2-comments.is-cmt-empty .wpd-thread-list:not(:has(.wpd-comment)) {
    min-height: 0;
}

/* Kill wpDiscuz default max-width:750px on shells only */
#myRating.info-v2-comments #wpdcom,
#myRating.info-v2-comments .comments-area,
#myRating.info-v2-comments .wpd-main-form-wrapper,
#myRating.info-v2-comments .wpd_main_comm_form,
#myRating.info-v2-comments .wpd-form,
#myRating.info-v2-comments .wpd-form-wrapper,
#myRating.info-v2-comments .wpd-form-wrap,
#myRating.info-v2-comments .wpd-thread-list,
#myRating.info-v2-comments .wpd-thread-wrapper,
#myRating.info-v2-comments .wpd-form-foot {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    float: none;
    box-sizing: border-box;
}

/* Hide plugin chrome we restyle elsewhere */
#myRating.info-v2-comments .wpdf-sorting,
#myRating.info-v2-comments .wpd-filter.wpdf-sorting,
#myRating.info-v2-comments .wpdiscuz-sort-buttons,
#myRating.info-v2-comments .wpdiscuz_top_clearing,
#myRating.info-v2-comments .wpd-form-head,
#myRating.info-v2-comments .wpd-auth,
#myRating.info-v2-comments .wpd-login,
#myRating.info-v2-comments .info-comments__login,
#myRating.info-v2-comments .wpd-sbs-toggle,
#myRating.info-v2-comments .wpdiscuz-subscribe-bar,
#myRating.info-v2-comments .wpd-thread-head,
#myRating.info-v2-comments .ql-toolbar,
#myRating.info-v2-comments .wpd-editor-buttons-right,
#myRating.info-v2-comments .wpd-editor-char-counter,
#myRating.info-v2-comments .wpdiscuz-textarea-foot,
#myRating.info-v2-comments .wpdiscuz-button-actions,
#myRating.info-v2-comments .wpd-field-icon,
#myRating.info-v2-comments label.wpdlb,
#myRating.info-v2-comments .wpd_label,
#myRating.info-v2-comments .wpd_label__check,
#myRating.info-v2-comments .wpd-comment-share,
#myRating.info-v2-comments .wpd-comment-link,
#myRating.info-v2-comments .wpd-follow-link,
#myRating.info-v2-comments .wpd-tools,
#myRating.info-v2-comments .wpd-tool-wrap,
#myRating.info-v2-comments .wpd-sep,
#myRating.info-v2-comments .wpd-space,
/* Plugin rating box được relocate vào panel — chrome mặc định ẩn, giữ #wpd-post-rating để AJAX click hoạt động */
#myRating.info-v2-comments #wpd-post-rating:not(.hh-rate-mounted) {
    display: none !important;
}

#myRating.info-v2-comments .akismet-fields-container,
#myRating.info-v2-comments .akismet-fields-container label {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* —— Header —— */
.info-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--cmt-line);
}

.info-comments__head-main,
.info-comments__head-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-comments__title,
#myRating .info-comments__title,
.info-v2-comments h2.info-comments__title {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #f2c66b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

.info-comments__title::before {
    content: "";
    flex-shrink: 0;
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: rgb(var(--info-accent-1));
}

.info-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(var(--info-accent-1), 0.14);
    color: #f2c66b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Login UI ẩn — chưa mở đăng nhập user */
.info-comments__login {
    display: none !important;
}

/* —— Rating Panel (community + interactive stars) —— */
#myRating.info-v2-comments .info-comments__ratepanel {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid var(--cmt-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
}

#myRating.info-v2-comments .info-comments__rate-community {
    flex: 0 1 35%;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px 4px 0;
}

#myRating.info-v2-comments .info-comments__rate-kicker {
    color: var(--cmt-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

#myRating.info-v2-comments .info-comments__score-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

#myRating.info-v2-comments .info-comments__score-star,
#myRating.info-v2-comments .info-comments__score-value > i.fa-star,
#myRating.info-v2-comments .info-comments__score-value > .fas {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f5c518 !important;
    font-size: 26px !important;
    line-height: 26px !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    vertical-align: middle;
}

#myRating.info-v2-comments .info-comments__score-star svg,
#myRating.info-v2-comments .info-comments__score-value .hh-score-star-svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

#myRating.info-v2-comments .info-comments__score-value strong {
    display: inline-block;
    color: #f5c518;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    padding: 0;
}

#myRating.info-v2-comments .info-comments__score-den {
    display: inline-block;
    color: hsla(0, 0%, 100%, 0.45);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    padding-top: 2px;
}

#myRating.info-v2-comments .info-comments__score-count {
    margin: 0;
    font-style: normal;
    color: var(--cmt-muted);
    font-size: 12px;
    font-weight: 500;
}

#myRating.info-v2-comments .info-comments__rate-user {
    flex: 1 1 58%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 8px 6px 16px;
    border-left: 1px solid hsla(0, 0%, 100%, 0.08);
    text-align: center;
}

#myRating.info-v2-comments .info-comments__rate-title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

#myRating.info-v2-comments .info-comments__rate-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#myRating.info-v2-comments .info-comments__rate-help {
    margin: 0;
    color: hsla(0, 0%, 100%, 0.85);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 1.35em;
}

#myRating.info-v2-comments .info-comments__rate-help.is-selected {
    color: #f2c66b;
}

#myRating.info-v2-comments .info-comments__rate-help.is-done {
    color: #f2c66b;
    font-weight: 600;
}

#myRating.info-v2-comments .info-comments__rate-help.is-error {
    color: #ff8a8a;
}

/* Mounted wpDiscuz rating — keep id for click selector */
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-left,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-right,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-value,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-title {
    display: none !important;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rating-data {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Interactive stars (not yet rated) */
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted.wpd-not-rated .wpd-rating-stars {
    display: none !important;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sao 32px + padding → hit ≥ 44px */
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg {
    box-sizing: content-box;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
    margin: 0;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    outline: none;
    transition: transform 0.14s ease, background-color 0.14s ease;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg:hover,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg:focus-visible {
    transform: scale(1.06);
    background: rgba(245, 197, 24, 0.1);
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg:focus-visible {
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.45);
}

/* Viền sao chưa chọn — sáng, dễ nhận ra vùng tương tác */
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg .wpd-star {
    fill: rgba(245, 197, 24, 0.16);
    stroke: #f0d06a;
    stroke-width: 1.15px;
    transition: fill 0.14s ease, stroke 0.14s ease;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted.wpd-not-rated .wpd-rate-starts:hover svg .wpd-star,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted.wpd-not-rated .wpd-rate-starts.is-hovering svg.hh-star-on .wpd-star {
    fill: #f5c518;
    stroke: #f5c518;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted.wpd-not-rated .wpd-rate-starts:hover svg:hover ~ svg .wpd-star,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted.wpd-not-rated .wpd-rate-starts.is-hovering svg:not(.hh-star-on) .wpd-star {
    fill: rgba(245, 197, 24, 0.16);
    stroke: #f0d06a;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg .wpd-star.wpd-active,
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg.hh-star-picked .wpd-star {
    fill: #f5c518;
    stroke: #f5c518;
}

/* Already rated — show summary stars */
#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted:not(.wpd-not-rated) .wpd-rate-starts {
    display: none !important;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted:not(.wpd-not-rated) .wpd-rating-stars {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted:not(.wpd-not-rated) .wpd-rating-stars svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: block;
    margin: 0;
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted:not(.wpd-not-rated) .wpd-rating-stars svg .wpd-star {
    fill: rgba(255, 255, 255, 0.18);
}

#myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted:not(.wpd-not-rated) .wpd-rating-stars svg .wpd-star.wpd-active {
    fill: #f5c518;
}

@media (max-width: 720px) {
    #myRating.info-v2-comments .info-comments__ratepanel {
        padding: 14px 14px;
        gap: 12px;
    }

    #myRating.info-v2-comments .info-comments__rate-community,
    #myRating.info-v2-comments .info-comments__rate-user {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        padding: 0;
        border-left: 0;
    }

    #myRating.info-v2-comments .info-comments__rate-user {
        padding-top: 12px;
        border-top: 1px solid hsla(0, 0%, 100%, 0.08);
        align-items: center;
        text-align: center;
    }

    #myRating.info-v2-comments .info-comments__score-value strong {
        font-size: 28px;
    }

    #myRating.info-v2-comments .info-comments__score-star,
    #myRating.info-v2-comments .info-comments__score-star svg,
    #myRating.info-v2-comments .info-comments__score-value .hh-score-star-svg {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px;
        font-size: 24px !important;
        line-height: 24px !important;
    }

    #myRating.info-v2-comments #wpd-post-rating.hh-rate-mounted .wpd-rate-starts svg {
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 7px; /* hit ≥ 44px */
    }
}

.info-comments__body {
    width: 100%;
    min-width: 0;
}

.info-comments__more-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 0;
}

.info-comments__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 999px;
    background: var(--cmt-soft);
    color: #f2c66b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.info-comments__more:hover {
    border-color: rgba(var(--info-accent-1), 0.45);
    background: rgba(var(--info-accent-1), 0.1);
}

.info-comments__more::after {
    content: "▾";
    font-size: 10px;
    opacity: 0.85;
}

.info-v2-comments--modern.is-cmt-clipped .wpd-thread-list > .wpd-comment.hh-cmt-overflow {
    display: none !important;
}

/* —— Composer —— */
#myRating.info-v2-comments .wpd-form,
#myRating.info-v2-comments .wpd-form-wrapper,
#myRating.info-v2-comments .wpd-main-form-wrapper {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* —— Inline Reply Composer —— giữ DOM gốc (form là con trực tiếp) —— */
#myRating.info-v2-comments .wpd-comment > .wpd-secondary-form-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-composer {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    margin: 4px 14px 12px 62px !important;
    padding: 0 !important;
    border: 1px solid hsla(0, 0%, 100%, 0.1) !important;
    border-radius: 8px !important;
    background: #121212 !important;
    clear: both !important;
    overflow: hidden !important;
    float: none !important;
    position: relative !important;
    z-index: 2;
    transform-origin: top center;
}

/* Form reply: sibling của wrap (không nhét vào comment-right) */
#myRating.info-v2-comments .wpd-comment > .wpd-secondary-form-wrapper.hh-reply-in-content,
#myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-composer.hh-reply-in-content {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: calc(100% - 62px) !important;
    margin: 6px 14px 10px 62px !important;
}

@keyframes hh-reply-open {
    from {
        opacity: 0;
        transform: translateY(-8px) scaleY(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes hh-reply-close {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scaleY(0.98);
    }
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-anim-in {
    animation: hh-reply-open 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-anim-out {
    animation: hh-reply-close 0.2s ease both !important;
    pointer-events: none !important;
}

#myRating.info-v2-comments .hh-reply-clip {
    display: contents;
}

@media (prefers-reduced-motion: reduce) {
    #myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-anim-in,
    #myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-anim-out {
        animation: none !important;
    }
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper > form.wpd_comm_form,
#myRating.info-v2-comments .wpd-secondary-form-wrapper > form.wpd-secondary-form-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper form {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

#myRating.info-v2-comments .hh-reply-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.08) !important;
    background: #161616 !important;
}

#myRating.info-v2-comments .hh-reply-bar__meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    color: hsla(0, 0%, 100%, 0.7) !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
}

#myRating.info-v2-comments .hh-reply-bar__icon,
#myRating.info-v2-comments .hh-reply-bar__icon svg {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    display: block;
    color: #f2c66b;
    stroke: currentColor;
}

#myRating.info-v2-comments .hh-reply-bar__user {
    color: #f2c66b !important;
    font-weight: 700 !important;
}

#myRating.info-v2-comments .hh-reply-bar__close {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

#myRating.info-v2-comments .hh-reply-bar__close:hover {
    color: #fff;
    background: hsla(0, 0%, 100%, 0.06);
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-field-comment,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc-field-textarea {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Đè cứng style form chính (flex/min-height/padding 48px) */
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap {
    position: static !important;
    display: block !important;
    flex-wrap: unset !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 12px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: none !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap > .wpd-avatar,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-avatar {
    display: none !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap > [id^="wpd-editor-wraper"],
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap > .wc-field-textarea {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-container,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-container.ql-snow {
    display: block !important;
    min-height: 0 !important;
    border: 1px solid hsla(0, 0%, 100%, 0.12) !important;
    border-radius: 8px !important;
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    font-size: 13px !important;
    transition: none !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-container:focus-within {
    border-color: rgba(245, 166, 35, 0.45) !important;
    box-shadow: none !important;
}

/* Nền tối đặc — tránh flash trắng khi Quill bỏ .ql-blank */
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor.ql-blank,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor:not(.ql-blank),
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor:hover,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor:focus,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor:focus-visible,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor:active,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor[contenteditable="true"] {
    min-height: 84px !important;
    max-height: 160px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    overflow-y: auto !important;
    color: #f2f5f8 !important;
    -webkit-text-fill-color: #f2f5f8 !important;
    caret-color: #f2c66b !important;
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor *,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor p,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor span {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    transition: none !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-editor.ql-blank::before {
    left: 12px !important;
    top: 10px !important;
    color: hsla(0, 0%, 100%, 0.38) !important;
    -webkit-text-fill-color: hsla(0, 0%, 100%, 0.38) !important;
    font-size: 13px !important;
    content: "Viết câu trả lời của bạn..." !important;
}

/* Textarea chỉ để submit — ẨN khi có Quill (tránh lộ <p><br></p>) */
#myRating.info-v2-comments .wpd-secondary-form-wrapper textarea.wc_comment,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc-field-textarea textarea,
#myRating.info-v2-comments .wpd-secondary-form-wrapper [id^="wpd-editor-wraper"] > textarea.wc_comment {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    resize: none !important;
}

/* Fallback: không có Quill thì hiện textarea thường */
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap.wpd-txt textarea.wc_comment,
#myRating.info-v2-comments .wpd-secondary-form-wrapper.wpd-txt textarea.wc_comment {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 84px !important;
    max-height: 160px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    overflow: auto !important;
    clip: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border: 1px solid hsla(0, 0%, 100%, 0.12) !important;
    border-radius: 8px !important;
    background: #0c0c0c !important;
    color: #f2f5f8 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    resize: vertical !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-foot {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    float: none !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-foot,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-button-actions,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-secondary-forms-social-content,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .ql-toolbar,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-head,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .hh-field-label,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .clearfix {
    display: none !important;
}

/* Reply: chỉ ẩn Tên/Email — KHÔNG clip cả .wpd-form-row (nút Gửi nằm trong đó) */
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc_name-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc_email-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row .wpdiscuz-item.wc_name-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row .wpdiscuz-item.wc_email-wrapper,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row input.wc_name,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row input.wc_email,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row label[for*="wc_name"],
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-row label[for*="wc_email"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* Ẩn cột trái (thường chứa name/email) nhưng giữ cột phải / submit */
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-col-left {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpd-form-col-right {
    width: 100% !important;
    float: none !important;
}

#myRating.info-v2-comments .hh-reply-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
}

#myRating.info-v2-comments .hh-reply-tip {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 8px 0 0;
    color: hsla(0, 0%, 100%, 0.42) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    font-style: italic;
}

#myRating.info-v2-comments .wpd-secondary-form-wrapper .wpdiscuz-textarea-wrap > .wc-field-submit,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc-field-submit,
#myRating.info-v2-comments .wpd-secondary-form-wrapper .wc_comm_submit,
#myRating.info-v2-comments .wpd-secondary-form-wrapper button.wc_comm_submit {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 0 0 auto !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #ffc15a 0%, #f5a623 48%, #e08f12 100%) !important;
    color: #1a1208 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
}

/* ========== TikTok-style Reply Thread ========== */

#myRating.info-v2-comments .wpd-toggle {
    display: none !important;
}

/* Nút "── Xem N câu trả lời" dưới action bar comment cha */
#myRating.info-v2-comments .hh-replies-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #f2c66b !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

/* Trong cột nội dung card cha — sát dưới Like/Trả lời */
#myRating.info-v2-comments .wpd-comment-right > .hh-replies-toggle,
#myRating.info-v2-comments .wpd-comment-wrap > .hh-replies-toggle {
    margin-top: 4px !important;
}

#myRating.info-v2-comments .hh-replies-toggle:hover,
#myRating.info-v2-comments .hh-replies-toggle:focus-visible {
    color: #ffd56a !important;
    outline: none;
}

#myRating.info-v2-comments .hh-replies-toggle__line {
    display: inline-block;
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    flex: 0 0 18px;
}

#myRating.info-v2-comments .hh-replies-toggle__label {
    flex: 0 1 auto;
    white-space: nowrap;
}

#myRating.info-v2-comments .hh-replies-toggle__chev {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    opacity: 0.9;
    transition: transform 0.18s ease;
}

#myRating.info-v2-comments .hh-replies-toggle.is-open,
#myRating.info-v2-comments .hh-replies-toggle[hidden] {
    display: none !important;
}

/* Panel expand/collapse — display (ổn định hơn grid 0fr với 2 child) */
#myRating.info-v2-comments .hh-replies-panel {
    display: none;
    margin: 10px 0 4px 48px;
    padding: 0;
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    box-sizing: border-box;
}

#myRating.info-v2-comments .hh-replies-panel.is-open {
    display: block;
}

#myRating.info-v2-comments .hh-replies-clip {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 2px 14px;
    border-left: 1.5px solid hsla(0, 0%, 100%, 0.14);
    overflow: visible;
}

/* Ẩn reply ngoài panel khi thu gọn */
#myRating.info-v2-comments .wpd-comment.hh-replies-collapsed > .wpd-comment.wpd-reply,
#myRating.info-v2-comments .wpd-comment.hh-replies-collapsed > .children {
    display: none !important;
}

/* Reply item — KHÔNG card */
#myRating.info-v2-comments .wpd-comment.wpd-reply,
#myRating.info-v2-comments .hh-replies-clip > .wpd-comment.wpd-reply,
#myRating.info-v2-comments .wpd-comment > .wpd-comment.wpd-reply,
#myRating.info-v2-comments .hh-replies-clip .wpd-comment.hh-reply-flat {
    position: relative;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
}

/* Nhánh ngang ngắn tới avatar */
#myRating.info-v2-comments .hh-replies-clip > .wpd-comment.wpd-reply::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 14px;
    width: 12px;
    height: 1.5px;
    background: hsla(0, 0%, 100%, 0.14);
    pointer-events: none;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-wrap,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment.wpd-reply .wpd-comment-wrap {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-wrap:hover {
    background: transparent !important;
    border-color: transparent !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-left,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-avatar,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-avatar a {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    margin: 0 !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-avatar img,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-avatar img.avatar {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    border-radius: 50% !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-right {
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-header {
    gap: 6px !important;
    margin: 0 0 2px !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-author,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-author a {
    font-size: 12.5px !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-date {
    font-size: 10.5px !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-text {
    margin: 2px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-footer {
    gap: 12px !important;
    margin: 6px 0 0 !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-vote,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-reply-button {
    height: 24px !important;
    min-height: 24px !important;
    font-size: 12px !important;
}

#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-reply-to {
    display: none !important;
}

#myRating.info-v2-comments .wpd-comment .hh-reply-mention,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-text .hh-reply-mention,
#myRating.info-v2-comments .wpd-comment.wpd-reply .wpd-comment-text a.hh-reply-mention {
    color: #60a5fa !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-right: 4px;
}

/* Nút Ẩn — sibling sau panel (không nằm trong panel đang display:none) */
#myRating.info-v2-comments .wpd-comment > .hh-replies-hide {
    display: none !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 6px 0 4px 48px !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #f2c66b !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

#myRating.info-v2-comments .wpd-comment.hh-replies-open > .hh-replies-hide {
    display: inline-flex !important;
}

#myRating.info-v2-comments .wpd-comment > .hh-replies-hide:hover {
    color: #ffd56a !important;
}

@media (max-width: 767px) {
    #myRating.info-v2-comments .wpd-comment > .hh-replies-hide {
        margin-left: 16px !important;
    }
}

#myRating.info-v2-comments .hh-replies-hide__chev {
    width: 14px;
    height: 14px;
}

#myRating.info-v2-comments .hh-footer-reply-group {
    display: contents;
}

@media (max-width: 767px) {
    #myRating.info-v2-comments .hh-replies-toggle,
    #myRating.info-v2-comments .wpd-comment-right > .hh-replies-toggle {
        margin-left: 0 !important;
        margin-top: 4px !important;
    }

    #myRating.info-v2-comments .hh-replies-panel {
        margin-left: 16px !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }

    #myRating.info-v2-comments .hh-replies-clip {
        padding-left: 12px;
    }

    #myRating.info-v2-comments .hh-replies-clip > .wpd-comment.wpd-reply::before {
        left: -12px;
        width: 10px;
    }

    #myRating.info-v2-comments .wpd-comment > .wpd-secondary-form-wrapper,
    #myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-composer,
    #myRating.info-v2-comments .wpd-secondary-form-wrapper.hh-reply-in-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 6px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #myRating.info-v2-comments .hh-replies-panel,
    #myRating.info-v2-comments .hh-replies-toggle__chev {
        transition: none !important;
    }
}

/* —— Main comment form shell: Textarea → Fields → Submit footer —— */
#myRating.info-v2-comments .wpd_main_comm_form.hh-cmt-form--stacked,
#myRating.info-v2-comments .wpd_main_comm_form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    container-type: inline-size;
    container-name: hh-cmt-form;
}

#myRating.info-v2-comments .wpdiscuz-textarea-wrap {
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 104px;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid hsla(0, 0%, 100%, 0.1) !important;
    border-radius: 10px !important;
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    color-scheme: dark;
}

#myRating.info-v2-comments .wpdiscuz-textarea-wrap:focus-within {
    border-color: rgba(var(--info-accent-1), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--info-accent-1), 0.12);
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
}

/* Kill wpDiscuz float/absolute avatar that overlaps placeholder */
#myRating.info-v2-comments .wpdiscuz-textarea-wrap > .wpd-avatar,
#myRating.info-v2-comments .wpd-field-comment .wpd-avatar {
    position: static !important;
    float: none !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    z-index: 1;
}

#myRating.info-v2-comments .wpdiscuz-textarea-wrap > .wpd-avatar img,
#myRating.info-v2-comments .wpd-field-comment .wpd-avatar img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    border: 1px solid hsla(0, 0%, 100%, 0.1) !important;
    object-fit: cover !important;
    display: block !important;
}

#myRating.info-v2-comments .wpdiscuz-textarea-wrap > [id^="wpd-editor-wraper"],
#myRating.info-v2-comments .wpdiscuz-textarea-wrap > .wc-field-textarea,
#myRating.info-v2-comments .wpd-field-comment .wc-field-textarea {
    position: static !important;
    float: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Đè cứng wpDiscuz #wpdcom .ql-container{background:#fff} — nền đặc tránh flash */
#myRating.info-v2-comments #wpdcom .ql-container,
#myRating.info-v2-comments #wpdcom .ql-container.ql-snow,
#myRating.info-v2-comments .ql-container,
#myRating.info-v2-comments .ql-container.ql-snow,
#myRating.info-v2-comments .ql-snow {
    border: 0 !important;
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    background-image: none !important;
    font-family: inherit;
    font-size: 14px;
    min-height: 92px;
    color: var(--cmt-text) !important;
    transition: none !important;
    color-scheme: dark;
}

#myRating.info-v2-comments #wpdcom .ql-editor,
#myRating.info-v2-comments #wpdcom .ql-editor.ql-blank,
#myRating.info-v2-comments #wpdcom .ql-editor:not(.ql-blank),
#myRating.info-v2-comments .ql-editor,
#myRating.info-v2-comments .ql-editor.ql-blank,
#myRating.info-v2-comments .ql-editor:not(.ql-blank),
#myRating.info-v2-comments .ql-editor:hover,
#myRating.info-v2-comments .ql-editor:focus,
#myRating.info-v2-comments .ql-editor:focus-visible,
#myRating.info-v2-comments .ql-editor:active,
#myRating.info-v2-comments .ql-editor[contenteditable="true"] {
    min-height: 92px;
    max-height: 220px;
    padding: 4px 2px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    caret-color: #f2c66b !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
    color-scheme: dark;
}

/* Đè #wpdcom .ql-editor > * { color:#666 } */
#myRating.info-v2-comments #wpdcom .ql-editor > *,
#myRating.info-v2-comments #wpdcom .ql-editor p,
#myRating.info-v2-comments #wpdcom .ql-editor span,
#myRating.info-v2-comments .ql-editor *,
#myRating.info-v2-comments .ql-editor p,
#myRating.info-v2-comments .ql-editor span {
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    transition: none !important;
}

#myRating.info-v2-comments .ql-editor.ql-blank::before {
    content: "Viết bình luận của bạn…" !important;
    left: 2px !important;
    right: 8px !important;
    top: 6px !important;
    color: hsla(0, 0%, 100%, 0.38) !important;
    -webkit-text-fill-color: hsla(0, 0%, 100%, 0.38) !important;
    font-style: normal !important;
    font-size: 14px !important;
    pointer-events: none;
    background: transparent !important;
}

/* Submit KHÔNG nằm trong textarea — footer riêng */
#myRating.info-v2-comments .wpd_main_comm_form .wpdiscuz-textarea-wrap > .wc-field-submit {
    position: static !important;
    display: none !important;
}

#myRating.info-v2-comments .hh-cmt-form-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#myRating.info-v2-comments .hh-cmt-form-footer .wc-field-submit {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
}

#myRating.info-v2-comments .wpd_main_comm_form .wpd-form-col-right[hidden] {
    display: none !important;
}

#myRating.info-v2-comments .wc_comm_submit,
#myRating.info-v2-comments input.wc_comm_submit,
#myRating.info-v2-comments button.wc_comm_submit,
#myRating.info-v2-comments .wpd_main_comm_form .wpd-prim-button.wc_comm_submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 132px;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ffc15a 0%, #f5a623 48%, #e08f12 100%) !important;
    color: #1a1208 !important;
    /* Kill wpDiscuz "Arial Hebrew" — thiếu glyph tiếng Việt */
    font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    text-transform: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(245, 166, 35, 0.16);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

#myRating.info-v2-comments .wc_comm_submit:hover,
#myRating.info-v2-comments .wpd_main_comm_form .wpd-prim-button.wc_comm_submit:hover {
    filter: brightness(1.05);
}

#myRating.info-v2-comments .wc_comm_submit:focus-visible {
    outline: 2px solid rgba(245, 166, 35, 0.85);
    outline-offset: 2px;
}

#myRating.info-v2-comments .wc_comm_submit:disabled,
#myRating.info-v2-comments .wc_comm_submit.is-loading {
    opacity: 0.65;
    cursor: wait;
    filter: grayscale(0.15);
}

/* Guest name / email — luôn hiện, chặn slideDown flash của wpDiscuz */
#myRating.info-v2-comments .wpd-form-foot,
#myRating.info-v2-comments .wpd_main_comm_form .wpd-form-foot {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    transition: none !important;
    animation: none !important;
}

/* Main composer — đè cứng nền #fff + border #ddd của plugin */
#myRating.info-v2-comments .wpd_main_comm_form .wpdiscuz-textarea-wrap,
#myRating.info-v2-comments .wpd_main_comm_form .ql-container,
#myRating.info-v2-comments .wpd_main_comm_form .ql-container.ql-snow,
#myRating.info-v2-comments .wpd_main_comm_form .ql-editor,
#myRating.info-v2-comments .wpd_main_comm_form .ql-editor.ql-blank,
#myRating.info-v2-comments .wpd_main_comm_form .ql-editor:not(.ql-blank),
#myRating.info-v2-comments .wpd_main_comm_form .ql-editor:focus,
#myRating.info-v2-comments .wpd_main_comm_form [id^="wpd-editor-"] {
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
    color-scheme: dark;
}

#myRating.info-v2-comments .wpd_main_comm_form .ql-editor,
#myRating.info-v2-comments .wpd_main_comm_form .ql-editor * {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

#myRating.info-v2-comments .wpd_main_comm_form .ql-editor.ql-blank::before {
    color: hsla(0, 0%, 100%, 0.38) !important;
    -webkit-text-fill-color: hsla(0, 0%, 100%, 0.38) !important;
}

#myRating.info-v2-comments .wpd_main_comm_form textarea.wc_comment {
    background: #0c0c0c !important;
    background-color: #0c0c0c !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

#myRating.info-v2-comments .wpd_main_comm_form .wpd-form-row,
#myRating.info-v2-comments .wpd-form-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
}

#myRating.info-v2-comments .wpd_main_comm_form .wpd-form-col-left,
#myRating.info-v2-comments .wpd-form-col-left {
    display: contents !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* Form hẹp (container) → 1 cột dù viewport desktop */
@container hh-cmt-form (max-width: 560px) {
    .wpd-form-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

#myRating.info-v2-comments .wpd-form-row > .clear,
#myRating.info-v2-comments .wpd-form-row > .clearfix,
#myRating.info-v2-comments .wpd-form-foot .clearfix {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#myRating.info-v2-comments .wpdiscuz-item,
#myRating.info-v2-comments .wc_name-wrapper,
#myRating.info-v2-comments .wc_email-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
}

#myRating.info-v2-comments .hh-field-label {
    display: block;
    padding: 0 2px;
    color: var(--cmt-muted);
    font-size: 11px;
    font-weight: 600;
}

#myRating.info-v2-comments input.wc_name,
#myRating.info-v2-comments input.wc_email,
#myRating.info-v2-comments input.wpd-field[type="text"],
#myRating.info-v2-comments input.wpd-field[type="email"] {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    outline: 0 !important;
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.08) !important;
    background: #0c0c0c !important;
    color: #f2f5f8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 44px !important;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.15s ease;
}

#myRating.info-v2-comments input.wc_name:focus,
#myRating.info-v2-comments input.wc_email:focus {
    box-shadow: inset 0 0 0 1px rgba(var(--info-accent-1), 0.55), 0 0 0 3px rgba(var(--info-accent-1), 0.12);
}

#myRating.info-v2-comments input.wc_name::placeholder,
#myRating.info-v2-comments input.wc_email::placeholder {
    color: hsla(0, 0%, 100%, 0.28);
    opacity: 1;
}

/* Guest fields — trạng thái thiếu tên/email (reply) */
#myRating.info-v2-comments input.wc_name.is-invalid,
#myRating.info-v2-comments input.wc_email.is-invalid {
    border-color: #e74c3c !important;
    box-shadow: inset 0 0 0 1px #e74c3c, 0 0 0 3px rgba(231, 76, 60, 0.18) !important;
    background: #1a0c0c !important;
}

#myRating.info-v2-comments input.wc_name.is-invalid::placeholder,
#myRating.info-v2-comments input.wc_email.is-invalid::placeholder {
    color: #ff8a80 !important;
    opacity: 1;
}

#myRating.info-v2-comments input.wc_name.is-invalid:focus,
#myRating.info-v2-comments input.wc_email.is-invalid:focus {
    box-shadow: inset 0 0 0 1px #e74c3c, 0 0 0 3px rgba(231, 76, 60, 0.22) !important;
}

/* —— Comment list —— compact grid card —— */
#myRating.info-v2-comments .wpd-thread-list,
#myRating.info-v2-comments .wpd-thread-wrapper {
    margin: 2px 0 0;
    padding: 0;
    width: 100%;
}

#myRating.info-v2-comments #wpdcom #wpd-threads,
#myRating.info-v2-comments #wpd-threads {
    margin-top: 20px !important;
}

#myRating.info-v2-comments .wpd-comment {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
    float: none;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-wrap,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-wrap {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--cmt-line) !important;
    border-radius: 10px !important;
    background: rgba(16, 16, 16, 0.92) !important;
    box-sizing: border-box !important;
    float: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-wrap:hover {
    background: rgba(20, 20, 20, 0.98) !important;
    border-color: hsla(0, 0%, 100%, 0.12) !important;
}

/* Avatar column */
#myRating.info-v2-comments .wpd-comment .wpd-comment-left,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-left {
    grid-column: 1 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-avatar,
#myRating.info-v2-comments .wpd-comment .wpd-avatar a {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-avatar img,
#myRating.info-v2-comments .wpd-comment .wpd-avatar img.avatar {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid hsla(0, 0%, 100%, 0.08) !important;
    border-radius: 50% !important;
    background: #242424 !important;
    object-fit: cover !important;
    display: block !important;
}

/* Content column */
#myRating.info-v2-comments .wpd-comment .wpd-comment-right,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-right {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
}

/* Metadata: Username → Badge → Time → Pin */
#myRating.info-v2-comments .wpd-comment .wpd-comment-header,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-author,
#myRating.info-v2-comments .wpd-comment .wpd-comment-author a,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-header .wpd-comment-author,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-header .wpd-comment-author a,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment.wpd-reply .wpd-comment-header .wpd-comment-author,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment.wpd-reply .wpd-comment-header .wpd-comment-author a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    color: #f5f5f5 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    background: transparent !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-subheader {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-date,
#myRating.info-v2-comments .wpd-comment .wpd-reply-to,
#myRating.info-v2-comments .wpd-comment-header .wpd-comment-date,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: hsla(0, 0%, 100%, 0.42) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: nowrap;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-date i {
    margin: 0 !important;
    font-size: 10px !important;
    opacity: 0.8;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-label,
#myRating.info-v2-comments .wpd-blog-user .wpd-comment-label,
#myRating.info-v2-comments .wpd-blog-post_author .wpd-comment-label,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    background: rgba(56, 189, 248, 0.1) !important;
    color: #7dd3fc !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto;
    box-sizing: border-box !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-label span,
#myRating.info-v2-comments .wpd-comment .wpd-comment-label div,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-label span {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#myRating.info-v2-comments .wpd-comment-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
    line-height: 1 !important;
}

#myRating.info-v2-comments .wpd-comment-status .wpd-sticky {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    color: #38bdf8 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    transform: none !important;
}

#myRating.info-v2-comments .wpd-comment-status .wpd-unapproved {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 2px 6px !important;
    border: 1px solid rgba(251, 146, 60, 0.35) !important;
    border-radius: 999px !important;
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fdba74 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Body text */
#myRating.info-v2-comments .wpd-comment .wpd-comment-text,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    min-height: 0 !important;
    max-height: none !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-text p {
    margin: 0 0 0.35em !important;
    padding: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-text p:last-child {
    margin-bottom: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-comment-text a {
    color: #f2c66b !important;
}

/* Actions — like | Trả lời + toggle count sát nhau */
#myRating.info-v2-comments .wpd-comment .wpd-comment-footer,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

/* Like = icon + số | Reply = icon message */
#myRating.info-v2-comments .wpd-comment .wpd-vote,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-footer .wpd-vote {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-down,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-footer .wpd-vote-down {
    display: none !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-footer .wpd-vote-up {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: hsla(0, 0%, 100%, 0.55) !important;
    opacity: 1 !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up:hover,
#wpdcom .wpd-comment .wpd-vote-up:hover {
    background: transparent !important;
    color: #5b8def !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up svg,
#wpdcom .wpd-comment .wpd-vote-up svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    color: inherit !important;
    padding: 0 !important;
    display: block !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up svg path,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up svg *,
#wpdcom .wpd-comment .wpd-vote-up svg path,
#wpdcom .wpd-comment .wpd-vote-up svg * {
    fill: none !important;
    stroke: currentColor !important;
    color: inherit !important;
}

/* Liked = xanh (đè wpDiscuz xanh lá #009149) */
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up-active,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd_vote_ored,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.is-liked,
#wpdcom .wpd-comment .wpd-vote-up.wpd-up,
#wpdcom .wpd-comment .wpd-vote-up.is-liked,
#wpdcom .wpd-up.wpd-vote-up {
    color: #2f80ed !important;
    border-color: transparent !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up svg,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.is-liked svg,
#wpdcom .wpd-comment .wpd-vote-up.wpd-up svg,
#wpdcom .wpd-comment .wpd-vote-up.is-liked svg,
#wpdcom .wpd-up svg {
    fill: #2f80ed !important;
    stroke: #2f80ed !important;
    color: #2f80ed !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up svg path,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up svg *,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.is-liked svg path,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.is-liked svg *,
#wpdcom .wpd-comment .wpd-vote-up.wpd-up svg path,
#wpdcom .wpd-comment .wpd-vote-up.wpd-up svg *,
#wpdcom .wpd-comment .wpd-vote-up.is-liked svg path,
#wpdcom .wpd-comment .wpd-vote-up.is-liked svg *,
#wpdcom .wpd-up svg path,
#wpdcom .wpd-up svg * {
    fill: #2f80ed !important;
    stroke: #2f80ed !important;
    color: #2f80ed !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-result,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-footer .wpd-vote-result {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: hsla(0, 0%, 100%, 0.7) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-vote-up.wpd-up + .wpd-vote-result,
#myRating.info-v2-comments .wpd-comment .wpd-vote-up.is-liked + .wpd-vote-result,
#myRating.info-v2-comments .wpd-comment .wpd-vote-result.wpd-up,
#myRating.info-v2-comments .wpd-comment .wpd-vote-result-like.wpd-up,
#wpdcom .wpd-comment .wpd-vote-result.wpd-up,
#wpdcom .wpd-comment .wpd-vote-result-like.wpd-up {
    color: #2f80ed !important;
}

/* Ẩn loading bar 3 gạch của wpDiscuz khi like/ajax */
#wpdiscuz-loading-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button,
#myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-reply-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: auto !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: hsla(0, 0%, 100%, 0.62) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button:hover {
    border: 0 !important;
    background: transparent !important;
    color: #f2c66b !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button i {
    display: none !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button span {
    display: inline !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: inherit !important;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
    display: block !important;
    flex: 0 0 17px;
}

#myRating.info-v2-comments .wpd-comment .wpd-reply-button svg path {
    fill: none !important;
    stroke: currentColor !important;
}

/* Nested replies styles live with Inline Reply Composer block above */

#myRating.info-v2-comments a {
    color: #f2c66b;
}

#wpdiscuz-comment-message {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* —— Responsive —— */
@media (max-width: 1023px) {
    .info-v2-body.ah-frame-bg {
        padding: 14px 16px 16px;
    }

    .info-v2-comments.ah-frame-bg,
    #myRating.info-v2-comments {
        padding: 14px 16px 12px;
    }
}

@media (max-width: 767px) {
    .info-v2-body.ah-frame-bg {
        padding: 12px 12px 14px;
        border-radius: 10px;
    }

    .info-v2-comments.ah-frame-bg,
    #myRating.info-v2-comments {
        padding: 12px 12px 10px;
        border-radius: 10px;
    }

    #myRating.info-v2-comments .hh-cmt-list-sep {
        margin-top: 16px;
        padding-top: 14px;
        border-top-color: hsla(0, 0%, 100%, 0.07);
    }

    #myRating.info-v2-comments .hh-cmt-toolbar {
        gap: 8px 10px;
        margin-bottom: 12px;
    }

    #myRating.info-v2-comments .hh-cmt-toolbar__title {
        font-size: 14px;
    }

    #myRating.info-v2-comments .hh-cmt-toolbar__sort-btn {
        height: 34px;
        min-width: 108px;
        padding: 0 8px 0 10px;
        font-size: 12.5px;
    }

    #myRating.info-v2-comments .hh-cmt-toolbar__sort-option {
        padding: 8px 10px;
        font-size: 12.5px;
    }

    #myRating.info-v2-comments .hh-cmt-empty {
        padding: 22px 12px;
    }

    #myRating.info-v2-comments .hh-cmt-empty__text {
        font-size: 13px;
    }

    /* Mobile: Textarea → Tên → Email → Gửi (căn phải) */
    #myRating.info-v2-comments .wpd_main_comm_form {
        gap: 12px !important;
    }

    #myRating.info-v2-comments .wpd_main_comm_form .wpdiscuz-textarea-wrap {
        min-height: 108px;
        padding: 12px !important;
        border-radius: 8px !important;
    }

    #myRating.info-v2-comments .wpd_main_comm_form .ql-container,
    #myRating.info-v2-comments .wpd_main_comm_form .ql-editor,
    #myRating.info-v2-comments .wpd_main_comm_form .ql-editor.ql-blank,
    #myRating.info-v2-comments .wpd_main_comm_form .ql-editor[contenteditable="true"] {
        min-height: 72px !important;
    }

    #myRating.info-v2-comments .wpd-form-row,
    #myRating.info-v2-comments .wpd_main_comm_form .wpd-form-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        flex-direction: unset !important;
        gap: 12px !important;
        width: 100% !important;
    }

    #myRating.info-v2-comments .wpd-form-col-left,
    #myRating.info-v2-comments .wpd_main_comm_form .wpd-form-col-left {
        display: contents !important;
        width: auto !important;
        float: none !important;
    }

    #myRating.info-v2-comments .wpdiscuz-item,
    #myRating.info-v2-comments .wc_name-wrapper,
    #myRating.info-v2-comments .wc_email-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    #myRating.info-v2-comments input.wc_name,
    #myRating.info-v2-comments input.wc_email {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* tránh zoom iOS */
        line-height: 1.25 !important;
        height: 44px !important;
    }

    #myRating.info-v2-comments .hh-cmt-form-footer {
        justify-content: flex-end !important;
    }

    #myRating.info-v2-comments .hh-cmt-form-footer .wc_comm_submit,
    #myRating.info-v2-comments .wpd_main_comm_form .wc_comm_submit {
        min-width: 128px;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        width: auto !important;
        max-width: none !important;
    }

    #myRating.info-v2-comments .info-comments__ratepanel {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
        gap: 0;
    }

    #myRating.info-v2-comments .info-comments__rate-community,
    #myRating.info-v2-comments .info-comments__rate-user {
        flex: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        border-left: 0;
    }

    #myRating.info-v2-comments .info-comments__rate-community {
        align-items: center;
        text-align: center;
        padding-bottom: 12px;
    }

    #myRating.info-v2-comments .info-comments__rate-user {
        padding-top: 12px;
        border-top: 1px solid hsla(0, 0%, 100%, 0.08);
    }

    #myRating.info-v2-comments .wpdiscuz-textarea-wrap > .wpd-avatar {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
    }

    #myRating.info-v2-comments .wpdiscuz-textarea-wrap > .wpd-avatar img {
        width: 32px;
        height: 32px;
        max-width: 32px;
    }

    #myRating.info-v2-comments .wpd-comment .wpd-comment-wrap,
    #myRating.info-v2-comments #wpdcom.wpd-layout-3 .wpd-comment .wpd-comment-wrap {
        padding: 10px 12px !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        border-radius: 10px !important;
    }

    #myRating.info-v2-comments .wpd-comment .wpd-comment-left,
    #myRating.info-v2-comments .wpd-comment .wpd-avatar,
    #myRating.info-v2-comments .wpd-comment .wpd-avatar a {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: auto !important;
    }

    #myRating.info-v2-comments .wpd-comment .wpd-avatar img,
    #myRating.info-v2-comments .wpd-comment .wpd-avatar img.avatar {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
    }

    #myRating.info-v2-comments .wpd-comment .wpd-comment-text {
        font-size: 13px !important;
    }

    #myRating.info-v2-comments .wpd-comment.wpd-reply,
    #myRating.info-v2-comments .hh-replies-clip > .wpd-comment.wpd-reply {
        margin-left: 0 !important;
        border-left: 0 !important;
        padding-left: 0 !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    #myRating.info-v2-comments .wpd-comment .wpd-comment-wrap,
    #myRating.info-v2-comments .wpdiscuz-textarea-wrap,
    #myRating.info-v2-comments .wc_comm_submit,
    .info-comments__more,
    .info-comments__login {
        transition: none !important;
    }
}


/* Một toast duy nhất — #hh-toast-host / window.hhShowToast — góc trên phải */
#hh-toast-host {
    position: fixed !important;
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: min(420px, calc(100vw - 24px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 2147483000 !important;
    font-family: inherit !important;
    pointer-events: none !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

.hh-toast {
    --hh-toast-accent: #ff8a00;
    --hh-toast-accent-2: #ff2070;
    position: relative !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: max-content !important;
    min-width: 260px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 18px 11px 10px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(18, 18, 20, 0.94) !important;
    color: #ececef !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease !important;
}

.hh-toast.is-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hh-toast.is-out {
    opacity: 0 !important;
    transform: translateY(-6px) !important;
}

.hh-toast__icon {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--hh-toast-accent);
    background: rgba(255, 138, 0, 0.12);
}

.hh-toast__icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.hh-toast__msg {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 2px;
}

.hh-toast__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}

.hh-toast__bar::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hh-toast-accent), var(--hh-toast-accent-2));
    transform-origin: left center;
    animation: hh-toast-bar 3.1s linear forwards;
}

@keyframes hh-toast-bar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.hh-toast--success {
    --hh-toast-accent: #4ade80;
    --hh-toast-accent-2: #22c55e;
}

.hh-toast--success .hh-toast__icon {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.16);
}

.hh-toast--info {
    --hh-toast-accent: #38bdf8;
    --hh-toast-accent-2: #22d3ee;
}

.hh-toast--info .hh-toast__icon {
    background: rgba(56, 189, 248, 0.14);
}

.hh-toast--warning {
    --hh-toast-accent: #fbbf24;
    --hh-toast-accent-2: #f59e0b;
}

.hh-toast--warning .hh-toast__icon {
    background: rgba(251, 191, 36, 0.14);
}

.hh-toast--error {
    --hh-toast-accent: #fb7185;
    --hh-toast-accent-2: #f43f5e;
}

.hh-toast--error .hh-toast__icon {
    background: rgba(251, 113, 133, 0.14);
}

@media (max-width: 640px) {
    #hh-toast-host {
        top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        right: 10px !important;
        bottom: auto !important;
        left: auto !important;
        max-width: calc(100vw - 20px) !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    .hh-toast {
        max-width: 100% !important;
        padding: 10px 13px 11px 10px !important;
        transform: translateY(-8px);
    }

    .hh-toast.is-in {
        transform: translateY(0) !important;
    }

    .hh-toast.is-out {
        transform: translateY(-6px) !important;
    }
}

@media (max-width: 640px) {
    .info-block__head {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .info-block__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .info-block__search input,
    .info-block__search input#keyword-ep {
        min-width: 120px !important;
        max-width: 160px !important;
    }

    .halim-list-eps {
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
        gap: 6px;
    }
}

/* —— Phim liên quan: same cards + Swiper drag/autoplay —— */
.hh-related-section {
    margin: 28px 0 8px;
}

.hh-related-section .hh-moi-cap-nhat-head {
    margin-bottom: 14px;
}

.hh-related-section .hh-grad-title__icon i,
.hh-related-section .hh-grad-title__icon .fas {
    background: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hh-related-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hh-related-wrap .swiper {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 0;
    border: none;
    cursor: grab;
}

.hh-related-wrap .swiper:active {
    cursor: grabbing;
}

.hh-related-wrap .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.hh-related-wrap .swiper-slide {
    width: calc((100% - 12px) / 2);
    flex-shrink: 0;
    box-sizing: border-box;
    height: auto;
}

@media (min-width: 768px) {
    .hh-related-wrap .swiper-slide {
        width: calc((100% - 28px) / 3);
    }
}

@media (min-width: 1024px) {
    .hh-related-wrap .swiper-slide {
        width: calc((100% - 64px) / 5);
    }
}

.hh-related-wrap .movie-card-update1 {
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.hh-related-wrap .movie-card-update1 img {
    pointer-events: none;
}