/* 7S Video & Music Gallery public styles. */

.sg7g-archive,
.sg7g-single {
    --sg7g-width: var(--ys-site-width, var(--ys-container-width, var(--site-width, var(--container-width, var(--wp--style--global--wide-size, 1440px)))));
    --sg7g-text: #161616;
    --sg7g-muted: #696969;
    --sg7g-line: rgba(20,20,20,.12);
    --sg7g-surface: #f4f4f4;
    --sg7g-radius: 8px;
    box-sizing: border-box;
    width: min(calc(100% - 48px), var(--sg7g-width));
    max-width: none;
    margin: 0 auto;
    padding: 64px 0;
    color: var(--sg7g-text);
    font-family: var(--sg7g-body-font, inherit);
    font-weight: var(--sg7g-body-weight, inherit);
}

.sg7g-archive [hidden] {
    display: none !important;
}

.sg7g-single__header {
    width: 100%;
    max-width: none;
    margin-bottom: 34px;
}

.sg7g-single h1 {
    margin: 0;
    font-family: var(--sg7g-single-title-font, var(--sg7g-title-font, inherit));
    font-size: clamp(32px, 5vw, var(--sg7g-single-title-size, 62px));
    font-weight: var(--sg7g-single-title-weight, var(--sg7g-title-weight, inherit));
    line-height: 1.04;
}

.sg7g-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin: 0 0 38px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--sg7g-line);
}

.sg7g-menu__item {
    position: relative;
    padding: 0 0 4px;
    color: inherit;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.sg7g-menu__item::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .2s ease;
}

.sg7g-menu__item:hover::after,
.sg7g-menu__item:focus-visible::after,
.sg7g-menu__item.is-active::after {
    transform: scaleX(1);
}

.sg7g-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 24px;
}

.sg7g-card {
    min-width: 0;
}

.sg7g-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sg7g-surface);
}

.sg7g-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg7g-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.sg7g-card__media-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(17,17,17,.64);
    color: #fff;
}


.sg7g-card__type-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.sg7g-card__type-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sg7g-card__type-icon--audio svg {
    width: 13px;
    height: 13px;
}

.sg7g-card__views-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 12px / 8px;
    box-sizing: border-box;
}

.sg7g-card__views-icon::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sg7g-card__views-text {
    font-variant-numeric: tabular-nums;
}

.sg7g-card__likes-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.sg7g-card__likes-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sg7g-card__likes-text {
    font-variant-numeric: tabular-nums;
}

.sg7g-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 0 0;
}

.sg7g-card__metrics {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: var(--sg7g-muted);
    font-size: 12px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.sg7g-card__title {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-family: var(--sg7g-title-font, inherit);
    font-size: var(--sg7g-card-title-size, 17px);
    font-weight: var(--sg7g-title-weight, inherit);
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-card__title a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-card__title a:hover,
.sg7g-card__title a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.sg7g-single__article {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Single pages use the player directly; the archive cover is not repeated. */
.sg7g-single__article > .post-thumbnail,
.sg7g-single__article > .wp-post-image {
    display: none !important;
}

.sg7g-single__player {
    width: 100%;
    margin-bottom: 38px;
}

.sg7g-embed-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--sg7g-radius);
    background: #111;
}

.sg7g-embed-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Müzik platformları video gibi 16:9 çerçeveye zorlanmaz. */
.sg7g-embed-frame--spotify,
.sg7g-embed-frame--apple_music,
.sg7g-embed-frame--soundcloud,
.sg7g-embed-frame--deezer {
    aspect-ratio: auto;
    background: transparent;
}

.sg7g-embed-frame--spotify iframe {
    height: 352px;
}

.sg7g-embed-frame--spotify-track iframe,
.sg7g-embed-frame--spotify-episode iframe {
    height: 152px;
}

.sg7g-embed-frame--apple_music iframe {
    height: 450px;
}

.sg7g-embed-frame--apple-music-song iframe {
    height: 175px;
}

.sg7g-embed-frame--soundcloud iframe,
.sg7g-embed-frame--deezer iframe {
    height: 300px;
}

.sg7g-embed-frame--soundcloud-set iframe {
    height: 450px;
}

.sg7g-single__content {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: var(--sg7g-content-text-size, 18px);
    font-weight: var(--sg7g-body-weight, inherit);
    line-height: 1.75;
}

.sg7g-single .sg7g-single__content > :where(*) {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.sg7g-single__content :where(h2, h3, h4, h5, h6) {
    font-family: var(--sg7g-title-font, inherit);
    font-weight: var(--sg7g-title-weight, inherit);
}

.sg7g-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    width: 100%;
    max-width: none;
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--sg7g-line);
}

.sg7g-tags a {
    color: inherit;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}

.sg7g-tags a:hover,
.sg7g-tags a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sg7g-single__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 26px 0 22px;
    padding: 18px 0;
    border-top: 1px solid var(--sg7g-line);
    border-bottom: 1px solid var(--sg7g-line);
}

.sg7g-single__nav > div:last-child {
    text-align: right;
}

.sg7g-related {
    margin-top: 18px;
}

.sg7g-related h2 {
    margin-bottom: 18px;
    font-family: var(--sg7g-title-font, inherit);
    font-weight: var(--sg7g-title-weight, inherit);
}

.sg7g-empty {
    padding: 22px;
    background: var(--sg7g-surface);
    border-radius: var(--sg7g-radius);
}

@media (max-width: 620px) {
    .sg7g-card__title {
        font-size: var(--sg7g-card-title-mobile, 17px);
    }

    .sg7g-single__nav > div:last-child {
        text-align: left;
    }
}

.sg7g-single__content:empty {
    display: none;
}

.sg7g-single__content:empty + .sg7g-tags {
    margin-top: 0;
}

.sg7g-single__nav a {
    color: inherit;
    text-decoration: none;
}

.sg7g-single__nav a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* Arşiv ve kategori sayfalarında sade sayfalama. */
.sg7g-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 48px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--sg7g-line);
}

.sg7g-pagination .page-numbers {
    position: relative;
    display: inline-block;
    padding: 2px 0 5px;
    color: inherit;
    line-height: 1.4;
    text-decoration: none;
}

.sg7g-pagination .page-numbers::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .2s ease;
}

.sg7g-pagination a.page-numbers:hover::after,
.sg7g-pagination a.page-numbers:focus-visible::after,
.sg7g-pagination .page-numbers.current::after {
    transform: scaleX(1);
}

.sg7g-pagination .page-numbers.current {
    font-weight: 600;
}

.sg7g-pagination .prev {
    margin-right: 8px;
}

.sg7g-pagination .next {
    margin-left: 8px;
}

/* Responsive layout and overflow protection. */
.sg7g-archive,
.sg7g-single,
.sg7g-archive *,
.sg7g-single * {
    box-sizing: border-box;
}

.sg7g-archive img,
.sg7g-single img,
.sg7g-single video,
.sg7g-single audio,
.sg7g-single iframe,
.sg7g-single object,
.sg7g-single embed {
    max-width: 100%;
}

.sg7g-single h1,
.sg7g-single__content,
.sg7g-single__nav a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.sg7g-single__player .mejs-container,
.sg7g-single__player .wp-video,
.sg7g-single__player .wp-audio-shortcode,
.sg7g-single__player video,
.sg7g-single__player audio,
.sg7g-oembed,
.sg7g-oembed > * {
    width: 100% !important;
    max-width: 100% !important;
}

.sg7g-single__content figure,
.sg7g-single__content .wp-block-image,
.sg7g-single__content .wp-block-embed,
.sg7g-single__content .wp-block-video,
.sg7g-single__content .wp-block-audio {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.sg7g-single__content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.sg7g-single__content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
}

.sg7g-single__nav > div {
    min-width: 0;
}

.sg7g-single__nav a {
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .sg7g-archive,
    .sg7g-single {
        width: min(calc(100% - 32px), var(--sg7g-width));
        padding: 50px 0;
    }

    .sg7g-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .sg7g-menu {
        flex-wrap: nowrap;
        gap: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 14px;
        margin-bottom: 32px;
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sg7g-menu::-webkit-scrollbar {
        display: none;
    }

    .sg7g-menu__item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .sg7g-single__header {
        margin-bottom: 28px;
    }

    .sg7g-single h1 {
        font-size: clamp(var(--sg7g-single-title-mobile, 34px), 5.4vw, var(--sg7g-single-title-size, 50px));
        line-height: 1.08;
    }

    .sg7g-single__player {
        margin-bottom: 30px;
    }

    .sg7g-single__content {
        font-size: var(--sg7g-content-text-mobile, 17px);
        line-height: 1.7;
    }

    .sg7g-pagination {
        justify-content: center;
        gap: 12px 18px;
        margin-top: 38px;
        padding-top: 18px;
    }

    .sg7g-pagination .prev,
    .sg7g-pagination .next {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .sg7g-empty {
        padding: 18px;
        border-radius: var(--sg7g-radius);
    }
}

@media (max-width: 760px) {
    .sg7g-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }
}

@media (max-width: 390px) {
    .sg7g-archive,
    .sg7g-single {
        width: min(calc(100% - 20px), var(--sg7g-width));
    }


}

@media (prefers-reduced-motion: reduce) {
    .sg7g-menu__item::after,
    .sg7g-pagination .page-numbers::after {
        transition: none;
    }
}

/* Accessibility and lazy media loading. */
.sg7g-card__media:focus-visible,
.sg7g-card__title a:focus-visible,
.sg7g-menu__item:focus-visible,
.sg7g-tags a:focus-visible,
.sg7g-single__nav a:focus-visible,
.sg7g-pagination a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.sg7g-lazy-embed,
.sg7g-oembed {
    position: relative;
}

.sg7g-lazy-embed iframe[data-sg7g-src],
.sg7g-oembed iframe[data-sg7g-src] {
    opacity: 0;
    transition: opacity .2s ease;
}

.sg7g-lazy-embed.is-loaded iframe[data-sg7g-src],
.sg7g-oembed.is-loaded iframe[data-sg7g-src] {
    opacity: 1;
}

.sg7g-lazy-embed noscript iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .sg7g-lazy-embed iframe[data-sg7g-src],
    .sg7g-oembed iframe[data-sg7g-src] {
        transition: none;
    }
}

/* Player fallback and source errors. */
.sg7g-embed-fallback {
    position: absolute;
    inset: auto 50% 18px auto;
    z-index: 2;
    transform: translateX(50%);
    padding: 9px 14px;
    border: 1px solid currentColor;
    border-radius: var(--sg7g-radius);
    color: inherit;
    background: var(--sg7g-surface);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.sg7g-embed-fallback[hidden] {
    display: none !important;
}

.sg7g-lazy-embed:not(.is-error) > .sg7g-embed-fallback {
    display: none;
}

.sg7g-lazy-embed.is-error iframe[data-sg7g-src] {
    opacity: 0;
    pointer-events: none;
}

.sg7g-source-error {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--sg7g-line);
    border-radius: var(--sg7g-radius);
    background: var(--sg7g-surface);
    color: var(--sg7g-muted);
}

.sg7g-source-error p {
    margin: 0;
}

.sg7g-source-error a,
.sg7g-embed-fallback:focus-visible {
    color: inherit;
    text-underline-offset: .2em;
}

@media (max-width: 620px) {
    .sg7g-embed-fallback {
        bottom: 12px;
        max-width: calc(100% - 24px);
        text-align: center;
    }
}

/* Compact archive controls and live search. */
.sg7g-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sg7g-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    min-height: 38px;
    margin: 0 0 24px;
    padding: 0 0 7px;
    border-bottom: 1px solid var(--sg7g-line);
}

.sg7g-archive .sg7g-toolbar {
    border-bottom: 0;
}

.sg7g-toolbar__controls {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    margin-left: auto;
}

.sg7g-menu-control,
.sg7g-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
}

.sg7g-toolbar__button,
.sg7g-toolbar__home {
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity .18s ease;
}

.sg7g-toolbar__button {
    display: none;
}

.sg7g-toolbar__home {
    display: inline-flex;
    text-decoration: none !important;
}

.sg7g-toolbar__home::before,
.sg7g-toolbar__home::after {
    display: none !important;
}

.sg7g-toolbar.is-enhanced .sg7g-toolbar__button {
    display: inline-flex;
}

.sg7g-toolbar__button:hover,
.sg7g-toolbar__home:hover,
.sg7g-toolbar__button[aria-expanded="true"] {
    opacity: .58;
}

.sg7g-toolbar__button:focus,
.sg7g-toolbar__button:focus-visible,
.sg7g-toolbar__home:focus,
.sg7g-toolbar__home:focus-visible {
    border: 0 !important;
    outline: 1px solid currentColor !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

.sg7g-toolbar__icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}


.sg7g-menu-control .sg7g-menu {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 24px;
    width: max-content;
    max-width: min(760px, calc(100vw - 160px));
    min-height: 34px;
    margin: 0 6px 0 0;
    padding: 0 2px;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.sg7g-menu-control .sg7g-menu::-webkit-scrollbar {
    display: none;
}

.sg7g-menu-control .sg7g-menu__item {
    flex: 0 0 auto;
    font-size: 14px;
}

.sg7g-search__panel {
    flex: 0 1 auto;
    width: 320px;
    max-width: min(320px, calc(100vw - 160px));
    margin-right: 6px;
}

.sg7g-search__form,
.sg7g-search__field {
    width: 100%;
}

.sg7g-search__form {
    margin: 0 !important;
    padding: 0 !important;
}

.sg7g-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 34px;
    overflow: hidden;
    border: 1px solid var(--sg7g-line);
    border-radius: var(--sg7g-radius);
    background: transparent;
    transition: border-color .18s ease;
}

.sg7g-search__field::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
    pointer-events: none;
}

.sg7g-search__field:focus-within {
    border-color: var(--sg7g-line);
    box-shadow: none;
    outline: 0;
}

.sg7g-search__field:focus-within::after {
    transform: scaleX(1);
}

.sg7g-search__input {
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 64px 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.sg7g-search__input::-webkit-search-cancel-button {
    display: none;
}

.sg7g-search__input,
.sg7g-search__input:focus,
.sg7g-search__input:focus-visible,
.sg7g-search__submit,
.sg7g-search__submit:focus,
.sg7g-search__submit:focus-visible,
.sg7g-search__clear:focus,
.sg7g-search__clear:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sg7g-search__clear {
    position: absolute;
    right: 12px;
    top: 50%;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--sg7g-muted);
    font: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.sg7g-search__clear[hidden] {
    display: none !important;
}

.sg7g-search__clear:hover,
.sg7g-search__clear:focus-visible {
    color: var(--sg7g-text);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sg7g-search__status {
    min-height: 0;
    margin: 6px 0 0;
    color: var(--sg7g-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.sg7g-search__status:empty {
    display: none;
}

.sg7g-toolbar.is-enhanced .sg7g-menu-control .sg7g-menu,
.sg7g-toolbar.is-enhanced .sg7g-search__panel {
    max-width: 0;
    margin-right: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transform-origin: right center;
    transition: max-width .24s ease, margin-right .24s ease, opacity .16s ease, transform .24s ease, visibility 0s linear .24s;
}

.sg7g-toolbar.is-enhanced .sg7g-menu-control.is-open .sg7g-menu {
    max-width: min(760px, calc(100vw - 160px));
    margin-right: 6px;
    overflow-x: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
}

.sg7g-toolbar.is-enhanced .sg7g-search.is-open .sg7g-search__panel {
    max-width: min(320px, calc(100vw - 160px));
    margin-right: 6px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
}

.sg7g-results {
    transition: opacity .18s ease;
}

.sg7g-results.is-loading {
    opacity: .48;
    pointer-events: none;
}

.sg7g-pagination button.page-numbers {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.sg7g-pagination .page-numbers.dots::after {
    display: none;
}

@media (max-width: 620px) {
    .sg7g-toolbar {
        min-height: 38px;
        margin-bottom: 22px;
        padding-bottom: 7px;
    }

    .sg7g-toolbar__controls {
        gap: 2px;
    }

    .sg7g-toolbar__button,
    .sg7g-toolbar__home {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .sg7g-toolbar__icon {
        width: 21px;
        height: 21px;
    }

    .sg7g-menu-control .sg7g-menu,
    .sg7g-toolbar.is-enhanced .sg7g-menu-control.is-open .sg7g-menu {
        max-width: calc(100vw - 140px);
        gap: 8px 18px;
    }

    .sg7g-search__panel,
    .sg7g-toolbar.is-enhanced .sg7g-search.is-open .sg7g-search__panel {
        width: calc(100vw - 140px);
        max-width: calc(100vw - 140px);
    }

    .sg7g-search__input {
        height: 34px;
        padding-right: 58px;
        font-size: 16px;
    }

    .sg7g-search__field {
        min-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg7g-toolbar__button,
    .sg7g-toolbar__home,
    .sg7g-menu-control .sg7g-menu,
    .sg7g-search__panel,
    .sg7g-search__field,
    .sg7g-search__field::after,
    .sg7g-results {
        transition: none !important;
    }
}

/* Homepage showcase: one large item beside a compact 2 × 2 group. */
.sg7g-featured {
    width: 100%;
    margin: 0 0 18px;
    padding: 0 !important;
}

.sg7g-featured__heading {
    margin: 0 0 12px;
    padding: 0;
    color: var(--sg7g-text);
    font-family: var(--sg7g-featured-font, inherit);
    font-size: clamp(22px, 2.1vw, var(--sg7g-featured-area-title-size, 30px));
    font-weight: var(--sg7g-featured-weight, 650);
    line-height: 1.1;
}

.sg7g-featured__showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: start;
    gap: 12px;
}

.sg7g-featured-card {
    min-width: 0;
    border-bottom: 0;
}

.sg7g-featured__support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 10px;
}

.sg7g-featured__showcase-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
}

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

.sg7g-featured__showcase-grid--count-2 .sg7g-featured__support-grid,
.sg7g-featured__showcase-grid--count-3 .sg7g-featured__support-grid {
    grid-template-columns: minmax(0, 1fr);
}

.sg7g-featured__showcase-grid--count-4 .sg7g-featured-card--support:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    justify-self: center;
}

.sg7g-featured-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sg7g-surface);
    color: inherit;
    text-decoration: none;
}

.sg7g-featured-card__media img,
.sg7g-featured-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg7g-featured-card__placeholder {
    background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.sg7g-featured-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 0 13px;
}

.sg7g-featured-card__metrics {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: var(--sg7g-muted);
    font-size: 12px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.sg7g-featured-card__title {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: var(--sg7g-text);
    font-family: var(--sg7g-featured-font, inherit);
    font-size: clamp(16px, 1.4vw, var(--sg7g-featured-title-size, 23px));
    font-weight: var(--sg7g-featured-weight, 650);
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-featured-card--support .sg7g-featured-card__title {
    font-size: clamp(15px, 1.05vw, calc(var(--sg7g-featured-title-size, 23px) * .8));
}

.sg7g-featured-card__title a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-featured-card__title a:hover,
.sg7g-featured-card__title a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.sg7g-featured-card__media:focus-visible,
.sg7g-featured-card__title a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Compact thumbnail-led popularity list. */
.sg7g-popular {
    margin: 0 0 30px;
    padding: 17px 0 20px;
    border: 0;
}

.sg7g-archive .sg7g-toolbar + .sg7g-popular {
    margin-top: -30px;
}

.sg7g-popular__header {
    margin: 0 0 10px;
    padding: 0;
}

.sg7g-popular__header h2 {
    margin: 0;
    color: var(--sg7g-text);
    font-family: var(--sg7g-title-font, inherit);
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: var(--sg7g-title-weight, 650);
    line-height: 1.08;
}

.sg7g-popular__list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg7g-popular__list--columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

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

.sg7g-popular__list--columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg7g-popular__list--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg7g-popular__list--rows-1 {
    grid-template-rows: minmax(0, auto);
}

.sg7g-popular__list--rows-2 {
    grid-template-rows: repeat(2, minmax(0, auto));
}

.sg7g-popular__list--rows-3 {
    grid-template-rows: repeat(3, minmax(0, auto));
}

.sg7g-popular__list--rows-4 {
    grid-template-rows: repeat(4, minmax(0, auto));
}

.sg7g-popular__list--rows-5 {
    grid-template-rows: repeat(5, minmax(0, auto));
}

.sg7g-popular__list--rows-6 {
    grid-template-rows: repeat(6, minmax(0, auto));
}

.sg7g-popular__list--rows-7 {
    grid-template-rows: repeat(7, minmax(0, auto));
}

.sg7g-popular__list--rows-8 {
    grid-template-rows: repeat(8, minmax(0, auto));
}

.sg7g-popular__item {
    min-width: 0;
    border-bottom: 0;
}

.sg7g-popular__item a {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    min-height: 72px;
    align-items: center;
    gap: 13px;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
}

.sg7g-popular__media {
    display: block;
    width: 100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sg7g-surface);
}

.sg7g-popular__media img,
.sg7g-popular__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg7g-popular__placeholder {
    background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.sg7g-popular__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-family: var(--sg7g-title-font, inherit);
    font-size: 14px;
    font-weight: var(--sg7g-title-weight, 650);
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-popular__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.sg7g-popular__meta {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: var(--sg7g-muted);
    font-size: 11px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sg7g-popular__meta .sg7g-card__type-icon {
    width: 13px;
    height: 13px;
    margin-right: 3px;
}

.sg7g-popular__meta .sg7g-card__type-icon svg {
    width: 13px;
    height: 13px;
}

.sg7g-popular__meta .sg7g-card__views-icon {
    width: 14px;
    height: 9px;
}

.sg7g-popular__count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: var(--sg7g-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sg7g-popular__count .sg7g-card__likes-icon {
    color: var(--sg7g-popular-like-color, #a13b43);
}

.sg7g-popular__count .sg7g-card__likes-icon svg {
    fill: currentColor;
    stroke: currentColor;
}

.sg7g-popular__item a:hover .sg7g-popular__title,
.sg7g-popular__item a:focus-visible .sg7g-popular__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.sg7g-popular__item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.sg7g-stream-header {
    display: flex;
    align-items: baseline;
    margin: 0 0 13px;
    padding-bottom: 9px;
    border-bottom: 0;
}

.sg7g-stream-header h2 {
    margin: 0;
    color: var(--sg7g-text);
    font-family: var(--sg7g-title-font, inherit);
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: var(--sg7g-title-weight, 650);
    line-height: 1.1;
}

@media (max-width: 900px) {
    .sg7g-featured__showcase-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-featured__support-grid,
    .sg7g-featured__showcase-grid--count-3 .sg7g-featured__support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg7g-featured__showcase-grid--count-2 .sg7g-featured__support-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-featured__showcase-grid--count-4 .sg7g-featured-card--support:last-child {
        width: calc(50% - 5px);
    }

    .sg7g-popular__list {
        column-gap: 22px;
    }

    .sg7g-popular__list--columns-3,
    .sg7g-popular__list--columns-4 {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .sg7g-popular__item a {
        grid-template-columns: 88px minmax(0, 1fr) auto;
        min-height: 66px;
        gap: 10px;
    }

    .sg7g-popular__media {
        width: 88px;
    }
}

@media (max-width: 620px) {
    .sg7g-featured {
        margin-bottom: 20px;
    }

    .sg7g-featured__heading {
        margin-bottom: 9px;
        font-size: var(--sg7g-featured-title-mobile, 20px);
    }

    .sg7g-featured__showcase-grid {
        gap: 10px;
    }

    .sg7g-featured__support-grid {
        gap: 7px 8px;
    }

    .sg7g-featured-card__body {
        padding: 8px 0 11px;
    }

    .sg7g-featured-card__metrics {
        gap: 4px;
        font-size: 10px;
    }

    .sg7g-featured-card__title,
    .sg7g-featured-card--support .sg7g-featured-card__title {
        font-size: clamp(13px, calc(var(--sg7g-featured-title-mobile, 18px) * .8), 17px);
    }

    .sg7g-featured-card:first-child .sg7g-featured-card__title {
        font-size: var(--sg7g-featured-title-mobile, 18px);
    }

    .sg7g-popular {
        margin-bottom: 24px;
        padding: 14px 0 16px;
    }

    .sg7g-archive .sg7g-toolbar + .sg7g-popular {
        margin-top: -18px;
    }

    .sg7g-popular__header {
        margin-bottom: 8px;
        padding: 0;
    }

    .sg7g-popular__header h2 {
        font-size: 18px;
    }

    .sg7g-popular__list {
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .sg7g-popular__item a {
        grid-template-columns: 78px minmax(0, 1fr) auto;
        min-height: 60px;
        padding: 7px 0;
    }

    .sg7g-popular__media {
        width: 78px;
    }

    .sg7g-popular__title {
        font-size: 13px;
    }

    .sg7g-stream-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .sg7g-stream-header h2 {
        font-size: 20px;
    }
}


/* Tekil içerik beğeni aracı. */
.sg7g-single .sg7g-like {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 18px 0 0;
}

.sg7g-single .sg7g-like__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--sg7g-line);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--sg7g-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.sg7g-single .sg7g-like__button:hover,
.sg7g-single .sg7g-like__button:focus-visible,
.sg7g-single .sg7g-like__button.is-liked {
    border-color: var(--sg7g-text);
}

.sg7g-single .sg7g-like__button.is-liked {
    background: var(--sg7g-text);
    color: var(--sg7g-surface);
}

.sg7g-single .sg7g-like__button:focus-visible {
    outline: 2px solid var(--sg7g-text);
    outline-offset: 3px;
}

.sg7g-single .sg7g-like__button:disabled {
    cursor: wait;
    opacity: .64;
}

.sg7g-single .sg7g-like__icon {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: fill .18s ease;
}

.sg7g-single .sg7g-like__button.is-liked .sg7g-like__icon {
    fill: currentColor;
}

.sg7g-single .sg7g-like__count {
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
}

.sg7g-single .sg7g-like__status {
    width: 100%;
    color: var(--sg7g-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Tekil içerik paylaşım araçları. */
.sg7g-single .sg7g-share {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100% !important;
    min-height: 40px;
    margin: 18px 0 0;
    padding-top: 0;
    border-top: 0;
}


.sg7g-single .sg7g-share__items {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.sg7g-single .sg7g-share__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--sg7g-line);
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--sg7g-text);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sg7g-single .sg7g-share__button svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    color: inherit !important;
    pointer-events: none;
}

.sg7g-single .sg7g-share__button:hover,
.sg7g-single .sg7g-share__button:focus-visible,
.sg7g-single .sg7g-share__button.is-copied {
    border-color: var(--sg7g-text);
    background: var(--sg7g-text);
    color: var(--sg7g-surface);
    text-decoration: none;
    transform: translateY(-1px);
}

.sg7g-single .sg7g-share__button:focus-visible {
    outline: 2px solid var(--sg7g-text);
    outline-offset: 3px;
}

.sg7g-single .sg7g-share__status {
    display: none;
    width: 100%;
    color: var(--sg7g-muted);
    font-size: 13px;
    line-height: 1.4;
}

.sg7g-single .sg7g-share__status:not(:empty) {
    display: block;
}


.sg7g-single .sg7g-share,
.sg7g-single .sg7g-share * {
    box-sizing: border-box;
}

.sg7g-single .sg7g-share button.sg7g-share__button {
    position: static !important;
    float: none !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 620px) {
    .sg7g-single .sg7g-share {
        align-items: flex-start;
        gap: 10px;
    }

    .sg7g-single .sg7g-share__items {
        gap: 8px;
    }

    .sg7g-single .sg7g-share__button {
        width: 38px;
        height: 38px;
    }
}

@media (hover: none) {
    .sg7g-single .sg7g-share__button:hover {
        border-color: var(--sg7g-line);
        background: transparent;
        color: var(--sg7g-text);
        transform: none;
    }

    .sg7g-single .sg7g-share__button.is-copied {
        border-color: var(--sg7g-text);
        background: var(--sg7g-text);
        color: var(--sg7g-surface);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg7g-single .sg7g-share__button {
        transition: none;
    }
}

/* Theme isolation for archive and form elements. */
.sg7g-archive.site-main,
.sg7g-single.site-main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Vitrinsiz arşivler ve tekil içerikler kendi iç üst boşluğunu üretmez.
 * Tema/header kaynaklı dış boşluk public.js tarafından ölçülerek güvenli biçimde kapatılır. */
.sg7g-archive.sg7g-archive--compact-top.site-main,
.sg7g-single.site-main {
    --sg7g-toolbar-pullup: 0px;
    margin-top: var(--sg7g-toolbar-pullup) !important;
    margin-block-start: var(--sg7g-toolbar-pullup) !important;
    padding-top: 0 !important;
    padding-block-start: 0 !important;
}

.sg7g-archive .sg7g-featured,
.sg7g-archive .sg7g-featured__showcase-grid,
.sg7g-archive .sg7g-popular,
.sg7g-archive .sg7g-toolbar,
.sg7g-archive .sg7g-toolbar__controls,
.sg7g-archive .sg7g-menu-control,
.sg7g-archive .sg7g-search,
.sg7g-archive .sg7g-search__panel,
.sg7g-archive .sg7g-search__form,
.sg7g-archive .sg7g-search__field,
.sg7g-single .sg7g-toolbar,
.sg7g-single .sg7g-toolbar__controls,
.sg7g-single .sg7g-menu-control,
.sg7g-single .sg7g-search,
.sg7g-single .sg7g-search__panel,
.sg7g-single .sg7g-search__form,
.sg7g-single .sg7g-search__field {
    block-size: auto;
    min-block-size: 0;
}

.sg7g-archive .sg7g-featured,
.sg7g-archive .sg7g-featured__showcase-grid,
.sg7g-archive .sg7g-search,
.sg7g-archive .sg7g-search__panel,
.sg7g-archive .sg7g-search__form,
.sg7g-single .sg7g-search,
.sg7g-single .sg7g-search__panel,
.sg7g-single .sg7g-search__form {
    padding-block: 0 !important;
}

.sg7g-archive .sg7g-search__input,
.sg7g-archive .sg7g-search__submit,
.sg7g-archive .sg7g-search__clear,
.sg7g-archive .sg7g-toolbar__button,
.sg7g-single .sg7g-search__input,
.sg7g-single .sg7g-search__submit,
.sg7g-single .sg7g-search__clear,
.sg7g-single .sg7g-toolbar__button {
    max-width: none;
    text-transform: none;
    letter-spacing: normal;
}

.sg7g-archive .sg7g-toolbar__button,
.sg7g-archive .sg7g-toolbar__home,
.sg7g-single .sg7g-toolbar__button,
.sg7g-single .sg7g-toolbar__home {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Archive vertical rhythm. */
.sg7g-archive {
    padding-top: 26px;
}

@media (max-width: 1100px) {
    .sg7g-archive {
        padding-top: 22px;
    }
}

@media (max-width: 620px) {
    .sg7g-archive {
        padding-top: 16px;
    }

    .sg7g-archive.sg7g-archive--compact-top.site-main,
    .sg7g-single.site-main {
        padding-top: 0 !important;
        padding-block-start: 0 !important;
    }
}

/* Seçilebilir arşiv yükleme yöntemleri. */
.sg7g-progressive-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 42px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--sg7g-line);
}

.sg7g-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--sg7g-line);
    border-radius: var(--sg7g-radius);
    background: transparent;
    box-shadow: none;
    color: var(--sg7g-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.sg7g-load-more:hover,
.sg7g-load-more:focus-visible {
    border-color: var(--sg7g-text);
    background: var(--sg7g-text);
    color: var(--sg7g-surface);
    text-decoration: none;
}

.sg7g-load-more[aria-disabled="true"] {
    cursor: wait;
    opacity: .62;
    pointer-events: none;
}

.sg7g-progressive-pagination__status {
    min-height: 1.35em;
    color: var(--sg7g-muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.sg7g-progressive-pagination__status:empty {
    display: none;
}

.sg7g-infinite-sentinel {
    display: block;
    width: 100%;
    height: 1px;
}

.sg7g-progressive-pagination--infinite.is-enhanced .sg7g-load-more {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sg7g-progressive-pagination--infinite.is-loading .sg7g-progressive-pagination__status {
    display: block;
}

@media (max-width: 620px) {
    .sg7g-progressive-pagination {
        margin-top: 32px;
        padding-top: 16px;
    }

    .sg7g-load-more {
        width: 100%;
        max-width: 320px;
    }
}

.sg7g-progressive-pagination--infinite.is-enhanced {
    min-height: 1px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
    gap: 0;
}

.sg7g-progressive-pagination--infinite.is-enhanced.is-loading {
    min-height: 28px;
    gap: 8px;
}
