/* Vlotube movie / TV title page (everything under the player on /watch).
   Self-contained and always dark, like the Movies & TV hub it comes from. */

.vtm {
  --vtm-bg: #0b0b0f;
  --vtm-card: #16161c;
  --vtm-line: rgba(255, 255, 255, .12);
  --vtm-fg: #f1f1f1;
  --vtm-fg2: #a2a2ad;
  --vtm-accent: #e11d2f;
  --vtm-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  box-sizing: border-box;
  background: var(--vtm-bg);
  color: var(--vtm-fg);
  border-radius: 16px;
  overflow: hidden;
  margin: 18px 0 32px;
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  clear: both;
}
.vtm *, .vtm *::before, .vtm *::after { box-sizing: border-box; }
.vtm a { color: inherit; text-decoration: none; }
.vtm img { max-width: 100%; display: block; }
.vtm svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vtm button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.vtm :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.vtm [hidden] { display: none !important; }

/* ---- header ---- */
.vtm-hero { position: relative; isolation: isolate; }
.vtm-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vtm-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11, 11, 15, .97) 0%, rgba(11, 11, 15, .88) 42%, rgba(11, 11, 15, .55) 72%, rgba(11, 11, 15, .35) 100%),
  linear-gradient(0deg, var(--vtm-bg) 2%, rgba(11, 11, 15, .5) 55%, rgba(11, 11, 15, .75) 100%); }
.vtm-hero__inner { display: flex; gap: clamp(18px, 3vw, 34px); padding: clamp(22px, 3.4vw, 40px); align-items: flex-start; }

.vtm-poster { position: relative; width: clamp(120px, 15vw, 190px); flex: none; border-radius: 12px; overflow: hidden; background: #22222a; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .95); aspect-ratio: 2/3; }
.vtm-poster img { width: 100%; height: 100%; object-fit: cover; }
.vtm-flag { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.vtm-lead { min-width: 0; flex: 1 1 auto; }
.vtm-title { font-size: clamp(24px, 3.2vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0; color: #fff; }
.vtm-tagline { margin: 8px 0 0; color: var(--vtm-fg2); font-size: 15px; font-style: italic; }

.vtm-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #dcdce4; }
.vtm-facts > span, .vtm-facts > a { display: inline-flex; align-items: center; gap: 6px; }
.vtm-cert { border: 1px solid var(--vtm-line); border-radius: 4px; padding: 1px 7px; font-size: 12px; color: var(--vtm-fg2); }
.vtm-score { color: #f5c518; }
.vtm-score svg { width: 16px; height: 16px; }
.vtm-score i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--vtm-fg2); }
a.vtm-score:hover i { color: #f5c518; }

.vtm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.vtm-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 500; transition: background .15s; }
.vtm-chip:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.vtm-overview { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: #cfcfd8; max-width: 70ch; }

.vtm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; }
.vtm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: transform .15s var(--vtm-ease), background .15s, box-shadow .15s; }
.vtm-btn--play { background: var(--vtm-accent); color: #fff; box-shadow: 0 14px 34px -20px var(--vtm-accent); }
.vtm-btn--play:hover { background: #f5253a; }
.vtm-btn:active { transform: scale(.97); }
.vtm-icon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; color: #e9e9f1; transition: background .15s, color .15s, transform .15s var(--vtm-ease); }
.vtm-icon:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.vtm-icon:active { transform: scale(.95); }
.vtm-icon .fa { font-size: 15px; }
.vtm-icon.active, .vtm-icon[saved], .vtm-icon[liked], .vtm-icon[disliked] { background: #fff; color: #0b0b0f; }
.vtm-like .likes { font-variant-numeric: tabular-nums; }
.vtm-sub { margin: 16px 0 0; font-size: 13px; color: var(--vtm-fg2); }

/* ---- tabs ---- */
.vtm-body { padding: 0 clamp(18px, 3.4vw, 40px) clamp(24px, 3vw, 36px); }
.vtm-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--vtm-line); margin: 0 0 22px; scrollbar-width: none; }
.vtm-tabs::-webkit-scrollbar { display: none; }
.vtm-tab { position: relative; flex: none; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--vtm-fg2); white-space: nowrap; transition: color .15s; }
.vtm-tab:hover { color: var(--vtm-fg); }
.vtm-tab.is-on { color: #fff; }
.vtm-tab.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--vtm-accent); }

.vtm-panel { animation: vtm-fade .25s var(--vtm-ease) both; }
@keyframes vtm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vtm-synopsis { font-size: 15px; line-height: 1.7; color: #d6d6de; margin: 0 0 22px; max-width: 80ch; }
.vtm-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.vtm-fact { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--vtm-card); }
.vtm-fact dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--vtm-fg2); margin: 0 0 4px; }
.vtm-fact dd { margin: 0; font-size: 14px; color: var(--vtm-fg); overflow-wrap: anywhere; }

/* ---- cast ---- */
.vtm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 12px; }
.vtm-person { text-align: center; min-width: 0; }
.vtm-person__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: #26262f; }
.vtm-person__img--empty { display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--vtm-fg2); }
.vtm-person__name { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.vtm-person__role { display: block; font-size: 12px; color: var(--vtm-fg2); margin-top: 2px; overflow-wrap: anywhere; }

/* ---- more like this ---- */
.vtm-more.vth { padding: 0; max-width: none; background: none; border-radius: 0; overflow: visible; }
.vtm-more .vth-grid--posters { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---- reviews: PlayTube's comment block, toned down to fit ---- */
.vtm-panel--reviews .content, .vtm-panel--reviews .pt_shadow { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-left: 0; padding-right: 0; }
.vtm-panel--reviews { color: var(--vtm-fg); }

@media (max-width: 860px) {
  .vtm-hero__inner { flex-direction: column; }
  .vtm-poster { width: clamp(110px, 32vw, 150px); }
  .vtm-hero__shade { background: linear-gradient(0deg, var(--vtm-bg) 12%, rgba(11, 11, 15, .82) 60%, rgba(11, 11, 15, .7) 100%); }
  .vtm-overview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .vtm { border-radius: 12px; }
  .vtm-actions { gap: 8px; }
  .vtm-btn { flex: 1 1 100%; }
}

/* ---- the player above the page: a centred cinema frame ---- */
.player-video.movie { float: none; margin: 0 auto; max-width: 1320px; }
.player-video.movie .video-player,
.player-video.movie .mejs__container,
.player-video.movie .pt_video_player { border-radius: 14px; overflow: hidden; background: #000; }
.vtm-wrap { float: none; clear: both; }
