/* GhiềnPhim / PhimCity watch page V5
 * Structural port of the supplied xem-phim-bo-A.html.
 * PlayerJS internals are intentionally untouched.
 */
.pc-watch-page{width:100%;max-width:none;margin:0 auto;padding:0 24px 12px;color:#d7deec;background:#030712}
.pc-watch-page *{box-sizing:border-box}
.pc-watch-player{width:100%;margin:0 0 24px}
.pc-watch-player .app-detail-embed{width:100%!important;border:0!important;border-radius:8px!important;background:#000!important;overflow:hidden!important;box-shadow:none!important;margin:0!important}
.pc-watch-player .app-detail-embed .embed-col{width:100%!important;max-width:none!important;background:#000!important}
.pc-watch-player .app-detail-embed .embed-play,
.pc-watch-player .app-detail-embed .embed-code{background:#000!important;border-radius:8px!important;overflow:hidden!important}
.pc-watch-player .app-detail-embed .embed-cover{border-radius:8px!important;background-position:center!important;background-size:cover!important}
.pc-watch-player .app-detail-embed .embed-code.playerjs-stage,
.pc-watch-player .app-detail-embed .embed-code.iframe-stage{position:relative!important}
.pc-watch-player .app-detail-embed .embed-code.playerjs-stage #khoaiphim-playerjs,
.pc-watch-player .app-detail-embed .embed-code.iframe-stage iframe,
.pc-watch-player .app-detail-embed .embed-code iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important}
.pc-watch-player .detail-header{position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;margin:14px 0 26px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important}
.pc-watch-player .detail-header:before{content:"▶  Available Sources";display:block;color:#d5dbea;font-size:14px;font-weight:500;margin:0 0 12px;padding-left:2px;letter-spacing:-.01em}
.pc-watch-player .detail-header>.d-flex:last-child{display:none!important}
.pc-watch-player .nav-player-select{display:block!important;width:100%!important}
.pc-watch-player .nav-player-select>div{display:flex!important;flex-wrap:wrap!important;gap:10px 12px!important;align-items:center!important}
.pc-watch-player .btn-service{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:100px!important;height:44px!important;padding:0 22px!important;margin:0!important;border:1px solid #e5e7eb!important;border-radius:999px!important;background:transparent!important;color:#f4f5f7!important;font-size:14px!important;font-weight:600!important;line-height:1!important;transition:.18s ease!important;box-shadow:none!important}
.pc-watch-player .btn-service:before{content:"▶";font-size:11px;margin-right:9px;color:currentColor}
.pc-watch-player .btn-service.selected,
.pc-watch-player .btn-service:hover{background:rgba(255,255,255,.05)!important;border-color:#fff!important;color:#fff!important}

.pc-watch-info-grid{display:grid;grid-template-columns:256px minmax(0,1fr) 384px;gap:48px;align-items:start;margin:0 0 28px}
.pc-watch-poster-col{min-width:0}
.pc-watch-poster{display:block;position:relative;width:100%;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#111827}
.pc-watch-poster img{display:block;width:100%;height:100%;object-fit:cover}
.pc-watch-trailer{display:flex;width:100%;height:54px;margin-top:18px;align-items:center;justify-content:center;border:1px solid #1f2937;border-radius:7px;background:#1e293b;color:#e3e8f2;font-size:14px;font-weight:500;transition:.18s ease}
.pc-watch-trailer:hover{background:#273449;color:#fff}
.pc-watch-trailer.is-disabled{opacity:.55;cursor:not-allowed}

.pc-watch-content{min-width:0;padding-top:3px}
.pc-watch-kicker{color:#91a0bb;font-size:14px;line-height:1.4;margin-bottom:4px;letter-spacing:-.01em}
.pc-watch-kicker a{color:inherit;text-decoration:none}.pc-watch-kicker a:hover{color:#fff;text-decoration:underline}
.pc-watch-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0;color:#f7f8fb;font-size:30px;line-height:1.15;font-weight:650;letter-spacing:-.035em}
.pc-watch-title span{color:#d4d9e5;font-size:20px;font-weight:550;letter-spacing:-.025em}
.pc-watch-meta{display:flex;align-items:center;gap:24px;margin-top:13px;color:#91a0bb;font-size:13px}
.pc-watch-action-row{display:flex;align-items:center;gap:24px;margin:25px 0 28px;min-height:42px}
.pc-watch-score{position:relative;display:flex;width:44px;height:44px;align-items:center;justify-content:center;color:#fff;flex:0 0 44px}
.pc-watch-score span{position:relative;z-index:2;font-size:12px;font-weight:500}
.pc-watch-score svg{position:absolute;inset:0;width:44px;height:44px;transform:rotate(-90deg);border-radius:50%;background:rgba(251,191,36,.12)}
.pc-watch-score svg circle{fill:none;stroke:rgba(251,191,36,.2);stroke-width:3}
.pc-watch-score svg .progress{stroke:#fbbf24;stroke-linecap:round}
.pc-watch-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.pc-watch-icon,.pc-watch-like{display:inline-flex;height:40px;min-width:40px;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:0;border-radius:999px;background:#1e293b;color:#8f9ab0;text-decoration:none;cursor:pointer;transition:.18s ease}
.pc-watch-icon{width:40px;padding:0}.pc-watch-like{min-width:58px}
.pc-watch-icon svg,.pc-watch-like svg{width:17px;height:17px;flex:0 0 auto}
.pc-watch-like span{font-size:12px;color:#758098}
.pc-watch-icon:hover,.pc-watch-like:hover,.pc-watch-icon.active,.pc-watch-like.active{background:#28364b;color:#fff}
.pc-watch-reactions{display:flex;gap:5px;margin-left:22px}

.pc-watch-facts{display:grid;gap:15px;margin-top:2px;max-width:760px}
.pc-watch-facts>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:start;font-size:14px;line-height:1.55}
.pc-watch-facts span{color:#7785a1}.pc-watch-facts strong{color:#dce2ee;font-weight:500}
.pc-watch-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.pc-watch-tags a{display:inline-flex;align-items:center;min-height:34px;padding:7px 13px;border-radius:8px;background:#1e293b;color:#aeb8cc;font-size:12px;line-height:1.2;text-decoration:none;transition:.18s ease}
.pc-watch-tags a:hover{background:#2a394f;color:#fff}

.pc-watch-comment-head{display:flex;align-items:center;margin-top:26px;min-height:42px;color:#9aa5ba;font-size:13px}
.pc-watch-comment-sort{display:flex;gap:16px;white-space:nowrap}.pc-watch-comment-sort button{padding:0;border:0;background:none;color:#8b96ad;font-size:13px;cursor:pointer}.pc-watch-comment-sort button.is-active,.pc-watch-comment-sort button:hover{color:#f1f4f9}
.pc-watch-comment-line{height:1px;flex:1;margin:0 24px;background:#111827}.pc-watch-comment-count{white-space:nowrap;color:#6f7a91}
.pc-watch-comments{padding-bottom:8px}
.pc-watch-comments .comments{padding:0!important;margin:0!important}
.pc-watch-comments .comments .app-heading,
.pc-watch-comments .comments>.d-flex.align-items-center{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.pc-watch-comments .comments>.py-3{display:inline-flex!important;align-items:center!important;min-height:42px!important;margin:5px 0 14px!important;padding:0 20px!important;border-radius:999px!important;background:#1e293b!important;color:#e7ebf3!important;font-size:13px!important}
.pc-watch-comments .comments>.py-3 a{color:#fff!important;font-weight:600!important;margin-left:4px}
.pc-watch-comments .comments .post-form{margin-top:10px}
.pc-watch-comments .comments .list-comments{margin-top:12px}

.pc-watch-season-box{width:100%;height:480px;border-radius:8px;background:#111827;overflow:hidden;align-self:start}
.pc-watch-season-head{position:relative;display:flex;height:58px;align-items:center;gap:14px;padding:0 14px 0 22px;border-bottom:1px solid rgba(255,255,255,.035);color:#d9dfeb;overflow:visible}
.pc-watch-season-list-icon{width:18px;height:18px;color:#8c98ad;flex:0 0 auto}
.pc-watch-season-picker{position:relative;min-width:0;flex:1}
.pc-watch-season-toggle{display:flex;width:100%;height:42px;align-items:center;justify-content:space-between;gap:16px;padding:0 11px 0 10px;border:0!important;outline:0!important;border-radius:8px;background:transparent!important;color:#f1f5f9;font:600 14px/1.2 Inter,Arial,sans-serif;box-shadow:none!important;cursor:pointer;transition:background .15s ease,color .15s ease}
.pc-watch-season-toggle:hover,.pc-watch-season-picker.is-open .pc-watch-season-toggle{background:#1a2536!important;color:#fff}
.pc-watch-season-chevron{width:19px;height:19px;flex:0 0 auto;color:#94a3b8;transition:transform .18s ease,color .15s ease}.pc-watch-season-picker.is-open .pc-watch-season-chevron{transform:rotate(180deg);color:#eba02f}
.pc-watch-season-menu{position:absolute;z-index:80;top:calc(100% + 7px);left:0;right:0;display:none;max-height:260px;padding:7px;border:1px solid rgba(148,163,184,.12);border-radius:10px;background:#172235;box-shadow:0 18px 42px rgba(0,0,0,.36);overflow:auto}.pc-watch-season-picker.is-open .pc-watch-season-menu{display:block}
.pc-watch-season-option{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:7px;color:#b8c3d5;text-decoration:none!important;font-size:13px;transition:.15s ease}.pc-watch-season-option small{color:#71809a;font-size:11px}.pc-watch-season-option:hover,.pc-watch-season-option.is-active{background:rgba(235,160,47,.10);color:#eba02f}.pc-watch-season-option:hover small,.pc-watch-season-option.is-active small{color:#d6a34b}
.pc-watch-episode-scroll{height:calc(480px - 118px);padding:10px 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent}
.pc-watch-episode-scroll::-webkit-scrollbar{width:6px}.pc-watch-episode-scroll::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.12)}
.pc-watch-episode-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;align-items:center;min-height:43px;padding:8px 14px;border-radius:7px;color:#92a0b9;text-decoration:none;font-size:14px;transition:.15s ease}
.pc-watch-episode-row strong{font-weight:500}.pc-watch-episode-row span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pc-watch-episode-row:hover{background:rgba(235,160,47,.07);color:#eba02f}.pc-watch-episode-row.is-active{background:rgba(235,160,47,.09);color:#eba02f}
.pc-watch-goto{display:flex;height:60px;align-items:center;gap:16px;padding:0 18px 0 24px;background:#111827}
.pc-watch-goto>span{flex:1;color:#59657c;font-size:14px}
.pc-watch-goto label{display:flex;align-items:center;height:42px;min-width:128px;border-radius:8px;background:#1d293c;overflow:hidden}
.pc-watch-goto input{width:80px;height:42px;padding:0 8px;border:0!important;outline:0!important;background:transparent!important;color:#fff;text-align:center;font-size:13px;box-shadow:none!important}
.pc-watch-goto input::-webkit-inner-spin-button,.pc-watch-goto input::-webkit-outer-spin-button{appearance:none;margin:0}
.pc-watch-goto button{display:flex;width:48px;height:42px;align-items:center;justify-content:center;border:0;background:#243249;color:#dbe1ec;cursor:pointer}.pc-watch-goto button:hover{color:#eba02f}.pc-watch-goto button svg{width:17px;height:17px}

.pc-watch-ad-spacer{height:132px;position:relative}.pc-watch-ad-spacer:after{content:"";position:absolute;left:50%;top:50%;width:260px;height:1px;transform:translate(-50%,-50%);background:transparent}
.pc-watch-recommended{margin-top:0;padding-bottom:34px}.pc-watch-recommended h2{margin:0 0 24px;color:#f6f7fa;font-size:19px;line-height:1.2;font-weight:650;letter-spacing:-.02em}
.pc-watch-recommended-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:24px}
.pc-watch-card{min-width:0}.pc-watch-card-poster{display:block;width:100%;aspect-ratio:2/3;border-radius:7px;overflow:hidden;background:#111827}.pc-watch-card-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}.pc-watch-card:hover .pc-watch-card-poster img{transform:scale(1.035)}
.pc-watch-card-title{display:flex;align-items:center;gap:5px;margin-top:12px;min-width:0}.pc-watch-card-title a{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e7eaf0;text-decoration:none;font-size:14px;font-weight:500}.pc-watch-card-title a:hover{color:#eba02f}.pc-watch-card-title span{flex:0 0 auto;padding:2px 5px;border-radius:4px;background:#1e293b;color:#c3cbd9;font-size:10px}
.pc-watch-card-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:7px;color:#7f899d;font-size:12px}.pc-watch-card-meta span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pc-watch-card-meta b{flex:0 0 auto;padding:3px 6px;border-radius:4px;background:#1e293b;color:#b9c2d2;font-size:10px;font-weight:500}

/* The reference uses a centered responsive container, not viewport width.
 * Values include inner gutters because the page uses border-box sizing.
 * These selectors deliberately do not change global .container or fullscreen. */
.pc-watch-page{box-sizing:border-box}
@media (min-width:640px){.pc-watch-page{max-width:640px}}
@media (min-width:768px){.pc-watch-page{max-width:768px}}
@media (min-width:1024px){.pc-watch-page{max-width:1024px}}
@media (min-width:1280px){.pc-watch-page{max-width:1280px}}
@media (min-width:1536px){.pc-watch-page{max-width:1536px}}

@media (max-width:1500px){.pc-watch-info-grid{grid-template-columns:235px minmax(0,1fr) 355px;gap:34px}.pc-watch-recommended-grid{gap:18px}}
@media (max-width:1199px){.pc-watch-info-grid{grid-template-columns:210px minmax(0,1fr);gap:30px}.pc-watch-season-box{grid-column:1/-1;height:430px}.pc-watch-episode-scroll{height:calc(430px - 118px)}.pc-watch-recommended-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:900px){.pc-watch-page{padding:0 14px 10px}.pc-watch-info-grid{grid-template-columns:150px minmax(0,1fr);gap:20px}.pc-watch-title{font-size:24px}.pc-watch-title span{font-size:16px}.pc-watch-poster-col{grid-row:auto}.pc-watch-trailer{height:46px;font-size:13px}.pc-watch-facts>div{grid-template-columns:110px minmax(0,1fr)}.pc-watch-recommended-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pc-watch-reactions{margin-left:8px}}
@media (max-width:640px){.pc-watch-page{padding:0 10px}.pc-watch-player .detail-header{padding:0 2px!important}.pc-watch-player .btn-service{min-width:92px!important;height:40px!important;padding:0 16px!important}.pc-watch-info-grid{display:block}.pc-watch-poster-col{display:grid;grid-template-columns:104px 1fr;gap:14px;align-items:start;margin-bottom:18px}.pc-watch-poster{width:104px}.pc-watch-trailer{margin:0;height:44px}.pc-watch-content{padding-top:0}.pc-watch-kicker{font-size:13px}.pc-watch-title{font-size:22px}.pc-watch-title span{font-size:15px;display:block;width:100%}.pc-watch-meta{gap:14px;font-size:12px}.pc-watch-action-row{margin:18px 0}.pc-watch-facts>div{grid-template-columns:90px minmax(0,1fr);font-size:13px}.pc-watch-season-box{margin-top:28px;height:410px}.pc-watch-episode-scroll{height:calc(410px - 118px)}.pc-watch-ad-spacer{height:80px}.pc-watch-recommended-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pc-watch-recommended h2{font-size:18px}.pc-watch-comment-head{font-size:12px}.pc-watch-comment-line{margin:0 10px}.pc-watch-comment-sort{gap:10px}}

/* v5.1 — pre-play button + dedicated movie watch mode. */
.pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn{
  width:96px!important;
  height:96px!important;
  top:50%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,rgba(156,163,175,.76),rgba(75,85,99,.64))!important;
  box-shadow:0 14px 38px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.12)!important;
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease!important;
}
.pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn:hover{
  width:100px!important;
  height:100px!important;
  transform:translate(-50%,-50%) scale(1.035)!important;
  background:linear-gradient(145deg,rgba(174,181,192,.82),rgba(83,92,107,.72))!important;
  box-shadow:0 18px 44px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
.pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn svg{display:none!important}
.pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn:before{
  content:"";
  display:block;
  width:0;
  height:0;
  margin-left:7px;
  border-top:18px solid transparent;
  border-bottom:18px solid transparent;
  border-left:28px solid #fff;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));
}

.pc-watch-info-grid--movie{grid-template-columns:256px minmax(0,1fr);gap:48px}
.pc-watch-movie-page .pc-watch-content{max-width:none}
.pc-watch-movie-description{max-width:1100px;margin:0 0 26px;color:#aeb8cc;font-size:14px;line-height:1.8}
.pc-watch-movie-page .pc-watch-facts{max-width:900px}
.pc-watch-movie-page .pc-watch-ad-spacer{height:110px}

@media (max-width:1500px){
  .pc-watch-info-grid--movie{grid-template-columns:235px minmax(0,1fr);gap:34px}
}
@media (max-width:1199px){
  .pc-watch-info-grid--movie{grid-template-columns:210px minmax(0,1fr);gap:30px}
}
@media (max-width:900px){
  .pc-watch-info-grid--movie{grid-template-columns:150px minmax(0,1fr);gap:20px}
  .pc-watch-movie-description{font-size:13px;line-height:1.75}
}
@media (max-width:640px){
  .pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn{width:76px!important;height:76px!important}
  .pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn:hover{width:80px!important;height:80px!important}
  .pc-watch-player .app-detail-embed .embed-col .embed-play > .play-btn:before{margin-left:5px;border-top-width:14px;border-bottom-width:14px;border-left-width:22px}
  .pc-watch-info-grid--movie{display:block}
  .pc-watch-movie-page .pc-watch-ad-spacer{height:72px}
}

/* V5.2 AJAX episode navigation */
.pc-watch-page.is-episode-loading .pc-watch-season-box{pointer-events:none;opacity:.72}
.pc-watch-page.is-episode-loading .pc-watch-player{opacity:.78;transition:opacity .16s ease}
.pc-watch-season-box[aria-busy="true"]{position:relative}
.pc-watch-season-box[aria-busy="true"]:after{content:"";position:absolute;top:15px;right:17px;width:18px;height:18px;border:2px solid rgba(255,255,255,.14);border-top-color:#eba02f;border-radius:50%;animation:pcWatchSpin .7s linear infinite}
@keyframes pcWatchSpin{to{transform:rotate(360deg)}}

/* Patch 02: recommendations are siblings of .pc-watch-page, not children.
 * Use the available page width rather than 100vw (which includes scrollbar
 * width). Player/info breakpoints and the episode-navigation DOM stay intact.
 */
.pc-watch-recommended--full{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0 24px 34px;color:#d7deec;background:#030712}
.pc-watch-recommended--full *{box-sizing:border-box}
@media (max-width:900px){.pc-watch-recommended--full{padding:0 14px 34px}}
@media (max-width:640px){.pc-watch-recommended--full{padding:0 10px 34px}}
