/* DFS Growth — watch page v6. Uses the DFS Tube theme's tokens (--bg, --text, --accent, …). */

.dfsg-crumbs { font-size: 0.8rem; color: var(--text-muted); margin: 2px 0 10px; }
.dfsg-crumbs a { color: var(--text-muted); text-decoration: none; }
.dfsg-crumbs a:hover { color: var(--text); }

/* Player + holder (keeps layout when the player docks) */
.dfsg-player-holder { position: relative; aspect-ratio: 16 / 9; }
.dfsg-player-holder > .tube-player { position: absolute; inset: 0; }
.tube-player.dfsg-docked { position: fixed; inset: auto 20px 20px auto; width: 400px; height: 225px; z-index: 120; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
body.dfsg-theater .tube-watch { grid-template-columns: 1fr !important; }
body.dfsg-theater .dfsg-player-holder { aspect-ratio: auto; height: min(78vh, calc((100vw - var(--rail-w)) * 0.5625)); }

/* Generated art when there's no screenshot: emoji + title on the game's gradient */
.dfsg-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 1; padding: 0 12%; text-align: center; }
.dfsg-art-emoji { font-size: clamp(3rem, 9vw, 6rem); line-height: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.dfsg-art-title { font-weight: 800; font-size: clamp(1.1rem, 3.2vw, 2rem); letter-spacing: -0.01em; text-shadow: 0 2px 14px rgba(0,0,0,.45); color: #fff; }
.dfsg-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dfsg-art + .dfsg-poster-img ~ .tube-play-btn, .dfsg-poster-img ~ .tube-play-btn { z-index: 3; }
.dfsg-player .tube-player-note { z-index: 3; }
/* Art-only poster (no screenshot, or it failed to load): play button sits under the title, not on the emoji */
.js-dfsg-play:not(:has(.dfsg-poster-img)) .tube-play-btn { position: absolute; z-index: 3; left: 50%; bottom: 22%; transform: translateX(-50%); }
.js-dfsg-play:not(:has(.dfsg-poster-img)) .dfsg-art { padding-bottom: 12%; }
.dfsg-fallback .dfsg-poster-img { filter: blur(2px) brightness(.55); }
.dfsg-watch [hidden] { display: none !important; }
.dfsg-ok { color: #2fd48f; }

/* Fallback player: broken / missing demo */
.dfsg-fallback { cursor: default; }
.dfsg-fallback::after { background: rgba(0,0,0,.62) !important; }
.dfsg-fallback-box { position: relative; z-index: 2; max-width: 640px; padding: 18px; text-align: center; }
.dfsg-fallback-msg { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.dfsg-fallback-sub { color: var(--text-muted); font-size: .85rem; margin: 0 0 12px; }
.dfsg-fallback-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dfsg-pick { display: flex; flex-direction: column; gap: 4px; text-decoration: none; text-align: left; }
.dfsg-pick-art { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; overflow: hidden; }
.dfsg-pick-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dfsg-pick-art b { z-index: 2; position: absolute; right: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: .7rem; padding: 3px 7px; border-radius: 6px; }
.dfsg-pick:hover .dfsg-pick-art { outline: 2px solid var(--text); }
.dfsg-pick-name { font-size: .82rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dfsg-pick-why { font-size: .72rem; color: var(--text-muted); }

.dfsg-h1-sub { color: var(--text-muted); font-weight: 500; }
.dfsg-new { background: #2fd48f; color: #062; font-weight: 700; }

/* At a glance */
.dfsg-glance { background: var(--bg-card); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.dfsg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 18px; margin: 0; }
.dfsg-fact dt { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.dfsg-fact dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.dfsg-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.dfsg-meter-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.dfsg-meter-head span { color: var(--text-muted); }
.dfsg-meter-track { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f5b942, #3ea6ff 55%, #2fd48f); }
.dfsg-meter-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); box-shadow: 0 0 0 2px #fff; }
.dfsg-meter-median { position: absolute; top: -4px; width: 2px; height: 16px; background: rgba(255,255,255,.65); }
.dfsg-meter-note { font-size: .8rem; color: var(--text-muted); margin: 8px 0 0; line-height: 1.45; }
.dfsg-vol { display: flex; gap: 4px; }
.dfsg-vol span { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-hover); }
.dfsg-vol span.on { background: linear-gradient(90deg, #3ea6ff, #ff5a5a); }
.dfsg-missing { font-size: .78rem; color: var(--text-dim); margin: 12px 0 0; }
.dfsg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dfsg-tag { font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: var(--chip); color: var(--text-muted); }

.dfsg-muted { color: var(--text-muted); font-size: .85rem; }
.dfsg-note { border-left: 3px solid var(--accent); }
.dfsg-byline { font-size: .8rem; color: var(--text-muted); }
.dfsg-safe p { color: var(--text-muted); font-size: .88rem; }

.dfsg-table-wrap { overflow-x: auto; }
.dfsg-compare table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 480px; }
.dfsg-compare th, .dfsg-compare td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.dfsg-compare thead th { font-size: .82rem; }
.dfsg-compare thead th:nth-child(2), .dfsg-compare td:nth-child(2) { background: rgba(62,166,255,.08); }
.dfsg-na { color: var(--text-dim); }

/* Up next */
.dfsg-upnext-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dfsg-autoplay { font-size: .78rem; color: var(--text-muted); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tube-thumb .dfsg-thumb-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; text-align: center; font-size: .7rem; font-weight: 700; line-height: 1.15; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.tube-thumb .dfsg-thumb-fallback span { font-size: 1.4rem; }
.tube-thumb img { position: relative; z-index: 1; }

.dfsg-upnext-toast { position: fixed; right: 20px; bottom: 20px; z-index: 130; width: 300px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 14px 44px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 4px; }
.dfsg-upnext-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.dfsg-upnext-link { font-weight: 700; text-decoration: none; }
.dfsg-upnext-meta { font-size: .8rem; color: var(--text-muted); }
.dfsg-upnext-actions { display: flex; gap: 8px; margin-top: 8px; }
.dfsg-upnext-go { background: var(--text); color: var(--bg); text-decoration: none; }

@media (max-width: 760px) {
  .dfsg-fallback-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dfsg-fallback-box { padding: 10px; }
  .dfsg-fallback-msg { font-size: .88rem; }
  .dfsg-fallback-sub { display: none; }
  .dfsg-pick-why { display: none; }
  .dfsg-glance { margin: 12px 0 0; border-radius: var(--radius-sm); }
  .dfsg-upnext-toast { left: 12px; right: 12px; width: auto; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
