/* Shared appearance of the Shorts collection on Video Haberler. */
.asi101-video-page .asi212-shorts .asi100-short-card > a { border-left: 0; border-radius: .875rem; background: #101824; }
.asi101-video-page .asi212-shorts .asi100-short-brand { inset: .65rem auto auto .65rem; border-radius: .38rem; background: #101926e8; color: #f7f8fc; }
.asi101-video-page .asi212-shorts .asi100-short-caption { inset: auto .75rem .9rem; }
.asi101-video-page .asi212-shorts .asi100-short-caption strong { text-transform: none; }

dialog.asi217-viewer.asi332-viewer {
    --reel-bg:#0d1018;
    --reel-panel:#191d2a;
    --reel-line:#414253;
    --reel-accent:#ff8194;
    width:min(44rem,calc(100vw - 28px),max(33rem,calc(57dvh + 4rem)));
    height:min(61rem,calc(100dvh - 22px));
    border-radius:20px;
    background:var(--reel-bg);
}
dialog.asi217-viewer.asi332-viewer[data-desktop="compact"] {
    width:min(32.5rem,calc(100vw - 28px));
}

.asi332-viewer .asi217-viewer-shell {
    --reel-top-size:57px;
    --reel-player-inset:0px;
    --reel-rail-width:66px;
    --reel-caption-size:clamp(74px,10dvh,96px);
    --reel-native-controls:clamp(56px,7.5dvh,74px);
    --reel-edge-start:14px;
    --reel-edge-end:14px;
    --reel-player-edge:0px;
    position:relative;
    isolation:isolate;
    box-sizing:border-box;
    background:var(--reel-bg);
}
.asi332-viewer .asi217-viewer-shell:fullscreen { width:100%; height:100%; }
.asi332-viewer .asi332-reel-ambient {
    position:absolute;
    inset:0;
    z-index:-1;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(.59) saturate(.83);
    pointer-events:none;
}

.asi332-viewer .asi100-viewer-top {
    min-height:var(--reel-top-size);
    gap:clamp(4px,1.3vw,9px);
    padding:6px var(--reel-edge-end) 6px var(--reel-edge-start);
    border-block-end:0;
    background:linear-gradient(180deg,#10121def,#10121d30 80%,transparent);
}
.asi332-viewer .asi217-viewer-shell:not(:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden]))) {
    --reel-player-inset:var(--reel-top-size);
}
.asi332-viewer .asi217-viewer-shell:not(:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden]))) .asi100-viewer-top {
    position:absolute;
    inset:0 0 auto;
    z-index:3;
}
.asi332-viewer .asi217-reel-identity {
    position:relative;
    padding-inline-start:12px;
    text-shadow:0 1px 4px #000;
}
.asi332-viewer .asi217-reel-identity::before {
    position:absolute;
    inset:2px auto 2px 0;
    width:3px;
    border-radius:3px;
    background:var(--reel-accent);
    content:"";
}
.asi332-viewer .asi100-viewer-counter {
    padding:4px 7px;
    border:1px solid #ffffff33;
    border-radius:999px;
    background:#101625b8;
    color:var(--reel-text);
}
.asi332-viewer .asi100-viewer-top .asi217-top-button {
    background:#101625c9;
    border-color:#ffffff40;
}
.asi332-viewer .asi100-viewer-close {
    background:#3e2233e8;
    border-color:#9c596a;
}
.asi332-viewer .asi217-reel-filters { padding:6px 9px; scrollbar-width:thin; }
.asi332-viewer .asi217-reel-filters button { flex:none; }

.asi332-viewer .asi217-reel-main {
    position:relative;
    grid-template-columns:minmax(0,1fr) var(--reel-rail-width);
    grid-template-rows:minmax(0,1fr);
    width:100%;
    overflow:hidden;
    background:transparent;
}
.asi332-viewer .asi100-viewer-feed { grid-area:1 / 1 / 2 / -1; }
.asi332-viewer .asi100-viewer-slide { display:block; padding:0; }
.asi332-viewer .asi100-viewer-card {
    position:relative;
    grid-template-rows:minmax(0,1fr) var(--reel-caption-size);
    border:0;
    border-radius:0;
    background:transparent;
}

/* The artwork fills the stage. Leave space around the embedded player for site controls. */
.asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] .asi100-viewer-card {
    padding-block-start:var(--reel-player-inset);
}
.asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] .asi100-viewer-player {
    width:calc(100% - var(--reel-rail-width) - var(--reel-player-edge));
    margin-inline-start:var(--reel-player-edge);
    background:transparent;
}
.asi332-viewer .asi100-viewer-player iframe { background:#000; }
@supports (width:1cqh) and (height:1cqw) {
    .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] .asi100-viewer-player {
        display:grid;
        place-items:center;
        container-type:size;
    }
    .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] iframe {
        width:min(100%,max(200px,56.25cqh));
        height:min(100%,max(200px,177.7778cqw));
    }
}

.asi332-viewer .asi100-viewer-caption {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"publisher source" "title source";
    align-items:center;
    align-content:center;
    gap:3px 8px;
    min-width:0;
    padding:5px var(--reel-edge-end) 7px var(--reel-edge-start);
    border:0;
    background:linear-gradient(0deg,#10121df7,#111724a3 70%,transparent);
    text-shadow:0 1px 4px #000;
}
.asi332-viewer .asi100-viewer-source {
    grid-area:publisher;
    justify-self:start;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.69rem;
    line-height:1.1;
}
.asi332-viewer .asi100-viewer-caption h2 {
    grid-area:title;
    font-size:clamp(.93rem,3.5vw,1.24rem);
    font-weight:810;
    line-height:1.15;
    letter-spacing:-.016em;
}
.asi332-viewer .asi100-viewer-source-link {
    grid-area:source;
    box-sizing:border-box;
    min-height:44px;
    max-width:100%;
    padding:2px 7px;
    border:1px solid #ffffff3d;
    border-radius:10px;
    background:#161b29d1;
    color:var(--reel-text);
    font-size:.72rem;
    white-space:nowrap;
}
.asi332-viewer .asi100-viewer-source-link:hover { border-color:var(--reel-accent); color:var(--reel-accent); }

.asi332-viewer .asi100-viewer-slide[data-short-kind="media"] .asi100-viewer-card {
    grid-template-rows:minmax(0,1fr);
}
.asi332-viewer .asi100-viewer-slide[data-short-kind="media"] video.is-portrait { object-fit:cover; }
.asi332-viewer .asi100-viewer-slide[data-short-kind="media"] .asi100-viewer-caption {
    position:absolute;
    inset:auto calc(var(--reel-rail-width) + 5px) var(--reel-native-controls) var(--reel-edge-start);
    z-index:1;
    grid-template-areas:"publisher source" "title title";
    padding:6px 9px 9px;
    border-inline-start:2px solid var(--reel-accent);
    border-radius:0 10px 10px 0;
    background:linear-gradient(90deg,#141724e8,#14172480 83%,transparent);
    pointer-events:none;
}
.asi332-viewer .asi100-viewer-slide[data-short-kind="media"] .asi100-viewer-source-link { pointer-events:auto; }

.asi332-viewer .asi217-reel-rail {
    --reel-rail-clearance:var(--reel-caption-size);
    grid-area:1 / 2;
    z-index:2;
    align-self:stretch;
    box-sizing:border-box;
    margin-block:var(--reel-player-inset) var(--reel-rail-clearance);
    justify-content:flex-start;
    gap:4px;
    padding:4px max(3px,env(safe-area-inset-right,0px)) 6px 3px;
    overflow:auto;
    scrollbar-width:none;
}
.asi332-viewer .asi217-viewer-shell[data-short-kind="media"] .asi217-reel-rail {
    --reel-rail-clearance:var(--reel-native-controls);
    align-self:end;
    max-height:calc(100% - var(--reel-player-inset) - var(--reel-rail-clearance));
    margin-block-start:0;
}
.asi332-viewer .asi217-viewer-shell[data-short-kind=""] .asi217-reel-rail { visibility:hidden; }
.asi332-viewer .asi217-reel-actions {
    grid-template-columns:minmax(0,1fr);
    margin-block-start:auto;
    gap:clamp(3px,.7dvh,8px);
}
.asi332-viewer .asi217-reel-action {
    box-sizing:border-box;
    width:48px;
    min-height:48px;
    padding:4px 2px;
    gap:2px;
    border-color:#ffffff40;
    border-radius:15px;
    background:#161b2bc7;
    box-shadow:0 3px 9px #06081160;
    text-shadow:0 1px 4px #000;
}
.asi332-viewer .asi217-reel-action svg { width:21px; height:21px; }
.asi332-viewer .asi217-reel-rail :focus-visible { outline-offset:-2px; }
.asi332-viewer .asi217-reel-comments { background:#1b1725; }
.asi332-viewer :is(.asi217-reel-swipe,.asi336-reel-info) { display:none; }

@media (max-height:550px) {
    .asi332-viewer .asi217-viewer-shell {
        --reel-top-size:52px;
        --reel-caption-size:57px;
        --reel-native-controls:50px;
    }
    .asi332-viewer .asi100-viewer-top { padding-block:4px; }
    .asi332-viewer .asi100-viewer-caption { padding-block:3px 5px; }
    .asi332-viewer .asi217-reel-action { width:44px; min-height:44px; }
}
@media (max-height:550px) and (min-width:761px) {
    dialog.asi217-viewer.asi332-viewer[data-desktop="wide"] { width:min(57rem,calc(100vw - 18px)); }
}

@media (max-width:760px), (orientation:landscape) and (max-height:540px) and (hover:none) and (pointer:coarse) {
    dialog.asi217-viewer.asi332-viewer[data-desktop] {
        inset:0;
        width:100%;
        height:100vh;
        height:100dvh;
        margin:0;
        border:0;
        border-radius:0;
    }
    .asi332-viewer .asi217-viewer-shell {
        --reel-top-size:calc(48px + env(safe-area-inset-top,0px));
        --reel-action-edge:max(2px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
        --reel-rail-width:calc(46px + var(--reel-action-edge));
        --reel-title-size:clamp(1rem,4.05vw,1.32rem);
        --reel-title-line:calc(var(--reel-title-size) * 1.16);
        --reel-caption-size:max(calc(2 * var(--reel-title-line) + 32px),clamp(68px,8.8dvh,85px));
        --reel-native-controls:54px;
        --reel-action-offset:clamp(12px,12dvh,92px);
        --reel-edge-start:max(13px,env(safe-area-inset-left,0px));
        --reel-edge-end:max(8px,env(safe-area-inset-right,0px));
        padding-block-end:env(safe-area-inset-bottom,0px);
    }
    .asi332-viewer .asi100-viewer-top {
        gap:4px;
        padding-block:calc(2px + env(safe-area-inset-top,0px)) 2px;
        background:linear-gradient(180deg,#091321e8,#09132165 78%,transparent);
    }
    .asi332-viewer .asi100-viewer-counter {
        padding:2px 4px;
        border:0;
        background:transparent;
        text-shadow:0 1px 4px #000;
    }
    .asi332-viewer .asi100-viewer-top :is(.asi217-top-button,.asi100-viewer-close) {
        border:0;
        border-radius:12px;
        background:transparent;
        filter:drop-shadow(0 1px 3px #020510);
    }
    .asi332-viewer .asi100-viewer-top .asi100-viewer-close { color:#ffadba; }
    .asi332-viewer .asi100-viewer-top .asi217-top-button[aria-expanded="true"] {
        background:#141c2bce;
    }

    .asi332-viewer .asi217-viewer-shell:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden])) {
        --reel-action-offset:4px;
    }
    /* One action column, with space above and below the group for video gestures. */
    .asi332-viewer .asi217-viewer-shell[data-short-kind] .asi217-reel-rail {
        --reel-rail-clearance:max(var(--reel-native-controls),var(--reel-caption-size));
        align-self:stretch;
        align-items:flex-end;
        justify-content:safe center;
        max-height:none;
        margin-block:var(--reel-player-inset) var(--reel-rail-clearance);
        padding:var(--reel-action-offset) var(--reel-action-edge) 4px 0;
    }
    .asi332-viewer .asi217-viewer-shell[data-short-kind="media"] .asi217-reel-rail { pointer-events:none; }
    .asi332-viewer .asi217-viewer-shell[data-short-kind="media"] .asi217-reel-actions { pointer-events:auto; }
    .asi332-viewer .asi217-viewer-shell:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden])) .asi217-reel-rail {
        touch-action:pan-y;
    }
    .asi332-viewer .asi217-reel-actions {
        flex:none;
        gap:clamp(3px,.85dvh,7px);
        margin:0;
        padding:1px;
        border-radius:16px;
        background:#142030bd;
        box-shadow:inset 0 0 0 1px #bccce237,0 4px 16px #0005;
    }
    .asi332-viewer .asi217-reel-actions .asi217-reel-action {
        width:44px;
        min-height:clamp(44px,5.8dvh,52px);
        padding:2px 0;
        gap:2px;
        border:0;
        border-radius:14px;
        background:transparent;
        box-shadow:none;
        font-size:.64rem;
        line-height:1.1;
        text-shadow:0 1px 3px #000,0 0 8px #101625;
    }
    .asi332-viewer .asi217-reel-actions .asi217-reel-action:is([aria-pressed="true"],[aria-expanded="true"]) {
        background:#f6849b24;
        color:var(--reel-accent);
    }
    .asi332-viewer .asi217-reel-action svg {
        width:23px;
        height:23px;
        filter:drop-shadow(0 2px 3px #050715);
    }

    .asi332-viewer .asi100-viewer-caption {
        align-content:end;
        grid-template-areas:"title title" "publisher source";
        gap:0 6px;
        padding-block:3px 3px;
        overflow:hidden;
        background:linear-gradient(0deg,#09111ae8,#09111a57 86%,transparent);
        text-shadow:0 2px 4px #030710,0 0 12px #091321;
    }
    .asi332-viewer .asi100-viewer-caption h2 {
        font-size:var(--reel-title-size);
        line-height:var(--reel-title-line);
        -webkit-line-clamp:2;
    }
    .asi332-viewer .asi100-viewer-source-link {
        justify-self:end;
        min-height:26px;
        padding:0 2px;
        border:0;
        background:transparent;
        color:#f3d4dc;
        font-size:.72rem;
    }
    .asi332-viewer .asi100-viewer-slide[data-short-kind="media"] .asi100-viewer-caption {
        inset-inline:0 calc(var(--reel-rail-width) + 3px);
        grid-template-areas:"title title" "publisher source";
        padding:8px 7px 4px var(--reel-edge-start);
        border:0;
        border-radius:0;
        background:linear-gradient(90deg,#0913218c,#09132135 78%,transparent);
    }
    .asi332-viewer .asi217-viewer-shell[data-short-kind="media"]:not(:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden]))) .asi217-reel-status {
        position:absolute;
        z-index:3;
        inset:calc(var(--reel-top-size) + 4px) calc(var(--reel-rail-width) + 4px) auto var(--reel-edge-start);
        border:0;
        border-radius:8px;
        background:#141c2bdf;
    }
    .asi332-viewer .asi217-reel-filters {
        flex-wrap:nowrap;
        overflow-x:auto;
        overscroll-behavior-inline:contain;
    }

    .asi332-viewer .asi217-viewer-shell[data-short-kind="youtube"] .asi332-reel-ambient {
        opacity:.24;
        filter:blur(28px) brightness(.66) saturate(.84);
        transform:scale(1.1);
    }
    /* Equal side gutters center the official player and keep its controls clear. */
    .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] .asi100-viewer-player {
        display:block;
        width:calc(100% - 2 * var(--reel-rail-width));
        margin-inline:auto;
        container-type:normal;
        background:#000;
    }
    .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] iframe { width:100%; height:100%; }
}
@media (max-width:760px) and (max-height:415px), (orientation:landscape) and (max-height:415px) and (hover:none) and (pointer:coarse) {
    .asi332-viewer .asi217-viewer-shell { --reel-caption-size:calc(var(--reel-title-line) + 32px); }
    .asi332-viewer .asi100-viewer-caption h2 { -webkit-line-clamp:1; }
}
@media (orientation:landscape) and (max-height:540px) {
    .asi332-viewer .asi217-viewer-shell { --reel-rail-width:calc(96px + var(--reel-action-edge,0px)); }
    .asi332-viewer .asi217-reel-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .asi332-viewer .asi100-viewer-slide[data-short-kind="media"] video.is-portrait { object-fit:contain; }
}

@supports (width:1cqw) and (height:1cqh) {
    @media (min-width:761px) and (pointer:fine) {
        dialog.asi217-viewer.asi332-viewer[data-desktop] {
            --reel-bg:#0d1522;
            --reel-panel:#18263a;
            --reel-line:#40506a;
            width:min(56rem,calc(100vw - 32px));
            height:calc(100dvh - 26px);
            border-color:#7794ba4d;
            border-radius:22px;
        }
        dialog.asi217-viewer.asi332-viewer[data-desktop="compact"] {
            width:min(45rem,calc(100vw - 32px));
            height:min(48rem,calc(100dvh - 26px));
        }
        dialog.asi217-viewer.asi332-viewer[data-desktop="wide"]:has(.asi217-reel-comments:not([hidden])) {
            width:min(69rem,calc(100vw - 32px));
        }
        .asi332-viewer .asi217-viewer-shell {
            --reel-caption-size:80px;
            --reel-rail-width:68px;
            background:radial-gradient(ellipse at 22% 12%,#162e47,transparent 64%),#0d1522;
        }
        .asi332-viewer .asi332-reel-ambient {
            opacity:.20;
            filter:blur(46px) brightness(.7) saturate(.84);
            transform:scale(1.1);
        }
        .asi332-viewer .asi217-viewer-shell:not(:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden]))) {
            --reel-player-inset:0px;
        }
        .asi332-viewer .asi217-viewer-shell:not(:has(.asi217-reel-filters:not([hidden]),.asi217-reel-comments:not([hidden]))) .asi100-viewer-top {
            position:relative;
            inset:auto;
        }
        .asi332-viewer .asi100-viewer-top {
            min-height:62px;
            padding-inline:20px;
            border-block-end:1px solid #b0c9e424;
            background:#111c2bee;
        }
        .asi332-viewer .asi217-reel-identity .asi100-viewer-label { font-size:.85rem; }
        .asi332-viewer .asi217-reel-identity small { font-size:.72rem; }
        .asi332-viewer .asi217-reel-main {
            --reel-stage-space:12px;
            --reel-card-edge:8px;
            --reel-rail-gap:14px;
            --reel-available-height:max(0px,calc(100cqh - 2 * var(--reel-stage-space) - var(--reel-caption-size) - var(--reel-card-edge)));
            --reel-frame-width:clamp(200px,calc(var(--reel-available-height) * .5625),max(200px,calc(100cqw - 2 * (var(--reel-rail-width) + var(--reel-rail-gap) + var(--reel-card-edge)))));
            --reel-frame-height:min(var(--reel-available-height),calc(var(--reel-frame-width) * 16 / 9));
            --reel-card-height:calc(var(--reel-frame-height) + var(--reel-caption-size) + var(--reel-card-edge));
            grid-template-columns:minmax(0,1fr);
            container-type:size;
        }
        .asi332-viewer .asi100-viewer-slide {
            display:grid;
            place-items:center;
            padding-block:var(--reel-stage-space);
        }
        .asi332-viewer .asi100-viewer-slide[data-short-kind] .asi100-viewer-card {
            width:calc(var(--reel-frame-width) + 2 * var(--reel-card-edge));
            height:var(--reel-card-height);
            grid-template-rows:minmax(0,1fr) var(--reel-caption-size);
            padding:var(--reel-card-edge) var(--reel-card-edge) 0;
            border-radius:16px;
            background:#141f30;
            box-shadow:0 16px 40px #03081499,0 0 0 1px #92afd332;
        }
        .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] .asi100-viewer-player {
            display:block;
            width:100%;
            margin:0;
            container-type:normal;
        }
        .asi332-viewer .asi100-viewer-slide[data-short-kind="youtube"] iframe { width:100%; height:100%; }
        .asi332-viewer .asi100-viewer-slide[data-short-kind] .asi100-viewer-caption {
            position:relative;
            inset:auto;
            grid-template-areas:"publisher source" "title source";
            gap:4px 10px;
            padding:8px 8px 9px;
            border:0;
            border-radius:0;
            overflow:hidden;
            background:#141f30;
            pointer-events:auto;
        }
        .asi332-viewer .asi100-viewer-caption h2 { font-size:1.02rem; line-height:1.22; }
        .asi332-viewer .asi100-viewer-source { font-size:.74rem; }
        .asi332-viewer .asi100-viewer-source-link {
            min-height:36px;
            padding-inline:7px;
            border-radius:8px;
            background:#1b2a3f;
        }
        .asi332-viewer .asi217-viewer-shell[data-short-kind] .asi217-reel-rail {
            position:absolute;
            grid-area:auto;
            inset-block-start:calc((100% - var(--reel-card-height)) / 2 + var(--reel-card-edge));
            inset-inline-start:calc((100% + var(--reel-frame-width)) / 2 + var(--reel-card-edge) + var(--reel-rail-gap));
            width:var(--reel-rail-width);
            height:var(--reel-frame-height);
            max-height:none;
            margin:0;
            padding:0 1px clamp(14px,5dvh,48px);
        }
        .asi332-viewer .asi217-reel-actions {
            grid-template-columns:minmax(0,1fr);
            width:100%;
            box-sizing:border-box;
            gap:2px;
            padding:4px;
            border:1px solid #9dbde33d;
            border-radius:17px;
            background:linear-gradient(150deg,#253750,#172437);
            box-shadow:0 10px 24px #040a1580;
        }
        .asi332-viewer .asi217-reel-actions .asi217-reel-action {
            width:100%;
            min-height:52px;
            border:0;
            border-radius:11px;
            background:transparent;
            box-shadow:none;
        }
        .asi332-viewer .asi217-reel-actions .asi217-reel-action:hover { background:#345175a8; }
        .asi332-viewer .asi217-reel-actions .asi217-reel-action:is([aria-pressed="true"],[aria-expanded="true"]) {
            background:#473449;
            color:var(--reel-accent);
        }
        .asi332-viewer .asi217-reel-action svg { width:22px; height:22px; }
        .asi332-viewer .asi217-viewer-shell:has(.asi217-reel-comments:not([hidden])) {
            grid-template-columns:minmax(0,1fr) minmax(220px,28%);
            grid-template-areas:"top top" "filters filters" "main comments" "status status";
            grid-template-rows:auto auto minmax(0,1fr) auto;
        }
        .asi332-viewer .asi217-reel-comments {
            min-height:0;
            max-height:none;
            margin:12px 14px 12px 0;
            padding:13px 14px;
            border:1px solid #b0c9e42d;
            border-radius:14px;
            background:#142033f5;
        }
    }
    @media (min-width:761px) and (max-height:540px) and (pointer:fine) {
        .asi332-viewer .asi217-viewer-shell { --reel-caption-size:51px; }
        .asi332-viewer .asi100-viewer-caption h2 { -webkit-line-clamp:1; }
        .asi332-viewer .asi217-reel-actions .asi217-reel-action { min-height:44px; }
    }
}
