.hacv-section{background:#fff7f7;color:#222;padding:72px 20px 80px;text-align:center}
.hacv-section *{box-sizing:border-box}
.hacv-container{max-width:1240px;margin:auto}
.hacv-section h2{margin:0 0 12px;font-size:clamp(28px,3vw,40px);font-weight:750;line-height:1.2;color:#222}
.hacv-intro{margin:0 0 32px;color:#68686c;font-size:16px}
.hacv-layout{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(270px,.95fr);gap:26px;align-items:start;text-align:left}
.hacv-main-card{min-width:0}
.hacv-card{display:block;position:relative;overflow:hidden;border:0;padding:0;width:100%;color:#fff;background:#23232a;cursor:pointer;text-align:left;border-radius:12px;box-shadow:0 8px 28px #20141718;isolation:isolate}
.hacv-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hacv-card:hover img{transform:scale(1.035)}
.hacv-card:focus-visible{outline:3px solid #ed1235;outline-offset:4px}
.hacv-feature{aspect-ratio:16/9}
.hacv-feature.hacv-portrait{aspect-ratio:16/9}
.hacv-feature.hacv-portrait img{object-fit:contain;background:#222}
.hacv-card-shade{position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#0008);pointer-events:none}
.hacv-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:#E60023;color:#fff;font-size:28px;padding-left:4px;box-shadow:0 6px 25px #0006;transition:transform .2s ease;pointer-events:none}
.hacv-card:hover .hacv-play-icon{transform:translate(-50%,-50%) scale(1.08)}
.hacv-card-caption{position:absolute;left:24px;bottom:19px;font:700 19px/1.3 Arial,sans-serif;text-shadow:0 1px 5px #000a}
.hacv-no-poster{display:grid;place-items:center;height:100%;text-align:center;color:#ddd}
.hacv-social h3{margin:0 0 16px;padding:12px 14px;background:#E60023;color:#fff;text-align:center;font-size:18px;font-weight:700;line-height:1.25}
.hacv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hacv-small{aspect-ratio:1/1}
.hacv-small .hacv-play-icon{width:38px;height:38px;font-size:16px;padding-left:2px;opacity:.95}
.hacv-admin-hint{font-size:13px;color:#666}
.hacv-dialog{width:min(94vw,960px);max-height:94dvh;overflow:auto;border:0;border-radius:14px;background:#141417;color:#fff;padding:50px 14px 16px;box-shadow:0 25px 70px #0009}
.hacv-dialog::backdrop{background:#08090ad9}
.hacv-dialog-content{display:flex;align-items:center;justify-content:center;min-height:100px}
.hacv-dialog-content iframe,.hacv-dialog-content video{display:block;border:0;max-width:100%;max-height:calc(94dvh - 105px)}
.hacv-dialog-content iframe.hacv-player{width:100%;height:auto;aspect-ratio:16/9}
.hacv-dialog-content iframe.hacv-player.hacv-vertical{width:min(100%,390px);aspect-ratio:9/16}
.hacv-dialog-content video{width:auto;height:auto}
.hacv-dialog-content .instagram-media{margin:0 auto!important;max-width:100%!important;min-width:0!important}
.hacv-dialog.hacv-instagram-dialog{width:min(94vw,620px)}
.hacv-instagram-dialog .hacv-dialog-content video{display:block;width:auto;height:min(80dvh,780px);max-width:100%;max-height:calc(94dvh - 120px);object-fit:contain}
.hacv-instagram-dialog .instagram-media,.hacv-instagram-dialog iframe.instagram-media-rendered{width:min(100%,480px)!important;max-width:480px!important}
.hacv-dialog{position:fixed;box-sizing:border-box;margin:auto;}
.hacv-dialog *{box-sizing:border-box;}
.hacv-dialog .hacv-close{position:absolute!important;inset:8px 10px auto auto!important;z-index:20!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;background:#141417!important;border:0!important;border-radius:8px!important;color:#fff!important;font:400 33px/1 Arial,sans-serif!important;cursor:pointer;pointer-events:auto!important;transform:none!important;opacity:1!important;touch-action:manipulation;}
.hacv-dialog .hacv-close:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.hacv-dialog .hacv-close::before,.hacv-dialog .hacv-close::after{content:none!important;}
.hacv-dialog .hacv-dialog-content{position:relative;z-index:1;}
.hacv-dialog:not([open]){display:none!important;}
.hacv-section .hacv-card .hacv-instagram-caption{position:absolute;left:10px;right:10px;bottom:10px;z-index:2;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;max-height:2.7em!important;color:#fff;font-family:Arial,sans-serif!important;font-size:11px!important;font-weight:400!important;line-height:1.35!important;text-transform:none!important;letter-spacing:normal!important;white-space:normal!important;text-align:left;text-shadow:0 1px 4px #000;pointer-events:none;overflow-wrap:anywhere;}
.hacv-small .hacv-card-shade{inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.85));}
.hacv-source-link{display:block;color:#fff;text-align:center;margin-top:10px;text-decoration:underline}
@media(min-width:851px){.hacv-layout{align-items:stretch}.hacv-social{display:flex;flex-direction:column;min-height:0}.hacv-grid{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}.hacv-grid .hacv-small{height:100%;min-height:0;aspect-ratio:auto}.hacv-grid .hacv-small img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}}
@media(max-width:850px){.hacv-layout{grid-template-columns:1fr;gap:28px}.hacv-social{max-width:560px;width:100%;margin:0 auto}.hacv-section{padding:58px 16px 66px}}
@media(max-width:520px){.hacv-section{padding:48px 12px 55px}.hacv-layout{gap:24px}.hacv-grid{gap:9px}.hacv-social h3{font-size:16px}.hacv-play-icon{width:58px;height:58px;font-size:22px}.hacv-small .hacv-play-icon{width:32px;height:32px;font-size:13px}.hacv-card-caption{font-size:15px;left:14px;bottom:11px}}

/* Bağımsız Instagram veya ana video görünümü; boş sütun oluşturmaz. */
.hacv-layout.hacv-layout-instagram-only,.hacv-layout.hacv-layout-main-only{grid-template-columns:minmax(0,1fr);}
.hacv-layout-instagram-only .hacv-social{width:100%;}
.hacv-layout-instagram-only .hacv-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.hacv-setup-hint{padding:18px;border:1px solid #e1b34b;background:#fff7dd;color:#242424;font:16px/1.5 Arial,sans-serif;}
@media(max-width:480px){.hacv-layout-instagram-only .hacv-grid{grid-template-columns:1fr;}}

/* YALNIZCA INSTAGRAM — KARTLARIN SIFIR YÜKSEKLİĞE DÜŞMESİNİ ÖNLER
   Ana videonun belirlediği yüksekliği izleyen masaüstü kuralları bu görünümde
   kullanılmaz. Kartlar yüksekliğini kendi en/boy oranından alır. */
.hacv-layout-instagram-only .hacv-social{display:block;min-width:0;}
.hacv-layout-instagram-only .hacv-grid{
    display:grid;flex:none;min-height:0;
    grid-template-rows:none;grid-auto-rows:auto;align-items:start;
    width:100%;max-width:100%;
}
.hacv-layout-instagram-only .hacv-grid .hacv-small{
    display:block;height:auto!important;min-height:180px;aspect-ratio:16/10;
    width:100%;padding:0;position:relative;
}
.hacv-layout-instagram-only .hacv-grid .hacv-small img{
    position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;
}
@media(max-width:480px){
    .hacv-layout-instagram-only .hacv-grid .hacv-small{min-height:160px;}
}
