/* Videos page — directory layout with sidebar filters */
.page-videos {
    background: #f8f4eb;
}

.ws-videos-dir {
    padding: 0 0 clamp(3.5rem, 6vw, 5rem);
}

.ws-videos-dir__container {
    max-width: 1320px;
}

/* Search panel */
.ws-videos-search-panel {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: visible;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 250, 240, 0.9) 52%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow:
        0 20px 50px rgba(12, 18, 34, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.ws-videos-search-panel__glow {
    position: absolute;
    top: -40%;
    right: -8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 68%);
    pointer-events: none;
}

.ws-videos-search-panel__inner {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
}

.ws-videos-search-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}

.ws-videos-search-panel__head-text {
    min-width: 0;
}

.ws-videos-search-panel__title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    color: var(--ws-gold-darker);
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 700;
}

.ws-videos-search-panel__title i {
    color: var(--ws-gold-bright);
    font-size: 1.35rem;
}

.ws-videos-search-panel__lead {
    margin: 0;
    color: #6b7488;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ws-videos-search-panel__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ws-gold-deep);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.ws-videos-search-panel__clear:hover,
.ws-videos-search-panel__clear:focus-visible {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--ws-gold-darker);
    transform: translateY(-1px);
}

.ws-videos-search-panel__fields {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.9rem;
    overflow: visible;
}

.ws-videos-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.ws-videos-search-field__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4f5868;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ws-videos-search-field__label i {
    color: var(--ws-gold-bright);
    font-size: 0.95rem;
}

.ws-videos-search-field__control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(12, 18, 34, 0.08);
    box-shadow: 0 8px 24px rgba(12, 18, 34, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ws-videos-search-field__control:focus-within {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow:
        0 12px 28px rgba(184, 146, 46, 0.12),
        0 0 0 3px rgba(212, 175, 55, 0.12);
    transform: translateY(-1px);
}

.ws-videos-search-field__icon {
    flex-shrink: 0;
    color: var(--ws-gold-bright);
    font-size: 1.15rem;
}

.ws-videos-search-field__input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1a2030;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
}

.ws-videos-search-field__input::placeholder {
    color: #9aa3b2;
    font-weight: 400;
}

.ws-videos-search-panel__status {
    min-height: 1.25rem;
    margin: 0.85rem 0 0;
    color: #6b7488;
    font-size: 0.86rem;
    font-weight: 600;
}

.ws-videos-search-panel__status.is-active {
    color: var(--ws-gold-deep);
}

/* Movie custom select — stacking above grid */
.ws-videos-search-field--movie {
    position: relative;
    z-index: 3;
}

.ws-videos-search-field--movie:has(.ws-custom-select.is-open) {
    z-index: 12;
}

.ws-videos-search-panel:has(.ws-custom-select.is-open) {
    z-index: 30;
}

.ws-videos-dir__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Sidebar */
.ws-videos-dir__sidebar {
    align-self: stretch;
}

.ws-videos-dir__sidebar-card {
    position: sticky;
    top: 6.5rem;
    padding: 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 16px 40px rgba(12, 18, 34, 0.06);
    backdrop-filter: blur(10px);
}

.ws-videos-dir__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ws-videos-dir__sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--ws-gold-darker);
    font-size: 1.05rem;
    font-weight: 700;
}

.ws-videos-dir__sidebar-title i {
    color: var(--ws-gold-bright);
    font-size: 1.2rem;
}

.ws-videos-dir__sidebar-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--ws-gold-deep);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.ws-videos-dir__search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(12, 18, 34, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ws-videos-dir__search:focus-within {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.ws-videos-dir__search i {
    color: #8a93a8;
    font-size: 1.05rem;
}

.ws-videos-dir__search-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #1a1f2e;
    font-size: 0.92rem;
    outline: none;
}

.ws-videos-dir__search-input::placeholder {
    color: #8a93a8;
}

.ws-videos-dir__filters {
    display: grid;
    gap: 0.45rem;
}

.ws-videos-dir__filter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: #4f5868;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ws-videos-dir__filter:hover,
.ws-videos-dir__filter:focus-visible {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.18);
    color: var(--ws-gold-darker);
}

.ws-videos-dir__filter.is-active {
    background: linear-gradient(135deg, rgba(240, 215, 140, 0.28) 0%, rgba(212, 175, 55, 0.16) 100%);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--ws-gold-darker);
    box-shadow: 0 8px 20px rgba(184, 146, 46, 0.1);
}

.ws-videos-dir__filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ws-gold-deep);
    font-size: 1rem;
}

.ws-videos-dir__filter.is-active .ws-videos-dir__filter-icon {
    background: linear-gradient(135deg, #f0d78c 0%, var(--ws-gold-bright) 100%);
    color: #fff;
}

.ws-videos-dir__filter-label {
    text-align: left;
}

.ws-videos-dir__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.06);
    color: #5b6478;
    font-size: 0.75rem;
    font-weight: 700;
}

.ws-videos-dir__filter.is-active .ws-videos-dir__filter-count {
    background: rgba(107, 82, 16, 0.12);
    color: var(--ws-gold-darker);
}

/* Video modal */
body.ws-videos-modal-open {
    overflow: hidden;
}

.ws-videos-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    pointer-events: none;
}

.ws-videos-modal[hidden] {
    display: none !important;
}

.ws-videos-modal.is-open {
    pointer-events: auto;
}

.ws-videos-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
        rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ws-videos-modal.is-open .ws-videos-modal__backdrop {
    opacity: 1;
}

.ws-videos-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    max-height: min(92vh, 880px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(30, 36, 52, 0.96) 0%, rgba(17, 20, 30, 0.98) 52%, rgba(20, 17, 12, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 90px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.06),
        0 0 80px rgba(212, 175, 55, 0.06);
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-videos-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(155deg, rgba(240, 215, 140, 0.35) 0%, rgba(240, 215, 140, 0) 30%, rgba(240, 215, 140, 0) 70%, rgba(240, 215, 140, 0.18) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.ws-videos-modal.is-open .ws-videos-modal__dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ws-videos-player {
    min-height: 0;
}

.ws-videos-player__close {
    position: absolute;
    top: clamp(1rem, 3vw, 1.75rem);
    right: clamp(1rem, 3vw, 1.75rem);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(16, 20, 30, 0.55);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        box-shadow 0.25s ease;
}

.ws-videos-modal.is-open .ws-videos-player__close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.15s;
}

.ws-videos-player__close:hover,
.ws-videos-player__close:focus-visible {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(240, 215, 140, 0.5);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.08) rotate(90deg);
}

.ws-videos-browse {
    min-width: 0;
}

.ws-videos-player__stage {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, #1a2030 0%, #0c1018 100%);
}

.ws-videos-player__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 24, 0.55);
    z-index: 2;
}

.ws-videos-player__loader-ring {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(240, 215, 140, 0.2);
    border-top-color: var(--ws-gold-bright);
    border-radius: 50%;
    animation: ws-video-loader-spin 0.75s linear infinite;
}

@keyframes ws-video-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.ws-videos-player__frame {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ws-videos-player__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.ws-videos-player__yt {
    width: 100%;
    height: 100%;
}

.ws-videos-player__cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #0a0d14;
    animation: ws-video-cover-in 0.2s ease both;
}

.ws-videos-player__cover[hidden] {
    display: none;
}

.ws-videos-player__cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.ws-videos-player__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 45%, rgba(8, 11, 18, 0.35) 0%, rgba(8, 11, 18, 0.72) 70%),
        linear-gradient(180deg, rgba(8, 11, 18, 0.35) 0%, rgba(8, 11, 18, 0.72) 100%);
}

.ws-videos-player__cover .ws-videos-player__cover-btn {
    position: relative;
    z-index: 2;
}

@keyframes ws-video-cover-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ws-videos-player__cover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(240, 215, 140, 0.4);
    color: #f0d78c;
    font-size: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.ws-videos-player__cover:hover .ws-videos-player__cover-btn,
.ws-videos-player__cover:focus-visible .ws-videos-player__cover-btn {
    transform: scale(1.08);
    background: rgba(212, 175, 55, 0.28);
    border-color: rgba(240, 215, 140, 0.6);
    color: #fff;
}

/* Audio poster (hides the YouTube video, keeps audio) */
.ws-videos-player__poster {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    padding: 1.5rem;
    overflow: hidden;
    background: #0a0d14;
}

.ws-videos-player__poster-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.3) brightness(0.55);
    transform: scale(1.12);
    z-index: 0;
}

.ws-videos-player__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 11, 18, 0.35) 0%, rgba(8, 11, 18, 0.75) 100%);
    z-index: 1;
}

.ws-videos-player__poster-art {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(240px, 60%, 460px);
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(240, 215, 140, 0.18);
}

.ws-videos-player__poster-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0a0d14;
}

.ws-videos-player__poster.is-playing .ws-videos-player__poster-art {
    animation: ws-audio-pulse 2.4s ease-in-out infinite;
}

@keyframes ws-audio-pulse {
    0%, 100% {
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(240, 215, 140, 0.18);
    }
    50% {
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(240, 215, 140, 0.35),
            0 0 40px rgba(212, 175, 55, 0.28);
    }
}

.ws-videos-player__poster-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(10, 13, 20, 0.55);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        border-color 0.25s ease;
}

.ws-videos-player__poster-toggle:hover,
.ws-videos-player__poster-toggle:focus-visible {
    transform: scale(1.08);
    background: rgba(212, 175, 55, 0.28);
    border-color: rgba(240, 215, 140, 0.6);
}

.ws-videos-player__poster-title {
    position: relative;
    z-index: 2;
    max-width: 90%;
    color: #fff;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ws-videos-player__meta {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.35rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(18, 23, 34, 0.98) 0%, rgba(24, 20, 14, 0.98) 100%);
    border-top: 1px solid rgba(240, 215, 140, 0.12);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ws-videos-player__meta::-webkit-scrollbar {
    display: none;
}

.ws-videos-player__meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.45rem;
}

.ws-videos-player__category {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: #f0d78c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ws-videos-player__year {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 600;
}

.ws-videos-player__title {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
}

.ws-videos-player__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.65;
}

.ws-videos-player__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-videos-player__external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(240, 215, 140, 0.28);
    color: #f0d78c;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.ws-videos-player__external i {
    font-size: 1.1rem;
}

.ws-videos-player__external:hover,
.ws-videos-player__external:focus-visible {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(240, 215, 140, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

/* Grid */
.ws-videos-grid__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.ws-videos-grid__head-text {
    min-width: 0;
}

.ws-videos-dir__search--inline {
    flex: 1 1 220px;
    max-width: 320px;
    margin-bottom: 0;
}

.ws-videos-grid__title {
    margin: 0;
    color: var(--ws-gold-darker);
    font-size: 1.15rem;
    font-weight: 700;
}

.ws-videos-grid__subtitle {
    margin: 0;
    color: #6b7488;
    font-size: 0.88rem;
    font-weight: 600;
}

.ws-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
}

.ws-videos-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
    box-shadow: 0 10px 28px rgba(12, 18, 34, 0.05);
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.ws-videos-card:hover,
.ws-videos-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 22px 44px rgba(12, 18, 34, 0.12);
}

.ws-videos-card.is-active {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 20px 42px rgba(184, 146, 46, 0.18);
}

.ws-videos-card.is-highlighted {
    animation: ws-video-highlight 2.2s ease;
}

@keyframes ws-video-highlight {
    0%, 100% { box-shadow: 0 16px 36px rgba(184, 146, 46, 0.14); }
    40% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), 0 16px 36px rgba(184, 146, 46, 0.18); }
}

.ws-videos-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1f2e;
}

.ws-videos-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ws-videos-card:hover .ws-videos-card__thumb img,
.ws-videos-card:focus-visible .ws-videos-card__thumb img,
.ws-videos-card.is-active .ws-videos-card__thumb img {
    transform: scale(1.05);
}

.ws-videos-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(12, 18, 34, 0) 40%, rgba(12, 18, 34, 0.35) 100%);
    color: #fff;
    transition: background 0.3s ease;
}

.ws-videos-card__play i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(12, 18, 34, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.5rem;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transform: scale(0.85);
    opacity: 0.9;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.ws-videos-card:hover .ws-videos-card__play,
.ws-videos-card:focus-visible .ws-videos-card__play,
.ws-videos-card.is-active .ws-videos-card__play {
    background: linear-gradient(180deg, rgba(184, 146, 46, 0.12) 0%, rgba(80, 58, 14, 0.5) 100%);
}

.ws-videos-card:hover .ws-videos-card__play i,
.ws-videos-card:focus-visible .ws-videos-card__play i,
.ws-videos-card.is-active .ws-videos-card__play i {
    transform: scale(1);
    opacity: 1;
    background: linear-gradient(135deg, var(--ws-gold-bright) 0%, var(--ws-gold) 100%);
    border-color: rgba(240, 215, 140, 0.6);
    color: #2a1e05;
}

.ws-videos-card--audio .ws-videos-card__play {
    background: linear-gradient(180deg, rgba(20, 24, 40, 0.15) 0%, rgba(12, 18, 34, 0.5) 100%);
}

.ws-videos-card__media-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.72);
    color: #f4d98a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.ws-videos-card__media-badge i {
    font-size: 0.85rem;
    line-height: 1;
}

.ws-videos-player.is-audio .ws-videos-player__category,
.ws-videos-modal.is-audio .ws-videos-player__category {
    color: #f4d98a;
}

.ws-videos-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.95rem 1rem 1.15rem;
}

.ws-videos-card__category {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--ws-gold-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ws-videos-card__title {
    margin: 0;
    color: #1a1f2e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.ws-videos-card:hover .ws-videos-card__title,
.ws-videos-card:focus-visible .ws-videos-card__title {
    color: var(--ws-gold-darker);
}

.ws-videos-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7488;
    font-size: 0.82rem;
    font-weight: 600;
}

.ws-videos-grid__empty {
    margin: 1.5rem 0 0;
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.55);
    color: #5b6478;
    text-align: center;
    font-size: 0.95rem;
}

/* Desktop layout */
@media (min-width: 768px) {
    .ws-videos-search-panel__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ws-videos-dir__layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .ws-videos-dir__layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .ws-videos-dir {
        padding-bottom: 3rem;
    }

    .ws-videos-dir__layout {
        gap: 1.25rem;
    }

    .ws-videos-dir__sidebar-card {
        position: static;
        padding: 1.15rem;
    }

    .ws-videos-search-panel {
        border-radius: 20px;
        margin-bottom: 1.25rem;
    }

    .ws-videos-search-panel__glow {
        display: none;
    }

    .ws-videos-dir__filters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.55rem;
        overflow: visible;
    }

    .ws-videos-dir__filter {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .ws-videos-dir__filter-count {
        min-width: 1.45rem;
    }

    .ws-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .ws-videos-dir__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ws-videos-search-panel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-videos-search-panel__clear {
        align-self: flex-start;
    }

    .ws-videos-search-panel__inner {
        padding: 1.15rem;
    }

    .ws-videos-grid__head {
        margin-bottom: 1rem;
    }

    .ws-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .ws-videos-card__body {
        padding: 0.8rem 0.75rem 1rem;
    }

    .ws-videos-card__title {
        font-size: 0.92rem;
    }

    .ws-videos-modal {
        padding: 0.75rem;
        align-items: center;
    }

    .ws-videos-modal__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    .ws-videos-dir {
        padding-bottom: 2.5rem;
    }

    .ws-videos-search-panel {
        border-radius: 16px;
    }

    .ws-videos-search-panel__inner {
        padding: 1rem;
    }

    .ws-videos-search-panel__title {
        font-size: 1.05rem;
    }

    .ws-videos-dir__sidebar-head {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ws-videos-modal {
        padding: 0;
        align-items: flex-end;
    }

    .ws-videos-modal__dialog {
        width: 100%;
        max-height: 96vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .ws-videos-modal.is-open .ws-videos-modal__dialog {
        transform: translateY(0);
    }

    .ws-videos-player__meta {
        padding: 1.1rem 1.15rem 1.25rem;
    }

    .ws-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ws-videos-grid__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .ws-videos-card__category {
        font-size: 0.65rem;
    }

    .ws-videos-card__play i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .ws-videos-grid {
        grid-template-columns: 1fr;
    }

    .ws-videos-dir__filter {
        padding: 0.65rem 0.75rem;
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-videos-search-panel__clear,
    .ws-videos-search-field__control,
    .ws-videos-card,
    .ws-videos-dir__filter,
    .ws-videos-card__thumb img,
    .ws-videos-modal__backdrop,
    .ws-videos-modal__dialog {
        transition: none;
    }

    .ws-videos-player__loader-ring {
        animation: none;
    }

    .ws-videos-card.is-highlighted {
        animation: none;
    }
}
