/* latop màn hình nhỏ */
@media (min-width: 1024px) and (max-width: 1239px) {
    .main__sidebar {
        min-width: unset;
    }
    .main__sidebar-list {
        font-size: 14px;
    }
    .main__sidebar-list > i svg {
        width: 22px;
    }
    .main__thongbao h5 {
        font-size: 16px;
        line-height: 22px;
    }
    .main__app--item-img {
        height: 171px;
    }
    .main__app--list-more-item {
        width: calc(99% - 10px);
        margin-left: 10px;
    }
    .slide--l__item--name {
        font-size: 20px;
        -webkit-line-clamp: 1;
    }
    .slide--l__item--content {
        -webkit-line-clamp: 2;
    }
    .slide--l__item--button {
        font-size: 14px;
    }
    .main__rsidebar--box-head button {
        width: 100%;
        margin: 10px 0;
        display: block;
    }
    /* Watch */
    .player {
        height: 405px;
    }
    /* Profile */
    .profile__level {
        font-size: 13px;
    }
    .profile__copy-link {
        font-size: 12px;
    }
    .profile__content-item--group span {
        min-width: 100px;
        font-size: 14px;
    }
    .avt__system-box--list > img {
        width: 66px;
    }
    .avt__system-box--preview > img {
        width: 280px;
        height: 240px;
    }
}

/* Mobile và Tablet */
@media (max-width: 1023px)  {
    /* Search input */
    .header__search-input {
        margin: 0 auto;
        width: 86%;
    }
    .search__result {
        position: fixed;
    }
    .header__title {
        display: none;
    }
    .header__bar {
        display: block;
    }
    .main__sidebar {
        width: 50%;
    }
    /* Slide ảnh lớn */
    .slide--l__item--name {
        font-size: 20px;
        -webkit-line-clamp: 1;
    }
    .slide--l__item--content {
        -webkit-line-clamp: 2;
    }
    .slide--l__item--button {
        font-size: 14px;
    }
    /* footer */
    .footer__wrapper--last {
        flex-direction: column;
        align-items: baseline;
    }
    .footer__wrapper--last-author {
        margin: 20px 0;
        border-bottom: 1px solid #aaaaaa8a;
        width: 100%;
        padding-bottom: 10px;
    }
    .footer__wrapper--last-gr:first-child {
        padding-left: 0;
        margin-left: 0;
    }
    /* Show slide */
    .main .col.t-0 {
        display: block;
    }
    .main__sidebar.show {
        opacity: 1;
        transform: translateX(0);
    }
    .main__sidebar {
        top: 0;
        left: 0;
        z-index: 2;
        background-color: #1f1d2b;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
        padding: 20px 10px 10px 10px;
        transition: 0.3s linear;
        transform: translateX(-101%);
        opacity: 0;
    }
    .main__sidebar-menu .header__title {
        display: block;
        border-bottom: 2px solid #fff;
        width: 10%;
        margin-bottom: 20px;
    }
    .main__sidebar.show ~ .main__sidebar-menu--overlay {
        opacity: 1;
        position: fixed;
        top: 0;
        left: 50%;
        width: 100%;
        background: #0000004f;
        height: 100%;
        z-index: 2;
        transition-delay: 0.3s;
    }

    /* margin-main */
    .main__app {
        margin-right: 0;
    }
    /* button tren ảnh lớn */
    .slide--l__item--button {
        width: 100%;
    }
    .show-on-t-m {
        display: block;
    }
    .hide-on-t-m {
        display: none;
    }
    /* Details page */
    .details__card-img {
        height: 325px;
        width: unset;
    }
    /* Watch */
    .player {
        height: 356px;
    }
    /* Profile */
    .profile__box {
        box-shadow: unset;
        padding: unset;
        margin: unset;
        border-radius: unset;
        overflow: unset;
    }
    .profile__slide {
        margin-top: 40px;
        margin-bottom: 10px;
    }
    .profile__content-item--group span {
        min-width: 100px;
        font-size: 14px;
    }
    .profile__content-item--group button {
        width: 100%;
    }
    /* center tên phim trên mb vs tl */
    .details__card-title,
    .details__card-stitle {
        text-align: center;
    }
    .main__app--title {
        font-size: 18px;
    }
    .wrap__rsidebar {
        padding-right: 0;
    }
    /* Avt system */
    .avt__system-box--list > img {
        width: 55px;
    }
    .avt__system-box--preview > img {
        width: 250px;
        height: 220px;
    }
    .avt__system-box--list::-webkit-scrollbar {
        display: none;
    }
    .avt__system-box {
        min-height: unset;
    }
}

/* máy tính bảng */
@media (min-width: 740px) and (max-width: 1023px) {
    /* Watch */
    .player {
        height: 356px;
    }
}

/* Mobile */
@media (max-width: 740px) {
    /* Bỏ icon show trên header */
    .header__title {
        display: unset;
    }
    .header__title a {
        font-size: 20px;
    }
    .header__search-text {
        font-size: 14px;
    }
    .header__search-input>i {
        width: 10px;
    }
    .header__search-input>i svg {
        width: 14px;
    }
    .header__bar {
        display: none;
    }
    .header {
        padding: 0 20px;
    }
    /* ẩn chữ đăng nhập khi dùng mb */
    .header__action-login span {
        display: none;
    }
    .header__action-login.button {
        padding: 4px 8px;
    }
    .footer__wrapper--last {
        padding: 20px 10px 0;
    }
    .main__content,
    .main__thongbao {
        padding: 12px;
    }
    .main__thongbao h5 {
        font-size: 16px;
    }
    .main__app--item-img {
        height: 328px;
    }
    .header__action-first {
        min-width: unset;
    }
    .header__action-first>i ,
    .header__action-name {
        display: none;
    }
    .header__action-bell {
        margin-left: 0;
    }
    .main__sidebar {
        width: 75%;
    }
    .main__sidebar.show ~ .main__sidebar-menu--overlay {
        left: 75%;
    }
    .footer__wrapper--first {
        display: none;
    }
    .footer__wrapper--last {
        border-top: 1px solid #fff; 
        margin-top: 20px;
        flex-direction: column-reverse;
    }
    .footer__wrapper--last-nav {
        flex-wrap: wrap;
    }
    .footer__wrapper--last-gr {
        margin-left: 0;
    }
    .footer__wrapper--last-author {
        margin: 20px 0 0 0;
        border-top: 1px solid #aaaaaa8a;
        width: 100%;
        padding-top: 12px;
        border-bottom: unset;
    }
    .header__action--menu {
        position: fixed;
        top: var(--header-height);
        width: 100%;
        left: 0;
        border-radius: 0;
        text-align: center;
        box-shadow: 0 0 5px #000c;
    }
    .header__action--tb {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    .main__sidebar-list > i {
        width: 24px;
        height: 24px;
    }
    .main__sidebar-list {
        font-size: 14px;
    }
    .mobile__menu {
        display: unset;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 5px 15px 0 rgb(0 0 0 / 12%);
        border-top: 1px solid #2f2738;
        z-index: 1;
        height: var(--mobile-height);
        background-color: var(--primary-color);
    }
    .mobile__menu--list {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .mobile__menu--item {
        margin: 0 20px;
        color: #fff;
        position: relative;
    }
    .mobile__menu--item i svg {
        width: 28px;
    }
    .mobile__menu--item i.k-ic-bars svg {
        width: 25px;
    }
    .mobile__menu--item i.k-ic-fire svg {
        width: 22px;
    }
    .mobile__menu--item i.k-ic-up svg {
        top: 14px;
    }
    .mobile__menu--item.active::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 20.12%;
        height: 3px;
        background-color: #e93d3d;
        width: 50%;
        box-shadow: 0 0 10px red;
    }
    .footer {
        margin: 20px 0 var(--mobile-height);
    }
    /* Details page */
    .details__card-epn a {
        font-size: 14px;
        padding: 3px 5px;
    }
    .details__comment-pu {
        font-size: 12px;
    }
    .details__comment-box--act {
        flex-direction: column;
    }
    .details__comment-box--gif {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    .details__comment-box--gif img {
        margin-bottom: 10px;
    }
    .details__comment-box--item > img {
        width: 36px;
        height: 36px;
        margin-right: 4px;
    }
    .child.details__comment-box--item > img {
        width: 30px;
        height: 30px;
    }
    /* .details__comment-box--cont::before {
        content: unset;
    } */
    /* .box--page:first-child {
        margin-bottom: 10px;
    } */
    .details__comment-box--item-rep {
        margin-left: 40px;
    }
    .comment__model-body.info {
        flex-direction: column;
        align-items: start;
    }
    .main__app--title {
        font-size: 16px;
    }
    .main__app--head-text {
        margin-bottom: 9px;
    }
    .watch__wrapper-list {
        max-height: 320px;
    }
}

/* Mobile */
@media (max-width: 589px) {
    .main__app--item-img {
        height: 290px;
    }
    .details__comment-list--gif {
        width: 100%;
        /* overflow: scroll; */
    }
    .details__comment-list--gif::-webkit-scrollbar {
        height: 4px;
    }
    .profile__content-item--box-bot li div {
        flex-direction: column;
        align-items: start;
    }
    .profile__content-item--box-bot li span {
        margin-left: unset;
    }
    .profile__content-item--box-bot li a {
        font-size: 16px;
        line-height: 18px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
    .comment__model.info,
    .comment__model.edit-cmt {
        min-width: 400px;
    }
    .main__app--title {
        font-size: 15px;
    }
    /* Avt system */
    .avt__system-box {
        min-width: 400px;
    }
    .avt__system-box--list {
        max-width: 400px;
    }
    .avt__system-box--list > img {
        width: 55px;
    }
    .avt__system-box--preview > img {
        width: 200px;
        height: 180px;
    }
    svg.svg-inline--fa.fa-home.fa-w-18.fa-3x {
        width: 22px;
    }
    svg.svg-inline--fa.fa-bars.fa-w-14.fa-3x {
        width: 18px;
    }
    svg.svg-inline--fa.fa-fire.fa-w-12.fa-3x {
        width: 17px;
    }
    svg.svg-inline--fa.fa-sort-up.fa-w-10.fa-3x {
        width: 22px;
        top: 12px;
    }
}

/* Mobile */
@media (max-width: 498px) {
    .main__app--item-img {
        height: 248px;
    }
    .slide--l__item--overlay {
        border-radius: 10px;
        width: 100%;
    }
    .slide--l__item--button {
        margin-bottom: 10px;
    }
    .comment__model.info,
    .comment__model.edit-cmt {
        min-width: 340px;
    }
    .main__app--title {
        font-size: 14px;
    }
    /* Avt system */
    .avt__system-box {
        min-width: 260px;
    }
    .avt__system-box--list {
        max-width: 227px;
    }
    .avt__system-box--list > img {
        width: 30px;
    }
    .avt__system-box--preview > img {
        width: 120px;
        height: 100px;
    }
    .avt__system {
        font-size: 12px;
        top: 10px;
        bottom: unset;
        right: 0;
    }
    .avt__system-box--preview > i > svg {
        width: 30px;
        height: 30px;
    }
    .avt__system-box--foot > button {
        font-size: 10px;
        padding: 2px 8px;
    }
    .footer__wrapper--last-gr a {
        min-height: 48px;
    }
}

/* Mobile */
@media (max-width: 490px) {
    .footer__wrapper--last-gr:last-child {
        padding-left: 0;
        margin-left: 0;
        margin-top: 12px;
    }
    .player {
        height: 216px;
    }
    .profile__content-item--group {
        flex-direction: column;    
    }
    .profile__content-item--group span {
        width: 100%;
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 4px;
    }    
    .profile__content-item--input {
        width: 100%;
    }
    .textarea__gif-item, .details__comment-box--cont-text img {
        width: 38px;
        height: 38px;
    }
    .comment__model-body-left {
        margin: 0 auto;
    }
    .main__app--item-link {
        font-size: 14px;
        max-height: 50px;
    }
    .main__app--item-view {
        font-size: 12px;
    }
    .main__app--title i svg {
        width: 18px;
    }
    .profile__slide-list {
        padding: 4px 14px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 400px) {
    .main__app--item-img {
        height: 207px;
    }
    .details__card-epn a {
        font-size: 13px;
        padding: 2px 4px;
    }
    .details__card-img {
        height: 285px;
    }
    .details__card-title {
        font-size: 27px;
    }
    .player {
        height: 196px;
    }
    .watch__wrapper-title {
        font-size: 20px;
        line-height: 22px;
    }
    .watch__wrapper-head span {
        font-size: 14px;
    }
    .watch__wrapper-action--btn {
        font-size: 12px;
        padding: 2px 8px;
    }
    .watch__wrapper-eps--btn {
        font-size: 12px;
        min-width: 60px;
    }
    .textarea__gif-item, .details__comment-box--cont-text img {
        width: 32px;
        height: 32px;
    }
    .watch__wrapper-seach {
        flex-direction: column;
    }
    .watch__wrapper-seach input {
        width: 100%;
    }
    .comment__model.info,
    .comment__model.edit-cmt {
        min-width: 300px;
    }
    .comment__model {
        min-width: 300px;
    }
    .comment__model-body-left {
        margin: 0 auto;
    }
    .main__app--item-link {
        font-size: 12.5px;
        line-height: 18px;
        max-height: 42px;
    }
    .main__app--item-view {
        font-size: 11.5px;
    }
    .breadcrumb {
        padding: 4px 0 16px;
    }
    /* HH pro */
    .details__comment-box--cont-head span > span {
        font-size: 10px;
        padding: 0 6px;
    }
    .details__comment-box--cont {
        padding: 8px
    }
    .details__comment-box--cont-head h5 {
        margin-right: 8px;
        font-size: 14px;
    }
    .details__comment-box--cont-head span {
        font-size: 10px;
    }
    /* Img reply */
    .details__comment-box--gif img {
        width: 36px;
        height: 36px;
    }
    /* Btn reply */
    .details__comment-box--send {
        font-size: 12px;
        padding: 4px 8px;
    }
    .main__app--title {
        font-size: 12px;
    }
    .profile__slide-list {
        padding: 2px 12px;
        font-size: 12px;
    }
}

@media (max-width: 361px) {
    .details__comment-box-repl {
        font-size: 12px;
    }
    .details__comment--times {
        font-size: 9px;
    }
}

@media (max-width: 325px) {
    .comment__model {
        min-width: 300px;
    }
}

/**Light mode*/
@media (max-width: 1023px) {
    .main__sidebar {
        background-color: var(--primary-color);
    }
}
@media (max-width: 740px) {
    
    div.light-mode .footer__wrapper--last {
        border-top: 1px solid #1f1a1a;
    }
    div.light-mode .mobile__menu--item {
        color: #123456;
    }
}