/* Single video permalink page styles.
   Inherits tokens from vid-wrap (videos.css) when sidebar.videos is present;
   redefines same tokens on vid-single-wrap for standalone safety. */

.vid-single-wrap {
    --accent:      var(--bmm-accent);
    --accent-deep: var(--bmm-accent-deep);
    --accent-soft: var(--bmm-accent-soft);
    --line:        #e7e4ef;
    --line-soft:   #f1eff5;
    --ink:         #14121a;
    --ink-soft:    #4a4757;
    --muted:       #8a8797;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
}
.vid-single-wrap * { box-sizing: border-box; }

/* ---- Paper card ---- */
.vid-single-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: visible;
    margin-bottom: 24px;
}

/* Corner accents (mirrors vid-hdr) */
.vid-single-card .crn {
    position: absolute; width: 10px; height: 10px;
    border: 1px solid var(--accent); opacity: .75;
    pointer-events: none;
}
.vid-single-card .crn.tl { top: -1px;    left: -1px;  border-right: none;  border-bottom: none; }
.vid-single-card .crn.tr { top: -1px;    right: -1px; border-left: none;   border-bottom: none; }
.vid-single-card .crn.bl { bottom: -1px; left: -1px;  border-right: none;  border-top: none; }
.vid-single-card .crn.br { bottom: -1px; right: -1px; border-left: none;   border-top: none; }

/* ---- Breadcrumb ---- */
.vid-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
    padding: 12px 20px 0;
    font-size: 12px; color: var(--muted);
}
.vid-breadcrumb a {
    color: var(--ink-soft); text-decoration: none;
    transition: color .15s ease;
}
.vid-breadcrumb a:hover { color: var(--accent); }
.vid-breadcrumb .sep { color: var(--line); font-size: 14px; }

/* ---- Kicker ---- */
.vid-single-card .vid-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent); font-weight: 500;
    padding: 10px 20px 0;
}
.vid-single-card .vid-kicker .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bmm-accent) 15%, transparent);
}

/* ---- 16:9 player frame ---- */
.vid-player-wrap {
    margin: 10px 0 0;
    background: #0d0a14;
}
.vid-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}
.vid-player-thumb {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .3s ease, transform .4s ease;
    display: block;
}
.vid-player:hover .vid-player-thumb {
    opacity: 1;
    transform: scale(1.02);
}
.vid-player iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Play button */
.vid-play-btn {
    position: absolute; inset: 0; margin: auto;
    width: 72px; height: 72px;
    border-radius: 50%; /* play button circle - intentional exception per spec */
    background: rgba(255, 255, 255, .92);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .32);
    pointer-events: none; /* parent div handles click */
}
.vid-play-btn:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.vid-play-arrow {
    display: block;
    margin-left: 5px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent var(--accent);
}
.vid-player:hover .vid-play-btn {
    transform: scale(1.08);
    background: #fff;
    box-shadow: 0 6px 32px rgba(0, 0, 0, .4);
}

/* ---- Card body (title, meta, description) ---- */
.vid-single-body {
    padding: 16px 20px 20px;
}
.vid-single-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--ink);
}

/* Meta row */
.vid-single-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    font-size: 12px; color: var(--muted);
    margin-bottom: 14px;
}
.vid-single-meta .sep { color: var(--line); }
.vid-single-meta .by { font-family: 'Fraunces', serif; }
.vid-single-meta .by a {
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.vid-single-meta .by a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.vid-single-meta a { color: var(--ink-soft); text-decoration: none; }
.vid-single-meta a:hover { color: var(--accent); }
.vid-single-meta .game {
    font-style: italic; font-family: 'Fraunces', serif; font-size: 13px;
    color: var(--ink-soft);
}

/* Category chip */
.vid-chip {
    display: inline-block;
    font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent); font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--bmm-accent) 35%, transparent);
    padding: 2px 8px;
    border-radius: 2px;
    text-decoration: none;
    transition: background .15s ease;
}
.vid-chip:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Description prose */
.vid-single-desc {
    font-size: 14px; line-height: 1.7;
    color: var(--ink-soft);
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
    max-width: 70ch;
}

/* ---- "More from game" section ---- */
.vid-more-section { margin-top: 8px; }

/* Reuse .vid-sec, .vid-grid, .vid-card from videos.css (loaded via sidebar include
   which shares the same page context). The selectors below add nothing that would
   conflict - they are extra fallbacks in case videos.css is absent. */

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vid-single-title { font-size: 22px; }
}
@media (max-width: 600px) {
    .vid-single-body { padding: 12px 14px 16px; }
    .vid-breadcrumb  { padding: 10px 14px 0; }
    .vid-single-card .vid-kicker { padding: 8px 14px 0; }
    .vid-play-btn    { width: 56px; height: 56px; }
    .vid-play-arrow  { border-width: 11px 0 11px 18px; margin-left: 4px; }
}
