/* Videos page — matches landing / payment theme */

.vid-hero {
    position: relative;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
    color: #eef5ef;
    isolation: isolate;
}

.vid-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 70% at 88% 8%, rgba(176, 137, 61, 0.2), transparent 55%),
        radial-gradient(ellipse 48% 55% at 8% 88%, rgba(31, 122, 85, 0.32), transparent 52%),
        linear-gradient(160deg, #07120e 0%, #0e221a 55%, #123028 100%);
}

.vid-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.vid-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brass-soft, #d4b36a);
    margin-bottom: 0.85rem;
}

.vid-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
    line-height: 1.25;
}

.vid-hero-lead {
    margin: 0 0 1.15rem;
    max-width: 36rem;
    color: rgba(238, 245, 239, 0.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.vid-count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 179, 106, 0.28);
    color: rgba(238, 245, 239, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
}

.vid-count i {
    color: var(--brass-soft, #d4b36a);
}

.vid-section {
    padding: 2.75rem 0 4.5rem;
    background:
        radial-gradient(ellipse 40% 30% at 100% 0%, rgba(31, 122, 85, 0.06), transparent),
        var(--bg, #f7f9f5);
}

.vid-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.vid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vid-card {
    display: flex;
    flex-direction: column;
    background: var(--panel, #fff);
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: vid-rise 0.55s ease both;
    animation-delay: var(--delay, 0s);
}

.vid-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 122, 85, 0.28);
    box-shadow: 0 18px 40px rgba(7, 18, 14, 0.1);
}

@keyframes vid-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.vid-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #0e221a, #1f7a55);
    cursor: pointer;
    border: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    display: block;
}

.vid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vid-card:hover .vid-thumb img {
    transform: scale(1.05);
}

.vid-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 2.5rem;
}

.vid-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 18, 14, 0.45));
    transition: background 0.3s ease;
}

.vid-thumb:hover .vid-thumb-play,
.vid-thumb:focus-visible .vid-thumb-play {
    background: rgba(7, 18, 14, 0.35);
}

.vid-thumb-play span {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #0e221a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.vid-thumb-play span i {
    margin-inline-start: 3px;
    font-size: 1rem;
}

.vid-thumb:hover .vid-thumb-play span {
    transform: scale(1.08);
    background: var(--brass-soft, #d4b36a);
    color: #07120e;
}

.vid-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem 1.3rem 1.35rem;
    flex: 1;
}

.vid-body h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink, #0a1612);
    line-height: 1.4;
}

.vid-body p {
    margin: 0;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--muted, #5a6b62);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-actions {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.vid-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vid-btn-play {
    background: linear-gradient(135deg, #1a6b4a, #0e221a);
    color: #fff;
}

.vid-btn-play:hover {
    transform: translateY(-1px);
    color: #fff;
}

.vid-btn-yt {
    background: transparent;
    color: var(--ink, #0a1612);
    border-color: var(--line, rgba(10, 22, 18, 0.14));
}

.vid-btn-yt:hover {
    border-color: rgba(31, 122, 85, 0.4);
    color: #1a6b4a;
}

.vid-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--panel, #fff);
    border: 1px dashed var(--line, rgba(10, 22, 18, 0.16));
    border-radius: 20px;
}

.vid-empty i {
    font-size: 3rem;
    color: rgba(31, 122, 85, 0.35);
    margin-bottom: 1rem;
}

.vid-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--ink, #0a1612);
}

.vid-empty p {
    margin: 0;
    color: var(--muted, #5a6b62);
}

/* Modal player */
.vid-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vid-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.vid-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 14, 0.78);
    backdrop-filter: blur(6px);
}

.vid-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #0a1612;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s ease;
}

.vid-modal.is-open .vid-modal-dialog {
    transform: none;
}

.vid-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vid-modal-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: #eef5ef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vid-modal-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef5ef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vid-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.vid-modal-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.vid-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .vid-actions {
        flex-direction: column;
    }

    .vid-grid {
        grid-template-columns: 1fr;
    }
}
