/* Trang xem phim — số đo theo SPEC §7 (motchille.film, không quảng cáo). */
.wt{padding-top:8px;padding-bottom:24px}
.wt .mc-bc{margin-top:0}
.wt a:hover{color:var(--mc-accent)}

.wt-notice{width:100%;border:1px dashed var(--mc-orange-400);padding:8px 0;margin:0 0 16px;font-size:16px;line-height:24px}
.wt-notice>span{display:inline;margin:8px}
.wt-notice a{text-decoration:underline;text-decoration-color:var(--mc-orange-400)}

/* player 16:9 */
.wt-player{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--mc-r-lg);overflow:hidden}
.wt-player__art{position:absolute;inset:0}
.wt-player__art .art-video-player{border-radius:var(--mc-r-lg)}
/* Màn hẹp: ArtPlayer ép mỗi nút min-width/min-height = --art-control-height (48px) nên
   nhóm trái + phải vượt bề rộng player (358 ở 390) và bị cắt. Phải chọn qua
   .art-video-player để thắng rule gốc ".art-video-player .art-controls .art-control"
   (ArtPlayer tự chèn <style> sau file này), và phải hạ cả min-width chứ không chỉ padding. */
@media (max-width:639px){
  .wt-player .art-video-player .art-controls .art-control{min-width:34px;padding:0 3px}
  .wt-player .art-video-player .art-controls .art-control svg{width:18px;height:18px}
  .wt-player .art-video-player .art-controls .art-control-pip,
  .wt-player .art-video-player .art-controls .art-control-fullscreenWeb,
  .wt-player .art-video-player .art-controls .art-control-airplay,
  /* tua 10s: trên điện thoại đã có nhấn đúp nửa trái/phải nên bỏ nút cho đỡ chật */
  .wt-player .art-video-player .art-controls .art-control-back10,
  .wt-player .art-video-player .art-controls .art-control-fwd10{display:none}
}
.wt-player>iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}

/* nhắc chuyển tập — góc dưới phải, nằm trên thanh điều khiển */
.wt-nextup{position:absolute;right:12px;bottom:60px;z-index:60;max-width:calc(100% - 24px)}
.wt-nextup[hidden]{display:none}
.wt-nextup__box{background:rgba(8,12,18,.92);border:1px solid rgba(255,255,255,.12);border-radius:var(--mc-r-lg);padding:12px 14px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.wt-nextup__t{font-size:14px;line-height:20px;color:#fff}
.wt-nextup__t strong{color:var(--mc-accent);font-weight:600}
.wt-nextup__c{margin-top:2px;font-size:12px;line-height:16px;color:var(--mc-gray-400)}
.wt-nextup__btns{display:flex;gap:8px;margin-top:10px}
.wt-nextup__go,.wt-nextup__no{height:30px;padding:0 14px;border-radius:9999px;font-size:13px;line-height:30px;font-weight:600;transition:opacity .15s var(--mc-ease)}
.wt-nextup__go{background:var(--mc-accent);color:#000}
.wt-nextup__no{background:rgba(255,255,255,.12);color:#fff}
.wt-nextup__go:hover,.wt-nextup__no:hover{opacity:.85}
@media (max-width:639px){
  .wt-nextup{right:8px;bottom:48px;max-width:calc(100% - 16px)}
  .wt-nextup__box{padding:8px 10px}
  .wt-nextup__t{font-size:13px;line-height:18px}
  .wt-nextup__btns{margin-top:8px}
}
.wt-player__msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;font-size:14px;line-height:20px;color:var(--mc-gray-300);background:rgba(0,0,0,.75)}
.wt-player__msg[hidden]{display:none}

/* tên + công cụ · đánh giá */
.wt-bar{display:flex;flex-direction:column;gap:16px;margin-top:16px}
@media (min-width:640px){.wt-bar{flex-direction:row;justify-content:space-between;align-items:flex-start}}
.wt-bar__l{min-width:0;flex:1}
.wt-h1{font-size:18px;line-height:28px;font-weight:700}
.wt-h1 span{color:var(--mc-gray-400);font-weight:500}
@media (min-width:768px){.wt-h1{font-size:20px}}
.wt-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.wt-tool{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--mc-r);background:var(--mc-gray-800);color:var(--mc-gray-200);font-size:14px;line-height:20px;font-weight:500;transition:background .15s var(--mc-ease)}
.wt-tool:hover{background:var(--mc-gray-700);color:#fff}
.wt-tool.is-disabled{opacity:.45;pointer-events:none}
.wt-tool--accent{background:var(--mc-orange-500);color:#fff}
.wt-tool--accent:hover{background:var(--mc-orange-500);opacity:.9}
.wt-report{margin-top:8px;max-width:520px}
.wt-report[hidden]{display:none}
.wt-report textarea,.wt-cmt__form textarea{width:100%;border-radius:var(--mc-r-lg);border:1px solid var(--mc-line-2);background:rgba(255,255,255,.05);padding:10px 14px;font-size:14px;line-height:20px;resize:vertical;outline:none}
.wt-report textarea:focus,.wt-cmt__form textarea:focus{border-color:var(--mc-orange-400)}
.wt-report textarea::placeholder,.wt-cmt__form textarea::placeholder{color:var(--mc-gray-400)}
.wt-report__btns{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}

.wt-rating h3{font-size:18px;line-height:28px;font-weight:700;margin-bottom:4px}
.wt-stars{display:flex;align-items:center;gap:4px}
.wt-star{display:flex;flex:0 1 24px;min-width:0;height:24px;color:#4a5565;transition:color .15s var(--mc-ease)}
.wt-star svg{width:100%;height:100%;fill:currentColor}
.wt-star.is-on,.wt-stars.is-hover .wt-star.is-hl{color:var(--mc-yellow-400)}
.wt-stars.is-hover .wt-star:not(.is-hl){color:var(--mc-gray-700)}
.wt-stars.is-done .wt-star{cursor:default}
.wt-rating__text{margin-left:4px;font-size:12px;line-height:16px;color:rgba(255,255,255,.7);white-space:nowrap}
@media (min-width:640px){.wt-rating__text{font-size:14px;line-height:20px}}

.wt-share{display:flex;align-items:center;gap:12px;margin:16px 0 0;font-size:14px;line-height:20px;color:var(--mc-gray-300)}
.wt-share__l{display:inline-flex;align-items:center;gap:6px}
.wt-share a{color:#fff}

/* server + tập */
.wt-eps-sec{margin-top:16px}
.wt-eps-title{font-size:18px;line-height:28px;font-weight:700;margin-bottom:16px}
.wt-srv-note{width:100%;border:1px dashed var(--mc-orange-400);border-radius:var(--mc-r);padding:8px 0;margin-bottom:12px}
.wt-srv-note p{display:flex;align-items:center;gap:8px;margin:8px;font-size:14px;line-height:20px;color:#ffb86a}
.wt-srv-note svg{flex:none}
.wt-srvs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid var(--mc-gray-700)}
.wt-srv{padding:8px 12px;text-align:center;background:var(--mc-gray-800);color:var(--mc-gray-300);font-size:14px;line-height:20px;font-weight:500;transition:background .15s var(--mc-ease)}
.wt-srv:hover{background:var(--mc-gray-700)}
.wt-srv.is-active{background:var(--mc-green);color:#000}
.wt-eps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wt-eps[hidden]{display:none}
@media (min-width:640px){.wt-eps{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media (min-width:768px){.wt-eps{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media (min-width:1024px){.wt-eps{grid-template-columns:repeat(12,minmax(0,1fr))}}
.wt-ep{display:flex;align-items:center;justify-content:center;height:32px;padding:0 4px;border-radius:var(--mc-r);background:var(--mc-gray-800);font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background .15s var(--mc-ease)}
.wt .wt-ep:hover{background:var(--mc-gray-700);color:#fff}
.wt .wt-ep.is-current{background:var(--mc-accent);color:#000}
.wt-empty{border:1px dashed var(--mc-line);border-radius:var(--mc-r-xl);padding:24px 16px;text-align:center;font-size:14px;line-height:20px;color:var(--mc-gray-400)}

/* bình luận */
.wt-cmt{margin-top:32px}
.wt-cmt__head{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.wt-cmt-title{font-size:18px;line-height:28px;font-weight:700}
.wt-count{background:rgba(255,126,8,.15);color:var(--mc-accent);border-radius:9999px;padding:0 8px;font-size:12px;line-height:20px;font-weight:600}
.wt-cmt__form{display:flex;gap:12px}
/* mẫu ẩn avatar dưới 640px, textarea chiếm hết chiều ngang */
.wt-avatar{display:none}
@media (min-width:640px){.wt-avatar{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:9999px;background:var(--mc-gray-800);color:var(--mc-gray-400)}}
.wt-cmt__form textarea{flex:1;min-width:0}
.wt-cmt__form textarea:disabled{opacity:.7;cursor:not-allowed}
.wt-cmt__act{display:flex;justify-content:flex-end;margin:12px 0 16px}
.wt-pill{display:inline-flex;align-items:center;gap:6px;background:var(--mc-accent);color:#000;border-radius:9999px;padding:8px 16px;font-size:14px;line-height:20px;font-weight:600}
.wt-pill:hover{opacity:.9}

/* tóm tắt */
.wt-sum{margin-top:32px}
.wt-sum-title{font-size:20px;line-height:28px;font-weight:700;margin-bottom:16px}
.wt-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;font-size:14px;line-height:20px;color:var(--mc-gray-300)}
.wt-meta__o{color:var(--mc-gray-400)}
.wt-q{background:var(--mc-yellow-500);color:#000;font-size:12px;line-height:16px;font-weight:700;padding:2px 6px;border-radius:var(--mc-r)}
.wt-pillx{background:var(--mc-gray-800);border-radius:var(--mc-r);padding:2px 8px;transition:background .15s var(--mc-ease)}
.wt .wt-pillx:hover{background:var(--mc-gray-700);color:#fff}
/* mẫu: 14px/24, không canh đều hai bên */
.wt-sum__body{font-size:14px;line-height:24px;color:var(--mc-gray-300)}
.wt-sum__body p+p{margin-top:8px}

/* có thể bạn cũng thích */
.wt-related{margin-top:32px}
.wt-related__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.wt-nav{display:flex;gap:8px}
.wt-nav button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;background:var(--mc-gray-800)}
.wt-nav button:hover{background:var(--mc-gray-700)}
.wt-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding-bottom:4px}
.wt-track::-webkit-scrollbar{display:none}
.wt-track .mc-card-a{scroll-snap-align:start}
