/* DROVA — watch page and full raid player */

/* ------------------------------------------------------------ watch page */
.w-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 36px; padding-block: 28px 10px; }
.yt {
  position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; isolation: isolate;
  border-radius: 8px; border: 1px solid var(--line); background: #050605;
}
.yt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.03) 12px 13px);
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45)), linear-gradient(to top, rgba(0,0,0,.55), transparent 35%);
}
.yt-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: scale .15s;
}
.yt:hover .yt-play { scale: 1.06; }
.yt-note {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 11.5px/1 var(--mono);
  color: #b7c1ba; background: rgba(6,8,7,.78); padding: 6px 8px; border-radius: 4px;
}
.yt .dur { z-index: 2; bottom: 12px; right: 12px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.yt.on { cursor: default; }
.w-head { padding-top: 22px; }
.w-head h1 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.w-head .eyebrow { margin-bottom: 12px; }
.meta .chl { color: var(--text); font-weight: 600; }
.meta .chl:hover { color: var(--accent); }
.w-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.credit {
  margin-top: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
  padding: 14px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.6;
}
.credit b { color: var(--text); }
.credit a { color: var(--accent); }
.filed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--dim); }
.filed a { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.filed a:hover { color: var(--text); border-color: #3d4a43; }

.upnext { display: grid; gap: 4px; }
.nx { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 12px; padding: 7px; margin: 0 -7px; border-radius: 8px; transition: background .12s; }
.nx:hover { background: var(--surface); }
.nx .th { border-radius: 5px; }
.nx .th::after { display: none; }
.nx .dur { bottom: 5px; right: 5px; font-size: 10.5px; padding: 3px 5px; }
.nx-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.nx-m { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- player */
.stage { background: #000; border-bottom: 1px solid var(--line); }
.stage-in { max-width: 1320px; margin: 0 auto; }
.pl { position: relative; aspect-ratio: 16/9; background: #050605; overflow: hidden; user-select: none; }
.pl video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.pl:fullscreen { aspect-ratio: auto; }

.pl-top {
  position: absolute; inset: 0 0 auto 0; padding: 16px 20px; z-index: 3;
  display: flex; align-items: center; gap: 14px; font-size: 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent); transition: opacity .25s;
}
.pl-top .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-top .k { color: #9aa59e; font: 12px var(--mono); white-space: nowrap; }
.pl-back { color: #cfd7d1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-back:hover { color: #fff; }

.pl-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: opacity .2s, scale .2s;
}
.pl.playing .pl-big { opacity: 0; scale: .8; pointer-events: none; }
.pl-buf {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; display: none;
  font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #cfd7d1;
  background: rgba(6,8,7,.8); padding: 8px 12px; border-radius: 4px;
}
.pl.stall .pl-buf { display: block; }

.pl-ctl {
  position: absolute; inset: auto 0 0 0; padding: 26px 20px 14px; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent); transition: opacity .25s;
}
.pl.idle .pl-ctl, .pl.idle .pl-top { opacity: 0; pointer-events: none; }
.pl.idle { cursor: none; }

.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; margin-bottom: 12px; }
.bar::before { content: ""; position: absolute; inset: -8px 0; }
.bar .buf { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.32); border-radius: 2px; }
.bar .pos { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; }
.bar .knob { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); translate: -50% -50%; opacity: 0; transition: opacity .15s; }
.bar:hover .knob { opacity: 1; }

.row { display: flex; align-items: center; gap: 14px; color: #dfe5e0; font-size: 13px; }
.row button { background: none; border: 0; cursor: pointer; padding: 5px; display: grid; place-items: center; border-radius: 6px; }
.row button:hover { background: rgba(255,255,255,.1); }
.hid { display: none !important; }
.row .time { font: 12.5px var(--mono); color: #aeb8b1; font-variant-numeric: tabular-nums; }
.row .sp { margin-left: auto; }
.pill {
  border: 1px solid rgba(255,255,255,.24); border-radius: 4px; padding: 3px 8px !important;
  font: 600 11px/1.2 var(--mono); letter-spacing: .06em; min-width: 40px;
}
.pill[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.hud {
  position: absolute; right: 16px; top: 60px; z-index: 4; min-width: 200px;
  background: rgba(6,8,7,.82); border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  padding: 10px 12px; font: 11.5px/1.75 var(--mono); color: #a6b1aa;
}
.hud b { color: var(--text); font-weight: 500; }
.hud .hd { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: 10px; margin-bottom: 4px; }

/* ------------------------------------------------------------- raid page */
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 32px 10px; }
.r-main h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.r-main .eyebrow { margin-bottom: 12px; }
.r-main .w-actions { margin-top: 18px; }
.res { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; border: 1px solid; }
.res.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.res.kia { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 45%, transparent); }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; color: #d3dad5; font-size: 14px; text-align: right; }
.note {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
  padding: 14px 16px; font-size: 13px; color: var(--muted); margin-top: 22px; line-height: 1.6;
}
.note b { color: var(--text); font-weight: 600; }
.mini a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.mini a:hover b { color: var(--accent); }
.mini b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini span { font: 12px var(--mono); color: var(--dim); }

@media (max-width: 1080px) {
  .w-grid, .r-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  .hud { display: none; }
  .pl-top { padding: 10px 12px; }
  .pl-top .k { display: none; }
  .pl-ctl { padding: 18px 12px 8px; }
  .pl-big { width: 54px; height: 54px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 18%, transparent); }
  .row { gap: 8px; }
  #qual { display: none; }
  .nx { grid-template-columns: 136px minmax(0, 1fr); }
}
