/* Video listing */

.vid-section {
    background: #fff;
    padding: 44px 0 96px;
}

.vid-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Toolbar ---------- */
.vid-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.vid-toolbar__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.vid-summary {
    color: var(--brand-muted);
    font-size: 15px;
}

.vid-summary strong {
    color: var(--brand-plum);
    font-size: 22px;
    font-weight: 800;
    margin-right: 4px;
}

.vid-search {
    position: relative;
    flex: 0 1 380px;
    margin: 0;
}

.vid-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 14px;
    pointer-events: none;
}

.vid-search input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    font-size: 15px;
    padding: 0 110px 0 44px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.vid-search input:focus {
    background: #fff;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}

.vid-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-action);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 0 18px;
}

.vid-search button:hover {
    background: var(--brand-hover);
}

.vid-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.vid-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 16px;
    transition: all .2s ease;
}

.vid-tab span {
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
}

.vid-tab:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

.vid-tab.active {
    background: var(--brand-action);
    border-color: var(--brand-action);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--brand-rgb), .3);
}

.vid-tab.active span {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.vid-filter-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    color: var(--brand-muted);
    font-size: 14px;
}

.vid-filter-note a {
    color: var(--brand-action);
    font-weight: 600;
}

/* ---------- Thumbnail (shared) ---------- */
.vid-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1d140c;
}

.vid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .5s ease, filter .3s ease;
}

.vid-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(20, 12, 6, .65) 100%);
    pointer-events: none;
}

.vid-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    font-size: 18px;
    padding-left: 3px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.vid-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-hover);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.vid-yt {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
}

.vid-yt i {
    color: #ff3b3b;
    margin-right: 4px;
}

/* ---------- Featured ---------- */
.vid-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: stretch;
    background: var(--brand-plum);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(44, 26, 14, .22);
    margin-bottom: 40px;
    color: #fff;
}

.vid-featured .vid-thumb {
    aspect-ratio: auto;
    min-height: 100%;
}

.vid-featured .vid-thumb img {
    position: absolute;
    inset: 0;
}

.vid-featured .vid-play {
    width: 82px;
    height: 82px;
    font-size: 24px;
    background: var(--brand-action);
    border-color: transparent;
}

.vid-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 42px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .25) 0%, rgba(var(--brand-rgb), 0) 55%),
        var(--brand-plum);
}

.vid-featured__kicker {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .22);
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.vid-featured__title {
    color: #fff;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-featured__title a {
    color: inherit;
}

.vid-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin-bottom: 26px;
}

.vid-featured__meta i {
    color: var(--brand-light);
    margin-right: 6px;
}

.vid-featured__cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: var(--brand-action);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    transition: background .2s ease, transform .2s ease;
}

.vid-featured__cta:hover {
    background: #fff;
    color: var(--brand-plum);
    transform: translateY(-2px);
}

.vid-featured:hover .vid-thumb img {
    transform: scale(1.05);
}

.vid-featured:hover .vid-play {
    transform: translate(-50%, -50%) scale(1.08);
}

/* ---------- Grid cards ---------- */
.vid-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.vid-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(44, 26, 14, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.vid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: 0 20px 40px rgba(44, 26, 14, .14);
}

.vid-card:hover .vid-thumb img {
    transform: scale(1.06);
}

.vid-card:hover .vid-play {
    background: var(--brand-action);
    border-color: var(--brand-action);
    transform: translate(-50%, -50%) scale(1.1);
}

.vid-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.vid-card__title {
    color: var(--brand-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-card__title a {
    color: inherit;
}

.vid-card:hover .vid-card__title a {
    color: var(--brand-action);
}

.vid-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1e6d7;
    color: var(--brand-muted);
    font-size: 13px;
}

.vid-card__foot i {
    color: var(--brand-action);
    margin-right: 5px;
}

.vid-card__watch {
    color: var(--brand-action);
    font-weight: 700;
}

.vid-card__watch i {
    margin: 0 0 0 4px;
    transition: transform .2s ease;
}

.vid-card:hover .vid-card__watch i {
    transform: translateX(3px);
}

/* ---------- Detail page ---------- */
.vid-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}

.vid-detail__side {
    position: sticky;
    top: 24px;
}

.vid-player {
    border-radius: 22px;
    overflow: hidden;
    background: #120c07;
    box-shadow: 0 24px 60px rgba(44, 26, 14, .25);
}

.vid-player__frame {
    position: relative;
    aspect-ratio: 16 / 9;
}

.vid-player__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vid-player__native {
    display: block;
    width: 100%;
    max-height: 640px;
    background: #000;
}

.vid-player__empty {
    background: var(--brand-surface);
    padding: 40px 20px;
}

.vid-info {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(var(--brand-rgb), .08);
    padding: 26px 28px;
    margin-top: 22px;
}

.vid-info__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.vid-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 13px;
}

.vid-chip i {
    color: var(--brand-action);
}

.vid-chip--brand {
    background: var(--brand-soft);
    border-color: transparent;
    color: var(--brand-hover);
}

.vid-chip--brand:hover {
    background: var(--brand-action);
    color: #fff;
}

.vid-chip--brand:hover i {
    color: #fff;
}

.vid-info__title {
    color: var(--brand-plum);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 14px;
    word-break: break-word;
}

.vid-info__desc {
    color: var(--brand-ink);
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.vid-info__desc p:last-child {
    margin-bottom: 0;
}

.vid-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--brand-border);
}

.vid-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    line-height: 1.2;
    transition: all .2s ease;
}

.vid-btn--yt {
    background: #e62117;
    color: #fff;
    box-shadow: 0 8px 18px rgba(230, 33, 23, .25);
}

.vid-btn--yt:hover {
    background: #c4180f;
    color: #fff;
    transform: translateY(-2px);
}

.vid-btn--ghost {
    background: #fff;
    border-color: var(--brand-border);
    color: var(--brand-ink);
}

.vid-btn--ghost:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

.vid-related {
    margin-top: 40px;
}

.vid-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.vid-related__head h2 {
    color: var(--brand-plum);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.vid-related__head a {
    color: var(--brand-action);
    font-weight: 700;
    white-space: nowrap;
}

.vid-grid--compact {
    gap: 22px 18px;
}

.vid-grid--compact .vid-card__title {
    font-size: 15px;
}

.vid-grid--compact .vid-play {
    width: 46px;
    height: 46px;
    font-size: 14px;
}

.vid-latest {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.vid-latest__item {
    display: flex;
    gap: 12px;
    border-radius: 12px;
    padding: 8px;
    transition: background .2s ease;
}

.vid-latest__item:hover {
    background: var(--brand-surface);
}

.vid-latest__thumb {
    position: relative;
    flex: 0 0 116px;
    width: 116px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #1d140c;
}

.vid-latest__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.vid-latest__thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 10px;
    padding-left: 2px;
    transform: translate(-50%, -50%);
}

.vid-latest__item:hover .vid-latest__thumb img {
    transform: scale(1.06);
}

.vid-latest__item:hover .vid-latest__thumb i {
    background: var(--brand-action);
}

.vid-latest__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.vid-latest__title {
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-latest__item:hover .vid-latest__title {
    color: var(--brand-action);
}

.vid-latest__meta {
    color: var(--brand-muted);
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .vid-detail {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

    .vid-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vid-featured {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }

    .vid-featured__body {
        padding: 30px;
    }
}

@media (max-width: 991px) {
    .vid-detail {
        grid-template-columns: 1fr;
    }

    .vid-detail__side {
        position: static;
    }

    .vid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vid-featured {
        grid-template-columns: 1fr;
    }

    .vid-featured .vid-thumb {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .vid-section {
        padding: 28px 0 70px;
    }

    .vid-search {
        flex-basis: 100%;
    }

    .vid-featured {
        border-radius: 18px;
        margin-bottom: 28px;
    }

    .vid-featured__body {
        padding: 22px 20px 24px;
    }

    .vid-player {
        border-radius: 16px;
    }

    .vid-info {
        padding: 20px 18px;
    }

    .vid-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .vid-featured .vid-play {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .vid-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
