/* MARAŞ 18 — Video Galeri */

body.page-videos.theme-maras18 {
    --m18v-green: #16351C;
    --m18v-green-2: #254D2A;
    --m18v-walnut: #8A4F20;
    --m18v-orange: #B8661A;
    --m18v-cream: #F7F3EA;
    --m18v-white: #FFFFFF;
    --m18v-ink: #182018;
    --m18v-muted: #5c655c;
    --m18v-line: #e6dfd3;
    --m18v-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --m18v-sans: "Manrope", system-ui, sans-serif;
    --m18v-script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    --m18-wrap: 1180px;
    --m18-accent: var(--m18v-walnut);
    --m18-accent-dark: var(--m18v-orange);
    --m18-green: var(--m18v-green);
    background: var(--m18v-white);
    color: var(--m18v-ink);
}

.page-videos .site-page {
    padding-top: 0;
    padding-bottom: 0;
}

.page-videos .m18-header-nav a:hover,
.page-videos .m18-header-nav a.is-active {
    color: var(--m18v-walnut);
    border-bottom-color: var(--m18v-walnut);
}

.m18v-page {
    overflow-x: clip;
    font-family: var(--m18v-sans);
    background: var(--m18v-white);
}

.m18v-page .m18-wrap {
    width: min(var(--m18-wrap), calc(100% - 2rem));
    margin-inline: auto;
}

.m18v-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--m18v-walnut);
}

.m18v-kicker__icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(138, 79, 32, 0.12);
    color: var(--m18v-walnut);
}

.m18v-btn {
    border-radius: 8px;
    min-height: 2.7rem;
    padding: 0.7rem 1.35rem;
    font-size: 0.92rem;
}

/* ── Hero ── */
.m18v-hero {
    position: relative;
    min-height: clamp(300px, 38vw, 420px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--m18v-green);
    background-image:
        linear-gradient(90deg, rgba(12, 28, 16, 0.78) 0%, rgba(22, 53, 28, 0.5) 48%, rgba(22, 53, 28, 0.28) 100%),
        var(--m18v-hero-bg);
    background-size: cover;
    background-position: center 40%;
    color: #fff;
}

.m18v-hero__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 18% 55%, rgba(0, 0, 0, 0.22), transparent 58%);
    pointer-events: none;
}

.m18v-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0 3.25rem;
}

.m18v-hero__crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.m18v-hero__crumb a {
    color: inherit;
    text-decoration: none;
}

.m18v-hero__crumb a:hover {
    color: #fff;
}

.m18v-hero__title {
    margin: 0 0 0.7rem;
    font-family: var(--m18v-serif);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
}

.m18v-hero__desc {
    margin: 0;
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.m18v-hero__aside {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.m18v-hero__walnut {
    width: min(280px, 100%);
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border-radius: 28px 42% 22px 36% / 26px 28px 40% 22px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.m18v-hero__script {
    position: absolute;
    right: 0;
    top: 6%;
    max-width: 11rem;
    margin: 0;
    padding: 0.35rem 0.55rem;
    font-family: var(--m18v-script);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    text-align: right;
    transform: rotate(-6deg);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.65);
    background: linear-gradient(180deg, rgba(12, 24, 15, 0.42), rgba(12, 24, 15, 0.18));
    border-radius: 0.35rem;
}

/* ── List ── */
.m18v-list {
    padding: 3rem 0 4.5rem;
    background:
        radial-gradient(ellipse 60% 40% at 90% 0%, rgba(247, 243, 234, 0.9), transparent 55%),
        var(--m18v-white);
}

.m18v-list__head {
    margin-bottom: 2rem;
    max-width: 40rem;
}

.m18v-list__title {
    margin: 0;
    font-family: var(--m18v-serif);
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--m18v-green);
}

.m18v-list__sub {
    margin: 0.45rem 0 0;
    color: var(--m18v-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.m18v-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .m18v-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 1100px) {
    .m18v-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.m18v-card {
    display: flex;
    flex-direction: column;
    background: var(--m18v-cream);
    border: 1px solid rgba(22, 53, 28, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(22, 53, 28, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.m18v-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(22, 53, 28, 0.12);
}

.m18v-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #0d1a10;
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

.m18v-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.m18v-card:hover .m18v-card__media img {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.m18v-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(138, 79, 32, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.m18v-card:hover .m18v-card__play {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--m18v-orange);
}

.m18v-card__badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(22, 53, 28, 0.82);
}

.m18v-card__body {
    padding: 1.05rem 1.2rem 1.25rem;
    background: var(--m18v-white);
}

.m18v-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--m18v-ink);
}

.m18v-card__title-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.m18v-card__title-btn:hover {
    color: var(--m18v-walnut);
}

/* ── Empty ── */
.m18v-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 18px;
    background: var(--m18v-cream);
    border: 1px solid var(--m18v-line);
}

.m18v-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--m18v-green);
    box-shadow: 0 6px 18px rgba(22, 53, 28, 0.08);
}

.m18v-empty__title {
    margin: 0;
    font-family: var(--m18v-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--m18v-green);
}

.m18v-empty__text {
    margin: 0.45rem 0 1.35rem;
    color: var(--m18v-muted);
    font-size: 0.95rem;
}

/* ── Channel CTA ── */
.m18v-channel {
    margin-top: 2.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.65rem;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--m18v-green) 0%, var(--m18v-green-2) 100%);
    color: #fff;
}

.m18v-channel .m18v-kicker {
    color: rgba(255, 255, 255, 0.75);
}

.m18v-channel .m18v-kicker {
    margin-bottom: 0.35rem;
}

.m18v-channel__title {
    margin: 0;
    font-family: var(--m18v-serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.m18v-channel__text {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 28rem;
}

.m18v-channel .m18-btn--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.m18v-channel .m18-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ── Modal ── */
body.m18v-modal-open {
    overflow: hidden;
}

.m18v-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

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

.m18v-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 12, 0.72);
    backdrop-filter: blur(4px);
}

.m18v-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #0d1a10;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.m18v-modal.is-open .m18v-modal__dialog {
    transform: none;
    opacity: 1;
}

.m18v-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m18v-modal__title {
    margin: 0;
    font-family: var(--m18v-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.m18v-modal__close {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.m18v-modal__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.m18v-modal__close:focus-visible {
    outline: 2px solid var(--m18v-orange);
    outline-offset: 2px;
}

.m18v-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

@media (max-width: 767px) {
    .m18v-hero__inner {
        grid-template-columns: 1fr;
        padding: 2.4rem 0 2.6rem;
    }

    .m18v-hero__aside {
        display: none;
    }

    .m18v-channel {
        flex-direction: column;
        align-items: flex-start;
    }
}
