/* Video görüşler şeridi ve oynatıcı (Views/Shared/_VideoReviewStrip.cshtml). Theme tokens come from ybo-theme.css. */
.vr-block { display: grid; gap: .75rem; min-width: 0; }
.vr-heading { margin: 0; }
.vr-gap-after { margin-bottom: 1.75rem; }
.vr-count { font-weight: 500; color: var(--foreground); opacity: .6; }

.vr-strip {
    list-style: none; margin: 0; padding: .25rem .125rem .75rem; display: flex; gap: .75rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; max-width: 100%;
}
.vr-item { flex: 0 0 auto; scroll-snap-align: start; }
@media (min-width: 768px) {
    .vr-strip { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding-bottom: .25rem; gap: 1rem; }
    .vr-strip--center { justify-content: center; }
}

.vr-tile {
    position: relative; display: block; width: 9rem; aspect-ratio: 9 / 16; padding: 0; margin: 0; border: 1px solid var(--border);
    border-radius: 1rem; overflow: hidden; background: #1c1917; color: #fff; cursor: pointer; text-align: left;
    box-shadow: 0 6px 18px -10px rgb(0 0 0 / .45); transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 768px) { .vr-tile { width: 11rem; } }
.vr-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .55); }
.vr-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vr-tile, .vr-tile:hover { transition: none; transform: none; } }

.vr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #1c1917; }
.vr-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .25) 38%, rgb(0 0 0 / 0) 60%); pointer-events: none; }
.vr-play {
    position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--action-on-primary, #fff);
    box-shadow: 0 4px 14px rgb(0 0 0 / .35); pointer-events: none;
}
.vr-play svg { width: 1.35rem; height: 1.35rem; margin-left: .15rem; }
.vr-duration {
    position: absolute; top: .5rem; right: .5rem; padding: .1rem .45rem; border-radius: 9999px; background: rgb(0 0 0 / .6);
    color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; pointer-events: none;
}
.vr-name {
    position: absolute; left: .625rem; right: .625rem; bottom: .625rem; color: #fff; font-size: .85rem; font-weight: 600;
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgb(0 0 0 / .6); pointer-events: none;
}

/* Pages listing several courses: the course name sits under the student's name. */
.vr-tile--context .vr-name { bottom: 1.75rem; }
.vr-context {
    position: absolute; left: .625rem; right: .625rem; bottom: .625rem; color: rgb(255 255 255 / .82); font-size: .7rem; font-weight: 500;
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgb(0 0 0 / .6); pointer-events: none;
}

/* Lightbox */
.vr-dialog {
    /* Above the fixed mobile tab bar / sub-nav (9999), the consent banner (10000) and the skip link (10001);
       site toasts and system modals (99998+) stay on top. */
    position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center;
    padding: 3.5rem 1rem 1.5rem; background: rgb(0 0 0 / .9);
}
.vr-dialog[hidden] { display: none; }
.vr-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: min(100%, 64rem); }
.vr-player { display: block; max-width: 100%; max-height: 80vh; max-height: 80dvh; width: auto; height: auto; object-fit: contain; background: #000; border-radius: .75rem; }
@media (min-width: 768px) { .vr-player { max-height: 85vh; max-height: 85dvh; } .vr-dialog { padding: 2rem 5rem; } }
.vr-player[hidden] { display: none; }
.vr-error { margin: 0; max-width: 22rem; padding: 1.25rem 1.5rem; border-radius: .75rem; background: rgb(255 255 255 / .08); color: #fff; text-align: center; line-height: 1.5; }
.vr-error[hidden] { display: none; }
.vr-meta { display: grid; gap: .25rem; text-align: center; color: #fff; max-width: 40rem; }
.vr-meta-name { font-weight: 600; }
.vr-meta-caption { color: rgb(255 255 255 / .78); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.vr-meta-caption[hidden] { display: none; }
.vr-meta-context { color: rgb(255 255 255 / .78); font-size: .85rem; line-height: 1.4; overflow-wrap: anywhere; }
.vr-meta-context[hidden] { display: none; }
.vr-meta-link { justify-self: center; color: #fff; text-decoration: underline; text-underline-offset: 3px; border-radius: .25rem; }
.vr-meta-link:hover { text-decoration-thickness: 2px; }
.vr-meta-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.vr-close, .vr-nav {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 0; border-radius: 9999px; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background .15s ease;
}
.vr-close:hover, .vr-nav:hover { background: rgb(255 255 255 / .26); }
.vr-close:focus-visible, .vr-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vr-close svg, .vr-nav svg { width: 1.5rem; height: 1.5rem; }
.vr-close { top: .75rem; right: .75rem; }
.vr-nav { top: 50%; margin-top: -1.375rem; }
.vr-nav--prev { left: .5rem; }
.vr-nav--next { right: .5rem; }
@media (max-width: 767px) { .vr-nav { top: auto; bottom: 1rem; margin-top: 0; } .vr-nav--prev { left: 1rem; } .vr-nav--next { right: 1rem; } .vr-dialog { padding-bottom: 4.5rem; } }
