.mex52-movie-queue { grid-column: 2; grid-row: 1; position: sticky; z-index: 10; top: 92px; align-self: start; width: 100%; color: #20252a; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.mex52-youtube-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); align-items: start; gap: 20px; }
.mex52-youtube-layout > :first-child { grid-column: 1; grid-row: 1; min-width: 0; }
.mex52-youtube-layout > .mex52-movie-queue { grid-column: 2; grid-row: 1 / span 2; }
.mex52-youtube-layout > :not(.mex52-movie-queue):not(:first-child) { grid-column: 1; grid-row: 2; min-width: 0; }
.mex52-queue-toggle { display: none; }
.mex52-queue-toggle span { color: #e7352b; }
.mex52-queue-body { display: block; margin-top: 0; overflow: hidden; border: 1px solid #d7dde1; border-radius: 6px; background: rgba(255,255,255,.98); box-shadow: 0 8px 24px rgba(20,27,31,.1); }
.mex52-queue-body > p { margin: 8px 16px 16px; color: #68737a; font-size: 13px; line-height: 1.6; }
.mex52-queue-body > strong { display: block; padding: 16px 16px 0; }
.mex52-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px 10px; }
.mex52-queue-head div { display: flex; flex-direction: column; }
.mex52-queue-head small { margin-top: 2px; color: #7b858c; }
.mex52-queue-head label { display: flex; align-items: center; gap: 6px; color: #4c565d; font-size: 12px; white-space: nowrap; }
.mex52-queue-head input { width: 17px; height: 17px; accent-color: #e7352b; }
.mex52-queue-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 15px 10px; padding: 9px 11px; border-radius: 5px; background: #fff3e7; color: #8c3b08; font-size: 12px; }
.mex52-queue-notice[hidden] { display: none; }
.mex52-queue-notice button { flex: 0 0 auto; border: 0; background: transparent; color: #b42318; cursor: pointer; font-weight: 700; }
.mex52-queue-controls { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 7px; padding: 0 15px 12px; }
.mex52-queue-controls button, .mex52-queue-controls select { height: 36px; border: 1px solid #d7dde1; border-radius: 5px; background: #f7f8f9; color: #30383d; cursor: pointer; }
.mex52-queue-controls button { font-size: 0; }
.mex52-queue-controls button::before { font-size: 23px; line-height: 1; }
.mex52-queue-controls button[data-step="-1"]::before { content: "\2039"; }
.mex52-queue-controls button[data-step="1"]::before { content: "\203A"; }
.mex52-queue-list { max-height: min(55vh, 520px); overflow-y: auto; border-top: 1px solid #e3e7ea; }
.mex52-queue-list a { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 10px; min-height: 66px; padding: 7px 12px; overflow: hidden; color: #30383d; text-decoration: none; border-bottom: 1px solid #edf0f2; }
.mex52-queue-list a:hover { background: #f5f7f8; }
.mex52-queue-list a.current { color: #b42318; background: #fff3f1; }
.mex52-queue-list img, .mex52-queue-placeholder { display: block; width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: #e7ebed; }
.mex52-queue-list a > span:last-child { min-width: 0; }
.mex52-queue-list small { display: block; margin-bottom: 3px; color: #8a949a; font-size: 11px; }
.mex52-queue-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mex52-watch-progress { position: absolute; left: 12px; bottom: 7px; width: 96px; height: 3px; background: linear-gradient(90deg,#ef2f27 var(--watched),rgba(255,255,255,.55) var(--watched)); pointer-events: none; }
.mex52-home-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 28px max(16px, calc((100% - 1504px)/2 + 16px)) 18px; background: #15191c; color: #fff; }
.mex52-home-heading p { margin: 0 0 5px; color: #ff9f0a; font-size: 12px; font-weight: 800; }
.mex52-home-heading h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.mex52-home-heading a { color: #dce4e8; text-decoration: none; font-size: 14px; }
.mex52-continue { padding: 20px max(16px, calc((100% - 1504px)/2 + 16px)) 4px; background: #fff; }
.mex52-continue-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mex52-continue-head p { margin: 0 0 2px; color: #df342d; font-size: 11px; font-weight: 800; }
.mex52-continue-head h2 { margin: 0; color: #20252a; font-size: 21px; letter-spacing: 0; }
.mex52-continue-head span { color: #7d878d; font-size: 13px; }
.mex52-continue-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 260px); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 10px; scrollbar-width: thin; }
.mex52-continue-list a { min-width: 0; color: #20252a; text-decoration: none; }
.mex52-continue-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: #e7ebed; }
.mex52-continue-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mex52-continue-cover i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg,#e8322b var(--watched),rgba(255,255,255,.72) var(--watched)); }
.mex52-continue-list strong { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mex52-continue-list small { display: block; margin-top: 2px; color: #7d878d; }
.mex52-cinema-home [data-vod-card] { border-radius: 6px !important; }
.mex52-poster-meta { position: absolute; z-index: 12; left: 7px; right: 7px; top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none; }
.mex52-poster-meta span { max-width: 70%; overflow: hidden; padding: 3px 6px; border-radius: 3px; background: rgba(14,18,20,.82); color: #fff; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.mex52-poster-meta span:last-child { margin-left: auto; background: rgba(220,49,42,.9); }
.mex52-cinema-home main .grid.grid-cols-2.md\:grid-cols-4.lg\:grid-cols-7 { grid-template-columns: repeat(6,minmax(0,1fr)) !important; gap: 22px 16px !important; }
@media (max-width: 720px) {
  .mex52-youtube-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
  .mex52-youtube-layout > :first-child, .mex52-youtube-layout > .mex52-movie-queue, .mex52-youtube-layout > :not(.mex52-movie-queue):not(:first-child) { grid-column: 1; grid-row: auto; }
  .mex52-movie-queue { position: static; width: 100%; }
  .mex52-queue-body { max-height: 64vh; }
  .mex52-queue-list { max-height: 42vh; }
  .mex52-queue-head { padding: 12px; }
  .mex52-queue-controls { padding: 0 12px 10px; }
  .mex52-queue-list a { grid-template-columns: 112px minmax(0,1fr); min-height: 76px; padding: 8px 10px; }
  .mex52-queue-list img, .mex52-queue-placeholder { width: 112px; }
  .mex52-watch-progress { left: 10px; bottom: 8px; width: 112px; }
  .mex52-home-heading { align-items: flex-start; padding: 20px 16px 14px; }
  .mex52-home-heading h1 { font-size: 21px; }
  .mex52-home-heading a { display: none; }
  .mex52-continue { padding: 16px 16px 0; }
  .mex52-continue-head h2 { font-size: 19px; }
  .mex52-continue-list { grid-auto-columns: 74vw; gap: 10px; }
  .mex52-cinema-home main .grid.grid-cols-2.md\:grid-cols-4.lg\:grid-cols-7 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 18px 10px !important; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .mex52-youtube-layout { grid-template-columns: minmax(0,1fr); }
  .mex52-youtube-layout > :first-child, .mex52-youtube-layout > .mex52-movie-queue, .mex52-youtube-layout > :not(.mex52-movie-queue):not(:first-child) { grid-column: 1; grid-row: auto; }
  .mex52-movie-queue { position: static; }
  .mex52-cinema-home main .grid.grid-cols-2.md\:grid-cols-4.lg\:grid-cols-7 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}
