:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f0f2f8;
    --surface-3: #e8ebf4;
    --text: #171a2b;
    --muted: #6d7287;
    --border: #e0e3ec;
    --border-strong: #ccd1df;
    --primary: #6757e8;
    --primary-hover: #5545d3;
    --primary-soft: #ece9ff;
    --accent: #16a6a1;
    --danger: #d74458;
    --danger-soft: #fff0f2;
    --success: #188657;
    --success-soft: #eaf9f2;
    --warning: #9d6c0a;
    --card-overlay-bg: rgba(255, 255, 255, .90);
    --card-overlay-bg-strong: rgba(255, 255, 255, .98);
    --card-overlay-text: #171a2b;
    --card-overlay-muted: #62687d;
    --card-overlay-border: rgba(23, 26, 43, .16);
    --card-overlay-shadow: 0 8px 24px rgba(26, 27, 45, .18);
    --shadow-sm: 0 2px 10px rgba(26, 27, 45, .06);
    --shadow-md: 0 12px 35px rgba(26, 27, 45, .11);
    --shadow-lg: 0 24px 65px rgba(26, 27, 45, .16);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --header-height: 72px;
    --image-viewer-bg: var(--bg);
    --lightbox-bg: #eef0f6;
    --lightbox-backdrop: rgba(220, 224, 234, .90);
    --lightbox-control-bg: rgba(255, 255, 255, .90);
    --lightbox-control-bg-hover: #ffffff;
    --lightbox-control-text: #171a2b;
    --lightbox-control-border: rgba(23, 26, 43, .18);
    --lightbox-drawer-bg: linear-gradient(180deg, transparent, rgba(238, 240, 246, .92) 28%, rgba(238, 240, 246, .99));
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1118;
    --surface: #171a24;
    --surface-2: #1e2230;
    --surface-3: #272c3c;
    --text: #f1f2f7;
    --muted: #a2a7b8;
    --border: #2a2f3e;
    --border-strong: #3b4153;
    --primary: #8d80ff;
    --primary-hover: #a99fff;
    --primary-soft: #292548;
    --accent: #3bc4bd;
    --danger: #ff7385;
    --danger-soft: #3a1e27;
    --success: #5dd6a2;
    --success-soft: #16352a;
    --warning: #e6b75d;
    --card-overlay-bg: rgba(23, 26, 36, .90);
    --card-overlay-bg-strong: rgba(30, 34, 48, .98);
    --card-overlay-text: #f1f2f7;
    --card-overlay-muted: #a2a7b8;
    --card-overlay-border: rgba(255, 255, 255, .15);
    --card-overlay-shadow: 0 8px 26px rgba(0, 0, 0, .34);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .18);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .42);
    --lightbox-bg: #080a0f;
    --lightbox-backdrop: rgba(0, 0, 0, .90);
    --lightbox-control-bg: rgba(23, 26, 36, .88);
    --lightbox-control-bg-hover: rgba(39, 44, 60, .98);
    --lightbox-control-text: #f1f2f7;
    --lightbox-control-border: rgba(255, 255, 255, .20);
    --lightbox-drawer-bg: linear-gradient(180deg, transparent, rgba(8, 10, 15, .92) 28%, rgba(8, 10, 15, .99));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: var(--primary); color: #fff; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
    width: calc(100% - 32px);
    max-width: 1300px;
    margin-inline: auto;
    transition: max-width .25s ease;
}
html[data-width="full"] .site-shell { max-width: none; }

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.svg-sprite { position: absolute; overflow: hidden; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
}
.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--primary), #9a5de6 58%, #2abbb2);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
}
.brand-mark .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.brand-copy { display: flex; align-items: baseline; gap: 4px; font-size: 20px; letter-spacing: -.5px; }
.brand-copy strong { font-weight: 800; }
.brand-copy span { color: var(--muted); font-weight: 600; }

.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 650;
    transition: .2s ease;
}
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-control select {
    height: 40px;
    min-width: 82px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    outline: none;
}
.theme-control select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    transition: .2s ease;
}
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); background: var(--primary-soft); }
.mobile-menu-button { display: none; }

.user-menu { position: relative; }
.user-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 650;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: 230px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.user-menu-head { display: grid; gap: 1px; padding: 9px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu-head span { color: var(--muted); font-size: 13px; }
.user-menu-panel a, .user-menu-panel button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    text-align: left;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); color: var(--primary); }
.user-menu-panel .icon { width: 18px; height: 18px; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav-inner { display: grid; padding-block: 10px 14px; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 4px; font-weight: 650; }

.avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-soft), var(--surface-3));
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -.5px;
}
.avatar-small { width: 32px; height: 32px; font-size: 12px; }
.avatar-tiny { width: 26px; height: 26px; font-size: 10px; }
.avatar-large { width: 78px; height: 78px; font-size: 25px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 24%, transparent); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.button-secondary:hover { border-color: var(--border-strong); }
.button-ghost { background: transparent; color: var(--text); }
.button-ghost:hover { background: var(--surface-2); }
.button-danger { background: var(--danger); color: white; }
.button-danger-soft { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, var(--border)); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.button-wide { width: 100%; }
.button .icon { width: 18px; height: 18px; }

.flash-wrap { margin-top: 18px; }
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.flash-success { color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: var(--success-soft); }
.flash-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); background: var(--danger-soft); }
.flash-info { color: var(--primary); background: var(--primary-soft); }
.flash span { flex: 1; }
.flash button { border: 0; padding: 3px; background: transparent; color: currentColor; }
.flash button .icon { width: 17px; height: 17px; }

.site-main { min-height: calc(100vh - 210px); }
.page-section { padding: 34px 0 54px; }
.section-block { margin-top: 38px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; letter-spacing: -.7px; }
.section-head h1 { font-size: clamp(28px, 4vw, 42px); }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0 48px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 13% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 35%),
        radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
        var(--surface);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 48px; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -2.8px; }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 680px; margin: 20px 0 26px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 680px;
    margin-top: 24px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.hero-search .icon { margin-left: 8px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); }
.hero-search .button { min-height: 44px; }
.hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}
.hero-stat { padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.hero-stat:first-child { grid-column: span 2; }
.hero-stat strong { display: block; font-size: 28px; letter-spacing: -1px; }
.hero-stat span { color: var(--muted); font-size: 13px; }

.category-strip { display: flex; gap: 9px; overflow-x: auto; padding: 3px 0 8px; scrollbar-width: thin; }
.category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 650;
}
.category-chip:hover, .category-chip.is-active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 38%, var(--border)); background: var(--primary-soft); }

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 210px 190px auto;
    gap: 10px;
    padding: 14px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.input-icon .input { padding-left: 41px; }

.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: .18s ease;
}
.input, .select { min-height: 44px; padding: 9px 12px; }
.textarea { min-height: 120px; padding: 11px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label, .field-label { font-size: 13px; font-weight: 750; }
.field-help { color: var(--muted); font-size: 12px; }
.field-error { color: var(--danger); font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.form-card h2, .form-card h3 { margin: 0 0 18px; }
.form-divider { height: 1px; margin: 24px 0; background: var(--border); }
.password-field { position: relative; }
.password-field .input { padding-right: 70px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 750; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; }
.gallery-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gallery-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); box-shadow: var(--shadow-md); }
.gallery-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover .gallery-card-media img { transform: scale(1.035); }
.media-badge, .featured-badge {
    position: absolute;
    top: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--card-overlay-border);
    border-radius: 999px;
    color: var(--card-overlay-text);
    background: var(--card-overlay-bg);
    box-shadow: var(--card-overlay-shadow);
    font-size: 11px;
    font-weight: 750;
    backdrop-filter: blur(10px) saturate(135%);
    -webkit-backdrop-filter: blur(10px) saturate(135%);
}
.media-badge { left: 11px; }
.featured-badge { right: 11px; }
.featured-badge .icon { width: 13px; height: 13px; fill: currentColor; }
.gallery-card-body { padding: 14px; }
.gallery-card-title-row { display: flex; align-items: flex-start; gap: 10px; }
.gallery-card h3 { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.35; }
.gallery-card h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-pill { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); font-size: 12px; font-weight: 750; }
.rating-pill .icon { width: 14px; height: 14px; fill: currentColor; }
.card-author { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.card-author:hover { color: var(--primary); }
.card-author > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-author-hidden { cursor: default; }
.card-author-hidden:hover { color: var(--muted); }
.card-author-hidden .avatar { background: var(--surface-2); color: var(--muted); }
.card-author-hidden .avatar .icon { width: 13px; height: 13px; }
.card-metrics { display: flex; align-items: center; gap: 14px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 650; }
.card-metrics span { display: inline-flex; align-items: center; gap: 4px; }
.card-metrics .icon { width: 14px; height: 14px; }

.empty-state { padding: 54px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state .icon-wrap { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0 auto 18px; max-width: 520px; color: var(--muted); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 32px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-weight: 650; }
.pagination a:hover, .pagination .current { color: white; border-color: var(--primary); background: var(--primary); }

.auth-page { padding: 52px 0 70px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, .6fr); gap: 60px; align-items: center; max-width: 1060px; margin: 0 auto; }
.auth-promo { padding: 30px; }
.auth-promo h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -2px; }
.auth-promo p { color: var(--muted); font-size: 17px; }
.auth-points { display: grid; gap: 13px; margin-top: 28px; }
.auth-point { display: flex; gap: 11px; align-items: flex-start; }
.auth-point > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.auth-point strong { display: block; }
.auth-point small { color: var(--muted); }
.auth-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -.7px; }
.auth-card > p { margin: 6px 0 24px; color: var(--muted); }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 750; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr); gap: 24px; align-items: start; }
.upload-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    overflow: hidden;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    text-align: center;
    transition: .2s ease;
}
.upload-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-drop input { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }
.upload-placeholder { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 34px; }
.upload-placeholder .icon-wrap { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.upload-placeholder .icon { width: 28px; height: 28px; }
.upload-placeholder strong { font-size: 18px; }
.upload-placeholder span { color: var(--muted); }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); z-index: 1; }
.upload-side-note { position: sticky; top: calc(var(--header-height) + 20px); display: grid; gap: 14px; }
.info-card { padding: 19px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.info-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.info-card li + li { margin-top: 6px; }

.detail-page { padding: 28px 0 58px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary); }
.image-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    max-height: 78vh;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--image-viewer-bg);
    box-shadow: var(--shadow-sm);
}
.image-stage img { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; background: transparent; }
.stage-expand { position: absolute; right: 14px; bottom: 14px; background: rgba(12, 14, 22, .72); color: white; border-color: transparent; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; margin-top: 24px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 18px; }
.detail-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.detail-title-row h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -1.3px; }
.detail-description { margin: 15px 0 0; color: var(--muted); white-space: pre-wrap; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.metric-box { padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.metric-box span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.metric-box strong { display: block; margin-top: 4px; font-size: 20px; }
.metric-box .icon { width: 15px; height: 15px; }
.owner-card { display: flex; align-items: center; gap: 12px; }
.owner-card-copy { min-width: 0; flex: 1; }
.owner-card-copy strong, .owner-card-copy span { display: block; }
.owner-card-copy span { color: var(--muted); font-size: 13px; }
.metadata-list { display: grid; gap: 0; margin: 0; }
.metadata-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.metadata-list div:last-child { border-bottom: 0; }
.metadata-list dt { color: var(--muted); }
.metadata-list dd { margin: 0; font-weight: 650; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650; }

.related-content-section { min-width: 0; }
.related-content-head { margin-bottom: 14px; }
.related-image-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 285px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 10px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
}
.related-image-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.related-image-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
    box-shadow: var(--shadow-md);
}
.related-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.related-image-card:hover img { transform: scale(1.035); }

.rating-form { display: grid; gap: 12px; }
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { color: var(--border-strong); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.star-picker label .icon { width: 31px; height: 31px; fill: currentColor; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #f1ad32; }
.star-picker label:hover { transform: scale(1.08); }
.rating-summary { display: flex; align-items: baseline; gap: 8px; }
.rating-summary strong { font-size: 34px; letter-spacing: -1px; }
.rating-summary span { color: var(--muted); }

.image-lightbox {
    position: fixed;
    inset: 0;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: clip;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    color: var(--text);
    background: var(--image-viewer-bg);
    box-shadow: none;
}
.image-lightbox::backdrop {
    background: var(--lightbox-backdrop);
    backdrop-filter: blur(10px) saturate(120%);
}
html.is-lightbox-open,
html.is-lightbox-open body {
    overflow: hidden;
    overscroll-behavior: none;
}
.lightbox-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    padding:
        max(66px, calc(env(safe-area-inset-top) + 54px))
        max(76px, calc(env(safe-area-inset-right) + 62px))
        max(42px, calc(env(safe-area-inset-bottom) + 28px))
        max(76px, calc(env(safe-area-inset-left) + 62px));
    overflow: hidden;
    background: var(--image-viewer-bg);
}
.lightbox-stage > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .16s ease;
}
.lightbox-toolbar {
    position: absolute;
    z-index: 12;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.lightbox-toolbar-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-color: var(--lightbox-control-border);
    color: var(--lightbox-control-text);
    background: var(--lightbox-control-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px) saturate(140%);
}
.lightbox-toolbar-button:hover:not(:disabled):not(.is-disabled) {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 52%, var(--lightbox-control-border));
    background: var(--lightbox-control-bg-hover);
}
.lightbox-toolbar-button:disabled,
.lightbox-toolbar-button.is-disabled {
    opacity: .38;
    pointer-events: none;
}
.lightbox-toolbar-button.is-selected {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 52%, var(--lightbox-control-border));
    background: color-mix(in srgb, var(--success-soft) 78%, var(--lightbox-control-bg));
}
.lightbox-close {
    position: static;
    z-index: auto;
}
.lightbox-navigation {
    position: absolute;
    z-index: 7;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 72px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid var(--lightbox-control-border);
    border-radius: 16px;
    color: var(--lightbox-control-text);
    background: var(--lightbox-control-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px) saturate(140%);
    cursor: pointer;
    transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}
.lightbox-navigation:hover {
    transform: translateY(-50%) scale(1.04);
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 52%, var(--lightbox-control-border));
    background: var(--lightbox-control-bg-hover);
}
.lightbox-navigation:disabled {
    opacity: .22;
    cursor: default;
    transform: translateY(-50%);
}
.lightbox-navigation .icon { width: 28px; height: 28px; }
.lightbox-navigation-previous { left: max(16px, env(safe-area-inset-left)); }
.lightbox-navigation-previous .icon { transform: rotate(180deg); }
.lightbox-navigation-next { right: max(16px, env(safe-area-inset-right)); }
.lightbox-open-detail {
    position: absolute;
    z-index: 7;
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(calc(100dvw - 190px), 620px);
    min-height: 40px;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px solid var(--lightbox-control-border);
    border-radius: 11px;
    color: var(--lightbox-control-text);
    background: var(--lightbox-control-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px) saturate(140%);
    font-size: 12px;
    font-weight: 750;
}
.lightbox-open-detail:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 52%, var(--lightbox-control-border));
    background: var(--lightbox-control-bg-hover);
}
.lightbox-open-detail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-open-detail .icon { flex: 0 0 auto; width: 16px; height: 16px; }
.lightbox-strip-zone {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 25%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}
.lightbox-thumbnail-drawer {
    position: absolute;
    z-index: 9;
    right: 0;
    bottom: 0;
    left: 0;
    padding:
        16px
        max(18px, env(safe-area-inset-right))
        max(18px, calc(env(safe-area-inset-bottom) + 10px))
        max(18px, env(safe-area-inset-left));
    transform: translateY(calc(100% + 12px));
    opacity: 0;
    background: var(--lightbox-drawer-bg);
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}
.image-lightbox.is-thumbnail-drawer-visible .lightbox-thumbnail-drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.lightbox-thumbnail-track {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 44px 4px 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
}
.lightbox-thumbnail {
    position: relative;
    flex: 0 0 118px;
    width: 118px;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--lightbox-control-border);
    border-radius: 11px;
    background: var(--surface-2);
    opacity: .72;
    cursor: pointer;
    scroll-snap-align: center;
    box-shadow: var(--shadow-sm);
    transition: opacity .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.lightbox-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.lightbox-thumbnail.is-current {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent), var(--shadow-sm);
}
.lightbox-thumbnail img { width: 100%; height: 100%; object-fit: cover; }


.profile-hero { padding: 36px 0 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.profile-hero-inner { display: flex; align-items: center; gap: 18px; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy h1 { margin: 0; font-size: 32px; letter-spacing: -1px; }
.profile-copy .handle { color: var(--muted); }
.profile-copy p { max-width: 700px; margin: 9px 0 0; color: var(--muted); }
.profile-actions { margin-left: auto; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; }
.profile-stats span { color: var(--muted); font-size: 13px; }
.profile-stats strong { color: var(--text); }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.stat-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.stat-card strong { display: block; margin-top: 15px; font-size: 28px; letter-spacing: -1px; }
.stat-card small { color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 22px; align-items: start; }
.panel-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.panel-card-head h2, .panel-card-head h3 { margin: 0; font-size: 18px; }
.panel-card-body { padding: 20px; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { padding: 11px 13px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.table-image { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.table-image img { width: 58px; height: 45px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.table-image strong { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-image small { color: var(--muted); }
.table-actions { display: flex; align-items: center; gap: 6px; }
.table-actions form { display: inline-flex; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-published { color: var(--success); background: var(--success-soft); }
.status-pending { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, var(--surface)); }
.status-rejected { color: var(--danger); background: var(--danger-soft); }
.status-private { color: var(--muted); background: var(--surface-2); }

.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--header-height) + 18px); display: grid; gap: 4px; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.settings-nav a { padding: 9px 11px; border-radius: 9px; color: var(--muted); font-weight: 650; }
.settings-nav a:hover, .settings-nav a.is-active { color: var(--primary); background: var(--primary-soft); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-section-copy { margin: -9px 0 14px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card label { display: grid; gap: 5px; min-height: 88px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.choice-card label span { color: var(--muted); font-size: 12px; }
.choice-card input:checked + label { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }

.admin-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 750; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }

.site-footer { margin-top: 30px; padding: 34px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
.brand-footer { margin-bottom: 8px; }
.brand-footer .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.brand-footer .brand-copy { font-size: 17px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 650; }
.footer-inner nav a:hover { color: var(--primary); }
.footer-copy { color: var(--muted); font-size: 12px; }

.state-page { display: grid; justify-items: center; padding: 100px 20px; text-align: center; }
.state-code { font-size: 76px; line-height: 1; font-weight: 850; letter-spacing: -4px; color: var(--primary); }
.state-page h1 { margin: 12px 0 6px; }
.state-page p { max-width: 600px; margin: 0 0 22px; color: var(--muted); }

@media (max-width: 1050px) {
    .desktop-nav { display: none; }
    .mobile-menu-button { display: inline-grid; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-panel { max-width: 650px; }
    .filter-panel { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 310px; }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    :root { --header-height: 64px; }
    .site-shell { width: calc(100% - 24px); }
    .header-inner { gap: 10px; }
    .brand-copy { font-size: 18px; }
    .theme-control select { width: 42px; min-width: 42px; padding: 0 5px; color: transparent; }
    .theme-control { position: relative; }
    .theme-control::after { content: "◐"; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--muted); font-size: 18px; }
    .desktop-only { display: none !important; }
    .hero { padding: 46px 0 36px; }
    .hero h1 { letter-spacing: -1.8px; }
    .hero-copy > p { font-size: 16px; }
    .auth-layout { grid-template-columns: 1fr; gap: 20px; }
    .auth-promo { padding: 10px; }
    .upload-layout, .detail-grid, .settings-layout { grid-template-columns: 1fr; }
    .upload-side-note, .settings-nav { position: static; }
    .settings-nav { display: flex; overflow-x: auto; }
    .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .profile-hero-inner { align-items: flex-start; flex-wrap: wrap; }
    .profile-actions { width: 100%; margin-left: 96px; }
}

@media (max-width: 560px) {
    .site-shell { width: calc(100% - 20px); }
    .header-actions { gap: 5px; }
    .user-menu summary { padding-right: 4px; }
    .hero-search { align-items: stretch; flex-wrap: wrap; }
    .hero-search .icon { position: absolute; margin-top: 14px; }
    .hero-search input { width: calc(100% - 34px); margin-left: 34px; }
    .hero-search .button { width: 100%; }
    .hero-panel { grid-template-columns: 1fr; }
    .hero-stat:first-child { grid-column: auto; }
    .filter-panel, .form-row, .choice-grid { grid-template-columns: 1fr; }
    .gallery-grid, .gallery-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .related-image-row { grid-auto-columns: minmax(175px, 78vw); gap: 10px; }
    .gallery-card-body { padding: 10px; }
    .gallery-card h3 { font-size: 14px; }
    .card-author { margin-top: 9px; font-size: 11px; }
    .card-metrics { gap: 7px; justify-content: space-between; }
    .media-badge { max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .featured-badge { display: none; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .auth-card, .form-card, .detail-card { padding: 18px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card strong { font-size: 23px; }
    .detail-title-row { flex-direction: column; }
    .detail-actions .button { flex: 1; }
    .profile-actions { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Keşfet akışı, mega menü, kategori yönetimi ve pencereye dayalı footer */
body {
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
}
.site-footer {
    flex: 0 0 auto;
    margin-top: auto;
}
.is-hidden { display: none !important; }
.form-row > .field + .field { margin-top: 0; }

.nav-mega {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.nav-mega::after { display: none; }
.nav-mega-trigger {
    border: 0;
    background: transparent;
}
.nav-mega-trigger .mega-chevron {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}
.mega-menu-panel {
    position: fixed;
    top: var(--header-height);
    left: 50%;
    z-index: 140;
    width: min(calc(100vw - 32px), 1120px);
    max-height: calc(100vh - var(--header-height) - 18px);
    padding: 22px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transform-origin: top center;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-mega.is-open > .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.nav-mega.is-open > .nav-mega-trigger .mega-chevron { transform: rotate(180deg); }
.mega-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 2px 17px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.mega-menu-head > div { display: grid; }
.mega-menu-head .eyebrow { margin-bottom: 3px; }
.mega-menu-head > div > strong { font-size: 19px; letter-spacing: -.35px; }
.mega-menu-head > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}
.mega-menu-head > a .icon { width: 16px; height: 16px; }
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.mega-category-group {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.mega-category-group:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    box-shadow: var(--shadow-sm);
}
.mega-category-main {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 3px;
    border-radius: 11px;
}
.mega-category-main > span:not(.mega-category-icon) { min-width: 0; display: grid; gap: 2px; }
.mega-category-main strong { line-height: 1.25; }
.mega-category-main small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.mega-category-main:hover strong,
.mega-category-main.is-active strong { color: var(--primary); }
.mega-category-icon,
.mega-child-icon,
.mobile-category-icon,
.active-category-icon,
.category-admin-icon,
.category-icon-preview-shell {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--primary);
}
.mega-category-icon { width: 42px; height: 42px; border-radius: 12px; }
.mega-category-icon img,
.mega-child-icon img,
.mobile-category-icon img,
.active-category-icon img,
.category-admin-icon img,
.category-icon-preview { width: 100%; height: 100%; object-fit: contain; }
.mega-category-icon .icon { width: 21px; height: 21px; }
.mega-category-children {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.mega-category-children a {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    padding: 7px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}
.mega-category-children a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-category-children a:hover,
.mega-category-children a.is-active { color: var(--primary); background: var(--primary-soft); }
.mega-child-icon { width: 24px; height: 24px; border-radius: 7px; }
.mega-child-icon .icon { width: 13px; height: 13px; }
.mega-category-empty { display: block; margin: 12px 3px 2px; color: var(--muted); font-size: 11px; }
.mega-menu-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: var(--muted); }

.mobile-category-menu { border-bottom: 1px solid var(--border); }
.mobile-category-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    list-style: none;
    cursor: pointer;
    font-weight: 650;
}
.mobile-category-menu summary::-webkit-details-marker { display: none; }
.mobile-category-menu summary span { flex: 1; }
.mobile-category-chevron { width: 16px; height: 16px; transition: transform .18s ease; }
.mobile-category-menu[open] .mobile-category-chevron { transform: rotate(180deg); }
.mobile-category-list { display: grid; gap: 3px; padding: 0 0 12px 28px; }
.mobile-category-list a { padding: 8px; border-radius: 9px; }
.mobile-category-list a:hover { color: var(--primary); background: var(--primary-soft); }
.mobile-category-main { display: flex !important; align-items: center; gap: 8px !important; }
.mobile-category-child { display: flex !important; align-items: center; gap: 8px !important; padding-left: 24px !important; color: var(--muted); }
.mobile-category-icon { width: 27px; height: 27px; border-radius: 8px; }
.mobile-category-icon .icon { width: 14px; height: 14px; }

.explore-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 33%),
        radial-gradient(circle at 92% 15%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30%),
        var(--surface);
}
.explore-hero-inner { position: relative; display: grid; gap: 12px; }
.explore-heading h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: 1; letter-spacing: -2.2px; }
.explore-heading p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.explore-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}
.explore-search-form .input,
.explore-search-form .select { background: var(--surface); }
.explore-active-filter {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    padding: 7px 8px 7px 7px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 13px;
    background: var(--primary-soft);
}
.active-category-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); }
.active-category-icon .icon { width: 18px; height: 18px; }
.explore-active-filter > span { display: grid; line-height: 1.2; }
.explore-active-filter small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.explore-active-filter strong { font-size: 13px; }
.explore-active-filter > a { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--muted); }
.explore-active-filter > a:hover { color: var(--danger); background: var(--surface); }
.explore-active-filter > a .icon { width: 16px; height: 16px; }
.explore-page { padding-top: 20px; }
.explore-feed.section-block { margin-top: 0; }
.explore-section-head { align-items: flex-start; }
.explore-section-head p strong { color: var(--text); }
.explore-feed .gallery-card { animation: hc-card-reveal .28s ease both; }
@keyframes hc-card-reveal {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}
.infinite-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.infinite-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: hc-spin .7s linear infinite;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }
.infinite-sentinel { width: 100%; height: 2px; }

.admin-page-head { align-items: flex-start; }
.admin-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.admin-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -10px 0 24px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 700;
}
.admin-tabs a:hover,
.admin-tabs a.is-active { color: var(--primary); background: var(--primary-soft); }
.admin-tabs .icon { width: 17px; height: 17px; }
.category-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.category-create-card { position: sticky; top: calc(var(--header-height) + 18px); }
.category-tree-admin {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.category-list-head { margin: 0; }
.category-list-head > div { display: flex; align-items: baseline; gap: 10px; }
.category-admin-groups { display: grid; gap: 12px; padding: 14px; }
.category-admin-group { display: grid; gap: 8px; }
.category-admin-children {
    display: grid;
    gap: 7px;
    margin-left: 30px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}
.category-admin-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}
.category-admin-card.is-child { background: var(--surface-2); }
.category-admin-card details > summary {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 10px 13px;
    list-style: none;
    cursor: pointer;
}
.category-admin-card details > summary::-webkit-details-marker { display: none; }
.category-admin-card details[open] > summary { border-bottom: 1px solid var(--border); background: var(--primary-soft); }
.category-admin-icon { width: 42px; height: 42px; border-radius: 11px; }
.category-admin-icon .icon { width: 20px; height: 20px; }
.category-admin-title { min-width: 0; flex: 1; display: grid; }
.category-admin-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-admin-title small { color: var(--muted); font-size: 11px; }
.category-admin-chevron { width: 17px; height: 17px; color: var(--muted); transition: transform .18s ease; }
.category-admin-card details[open] .category-admin-chevron { transform: rotate(180deg); }
.category-admin-editor { padding: 18px; }
.category-admin-form { display: grid; gap: 15px; }
.category-admin-form .field + .field { margin-top: 0; }
.category-form-options { display: flex; flex-wrap: wrap; gap: 15px; }
.check-option { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; }
.check-option input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.category-icon-field { display: flex; align-items: center; gap: 10px; }
.category-icon-preview-shell { position: relative; width: 46px; height: 46px; border-radius: 12px; }
.category-icon-preview-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.category-icon-preview-fallback .icon { width: 21px; height: 21px; }
.category-icon-field .input { min-width: 0; }
.new-category-preview-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.category-form-actions { margin-top: 2px; }
.category-delete-form { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 1100px) {
    .mega-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore-search-form { grid-template-columns: minmax(220px, 1fr) 190px auto; }
    .explore-search-form .button-ghost { grid-column: 1 / -1; justify-self: start; }
    .category-admin-layout { grid-template-columns: 1fr; }
    .category-create-card { position: static; }
}

@media (max-width: 800px) {
    .explore-hero { padding: 14px 0; }
    .explore-search-form { grid-template-columns: 1fr 1fr; }
    .explore-search-input { grid-column: 1 / -1; }
    .explore-search-form .button-ghost { grid-column: auto; }
    .admin-head-actions { justify-content: flex-start; }
    .admin-tabs { overflow-x: auto; }
    .admin-tabs a { flex: 0 0 auto; }
    .category-admin-children { margin-left: 13px; padding-left: 10px; }
    .category-admin-editor { padding: 14px; }
}

@media (max-width: 560px) {
    .explore-search-form { grid-template-columns: 1fr; }
    .explore-search-input,
    .explore-search-form .button-ghost { grid-column: auto; }
    .explore-search-form .button { width: 100%; }
    .explore-heading p { font-size: 14px; }
    .category-admin-card details > summary { gap: 8px; padding: 9px; }
    .category-admin-icon { width: 37px; height: 37px; }
    .category-admin-card .status-badge { display: none; }
    .category-admin-children { margin-left: 5px; }
    .category-admin-editor .form-row { grid-template-columns: 1fr; }
    .category-icon-field { align-items: flex-start; flex-direction: column; }
    .category-delete-form .button { width: 100%; }
}

/* =========================================================
   İndirme Panosu ve kart çözünürlük göstergesi
   ========================================================= */
.nav-download-board { position: relative; }
.nav-count,
.menu-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.nav-link.is-active .nav-count {
    color: #fff;
    background: var(--primary);
}
.user-menu-panel .menu-count,
.mobile-nav .menu-count { margin-left: auto; }

.gallery-card-media-shell { position: relative; }
.card-overlay-tools {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}
.card-overlay-tool {
    position: static;
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    padding: 0;
    border: 1px solid var(--card-overlay-border);
    border-radius: 10px;
    color: var(--card-overlay-text);
    background: var(--card-overlay-bg);
    box-shadow: var(--card-overlay-shadow);
    backdrop-filter: blur(10px) saturate(135%);
    -webkit-backdrop-filter: blur(10px) saturate(135%);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    pointer-events: auto;
}
.card-overlay-tool:hover,
.card-overlay-tool:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 86%, var(--card-overlay-bg-strong));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent);
    transform: translateY(-1px);
}
.card-overlay-tool > .icon { width: 16px; height: 16px; }
.featured-badge.card-overlay-tool {
    position: static;
    top: auto;
    right: auto;
    gap: 0;
    font-size: 0;
}
.featured-badge.card-overlay-tool { color: var(--warning); }
.featured-badge.card-overlay-tool .icon { width: 15px; height: 15px; fill: currentColor; }

.resolution-preview {
    position: relative;
    cursor: help;
    outline: none;
}
.resolution-preview:hover,
.resolution-preview:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 86%, var(--card-overlay-bg-strong));
}
.resolution-preview-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 30;
    display: grid;
    width: 222px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}
.resolution-preview:hover .resolution-preview-panel,
.resolution-preview:focus .resolution-preview-panel,
.resolution-preview:focus-within .resolution-preview-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.resolution-preview-panel > strong {
    padding-right: 38px;
    font-size: 12px;
    line-height: 1.3;
}
.resolution-preview-ratio {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 6px;
    border-radius: 7px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
}
.resolution-preview-list {
    display: grid;
    max-height: 236px;
    margin-top: 9px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.resolution-preview-list > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 1px;
    border-top: 1px solid var(--border);
    font-size: 11px;
}
.resolution-preview-list b { font-variant-numeric: tabular-nums; }
.resolution-preview-list small { color: var(--primary); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.card-board-menu,
.detail-board-menu { position: relative; }
.card-board-menu {
    pointer-events: auto;
    isolation: isolate;
}
.card-board-menu[open] { z-index: 45; }
.card-board-menu > summary { list-style: none; cursor: pointer; touch-action: manipulation; }
.card-board-popover,
.card-board-popover *,
.card-board-resolution-list,
.board-resolution-button,
.board-popover-link {
    pointer-events: auto;
}
.board-resolution-button { touch-action: manipulation; }
.card-board-menu > summary::-webkit-details-marker,
.detail-board-menu > summary::-webkit-details-marker { display: none; }
.card-board-menu[open] > summary,
.card-board-menu > summary:hover,
.card-board-menu > summary:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 86%, var(--card-overlay-bg-strong));
}
.card-board-menu.is-in-board > summary {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--success-soft) 88%, var(--card-overlay-bg-strong));
}
.board-added-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    display: none;
    place-items: center;
    width: 15px;
    height: 15px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    color: #fff;
    background: var(--success);
}
.board-added-mark .icon { width: 9px; height: 9px; stroke-width: 3; }
.card-board-menu.is-in-board .board-added-mark { display: grid; }
.card-board-popover,
.detail-board-popover {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 35;
    display: grid;
    width: 244px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color-scheme: light;
}
.card-board-popover > strong,
.detail-board-popover > strong { font-size: 13px; }
.card-board-popover > small,
.detail-board-popover > small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.card-board-resolution-list {
    display: grid;
    max-height: 260px;
    margin-top: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.board-resolution-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    background: var(--surface);
    text-align: left;
    font-size: 11px;
    font-weight: 700;
}
.board-resolution-button:last-child { border-bottom: 0; }
.board-resolution-button:hover,
.board-resolution-button:focus-visible,
.board-resolution-button.is-selected { color: var(--primary); background: var(--primary-soft); }
.board-resolution-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: -2px;
}
.board-resolution-button:disabled { opacity: .58; cursor: wait; }
.board-resolution-button > span { font-variant-numeric: tabular-nums; }
.board-resolution-button > small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.board-resolution-button > .icon { width: 15px; height: 15px; justify-self: end; }
.board-resolution-button.is-selected > .icon { color: var(--success); }
.board-popover-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding: 7px 2px 1px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}
.board-popover-link:hover,
.board-popover-link:focus-visible { color: var(--primary-hover); }
.board-popover-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.board-popover-link .icon { width: 14px; height: 14px; }

.detail-board-menu > summary { list-style: none; }
.detail-board-menu[open] > summary,
.detail-board-menu.is-in-board > summary {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
    background: var(--primary-soft);
}
.detail-board-popover { top: calc(100% + 8px); left: 0; right: auto; width: 272px; }
html[data-theme="dark"] .resolution-preview-panel,
html[data-theme="dark"] .card-board-popover,
html[data-theme="dark"] .detail-board-popover { color-scheme: dark; }

.download-board-page { padding-top: 32px; }
.download-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}
.download-board-head h1 { margin: 5px 0 7px; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -1.7px; }
.download-board-head p { margin: 0; color: var(--muted); }
.download-board-quota {
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.download-board-quota > div { display: flex; align-items: baseline; gap: 5px; }
.download-board-quota strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.download-board-quota span,
.download-board-quota small { color: var(--muted); font-size: 11px; font-weight: 700; }
.download-board-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 9px 0 7px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-2);
}
.download-board-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .25s ease;
}
.download-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.download-board-toolbar form { margin: 0; }
.download-board-list { display: grid; gap: 11px; }
.download-board-item {
    display: grid;
    grid-template-columns: 128px minmax(180px, 1fr) minmax(250px, 340px) 42px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.download-board-thumb {
    display: block;
    width: 128px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 11px;
    background: var(--surface-2);
}
.download-board-thumb img { width: 100%; height: 100%; object-fit: cover; }
.download-board-copy { min-width: 0; }
.download-board-copy h2 { margin: 0; font-size: 16px; }
.download-board-copy h2 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-board-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.download-board-meta span { display: inline-flex; align-items: center; gap: 4px; }
.download-board-meta .icon { width: 13px; height: 13px; }
.download-board-resolution-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}
.download-board-resolution-form label { display: grid; gap: 5px; min-width: 0; }
.download-board-resolution-form label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.download-board-resolution-form .select { min-width: 0; height: 39px; font-size: 12px; }
.download-board-remove-form { margin: 0; }
.download-board-remove-form .icon-button:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.download-board-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    border-radius: 13px;
    color: var(--muted);
    background: var(--primary-soft);
    font-size: 12px;
}
.download-board-note .icon { flex: 0 0 auto; width: 17px; height: 17px; color: var(--primary); }
.download-board-note p { margin: 0; }
.download-board-empty { margin-top: 18px; }

.board-toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 300;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}
.board-toast {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: hc-board-toast-in .2s ease both;
}
.board-toast .icon { flex: 0 0 auto; width: 17px; height: 17px; color: var(--success); }
.board-toast.is-error .icon { color: var(--danger); }
.board-toast span { font-size: 12px; font-weight: 700; line-height: 1.45; }
@keyframes hc-board-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    .nav-download-board > span:not(.nav-count) { display: none; }
    .download-board-item { grid-template-columns: 108px minmax(150px, 1fr) minmax(230px, 310px) 42px; }
    .download-board-thumb { width: 108px; }
}

@media (max-width: 800px) {
    .download-board-head { align-items: stretch; flex-direction: column; gap: 16px; }
    .download-board-quota { min-width: 0; }
    .download-board-item {
        grid-template-columns: 96px minmax(0, 1fr) 42px;
        gap: 12px;
    }
    .download-board-thumb { width: 96px; grid-row: 1 / span 2; }
    .download-board-resolution-form { grid-column: 2 / 4; }
    .download-board-remove-form { grid-column: 3; grid-row: 1; }
}

@media (max-width: 560px) {
    .card-overlay-tools { top: 8px; right: 8px; gap: 4px; }
    .card-overlay-tool { width: 28px; height: 28px; min-width: 28px; border-radius: 9px; }
    .featured-badge.card-overlay-tool { display: inline-grid; }
    .resolution-preview-panel { right: -37px; width: 210px; }
    .card-board-popover { right: -2px; width: min(236px, calc(100vw - 34px)); }
    .download-board-toolbar { align-items: stretch; flex-direction: column; }
    .download-board-toolbar .button { width: 100%; }
    .download-board-item {
        grid-template-columns: 78px minmax(0, 1fr) 38px;
        padding: 9px;
    }
    .download-board-thumb { width: 78px; }
    .download-board-copy h2 { font-size: 14px; }
    .download-board-meta { gap: 6px; }
    .download-board-resolution-form { grid-template-columns: 1fr; }
    .download-board-resolution-form .button { width: 100%; }
    .board-toast-region { right: 14px; bottom: 14px; }
}

/* Kart araç menülerinin kart sınırları dışında görünmesine izin ver. */
.gallery-card { overflow: visible; }
.gallery-card:hover,
.gallery-card:focus-within { position: relative; z-index: 22; }
.gallery-card-media,
.gallery-card-media-shell { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.gallery-card-media { overflow: hidden; }
.gallery-card-body { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); background: var(--surface); }

/* =========================================================
   Header SVG tema seçimi + birleşik ara/süzgeç mega paneli
   ========================================================= */
.header-search-menu,
.theme-menu {
    flex: 0 0 auto;
}

.header-search-menu { position: static; }
.theme-menu { position: relative; }

.header-search-menu > summary,
.theme-menu > summary {
    list-style: none;
}

.header-search-menu > summary::-webkit-details-marker,
.theme-menu > summary::-webkit-details-marker {
    display: none;
}

.header-search-menu > summary::marker,
.theme-menu > summary::marker {
    content: "";
}

.header-search-menu[open] > .header-search-trigger,
.theme-menu[open] > .theme-menu-trigger {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.header-search-trigger {
    position: relative;
}

.header-search-trigger .icon {
    width: 21px;
    height: 21px;
}

.header-search-active-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
    box-sizing: content-box;
}

.header-search-menu[open] .header-search-active-dot {
    border-color: var(--primary-soft);
}

.header-search-mega {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 175;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 0 22px;
    border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 0, color-mix(in srgb, var(--primary) 12%, transparent), transparent 30%),
        radial-gradient(circle at 88% 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
        color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 24px 50px rgba(18, 22, 38, .14);
    backdrop-filter: blur(20px) saturate(150%);
    animation: hc-header-mega-in .18s ease both;
}

@keyframes hc-header-mega-in {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-search-shell {
    display: grid;
    gap: 15px;
}

.header-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-search-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.header-search-title-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}

.header-search-title-icon .icon {
    width: 21px;
    height: 21px;
}

.header-search-title > span:last-child {
    display: grid;
    line-height: 1.25;
}

.header-search-title strong {
    font-size: 17px;
    letter-spacing: -.2px;
}

.header-search-title small {
    color: var(--muted);
    font-size: 12px;
}

.header-search-close {
    width: 36px;
    height: 36px;
}

.header-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(190px, 1fr) minmax(205px, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-sm);
}

.header-search-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.header-search-field > span:first-child {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.header-search-field .input,
.header-search-field .select {
    background: var(--surface);
}

.header-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.header-search-actions .button {
    min-height: 44px;
    white-space: nowrap;
}

.theme-menu-trigger {
    position: relative;
}

.theme-state-icon {
    display: none;
    place-items: center;
}

html[data-theme-choice="light"] .theme-state-light,
html[data-theme-choice="dark"] .theme-state-dark,
html[data-theme-choice="system"] .theme-state-system {
    display: grid;
}

.theme-state-icon .icon {
    width: 20px;
    height: 20px;
}

.theme-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 190;
    display: grid;
    width: 178px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    animation: hc-header-mega-in .16s ease both;
}

.theme-menu-panel button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 8px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.theme-menu-panel button:hover {
    color: var(--primary);
    background: var(--surface-2);
}

.theme-menu-panel button[aria-checked="true"] {
    color: var(--primary);
    background: var(--primary-soft);
}

.theme-menu-panel button > .icon:first-child {
    width: 18px;
    height: 18px;
}

.theme-option-check {
    width: 16px;
    height: 16px;
    opacity: 0;
}

.theme-menu-panel button[aria-checked="true"] .theme-option-check {
    opacity: 1;
}

@media (max-width: 980px) {
    .header-search-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .header-search-query,
    .header-search-actions {
        grid-column: 1 / -1;
    }

    .header-search-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 800px) {
    .header-search-mega {
        padding: 14px 0 18px;
    }

    .header-search-form {
        padding: 11px;
    }
}

@media (max-width: 600px) {
    .header-search-form {
        grid-template-columns: 1fr;
    }

    .header-search-query,
    .header-search-actions {
        grid-column: auto;
    }

    .header-search-actions {
        justify-content: stretch;
    }

    .header-search-actions .button {
        flex: 1 1 0;
    }

    .header-search-title small {
        display: none;
    }
}

@media (max-width: 430px) {
    .site-header .brand-copy {
        display: none;
    }

    #width-toggle {
        display: none;
    }

    .theme-menu-panel {
        right: -45px;
    }
}

/* =========================================================
   Görsel detay düzeni, kompakt footer ve AJAX puanlama
   ========================================================= */
.infinite-feedback[hidden] {
    display: none !important;
}
.infinite-retry-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    color: var(--primary);
}
.infinite-retry-button .icon {
    width: 17px;
    height: 17px;
}

.site-footer {
    padding: 12px 0;
}
.footer-inner {
    min-height: 42px;
    gap: 18px;
}
.brand-footer {
    margin: 0;
}
.brand-footer .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}
.brand-footer .brand-copy {
    font-size: 15px;
}
.footer-inner nav {
    gap: 14px;
    font-size: 12px;
}
.footer-copy {
    white-space: nowrap;
    font-size: 11px;
}

.detail-content-card {
    min-width: 0;
}
.detail-heading-row {
    display: grid;
    grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 22px;
}
.detail-heading-row.is-title-only {
    grid-template-columns: minmax(0, 1fr);
}
.detail-heading-title,
.detail-description-panel {
    min-width: 0;
}
.detail-heading-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}
.detail-heading-title h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -1.3px;
}
.detail-description-panel {
    min-height: 100%;
    padding-left: 22px;
    border-left: 1px solid var(--border);
}
.detail-description-panel .eyebrow {
    display: block;
    margin-bottom: 7px;
}
.detail-description {
    margin: 0;
    color: var(--muted);
    white-space: pre-wrap;
}
.detail-tags {
    margin-top: 18px;
}
.detail-section-title {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.detail-resolution-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    padding: 1px 1px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.detail-resolution-row .button {
    flex: 1 0 auto;
    min-width: max-content;
    white-space: nowrap;
}
.detail-primary-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    margin-top: 10px;
}
.detail-primary-actions > form,
.detail-primary-actions > details,
.detail-primary-actions > a,
.detail-primary-actions > button {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
.detail-primary-actions .button {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}
.detail-primary-actions .button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-primary-actions .detail-board-popover {
    width: min(290px, calc(100vw - 38px));
}
.detail-share-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin-top: 10px;
}
.detail-share-button {
    --share-color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--share-color) 24%, var(--border));
    border-radius: 10px;
    color: var(--share-color);
    background: color-mix(in srgb, var(--share-color) 8%, var(--surface));
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.detail-share-button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--share-color) 52%, var(--border));
    background: color-mix(in srgb, var(--share-color) 13%, var(--surface));
}
.detail-share-button svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: currentColor;
}
.detail-share-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-facebook { --share-color: #1877f2; }
.share-x { --share-color: var(--text); }
.share-whatsapp { --share-color: #168f4d; }
.share-telegram { --share-color: #1686bd; }
.share-linkedin { --share-color: #0a66c2; }
.detail-owner-edit {
    margin-top: 12px;
}

.detail-file-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.detail-file-strip h2 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}
.detail-file-strip dl {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.detail-file-strip dl > div {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    padding: 0 13px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}
.detail-file-strip dt {
    color: var(--muted);
    font-size: 11px;
}
.detail-file-strip dd {
    margin: 0;
    font-size: 12px;
    font-weight: 750;
}

.rating-card h3 {
    margin: 0 0 10px;
}
.rating-card .rating-summary span b {
    color: inherit;
    font-weight: inherit;
}
.rating-form {
    gap: 8px;
    margin-top: 12px;
}
.rating-form[aria-busy="true"] .star-picker {
    opacity: .72;
}
.star-picker input:focus-visible + label {
    border-radius: 6px;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.rating-feedback {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}
.rating-feedback[data-state="saving"] {
    color: var(--primary);
}
.rating-feedback[data-state="success"] {
    color: var(--success);
}
.rating-feedback[data-state="error"] {
    color: var(--danger);
}
.inline-primary-link {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }
    .footer-inner nav {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .detail-heading-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .detail-description-panel {
        padding-top: 15px;
        padding-left: 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }
    .detail-primary-actions {
        gap: 6px;
    }
    .detail-primary-actions .button {
        min-height: 38px;
        padding: 8px;
        font-size: 11px;
    }
    .detail-primary-actions .button .icon {
        width: 16px;
        height: 16px;
    }
    .detail-share-row {
        gap: 6px;
    }
    .detail-share-button {
        min-height: 38px;
        padding: 7px;
    }
    .detail-share-button span {
        display: none;
    }
    .detail-file-strip {
        align-items: flex-start;
        gap: 10px;
        padding: 11px 12px;
    }
    .detail-file-strip dl > div {
        padding: 0 10px;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .footer-inner nav {
        display: none;
    }
    .detail-heading-title h1 {
        font-size: clamp(24px, 8vw, 32px);
    }
    .detail-resolution-row .button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .detail-file-strip h2 {
        font-size: 12px;
    }
}

/* HC Galeri · Favoriler ve telif sistemi */
.profile-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
}
.profile-tabs a {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}
.profile-tabs a:hover {
    color: var(--text);
    background: var(--surface-2);
}
.profile-tabs a.is-active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    background: var(--primary-soft);
}
.profile-tabs a strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    color: inherit;
    background: color-mix(in srgb, currentColor 9%, transparent);
    font-size: 11px;
}
.profile-favorite-item {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 8px;
}
.profile-favorite-item .gallery-card { height: 100%; }
.profile-favorite-remove {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}
.profile-favorite-remove button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--border));
    border-radius: 9px;
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 6%, var(--surface));
    font-size: 11px;
    font-weight: 750;
}
.profile-favorite-remove button:hover {
    border-color: color-mix(in srgb, var(--danger) 46%, var(--border));
    background: var(--danger-soft);
}
.profile-favorite-remove .icon { width: 15px; height: 15px; fill: currentColor; }

.license-form-section {
    display: grid;
    gap: 18px;
}
.license-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.license-form-heading-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-soft);
}
.license-form-heading h2,
.license-form-heading p,
.license-details-head h3 { margin: 0; }
.license-form-heading h2 {
    margin-top: 2px;
    font-size: 19px;
    letter-spacing: -.35px;
}
.license-form-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.license-schema-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
    border-radius: 11px;
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 8%, var(--surface));
    font-size: 12px;
}
.license-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.license-choice {
    --license-accent: var(--primary);
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    min-width: 0;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.license-choice:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--license-accent) 34%, var(--border));
    background: color-mix(in srgb, var(--license-accent) 4%, var(--surface));
}
.license-choice:has(input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.license-choice:has(input:disabled) {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}
.license-choice.is-selected,
.license-choice:has(input:checked) {
    border-color: color-mix(in srgb, var(--license-accent) 58%, var(--border));
    background: color-mix(in srgb, var(--license-accent) 9%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--license-accent) 14%, transparent);
}
.license-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.license-choice-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--license-accent);
    background: color-mix(in srgb, var(--license-accent) 11%, var(--surface));
}
.license-choice-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}
.license-choice-copy strong {
    padding-right: 22px;
    font-size: 13px;
    line-height: 1.35;
}
.license-choice-copy small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}
.license-choice-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: transparent;
    background: var(--surface);
}
.license-choice-check .icon { width: 14px; height: 14px; }
.license-choice.is-selected .license-choice-check,
.license-choice:has(input:checked) .license-choice-check {
    color: #fff;
    border-color: var(--license-accent);
    background: var(--license-accent);
}
.license-choice-restricted { --license-accent: var(--danger); }
.license-choice-protected { --license-accent: var(--primary); }
.license-choice-attribution { --license-accent: #397cc5; }
.license-choice-noncommercial { --license-accent: var(--warning); }
.license-choice-editorial { --license-accent: #8b5bb5; }
.license-choice-open { --license-accent: var(--success); }
.license-choice-custom { --license-accent: var(--accent); }

.license-details {
    display: grid;
    gap: 17px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}
.license-details[hidden] { display: none; }
.license-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.license-details-head h3 {
    margin-top: 2px;
    font-size: 17px;
}
.license-details-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.license-terms-textarea { min-height: 135px; }
.license-permissions {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.license-permissions legend {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 800;
}
.license-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.license-permission {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 72px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    cursor: pointer;
}
.license-permission:hover { border-color: var(--border-strong); }
.license-permission:has(input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.license-permission input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.license-permission-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-2);
}
.license-permission-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.license-permission-copy strong { font-size: 12px; line-height: 1.35; }
.license-permission-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.license-permission-switch {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: var(--surface-3);
    box-shadow: inset 0 0 0 1px var(--border);
}
.license-permission-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .16s ease, background .16s ease;
}
.license-permission:has(input:checked) {
    border-color: color-mix(in srgb, var(--success) 28%, var(--border));
    background: color-mix(in srgb, var(--success) 5%, var(--surface));
}
.license-permission:has(input:checked) .license-permission-icon { color: var(--success); background: var(--success-soft); }
.license-permission:has(input:checked) .license-permission-switch { background: var(--success); box-shadow: none; }
.license-permission:has(input:checked) .license-permission-switch span { transform: translateX(15px); background: #fff; }
.license-permission.is-locked { cursor: default; }
.license-permission.is-locked .license-permission-switch { opacity: .7; }
.license-permission-lock {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: end;
    margin-top: 24px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}
.license-permission-lock[hidden] { display: none; }
.license-permission-lock .icon { width: 11px; height: 11px; }

.detail-heading-meta { justify-content: flex-start; flex-wrap: wrap; }
.detail-heading-meta .status-badge { margin-left: auto; }
.copyright-trigger {
    --license-accent: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 230px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--license-accent) 28%, var(--border));
    border-radius: 999px;
    color: var(--license-accent);
    background: color-mix(in srgb, var(--license-accent) 7%, var(--surface));
    font-size: 10px;
    font-weight: 750;
}
.copyright-trigger:hover {
    border-color: color-mix(in srgb, var(--license-accent) 52%, var(--border));
    background: color-mix(in srgb, var(--license-accent) 12%, var(--surface));
}
.copyright-trigger .icon { width: 14px; height: 14px; }
.copyright-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyright-tone-restricted { --license-accent: var(--danger); }
.copyright-tone-protected { --license-accent: var(--primary); }
.copyright-tone-attribution { --license-accent: #397cc5; }
.copyright-tone-noncommercial { --license-accent: var(--warning); }
.copyright-tone-editorial { --license-accent: #8b5bb5; }
.copyright-tone-open { --license-accent: var(--success); }
.copyright-tone-custom { --license-accent: var(--accent); }
.copyright-tone-neutral { --license-accent: var(--muted); }

.copyright-download-restricted {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}
.copyright-download-restricted > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--danger);
    background: var(--danger-soft);
}
.copyright-download-restricted > div { display: grid; min-width: 0; gap: 2px; }
.copyright-download-restricted strong { font-size: 13px; }
.copyright-download-restricted small { color: var(--muted); font-size: 11px; }

.copyright-dialog {
    width: min(760px, calc(100vw - 28px));
    max-height: min(88vh, 920px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.copyright-dialog::backdrop {
    background: rgba(8, 10, 16, .72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.copyright-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(88vh, 920px);
}
.copyright-dialog-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.copyright-dialog-head h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.25; }
.copyright-dialog-mark {
    --license-accent: var(--primary);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--license-accent);
    background: color-mix(in srgb, var(--license-accent) 11%, var(--surface));
}
.copyright-dialog-close { align-self: start; }
.copyright-dialog-body {
    display: grid;
    gap: 18px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.copyright-declaration {
    display: grid;
    gap: 13px;
}
.copyright-declaration > p { margin: 0; color: var(--muted); }
.copyright-facts { margin: 0; }
.copyright-facts div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}
.copyright-facts dt { color: var(--muted); font-size: 11px; }
.copyright-facts dd { margin: 0; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.copyright-terms {
    padding: 13px 14px;
    border-left: 3px solid var(--primary);
    border-radius: 0 11px 11px 0;
    background: var(--surface-2);
}
.copyright-terms h3,
.copyright-permission-section h3,
.copyright-site-notice h3 { margin: 0 0 8px; font-size: 14px; }
.copyright-terms p { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.copyright-source-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
}
.copyright-source-link:hover { text-decoration: underline; }
.copyright-permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.copyright-permission-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}
.copyright-permission-row-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
}
.copyright-permission-row > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.copyright-permission-row strong { font-size: 11px; line-height: 1.3; }
.copyright-permission-row small { color: var(--muted); font-size: 10px; }
.copyright-permission-state { display: grid; place-items: center; }
.copyright-permission-state .icon { width: 16px; height: 16px; }
.copyright-permission-row.is-allowed,
.copyright-permission-row.is-required { border-color: color-mix(in srgb, var(--success) 25%, var(--border)); }
.copyright-permission-row.is-allowed .copyright-permission-row-icon,
.copyright-permission-row.is-allowed .copyright-permission-state,
.copyright-permission-row.is-required .copyright-permission-row-icon,
.copyright-permission-row.is-required .copyright-permission-state { color: var(--success); }
.copyright-permission-row.is-denied { border-color: color-mix(in srgb, var(--danger) 23%, var(--border)); }
.copyright-permission-row.is-denied .copyright-permission-row-icon,
.copyright-permission-row.is-denied .copyright-permission-state { color: var(--danger); }
.copyright-permission-row.is-unspecified,
.copyright-permission-row.is-not-required { color: var(--muted); }
.copyright-site-notice {
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--warning) 24%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--warning) 6%, var(--surface));
}
.copyright-site-notice h3 { display: flex; align-items: center; gap: 7px; color: var(--warning); }
.copyright-site-notice ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.copyright-site-notice p { margin: 9px 0 0; color: var(--text); font-size: 10px; font-weight: 650; }

@media (max-width: 760px) {
    .license-choice-grid,
    .license-permission-grid,
    .copyright-permission-list { grid-template-columns: minmax(0, 1fr); }
    .license-details .form-row { grid-template-columns: minmax(0, 1fr); }
    .copyright-download-restricted { grid-template-columns: 40px minmax(0, 1fr); }
    .copyright-download-restricted .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
    .profile-tabs { margin-bottom: 20px; }
    .profile-tabs a { justify-content: flex-start; }
    .license-form-heading { align-items: center; }
    .license-form-heading-icon { width: 38px; height: 38px; }
    .license-form-heading h2 { font-size: 17px; }
    .license-details { padding: 14px; }
    .license-details-head { align-items: flex-start; flex-direction: column; }
    .license-details-status { white-space: normal; }
    .license-choice { min-height: 104px; padding: 12px; }
    .copyright-trigger { max-width: min(100%, 210px); }
    .detail-heading-meta .status-badge { margin-left: 0; }
    .copyright-dialog { width: calc(100vw - 16px); max-height: 92vh; border-radius: 16px; }
    .copyright-dialog-shell { max-height: 92vh; }
    .copyright-dialog-head { grid-template-columns: 40px minmax(0, 1fr) 36px; padding: 14px; }
    .copyright-dialog-mark { width: 40px; height: 40px; border-radius: 12px; }
    .copyright-dialog-head h2 { font-size: 17px; }
    .copyright-dialog-body { padding: 14px; }
    .copyright-facts div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}


/* HC Galeri · Kategori içi görsel gezinme */
.stage-navigation {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 68px;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    border-radius: 15px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.stage-navigation:hover {
    transform: translateY(-50%) scale(1.04);
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 52%, var(--surface));
}
.stage-navigation .icon { width: 26px; height: 26px; }
.stage-navigation-previous { left: 14px; }
.stage-navigation-previous .icon { transform: rotate(180deg); }
.stage-navigation-next { right: 14px; }
.detail-file-info-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
}
.detail-file-info-icon .icon { width: 18px; height: 18px; }

@media (max-width: 700px) {
    .stage-navigation { width: 40px; height: 56px; border-radius: 12px; }
    .stage-navigation-previous { left: 8px; }
    .stage-navigation-next { right: 8px; }
    .stage-navigation .icon { width: 22px; height: 22px; }
    .lightbox-stage {
        padding:
            max(60px, calc(env(safe-area-inset-top) + 52px))
            max(48px, calc(env(safe-area-inset-right) + 38px))
            max(30px, calc(env(safe-area-inset-bottom) + 18px))
            max(48px, calc(env(safe-area-inset-left) + 38px));
    }
    .lightbox-navigation { width: 40px; height: 58px; border-radius: 12px; }
    .lightbox-navigation-previous { left: max(5px, env(safe-area-inset-left)); }
    .lightbox-navigation-next { right: max(5px, env(safe-area-inset-right)); }
    .lightbox-toolbar {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        gap: 5px;
    }
    .lightbox-toolbar-button { width: 38px; height: 38px; }
    .lightbox-open-detail {
        top: max(8px, env(safe-area-inset-top));
        left: max(8px, env(safe-area-inset-left));
        max-width: calc(100dvw - 148px);
        min-height: 38px;
        padding: 7px 9px;
    }
    .lightbox-open-detail span { display: none; }
    .lightbox-thumbnail-drawer {
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
    }
    .lightbox-thumbnail-track { gap: 8px; padding-top: 36px; }
    .lightbox-thumbnail { flex-basis: 92px; width: 92px; }
}

/* Header yükleme kısayolu ve çözünürlük mega menüsü */
.header-upload-button {
    flex: 0 0 auto;
    text-decoration: none;
}
.header-upload-button.is-active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    background: var(--primary-soft);
}
.header-upload-button .icon { width: 19px; height: 19px; }
.resolution-mega-panel { width: min(calc(100vw - 32px), 1180px); }
.resolution-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resolution-mega-group { align-content: start; }
.mega-resolution-icon {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 76%, var(--surface));
}
.mega-resolution-child-icon {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface-2));
}
.resolution-mega-children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-resolution-main.is-active,
.mobile-resolution-child.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}
.mobile-resolution-icon,
.mobile-resolution-child-icon {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface-2));
}

@media (max-width: 1100px) {
    .resolution-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* Kullanıcı mini mega menüsü */
.user-menu summary {
    max-width: 220px;
}
.user-menu-summary-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-chevron {
    width: 15px;
    height: 15px;
    margin-left: 1px;
    color: var(--muted);
    transition: transform .18s ease;
}
.user-menu[open] .user-menu-chevron {
    transform: rotate(180deg);
}
.user-menu-panel.user-menu-mega-panel {
    width: min(620px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.user-menu-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 17px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 10%, var(--primary-soft), transparent 46%),
        var(--surface);
}
.user-menu-profile-avatar {
    width: 46px;
    height: 46px;
    font-size: 15px;
}
.user-menu-profile-copy {
    display: grid;
    min-width: 0;
}
.user-menu-profile-copy strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-profile-copy span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.user-menu-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}
.user-menu-mega-section {
    min-width: 0;
    padding: 15px;
}
.user-menu-mega-section + .user-menu-mega-section {
    border-left: 1px solid var(--border);
}
.user-menu-section-title {
    display: block;
    margin: 0 2px 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.user-menu-tile-grid {
    display: grid;
    gap: 6px;
}
.user-menu-panel.user-menu-mega-panel .user-menu-tile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
}
.user-menu-panel.user-menu-mega-panel .user-menu-tile:hover,
.user-menu-panel.user-menu-mega-panel .user-menu-tile.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    background: var(--primary-soft);
}
.user-menu-tile-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--primary);
    background: var(--surface);
}
.user-menu-tile-icon .icon {
    width: 18px;
    height: 18px;
}
.user-menu-tile > span:last-child {
    display: grid;
    min-width: 0;
}
.user-menu-tile strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-tile small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-tile small b {
    color: var(--primary);
    font-weight: 850;
}
.user-menu-admin-section {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    border-left: 0 !important;
}
.user-menu-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.user-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.user-menu-footer form {
    margin: 0;
}
.user-menu-panel.user-menu-mega-panel .user-menu-profile-link,
.user-menu-panel.user-menu-mega-panel .user-menu-logout {
    display: inline-flex;
    width: auto;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    font-weight: 750;
}
.user-menu-panel.user-menu-mega-panel .user-menu-profile-link:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
    background: var(--surface);
}
.user-menu-panel.user-menu-mega-panel .user-menu-logout:hover {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.user-menu-profile-link .icon,
.user-menu-logout .icon {
    width: 16px;
    height: 16px;
}

@media (max-width: 760px) {
    .user-menu-panel.user-menu-mega-panel {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100dvh - var(--header-height) - 18px);
        overflow-y: auto;
    }
    .user-menu-mega-grid {
        grid-template-columns: 1fr;
    }
    .user-menu-mega-section + .user-menu-mega-section {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
    .user-menu-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .user-menu-profile {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .user-role-chip {
        grid-column: 2;
        justify-self: start;
    }
    .user-menu-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .user-menu-panel.user-menu-mega-panel .user-menu-profile-link,
    .user-menu-panel.user-menu-mega-panel .user-menu-logout {
        width: 100%;
        justify-content: center;
    }
}


/* Gravatar + baş harf yedeği */
.avatar-with-gravatar {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.avatar-with-gravatar .avatar-fallback {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}
.avatar-with-gravatar .avatar-gravatar-image {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease;
}
.avatar-with-gravatar.has-gravatar .avatar-gravatar-image {
    opacity: 1;
    visibility: visible;
}
.avatar-with-gravatar.has-gravatar .avatar-fallback {
    visibility: hidden;
}


/* Kompakt kategori kataloğu */
.category-catalog-panel {
    width: min(calc(100vw - 28px), 1260px);
    padding: 0;
    overflow: hidden;
}
.category-catalog-head {
    margin: 0;
    padding: 17px 20px 15px;
}
.category-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    max-height: min(690px, calc(100dvh - var(--header-height) - 88px));
    padding: 8px 12px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34%),
        var(--surface);
}
.category-catalog-group {
    min-width: 0;
    padding: 10px 12px 13px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.category-catalog-group:nth-child(5n) { border-right: 0; }
.category-catalog-group.contains-selection {
    background: color-mix(in srgb, var(--primary-soft) 46%, transparent);
}
.category-catalog-main {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    margin-bottom: 6px;
    color: var(--text);
}
.category-catalog-main:hover,
.category-catalog-main.is-active {
    color: var(--primary);
}
.category-catalog-main-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--primary);
    background: var(--surface-2);
}
.category-catalog-main-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.category-catalog-main-icon .icon {
    width: 17px;
    height: 17px;
}
.category-catalog-main > span:not(.category-catalog-main-icon) {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.category-catalog-main strong {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-catalog-main small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}
.category-catalog-main-arrow {
    width: 14px;
    height: 14px;
    color: var(--muted);
}
.category-catalog-main:hover .category-catalog-main-arrow,
.category-catalog-main.is-active .category-catalog-main-arrow {
    color: var(--primary);
}
.category-catalog-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 11px;
    min-width: 0;
    padding-left: 2px;
}
.category-catalog-links a {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 3px 0 3px 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-catalog-links a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 1px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--border-strong);
    transform: translateY(-50%);
}
.category-catalog-links a:hover,
.category-catalog-links a.is-active {
    color: var(--primary);
}
.category-catalog-links a:hover::before,
.category-catalog-links a.is-active::before {
    background: var(--primary);
}

/* Mobil kategori ağacı: alt kategoriler metin tabanlıdır. */
.mobile-category-tree {
    gap: 5px;
    padding-left: 0;
}
.mobile-category-branch {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}
.mobile-category-branch-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: stretch;
}
.mobile-category-branch-head .mobile-category-main {
    min-width: 0;
    padding: 8px 9px !important;
    border-radius: 0;
}
.mobile-category-branch-head .mobile-category-main.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}
.mobile-category-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-2);
    cursor: pointer;
}
.mobile-category-toggle:hover,
.mobile-category-toggle[aria-expanded="true"] {
    color: var(--primary);
    background: var(--primary-soft);
}
.mobile-category-toggle .icon {
    width: 16px;
    height: 16px;
    transition: transform .16s ease;
}
.mobile-category-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-category-branch-children {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 78%, var(--surface));
}
.mobile-category-branch-children[hidden] { display: none; }
.mobile-category-branch-children .mobile-category-child {
    display: inline-flex;
    width: auto;
    min-height: 30px;
    padding: 6px 8px !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
}
.mobile-category-child:hover,
.mobile-category-child.is-active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
    background: var(--primary-soft);
}

@media (max-width: 1180px) {
    .category-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-catalog-group:nth-child(5n) { border-right: 1px solid var(--border); }
    .category-catalog-group:nth-child(4n) { border-right: 0; }
}

@media (max-width: 980px) {
    .category-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-catalog-group:nth-child(4n) { border-right: 1px solid var(--border); }
    .category-catalog-group:nth-child(3n) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-mega-trigger .mega-chevron,
    .mobile-category-toggle .icon { transition: none; }
}

/* Görsel için çoklu kategori seçici */
.category-picker {
    display: grid;
    gap: 11px;
    margin: 2px 0 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-2);
}
.category-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.category-picker-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.category-picker-head label {
    font-size: 13px;
    font-weight: 800;
}
.category-picker-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 62px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: 11px;
    font-weight: 750;
}
.category-picker-count strong {
    color: var(--primary);
    font-size: 13px;
}
.category-picker-count.is-limit {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.category-picker-search-wrap {
    position: relative;
}
.category-picker-search-wrap > .icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.category-picker-search {
    padding-left: 38px;
}
.category-picker-status {
    min-height: 0;
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
}
.category-picker-status:empty {
    display: none;
}
.category-picker-scroll {
    display: grid;
    gap: 9px;
    max-height: 430px;
    padding: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.category-picker-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.category-picker-group[hidden],
.category-picker-option[hidden] {
    display: none;
}
.category-picker-group-title {
    position: sticky;
    z-index: 2;
    top: -3px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-2) 94%, transparent);
    backdrop-filter: blur(10px);
    font-size: 11px;
    letter-spacing: .02em;
}
.category-picker-group-icon,
.category-picker-option-icon,
.detail-category-chip-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    color: var(--primary);
    background: var(--surface);
}
.category-picker-group-icon {
    width: 25px;
    height: 25px;
    border-radius: 7px;
}
.category-picker-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.category-picker-group-icon img,
.category-picker-option-icon img,
.detail-category-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.category-picker-group-icon .icon,
.category-picker-option-icon .icon {
    width: 16px;
    height: 16px;
}
.category-picker-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.category-picker-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.category-picker-option:hover {
    border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
}
.category-picker-option.is-selected {
    border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 15%, transparent);
}
.category-picker-select {
    display: grid;
    grid-template-columns: 18px 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 54px;
    padding: 8px;
    cursor: pointer;
}
.category-picker-select > input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.category-picker-select > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.category-picker-select strong,
.category-picker-select small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-picker-select strong {
    color: var(--text);
    font-size: 11px;
}
.category-picker-select small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
}
.category-picker-primary {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 5px;
    padding: 0 8px;
    border-left: 1px solid var(--border);
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
    cursor: pointer;
    font-size: 9px;
    font-weight: 750;
}
.category-picker-primary:has(input:checked) {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 80%, var(--surface));
}
.category-picker-primary:has(input:disabled) {
    opacity: .46;
    cursor: not-allowed;
}
.category-picker-primary input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}
.category-picker-empty,
.category-picker-empty-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    padding: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}
.category-picker-empty-search[hidden] {
    display: none;
}
.detail-category-chips {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 2px 0 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.detail-category-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 31px;
    padding: 4px 8px 4px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 10px;
    font-weight: 750;
}
.detail-category-chip:hover,
.detail-category-chip.is-primary {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    background: var(--primary-soft);
}
.detail-category-chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
}
.detail-category-chip-icon .icon {
    width: 13px;
    height: 13px;
}
.detail-category-chip > .icon {
    width: 13px;
    height: 13px;
}

@media (max-width: 760px) {
    .category-picker-options {
        grid-template-columns: minmax(0, 1fr);
    }
    .category-picker-scroll {
        max-height: 380px;
    }
}

@media (max-width: 460px) {
    .category-picker {
        padding: 11px;
    }
    .category-picker-head {
        align-items: stretch;
        flex-direction: column;
    }
    .category-picker-count {
        align-self: flex-start;
    }
    .category-picker-select {
        grid-template-columns: 17px 30px minmax(0, 1fr);
        gap: 7px;
        padding: 7px;
    }
    .category-picker-option-icon {
        width: 30px;
        height: 30px;
    }
    .category-picker-primary span {
        display: none;
    }
}


/* =========================================================
   Görsel kartı tek satır meta şeridi
   ========================================================= */
.gallery-card-body {
    padding: 9px;
}
.card-meta-dock {
    display: flex;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}
.card-meta-item {
    display: inline-flex;
    flex: 0 0 34px;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
    cursor: default;
    transition:
        flex-basis .18s ease,
        min-width .18s ease,
        width .18s ease,
        padding .18s ease,
        opacity .18s ease,
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}
a.card-meta-item {
    cursor: pointer;
}
.card-meta-item > .icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}
.card-meta-title > .icon {
    color: var(--primary);
}
.card-meta-rating > .icon {
    color: var(--warning);
    fill: currentColor;
}
.card-meta-author > .icon {
    color: var(--success);
}
.card-meta-value {
    display: block;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: max-width .18s ease, opacity .14s ease;
}
.card-meta-value b {
    color: var(--text);
    font-weight: 820;
}
.card-meta-item:hover,
.card-meta-item:focus-visible,
.card-meta-item:focus-within {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: flex-start;
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 72%, var(--surface));
    box-shadow: var(--shadow-sm);
    outline: none;
}
.card-meta-item:hover .card-meta-value,
.card-meta-item:focus-visible .card-meta-value,
.card-meta-item:focus-within .card-meta-value {
    max-width: 100%;
    opacity: 1;
}
.card-meta-item.is-hidden {
    cursor: help;
}

@supports selector(:has(*)) {
    .card-meta-dock:has(.card-meta-item:hover) .card-meta-item:not(:hover),
    .card-meta-dock:has(.card-meta-item:focus-visible) .card-meta-item:not(:focus-visible),
    .card-meta-dock:has(.card-meta-item:focus-within) .card-meta-item:not(:focus-within) {
        flex-basis: 0;
        min-width: 0;
        width: 0;
        padding-right: 0;
        padding-left: 0;
        opacity: 0;
        border-width: 0;
        pointer-events: none;
    }
}

/* =========================================================
   Ortak sosyal medya SVG şeritleri
   ========================================================= */
.social-share-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
}
.social-share-button {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        opacity .16s ease,
        color .16s ease,
        border-color .16s ease,
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}
.social-share-button:hover,
.social-share-button:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 72%, var(--surface));
    box-shadow: var(--shadow-sm);
    opacity: 1;
    outline: none;
    transform: translateY(-1px);
}
.social-share-svg {
    display: block;
    width: 16px;
    height: 16px;
}
.social-share-svg-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.social-share-svg-stroke .social-share-svg-dot {
    fill: currentColor;
    stroke: none;
}
.social-share-svg-googleplus {
    overflow: visible;
}

/* Kart görseli üzerindeki hafif filigran şerit */
.social-share-strip-card {
    position: absolute;
    z-index: 7;
    right: 9px;
    bottom: 8px;
    left: 9px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    padding: 3px 5px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 82%, transparent);
    border-radius: 10px;
    color: var(--card-overlay-text);
    background: color-mix(in srgb, var(--card-overlay-bg) 70%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, #000 13%, transparent);
    opacity: .46;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}
.gallery-card-media-shell:hover .social-share-strip-card,
.social-share-strip-card:focus-within {
    opacity: .82;
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 84%, transparent);
    border-color: var(--card-overlay-border);
}
.social-share-strip-card .social-share-button {
    width: 100%;
    height: 25px;
    border: 0;
    border-radius: 7px;
    color: var(--card-overlay-text);
    background: transparent;
    box-shadow: none;
    opacity: .48;
}
.social-share-strip-card .social-share-button:hover,
.social-share-strip-card .social-share-button:focus-visible {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 80%, var(--card-overlay-bg-strong));
    box-shadow: none;
    opacity: 1;
}
.social-share-strip-card .social-share-svg {
    width: 14px;
    height: 14px;
}

/* image.php paylaşım şeridi */
.social-share-strip-detail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
    width: 100%;
    margin-top: 10px;
}
.social-share-strip-detail .social-share-button {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
}
.social-share-strip-detail .social-share-button:hover,
.social-share-strip-detail .social-share-button:focus-visible {
    color: var(--primary);
    background: var(--primary-soft);
}
.social-share-strip-detail .social-share-svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 560px) {
    .gallery-card-body {
        padding: 7px;
    }
    .card-meta-dock {
        gap: 3px;
    }
    .card-meta-item {
        flex-basis: 31px;
        min-width: 31px;
        height: 31px;
        padding-right: 6px;
        padding-left: 6px;
        border-radius: 8px;
    }
    .card-meta-item > .icon {
        width: 14px;
        height: 14px;
    }
    .social-share-strip-card {
        right: 6px;
        bottom: 6px;
        left: 6px;
        gap: 2px;
        padding: 2px 3px;
        border-radius: 8px;
    }
    .social-share-strip-card .social-share-button {
        height: 23px;
        border-radius: 6px;
    }
    .social-share-strip-card .social-share-svg {
        width: 13px;
        height: 13px;
    }
    .social-share-strip-detail {
        gap: 4px;
    }
    .social-share-strip-detail .social-share-button {
        min-height: 36px;
        border-radius: 8px;
    }
    .social-share-strip-detail .social-share-svg {
        width: 16px;
        height: 16px;
    }
}

@media (hover: none) {
    .social-share-strip-card {
        opacity: .68;
    }
}


/* =========================================================
   image.php · Minimal yayıncı ve görsel bilgi kartı
   ========================================================= */
.detail-description-panel-full {
    min-height: 0;
    padding: 0;
    border: 0;
}
.detail-description-panel-full .detail-description {
    margin-top: 7px;
}

.detail-owner-context-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}
.owner-context-profile {
    position: relative;
    gap: 10px;
    min-width: 0;
    padding: 14px 15px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: color .16s ease, background .16s ease;
}
.owner-context-profile:hover {
    color: var(--primary);
    background: var(--surface-2);
}
.owner-context-profile .avatar-large {
    width: 42px;
    height: 42px;
}
.owner-context-profile-arrow {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: color .16s ease, transform .16s ease;
}
.owner-context-profile:hover .owner-context-profile-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.owner-context-content-minimal {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px 15px 15px;
}
.owner-context-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.owner-context-image-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.16;
    letter-spacing: -.5px;
    overflow-wrap: anywhere;
}
.owner-context-heading .status-badge {
    flex: 0 0 auto;
    max-width: 44%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-context-quick-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}
.owner-context-quick-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
}
.owner-context-quick-item > .icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--primary);
}
.owner-context-file {
    flex: 0 1 auto;
    max-width: 46%;
}
.owner-context-file > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.owner-context-meta-separator {
    flex: 0 0 auto;
    color: var(--border-strong);
}
.owner-context-categories {
    flex: 1 1 auto;
    overflow: hidden;
}
.owner-context-category-inline-list {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.owner-context-category-inline-list a {
    color: var(--muted);
    font-weight: 720;
}
.owner-context-category-inline-list a:hover,
.owner-context-category-inline-list a.is-primary {
    color: var(--primary);
}
.owner-context-category-inline-list a:not(:last-of-type)::after {
    content: ", ";
    color: var(--muted);
}
.owner-context-category-more {
    flex: 0 0 auto;
    margin-left: 5px;
    color: var(--primary);
    font-weight: 820;
}

.owner-context-license-minimal {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color .16s ease;
}
.owner-context-license-minimal:hover,
.owner-context-license-minimal:focus-visible {
    color: var(--primary);
    outline: none;
}
.owner-context-license-minimal > .icon:first-child {
    width: 17px;
    height: 17px;
}
.owner-context-license-minimal > span {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.owner-context-license-chevron {
    width: 14px;
    height: 14px;
    color: currentColor;
    transform: rotate(-90deg);
}

@media (max-width: 980px) {
    .detail-owner-context-card {
        order: -1;
    }
}

@media (max-width: 640px) {
    .owner-context-profile {
        padding: 13px;
    }
    .owner-context-content-minimal {
        padding: 13px;
    }
    .owner-context-image-title {
        font-size: clamp(20px, 6.5vw, 25px);
    }
    .owner-context-file {
        max-width: 42%;
    }
}



/* =========================================================
   Yayıncı galerisi
   ========================================================= */
.publisher-gallery-hero {
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 38%),
        var(--surface);
}
.publisher-gallery-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 150px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.publisher-gallery-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}
.publisher-gallery-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.publisher-gallery-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.publisher-gallery-copy h1 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -.8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.publisher-gallery-copy .handle {
    color: var(--muted);
    font-size: 13px;
}
.publisher-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}
.publisher-gallery-count {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
}
.publisher-gallery-count strong {
    color: var(--primary);
    font-size: 18px;
}
.publisher-gallery-count small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 720;
}
.publisher-gallery-sort {
    display: flex;
    align-items: center;
    gap: 7px;
}
.publisher-gallery-sort .select {
    min-width: 180px;
}
.publisher-gallery-section-head {
    margin-bottom: 15px;
}

/* =========================================================
   Kart meta ikonları · küçük ve otomatik sığan düzen
   ========================================================= */
.card-meta-dock {
    gap: clamp(2px, .28vw, 4px);
}
.card-meta-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: clamp(27px, 2vw, 31px);
    padding-right: clamp(3px, .34vw, 5px);
    padding-left: clamp(3px, .34vw, 5px);
    border-radius: clamp(7px, .65vw, 9px);
    font-size: clamp(9px, .7vw, 10.5px);
}
.card-meta-item > .icon {
    width: clamp(11px, .78vw, 13px);
    height: clamp(11px, .78vw, 13px);
}
.card-meta-item:hover,
.card-meta-item:focus-visible,
.card-meta-item:focus-within {
    flex: 8 1 100%;
    padding-right: 7px;
    padding-left: 7px;
}

@media (max-width: 760px) {
    .publisher-gallery-hero-inner {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }
    .publisher-gallery-controls {
        justify-content: space-between;
    }
    .publisher-gallery-sort {
        flex: 1 1 auto;
    }
    .publisher-gallery-sort .select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 460px) {
    .publisher-gallery-identity .avatar-large {
        width: 44px;
        height: 44px;
    }
    .publisher-gallery-copy h1 {
        font-size: 25px;
    }
    .publisher-gallery-controls,
    .publisher-gallery-sort {
        align-items: stretch;
        flex-direction: column;
    }
    .publisher-gallery-count {
        justify-content: center;
    }
    .publisher-gallery-sort .button {
        justify-content: center;
    }
    .card-meta-dock {
        gap: 2px;
    }
    .card-meta-item {
        height: 26px;
        padding-right: 2px;
        padding-left: 2px;
    }
    .card-meta-item > .icon {
        width: 11px;
        height: 11px;
    }
}


/* =========================================================
   Yönetim · Görsel ve kullanıcı istatistikleri
   ========================================================= */
.admin-statistics-page {
    min-width: 0;
}
.admin-stat-summary-grid {
    margin-bottom: 22px;
}
.admin-stat-table-card {
    overflow: hidden;
}
.admin-stat-table-card .panel-card-head > div {
    display: grid;
    gap: 3px;
}
.admin-stat-table {
    min-width: 760px;
    font-variant-numeric: tabular-nums;
}
.admin-user-stat-table {
    min-width: 1040px;
}
.admin-stat-table th {
    padding: 0;
}
.admin-sort-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 42px;
    padding: 10px 13px;
    color: var(--muted);
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.admin-sort-link:hover,
.admin-sort-link.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}
.admin-sort-chevron {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    opacity: .34;
    transition: opacity .16s ease, transform .16s ease;
}
.admin-sort-link.is-active .admin-sort-chevron {
    opacity: 1;
}
.admin-sort-link.is-asc .admin-sort-chevron {
    transform: rotate(180deg);
}
.admin-stat-image,
.admin-stat-user {
    display: flex;
    align-items: center;
    min-width: 230px;
    gap: 10px;
    color: var(--text);
}
.admin-stat-image img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    object-fit: cover;
}
.admin-stat-image > span,
.admin-stat-user > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.admin-stat-image strong,
.admin-stat-user strong {
    display: block;
    max-width: 300px;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-stat-image small,
.admin-stat-user small {
    display: block;
    max-width: 340px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-stat-user-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    font-size: 12px;
}
.admin-stat-value,
.admin-stat-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    white-space: nowrap;
}
.admin-stat-value > .icon,
.admin-stat-rating > .icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--primary);
}
.admin-stat-value strong,
.admin-stat-rating strong {
    color: var(--text);
    font-size: 13px;
}
.admin-stat-rating > .icon,
.admin-stat-rated-images > .icon {
    color: var(--warning);
    fill: currentColor;
}
.admin-stat-rating small,
.admin-stat-rated-images small {
    color: var(--muted);
    font-size: 10px;
}
.admin-stat-rated-images {
    display: inline-flex;
    flex-wrap: wrap;
}
.admin-stat-empty {
    padding: 42px 20px;
}
.admin-stat-pagination {
    margin-top: 22px;
}
.admin-stat-pagination .pagination-gap {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

@media (max-width: 980px) {
    .admin-stat-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-stat-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .admin-stat-summary-grid .stat-card {
        padding: 16px;
    }
    .admin-sort-link {
        padding-right: 10px;
        padding-left: 10px;
    }
    .admin-stat-table td {
        padding-right: 10px;
        padding-left: 10px;
    }
}


/* Yönetim istatistikleri · kayıt sayısı ve sayfalama denetimi */
.admin-stat-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.admin-stat-page-size-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
}
.admin-stat-page-size-form label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
}
.admin-stat-page-size-form .select {
    width: 76px;
    min-width: 76px;
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.admin-stat-page-size-form .button {
    min-height: 36px;
}

@media (max-width: 620px) {
    .admin-stat-table-head {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-stat-page-size-form {
        width: 100%;
    }
    .admin-stat-page-size-form .select {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 390px) {
    .admin-stat-page-size-form label {
        display: none;
    }
    .admin-stat-page-size-form .button {
        padding-right: 9px;
        padding-left: 9px;
    }
}

/* =========================================================
   HC Galeri sosyal topluluk: bildirim, takip, koleksiyon, yorum
   ========================================================= */

/* Ortak sosyal sayfa başlığı */
.social-page-hero,
.collection-detail-hero {
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 40%),
        var(--surface);
}
.social-page-hero-inner,
.collection-detail-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 150px;
    padding-top: 25px;
    padding-bottom: 25px;
}
.social-page-hero h1,
.collection-detail-hero h1 {
    margin: 3px 0 5px;
    color: var(--text);
    font-size: clamp(27px, 3.2vw, 42px);
    line-height: 1.08;
    letter-spacing: -.9px;
}
.social-page-hero p,
.collection-detail-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}
.social-page-hero-stats,
.social-page-hero-actions,
.publisher-social-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.social-page-hero-stats > span,
.publisher-social-stats > span,
.notification-page-count {
    display: grid;
    min-width: 88px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
    text-align: center;
}
.social-page-hero-stats strong,
.publisher-social-stats strong,
.notification-page-count strong {
    color: var(--primary);
    font-size: 18px;
    line-height: 1.1;
}
.social-page-hero-stats small,
.publisher-social-stats small,
.notification-page-count small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 740;
}
.social-empty-state .button { margin-top: 8px; }

/* Header bildirim menüsü */
.notification-menu {
    position: relative;
}
.notification-menu > summary {
    list-style: none;
}
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu-trigger {
    position: relative;
}
.notification-header-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}
.notification-menu-panel {
    position: absolute;
    z-index: 130;
    top: calc(100% + 12px);
    right: 0;
    width: min(390px, calc(100vw - 20px));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.notification-menu-head > div { display: grid; }
.notification-menu-head strong { font-size: 14px; }
.notification-menu-head span { color: var(--muted); font-size: 10px; }
.notification-menu-head form { margin: 0; }
.notification-menu-head button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}
.notification-menu-head button:hover { color: var(--primary); border-color: var(--primary); }
.notification-menu-head button .icon { width: 16px; height: 16px; }
.notification-menu-list {
    display: grid;
    max-height: min(440px, calc(100dvh - 190px));
    overflow-y: auto;
    scrollbar-width: thin;
}
.notification-menu-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 800;
}
.notification-menu-all .icon { width: 15px; height: 15px; }
.notification-menu-empty {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 150px;
    padding: 20px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}
.notification-menu-empty .icon { width: 25px; height: 25px; }
.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px 30px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
    transition: background .16s ease, color .16s ease;
}
.notification-item:hover { background: var(--surface-2); }
.notification-item.is-unread {
    background: color-mix(in srgb, var(--primary-soft) 66%, var(--surface));
}
.notification-item-avatar,
.notification-item-icon {
    display: grid;
    place-items: center;
    border-radius: 999px;
}
.notification-item-avatar {
    width: 38px;
    height: 38px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 850;
}
.notification-item-icon {
    width: 29px;
    height: 29px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-2);
}
.notification-item-icon .icon { width: 14px; height: 14px; }
.notification-item-copy { display: grid; min-width: 0; gap: 3px; }
.notification-item-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.notification-item-copy small { color: var(--muted); font-size: 9px; }
.notification-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}
.notification-item.is-compact { padding: 10px 12px; }
.notification-item.is-compact .notification-item-avatar { width: 34px; height: 34px; }
.notification-item.is-compact .notification-item-icon { width: 26px; height: 26px; }
.notification-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.notification-list .notification-item:last-child { border-bottom: 0; }
.notification-list .notification-item { grid-template-columns: 44px 34px minmax(0, 1fr) 9px; padding: 15px 16px; }
.notifications-page { max-width: 980px; }

/* Yayıncı takip alanı */
.publisher-social-stats > span { min-width: 72px; padding: 7px 9px; }
.publisher-follow-form { margin: 0; }
.owner-social-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.owner-social-bar form { margin: 0 0 0 auto; }
.owner-social-count {
    display: grid;
    min-width: 52px;
    text-align: center;
}
.owner-social-count strong { color: var(--text); font-size: 13px; }
.owner-social-count small { color: var(--muted); font-size: 9px; font-weight: 720; }

/* Koleksiyon listesi */
.collections-page-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}
.collection-create-card {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    padding: 18px;
}
.collection-create-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.collection-create-head h2 { margin: 1px 0 0; font-size: 18px; }
.collection-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.collection-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.collection-card-cover {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    color: var(--primary);
    background: var(--surface-2);
}
.collection-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.collection-card:hover .collection-card-cover img { transform: scale(1.025); }
.collection-card-cover > span .icon { width: 38px; height: 38px; }
.collection-card-body { display: grid; gap: 9px; padding: 13px; }
.collection-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.collection-card-title-row a { min-width: 0; }
.collection-card-title-row h3 { margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.collection-card-body p {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.collection-visibility-chip {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 8px;
    font-weight: 820;
}
.collection-visibility-chip.visibility-public { color: var(--success); }
.collection-visibility-chip.visibility-unlisted { color: var(--warning); }
.collection-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; }
.collection-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.collection-card-meta .icon { width: 13px; height: 13px; }
.collection-card-edit { border-top: 1px solid var(--border); padding-top: 8px; }
.collection-card-edit > summary { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 780; cursor: pointer; }
.collection-card-edit > summary .icon { width: 13px; height: 13px; }
.collection-card-edit[open] > summary { color: var(--primary); margin-bottom: 10px; }
.compact-form { gap: 8px; }
.inline-actions { display: flex; gap: 7px; }

/* Koleksiyon detay */
.collection-detail-hero-inner { align-items: flex-end; }
.collection-owner-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 11px; }
.collection-owner-line a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 750; }
.collection-owner-line a .icon { width: 14px; height: 14px; }
.collection-owner-line a span { color: var(--muted); }
.collection-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.collection-image-item { display: grid; align-content: start; gap: 6px; min-width: 0; }
.collection-remove-form { display: flex; justify-content: flex-end; margin: 0; }
.collection-remove-form .button { width: 100%; justify-content: center; }

/* Görsel detay koleksiyon seçici */
.collection-picker-dialog {
    width: min(590px, calc(100vw - 22px));
    max-width: 590px;
    max-height: min(760px, calc(100dvh - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.collection-picker-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(5px); }
.collection-picker-shell { display: grid; max-height: inherit; overflow-y: auto; }
.collection-picker-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px);
}
.collection-picker-head h2 { margin: 2px 0 0; font-size: 18px; }
.collection-picker-list { display: grid; gap: 6px; padding: 12px; }
.collection-picker-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
}
.collection-picker-row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--primary); background: var(--surface); }
.collection-picker-row-icon .icon { width: 18px; height: 18px; }
.collection-picker-row-copy { display: grid; min-width: 0; gap: 2px; }
.collection-picker-row-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.collection-picker-row-copy small { color: var(--muted); font-size: 9px; }
.collection-picker-create { margin: 0 12px 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.collection-picker-create > summary { display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 11px; font-weight: 800; cursor: pointer; }
.collection-picker-create > summary .icon { width: 14px; height: 14px; }
.collection-picker-create[open] > summary { margin-bottom: 10px; }
.collection-picker-empty { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: var(--surface-2); }
.collection-picker-empty .icon { flex: 0 0 auto; width: 24px; height: 24px; }
.collection-picker-empty p { margin: 0; font-size: 11px; }
.collection-picker-manage { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 11px 16px; border-top: 1px solid var(--border); color: var(--primary); background: var(--surface-2); font-size: 11px; font-weight: 800; }
.collection-picker-manage .icon { width: 14px; height: 14px; }

/* Yorumlar */
.comments-section { scroll-margin-top: calc(var(--header-height) + 20px); }
.comments-section-head h2 small { color: var(--muted); font-size: .58em; font-weight: 700; }
.comment-form { display: grid; gap: 11px; margin-bottom: 14px; padding: 15px; }
.comment-form-head { display: flex; align-items: center; gap: 10px; }
.comment-form-head .avatar { width: 38px; height: 38px; }
.comment-form-head > div { display: grid; gap: 1px; }
.comment-form-head strong { font-size: 13px; }
.comment-form-head small { color: var(--muted); font-size: 9px; }
.comment-form-head code { color: var(--primary); font-family: inherit; font-weight: 780; }
.comment-form .textarea { min-height: 100px; resize: vertical; }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-form-footer > span { color: var(--muted); font-size: 9px; }
.comment-reply-context {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 9px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 740;
}
.comment-reply-context[hidden] { display: none; }
.comment-reply-context .icon { width: 14px; height: 14px; }
.comment-reply-context button { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.comment-list { display: grid; gap: 10px; }
.comment-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}
.comment-item.is-reply { margin-top: 8px; border-color: color-mix(in srgb, var(--primary) 18%, var(--border)); background: var(--surface-2); }
.comment-avatar { width: 38px; height: 38px; font-size: 10px; }
.comment-content { display: grid; min-width: 0; gap: 7px; }
.comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.comment-author { display: inline-flex; align-items: baseline; min-width: 0; gap: 5px; }
.comment-author strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.comment-author span { color: var(--muted); font-size: 9px; }
.comment-head time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.comment-body { color: var(--text); font-size: 12px; line-height: 1.62; overflow-wrap: anywhere; }
.comment-mention { color: var(--primary); font-weight: 800; }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.comment-actions form { margin: 0; }
.comment-action-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.comment-action-button:hover { color: var(--primary); }
.comment-action-button.is-danger:hover { color: var(--danger); }
.comment-action-button .icon { width: 13px; height: 13px; }
.comment-replies { display: grid; gap: 8px; margin-top: 3px; }
.comment-deleted { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 10px; font-style: italic; }
.comment-deleted .icon { width: 14px; height: 14px; }
.comments-empty,
.comment-login-card { display: flex; align-items: center; gap: 10px; padding: 15px; color: var(--muted); }
.comments-empty { justify-content: center; border: 1px dashed var(--border); border-radius: 13px; background: var(--surface-2); font-size: 11px; }
.comments-empty .icon,
.comment-login-card > .icon { flex: 0 0 auto; width: 21px; height: 21px; }
.comment-login-card span { flex: 1 1 auto; font-size: 11px; }

/* Kullanıcı mini mega menüsüne eklenen sosyal kutular */
.user-menu-tile small b { color: var(--primary); }

@media (max-width: 1100px) {
    .collection-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .collections-page-layout { grid-template-columns: minmax(0, 1fr); }
    .collection-create-card { position: static; }
}
@media (max-width: 760px) {
    .social-page-hero-inner,
    .collection-detail-hero-inner { align-items: stretch; flex-direction: column; min-height: 0; }
    .social-page-hero-actions { align-items: stretch; flex-direction: column; }
    .notification-menu-panel { position: fixed; top: calc(var(--header-height) + 8px); right: 8px; left: 8px; width: auto; }
    .collection-card-grid { grid-template-columns: minmax(0, 1fr); }
    .publisher-gallery-controls { align-items: stretch; }
    .owner-social-bar { flex-wrap: wrap; }
    .owner-social-bar form { margin-left: auto; }
}
@media (max-width: 560px) {
    .collection-image-grid { grid-template-columns: minmax(0, 1fr); }
    .collection-picker-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 7px; }
    .collection-picker-row-icon { width: 34px; height: 34px; }
    .collection-picker-row .button span { display: none; }
    .comment-item { grid-template-columns: 31px minmax(0, 1fr); padding: 10px; }
    .comment-avatar { width: 31px; height: 31px; }
    .comment-head { align-items: flex-start; flex-direction: column; gap: 2px; }
    .comment-form-footer { align-items: stretch; flex-direction: column; }
    .comment-form-footer .button { justify-content: center; }
    .notification-list .notification-item { grid-template-columns: 36px 28px minmax(0, 1fr) 7px; padding: 12px 10px; gap: 7px; }
}


/* Bildirim açma işlemi POST + CSRF üzerinden çalışır. */
.notification-item-form {
    display: block;
    width: 100%;
    margin: 0;
}
.notification-item-form .notification-item {
    width: 100%;
    border-right: 0;
    border-left: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.notification-item-form .notification-item {
    border-top: 0;
    border-radius: 0;
}
.notification-list .notification-item-form:not(:last-child) .notification-item {
    border-bottom: 1px solid var(--border);
}
.notification-list .notification-item-form:last-child .notification-item {
    border-bottom: 0;
}


/* =========================================================
   Görsel kartı üst kontrolleri · şeffaf tema uyumlu görünüm
   ========================================================= */
.media-badge,
.card-overlay-tool {
    border-color: color-mix(in srgb, var(--card-overlay-border) 76%, transparent);
    background: color-mix(in srgb, var(--card-overlay-bg) 48%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, #000 11%, transparent);
    opacity: .72;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    transition:
        opacity .18s ease,
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.gallery-card-media-shell:hover .media-badge,
.gallery-card-media-shell:hover .card-overlay-tool,
.media-badge:focus-visible,
.card-overlay-tool:hover,
.card-overlay-tool:focus-visible,
.card-board-menu[open] > summary {
    opacity: .96;
    border-color: var(--card-overlay-border);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 68%, transparent);
    box-shadow: 0 7px 20px color-mix(in srgb, #000 14%, transparent);
}

.media-badge {
    max-width: min(62%, 220px);
}

.featured-badge.card-overlay-tool {
    background: color-mix(in srgb, var(--card-overlay-bg) 42%, transparent);
}

.featured-badge.card-overlay-tool:hover,
.gallery-card-media-shell:hover .featured-badge.card-overlay-tool {
    color: var(--warning);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 65%, transparent);
}

.resolution-preview:hover,
.resolution-preview:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 48%, transparent);
}

.card-board-menu[open] > summary,
.card-board-menu > summary:hover,
.card-board-menu > summary:focus-visible {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 48%, transparent);
}

.card-board-menu.is-in-board > summary {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 42%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--success-soft) 52%, transparent);
}

.card-board-menu.is-in-board > summary:hover,
.card-board-menu.is-in-board[open] > summary {
    background: color-mix(in srgb, var(--success-soft) 70%, transparent);
}

@media (hover: none) {
    .media-badge,
    .card-overlay-tool {
        opacity: .84;
    }
}


/* =========================================================
   Header · Görsellerim mega menüsü
   ========================================================= */
.nav-my-images-mega .nav-mega-trigger {
    position: relative;
}
.nav-my-images-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}
.my-images-mega-panel {
    width: min(calc(100vw - 32px), 1080px);
    padding: 0;
    overflow: hidden;
}
.my-images-mega-head {
    margin: 0;
    padding: 17px 20px 14px;
}
.my-images-mega-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.my-images-mega-stats a {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 10px 8px;
    border-right: 1px solid var(--border);
    color: var(--muted);
}
.my-images-mega-stats a:last-child {
    border-right: 0;
}
.my-images-mega-stats a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}
.my-images-mega-stats strong {
    color: var(--text);
    font-size: 16px;
}
.my-images-mega-stats span {
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.my-images-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: min(490px, calc(100dvh - var(--header-height) - 205px));
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.my-images-mega-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}
.my-images-mega-item:hover {
    border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.my-images-mega-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.my-images-mega-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.my-images-mega-image .status-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-images-mega-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
}
.my-images-mega-placeholder .icon {
    width: 27px;
    height: 27px;
}
.my-images-mega-item-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px;
}
.my-images-mega-item-copy > a:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.my-images-mega-item-copy strong,
.my-images-mega-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-images-mega-item-copy strong {
    color: var(--text);
    font-size: 11px;
}
.my-images-mega-item-copy small {
    color: var(--muted);
    font-size: 9px;
}
.my-images-mega-edit {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-2);
}
.my-images-mega-edit:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    background: var(--primary-soft);
}
.my-images-mega-edit .icon {
    width: 14px;
    height: 14px;
}
.my-images-mega-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 24px;
    color: var(--muted);
    text-align: left;
}
.my-images-mega-empty > div {
    display: grid;
    gap: 2px;
}
.my-images-mega-empty strong {
    color: var(--text);
}
.my-images-mega-empty small {
    font-size: 11px;
}
.my-images-mega-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 11px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.my-images-mega-footer .button {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 11px;
}

/* Mobil Görsellerim menüsü */
.mobile-my-images-menu summary {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.mobile-my-images-list {
    display: grid;
    gap: 4px;
    padding: 6px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.mobile-my-images-item {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px !important;
    min-width: 0;
    padding: 6px !important;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--surface);
}
.mobile-my-images-item:hover {
    border-color: var(--border);
}
.mobile-my-images-item img,
.mobile-my-images-placeholder {
    width: 48px;
    height: 36px;
    border-radius: 7px;
    background: var(--surface-3);
    object-fit: cover;
}
.mobile-my-images-placeholder {
    display: grid;
    place-items: center;
}
.mobile-my-images-placeholder .icon {
    width: 17px;
    height: 17px;
}
.mobile-my-images-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.mobile-my-images-item strong,
.mobile-my-images-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-my-images-item strong {
    font-size: 11px;
}
.mobile-my-images-item small {
    color: var(--muted);
    font-size: 9px;
}
.mobile-my-images-all,
.mobile-my-images-empty {
    justify-content: center !important;
    color: var(--primary);
    font-size: 11px;
}

/* =========================================================
   Görsellerim sayfası
   ========================================================= */
.my-images-page-hero {
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 38%),
        var(--surface);
}
.my-images-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 150px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.my-images-page-heading {
    display: grid;
    gap: 5px;
}
.my-images-page-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.9px;
}
.my-images-page-heading p {
    margin: 0;
    color: var(--muted);
}
.my-images-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.my-images-summary-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--muted);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.my-images-summary-card:hover,
.my-images-summary-card.is-active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    background: var(--primary-soft);
}
.my-images-summary-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, currentColor 24%, var(--border));
    border-radius: 11px;
    background: var(--surface);
}
.my-images-summary-icon .icon {
    width: 19px;
    height: 19px;
}
.my-images-summary-card > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.my-images-summary-card strong {
    color: var(--text);
    font-size: 20px;
}
.my-images-summary-card small {
    overflow: hidden;
    font-size: 10px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-images-content {
    margin-top: 22px;
}
.my-images-section-head {
    align-items: flex-end;
}
.my-images-sort-form {
    display: flex;
    align-items: center;
    gap: 7px;
}
.my-images-sort-form .select {
    min-width: 190px;
}
.my-images-gallery-grid {
    align-items: start;
}
.my-image-entry {
    display: grid;
    min-width: 0;
    gap: 7px;
}
.my-image-entry.is-not-published .social-share-strip-card {
    display: none;
}
.my-image-management-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}
.my-image-state {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}
.my-image-state small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-image-management-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}
.my-image-management-date .icon {
    width: 13px;
    height: 13px;
}
.my-image-management-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.my-image-management-actions form {
    margin: 0;
}
.my-image-management-actions .icon-button {
    width: 31px;
    height: 31px;
    border-radius: 8px;
}
.my-image-management-actions .icon {
    width: 14px;
    height: 14px;
}
.my-images-empty-state {
    margin-top: 10px;
}

@media (max-width: 1120px) {
    .my-images-mega-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .my-images-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .my-images-page-hero-inner,
    .my-images-section-head {
        align-items: stretch;
        flex-direction: column;
    }
    .my-images-sort-form {
        width: 100%;
    }
    .my-images-sort-form .select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .my-images-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .my-image-management-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .my-image-management-date {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .my-images-mega-item,
    .my-images-summary-card {
        transition: none;
    }
}


/* =========================================================
   image.php · Görsel yanında yayıncı ve puan paneli
   ========================================================= */
.detail-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    align-items: stretch;
    gap: 20px;
    min-width: 0;
}

.detail-showcase-grid > .image-stage {
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: clamp(460px, 63vh, 720px);
    max-height: none;
}

.detail-showcase-grid > .image-stage img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.detail-showcase-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-self: stretch;
    gap: 14px;
    min-width: 0;
}

.detail-showcase-sidebar > .detail-card {
    min-width: 0;
}

.detail-showcase-sidebar .rating-card {
    margin: 0;
}

.detail-main-full {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 18px;
    margin-top: 22px;
}

.detail-main-full > .detail-card,
.detail-main-full > .detail-metrics,
.detail-main-full > .detail-file-strip {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1120px) {
    .detail-showcase-grid {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 325px);
        gap: 16px;
    }

    .detail-showcase-grid > .image-stage {
        min-height: clamp(420px, 60vh, 660px);
    }
}

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

    .detail-showcase-grid > .image-stage {
        min-height: clamp(360px, 58vh, 620px);
    }

    .detail-showcase-sidebar {
        grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
        align-items: start;
    }

    .detail-showcase-sidebar .detail-owner-context-card {
        order: 0;
    }
}

@media (max-width: 680px) {
    .detail-showcase-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-showcase-grid > .image-stage {
        min-height: clamp(300px, 52vh, 520px);
    }

    .detail-main-full {
        margin-top: 16px;
    }
}

@media (max-width: 420px) {
    .detail-showcase-grid {
        gap: 12px;
    }

    .detail-showcase-grid > .image-stage {
        min-height: 270px;
        border-radius: var(--radius);
    }
}


/* =========================================================
   image.php · Sağ panel dikey görsel istatistikleri
   ========================================================= */
.detail-sidebar-stats {
    display: grid;
    gap: 4px;
    padding: 7px;
    overflow: hidden;
}

.detail-sidebar-stat-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--surface-2);
    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease,
        transform .16s ease;
}

.detail-sidebar-stat-row:hover {
    border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface));
    transform: translateX(1px);
}

.detail-sidebar-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    background: var(--surface);
}

.detail-sidebar-stat-icon .icon {
    width: 17px;
    height: 17px;
}

.detail-sidebar-stat-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.detail-sidebar-stat-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-sidebar-stat-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-sidebar-stat-row > b {
    min-width: 54px;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-sidebar-stat-row.is-views .detail-sidebar-stat-icon {
    color: var(--primary);
}

.detail-sidebar-stat-row.is-downloads .detail-sidebar-stat-icon {
    color: var(--success);
}

.detail-sidebar-stat-row.is-favorites .detail-sidebar-stat-icon {
    color: var(--danger);
}

.detail-sidebar-stat-row.is-rating .detail-sidebar-stat-icon {
    color: var(--warning);
}

.detail-sidebar-stat-row.is-rating .detail-sidebar-stat-icon .icon {
    fill: currentColor;
}

@media (max-width: 900px) {
    .detail-showcase-sidebar .detail-owner-context-card {
        grid-column: 1 / -1;
    }

    .detail-showcase-sidebar .rating-card,
    .detail-showcase-sidebar .detail-sidebar-stats {
        align-self: stretch;
        height: 100%;
    }
}

@media (max-width: 680px) {
    .detail-showcase-sidebar .detail-owner-context-card {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .detail-sidebar-stat-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 49px;
        padding: 7px;
    }

    .detail-sidebar-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .detail-sidebar-stat-icon .icon {
        width: 15px;
        height: 15px;
    }

    .detail-sidebar-stat-row > b {
        min-width: 45px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-sidebar-stat-row {
        transition: none;
    }
}

/* Daha sıkı genel ritim */
.page-section{padding-top:clamp(18px,2.2vw,32px);padding-bottom:clamp(20px,2.5vw,38px)}
.section-block{margin-top:clamp(14px,1.8vw,24px)}
.section-head{gap:10px;margin-bottom:12px}.panel-card{border-radius:14px}.form-card{padding:clamp(14px,2vw,22px)}
.gallery-grid{gap:clamp(8px,1vw,14px)}.gallery-card-body{padding:7px}.detail-main-full{gap:12px}
.field-checkbox .check-row{padding:11px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2)}
.code-textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
/* Benzer içerik */
.related-image-row{display:grid;grid-template-columns:repeat(var(--related-cols,5),minmax(0,1fr));gap:8px}
.related-count-1{--related-cols:1}.related-count-2{--related-cols:2}.related-count-3{--related-cols:3}.related-count-4{--related-cols:4}.related-count-5{--related-cols:5}.related-count-6{--related-cols:6}.related-count-7{--related-cols:7}
.related-image-row.is-filmstrip{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}.related-image-row.is-filmstrip>*{flex:0 0 clamp(130px,16vw,210px);scroll-snap-align:start}
/* Reklam kartı */
.advertisement-card{border-style:dashed}.advertisement-media-shell{background:var(--surface-2)}.advertisement-label{position:absolute;top:7px;right:7px;padding:4px 7px;border-radius:999px;background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid var(--border);font-size:9px;font-weight:800;color:var(--muted);backdrop-filter:blur(7px)}
.advertisement-code-content{display:grid;place-items:center;width:100%;height:100%;min-height:180px;overflow:hidden}.advertisement-meta-dock .card-meta-item{opacity:.22;pointer-events:none}.detail-advertisement{position:relative;display:flex;justify-content:center;width:100%;padding:10px;border:1px dashed var(--border);border-radius:14px;background:var(--surface);overflow:hidden}.detail-advertisement img{display:block;max-width:100%;max-height:260px;object-fit:contain}.detail-advertisement .advertisement-label{z-index:2}
/* Yönetim düzeni */
.admin-page .admin-tabs{position:sticky;top:calc(var(--header-height) + 8px);z-index:12;padding:7px;border:1px solid var(--border);border-radius:13px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px);box-shadow:var(--shadow-sm)}
.admin-settings-form{display:grid;gap:18px;padding:18px}.admin-settings-form section{display:grid;gap:12px}.admin-settings-form section+section{padding-top:16px;border-top:1px solid var(--border)}
.admin-ad-layout{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(0,1.5fr);gap:14px}.admin-ad-form{display:grid;align-content:start;gap:12px;padding:17px}
@media(max-width:900px){.admin-ad-layout{grid-template-columns:1fr}.related-image-row:not(.is-filmstrip){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.related-image-row{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-tabs{overflow-x:auto;flex-wrap:nowrap}}


/* Görsel kartı · soldan sağa açılan dikey SVG araçları */
.gallery-card-media-shell { isolation: isolate; }
.card-side-tools {
    position: absolute;
    z-index: 12;
    top: 9px;
    left: 9px;
    display: grid;
    gap: 6px;
    pointer-events: none;
}
.card-side-tool { position: relative; min-height: 34px; pointer-events: auto; }
.card-side-trigger,
.card-side-action {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 78%, transparent);
    border-radius: 10px;
    color: var(--card-overlay-text);
    background: color-mix(in srgb, var(--card-overlay-bg) 50%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, #000 11%, transparent);
    opacity: .72;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    cursor: pointer;
    transition: opacity .16s ease, color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.card-side-trigger .icon,
.card-side-action .icon { width: 15px; height: 15px; }
.card-side-tool:hover .card-side-trigger,
.card-side-tool:focus-within .card-side-trigger,
.card-side-trigger:hover,
.card-side-trigger:focus-visible,
.card-side-action:hover,
.card-side-action:focus-visible {
    opacity: 1;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 72%, transparent);
    outline: none;
}
.card-side-panel {
    position: absolute;
    top: 0;
    left: 40px;
    display: flex;
    align-items: center;
    min-height: 34px;
    max-width: min(300px, calc(100vw - 110px));
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 82%, transparent);
    border-radius: 10px;
    color: var(--card-overlay-text);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 72%, transparent);
    box-shadow: 0 7px 20px color-mix(in srgb, #000 14%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-7px);
    pointer-events: none;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.card-side-tool:hover > .card-side-panel,
.card-side-tool:focus-within > .card-side-panel,
.card-side-tool.is-open > .card-side-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.card-side-panel-text { width: max-content; max-width: min(280px, calc(100vw - 110px)); }
.card-side-panel-text strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-side-panel-actions { gap: 6px; padding: 4px 6px; }
.card-side-panel-actions .card-side-action { width: 30px; height: 30px; opacity: .85; }
.card-side-panel-actions .card-board-menu { position: relative; pointer-events: auto; }
.card-side-panel-actions .card-board-menu[open] { z-index: 60; }
.card-side-panel-actions .card-board-popover,
.card-side-panel-actions .resolution-preview-panel {
    top: calc(100% + 7px);
    right: auto;
    left: 0;
}
.card-side-panel-social { min-height: 34px; padding: 4px 6px; }
.card-side-panel-social .social-share-strip-card {
    position: static;
    display: grid;
    grid-template-columns: repeat(7, 28px);
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    backdrop-filter: none;
}
.card-side-panel-social .social-share-strip-card .social-share-button {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 8px;
    opacity: .68;
}
.card-side-panel-social .social-share-strip-card .social-share-button:hover,
.card-side-panel-social .social-share-strip-card .social-share-button:focus-visible {
    opacity: 1;
    border-color: color-mix(in srgb, var(--primary) 38%, var(--card-overlay-border));
}
.card-side-panel-social .social-share-svg { width: 13px; height: 13px; }
.gallery-card-media-shell > .card-overlay-tools,
.gallery-card-media-shell > .social-share-strip-card { display: none !important; }

@media (max-width: 620px) {
    .card-side-tools { top: 6px; left: 6px; gap: 4px; }
    .card-side-tool { min-height: 30px; }
    .card-side-trigger,
    .card-side-action { width: 30px; height: 30px; border-radius: 8px; }
    .card-side-trigger .icon,
    .card-side-action .icon { width: 13px; height: 13px; }
    .card-side-panel { left: 35px; min-height: 30px; max-width: calc(100vw - 90px); border-radius: 8px; }
    .card-side-panel-social .social-share-strip-card { grid-template-columns: repeat(7, 25px); gap: 3px; }
    .card-side-panel-social .social-share-strip-card .social-share-button { width: 25px; height: 25px; }
    .card-side-panel-actions .card-side-action { width: 27px; height: 27px; }
}
@media (hover: none) {
    .card-side-trigger,
    .card-side-action { opacity: .9; }
}


/* Kart dikey araçları · İstatistik paneli */
.card-side-panel-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 5px;
    padding: 4px 6px;
}
.card-side-panel-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 54px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--card-overlay-text);
    background: transparent;
    font-size: 10px;
    white-space: nowrap;
}
.card-side-panel-stats > span:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 38%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--primary-soft) 60%, transparent);
}
.card-side-panel-stats .icon { width: 13px; height: 13px; }
.card-side-panel-stats b {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.card-side-panel-stats > span:last-child .icon {
    color: var(--warning);
    fill: currentColor;
}
.gallery-card > .gallery-card-body { display: none !important; }

@media (max-width: 620px) {
    .card-side-panel-stats {
        grid-template-columns: repeat(4, minmax(44px, auto));
        gap: 3px;
        padding: 3px 4px;
    }
    .card-side-panel-stats > span {
        min-width: 44px;
        height: 25px;
        padding: 0 5px;
        gap: 4px;
    }
    .card-side-panel-stats .icon { width: 12px; height: 12px; }
    .card-side-panel-stats b { font-size: 9px; }
}


/* Kart alt bilgi satırı kaldırıldıktan sonra dört köşe radius */
.gallery-card {
    border-radius: var(--radius);
    background: transparent;
}

.gallery-card-media-shell,
.gallery-card-media {
    border-radius: calc(var(--radius) - 1px) !important;
}

.gallery-card-media-shell {
    overflow: visible;
}

.gallery-card-media {
    overflow: hidden;
}

/* Header araması kullanıldığı için sayfa içi arama satırı yoktur */
.explore-hero-compact {
    padding: 8px 0 0;
    border: 0;
    background: transparent;
}

.explore-hero-compact .explore-hero-inner {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.explore-hero-compact .explore-active-filter {
    margin: 0;
}


/* Kart SVG araçları · gecikmeli soldan giriş */
.card-side-tools {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-18px);
    pointer-events: none;
    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .24s cubic-bezier(.22, .72, .24, 1);
}
.gallery-card.is-card-tools-visible .card-side-tools,
.gallery-card:focus-within .card-side-tools {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.gallery-card.is-card-tools-visible .card-side-tool,
.gallery-card:focus-within .card-side-tool {
    pointer-events: auto;
}
@media (hover: none), (pointer: coarse) {
    .card-side-tools {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .card-side-tool { pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .card-side-tools { transition: none; }
}
.admin-delay-field {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
}
.admin-delay-field .input { min-width: 0; }
.admin-delay-field > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
}


/* =========================================================
   Görsel kartı araçları · altta yatay tab menü
   ========================================================= */
.card-side-tools {
    top: auto !important;
    bottom: 9px !important;
    left: 50% !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: calc(100% - 18px);
    transform: translate(-50%, 18px);
    pointer-events: none;
}

.gallery-card.is-card-tools-visible .card-side-tools,
.gallery-card:focus-within .card-side-tools {
    transform: translate(-50%, 0);
}

.card-side-tool {
    min-height: auto !important;
}

.card-side-trigger {
    position: relative;
    border-radius: 11px;
}

.card-side-panel {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 10px) !important;
    max-width: min(320px, calc(100vw - 28px));
}

.card-side-tool:hover > .card-side-panel,
.card-side-tool:focus-within > .card-side-panel,
.card-side-tool.is-open > .card-side-panel {
    transform: translate(-50%, 0) !important;
}

.card-side-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid color-mix(in srgb, var(--card-overlay-border) 82%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 82%, transparent);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 72%, transparent);
    transform: translateX(-50%) rotate(45deg);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.card-side-panel-text {
    justify-content: center;
    text-align: center;
}

.card-side-panel-actions,
.card-side-panel-social,
.card-side-panel-stats {
    justify-content: center;
}

.card-side-panel-actions {
    flex-wrap: nowrap;
}

.card-side-panel-social .social-share-strip-card {
    grid-template-columns: repeat(7, 28px);
    justify-content: center;
}

.card-side-panel-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
}

@media (max-width: 620px) {
    .card-side-tools {
        bottom: 6px !important;
        gap: 4px;
        max-width: calc(100% - 12px);
    }

    .gallery-card.is-card-tools-visible .card-side-tools,
    .gallery-card:focus-within .card-side-tools {
        transform: translate(-50%, 0);
    }

    .card-side-panel {
        max-width: calc(100vw - 18px);
        bottom: calc(100% + 6px) !important;
    }
}

/* Yönetim yardım metni */
.admin-delay-field + .field-help::after {
    content: " Araçlar kartın altından yukarı doğru görünür.";
}


/* Kart alt tab menüsü · ikon ile üst panel arasında hover köprüsü */
.card-side-tool::before {
    content: "";
    position: absolute;
    z-index: 2;
    right: -5px;
    bottom: 100%;
    left: -5px;
    height: 12px;
    background: transparent;
    pointer-events: auto;
}

.card-side-panel::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 14px;
    background: transparent;
    pointer-events: auto;
}

.card-side-tool.is-panel-hovered > .card-side-panel,
.card-side-tool.is-open > .card-side-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) !important;
    pointer-events: auto;
}

.card-side-tool.is-panel-hovered > .card-side-trigger {
    opacity: 1;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 44%, var(--card-overlay-border));
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 72%, transparent);
}

@media (max-width: 620px) {
    .card-side-tool::before {
        height: 10px;
    }

    .card-side-panel::before {
        bottom: -10px;
        height: 12px;
    }
}


/* =========================================================
   Tab menüsü iç panelleri · en üst katmanda yukarı açılma
   ========================================================= */
.gallery-card:hover,
.gallery-card:focus-within,
.gallery-card:has(.card-board-menu[open]),
.gallery-card:has(.resolution-preview:hover),
.gallery-card:has(.resolution-preview:focus-within) {
    z-index: 600 !important;
}

.card-side-tools {
    z-index: 620 !important;
    overflow: visible !important;
}

.card-side-tool {
    z-index: 1;
    overflow: visible !important;
}

.card-side-tool:hover,
.card-side-tool:focus-within,
.card-side-tool.is-open,
.card-side-tool.is-panel-hovered {
    z-index: 660;
}

.card-side-panel {
    z-index: 680 !important;
    overflow: visible !important;
}

.card-side-panel-actions {
    position: relative;
    z-index: 700;
    overflow: visible !important;
}

.card-side-panel-actions .resolution-preview,
.card-side-panel-actions .card-board-menu {
    position: relative;
    z-index: 720;
    overflow: visible !important;
}

.card-side-panel-actions .resolution-preview:hover,
.card-side-panel-actions .resolution-preview:focus-within,
.card-side-panel-actions .card-board-menu[open] {
    z-index: 900;
}

.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover {
    top: auto !important;
    right: auto !important;
    bottom: calc(100% + 9px) !important;
    left: 50% !important;
    z-index: 1200 !important;
    transform: translateX(-50%) !important;
}

.card-side-panel-actions .resolution-preview-panel::after,
.card-side-panel-actions .card-board-popover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 14px;
    background: transparent;
    pointer-events: auto;
}

/* =========================================================
   Sayfa geçişleri ve loading
   ========================================================= */
:root {
    --page-transition-duration: 320ms;
}

html[data-page-transition="fade"] body,
html[data-page-transition="fade-scale"] body,
html[data-page-transition="fade-up"] body,
html[data-page-transition="blur"] body {
    transition:
        opacity var(--page-transition-duration) ease,
        transform var(--page-transition-duration) ease,
        filter var(--page-transition-duration) ease;
    will-change: opacity, transform, filter;
}

html.hc-page-transition-preload body,
html.hc-page-transition-leaving body {
    opacity: 0;
}

html[data-page-transition="fade-scale"].hc-page-transition-preload body,
html[data-page-transition="fade-scale"].hc-page-transition-leaving body {
    transform: scale(.985);
}

html[data-page-transition="fade-up"].hc-page-transition-preload body {
    transform: translateY(10px);
}

html[data-page-transition="fade-up"].hc-page-transition-leaving body {
    transform: translateY(-10px);
}

html[data-page-transition="blur"].hc-page-transition-preload body,
html[data-page-transition="blur"].hc-page-transition-leaving body {
    filter: blur(7px);
}

.page-transition-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    transition: opacity 180ms ease, visibility 180ms ease;
}

html.hc-page-transition-loading .page-transition-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-transition-loader {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 150px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-lg);
}

.page-transition-loader strong {
    max-width: 240px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-transition-spinner,
.page-transition-dots,
.page-transition-bar {
    display: none;
}

.page-transition-overlay[data-loading-style="spinner"] .page-transition-spinner {
    display: block;
    width: 34px;
    height: 34px;
    border: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: hc-page-spinner .75s linear infinite;
}

.page-transition-overlay[data-loading-style="dots"] .page-transition-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
}

.page-transition-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: hc-page-dot .8s ease-in-out infinite alternate;
}

.page-transition-dots i:nth-child(2) {
    animation-delay: .13s;
}

.page-transition-dots i:nth-child(3) {
    animation-delay: .26s;
}

.page-transition-overlay[data-loading-style="bar"] .page-transition-bar {
    position: relative;
    display: block;
    width: 150px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-3);
}

.page-transition-bar i {
    position: absolute;
    inset-block: 0;
    left: -45%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: hc-page-bar 1s ease-in-out infinite;
}

@keyframes hc-page-spinner {
    to { transform: rotate(360deg); }
}

@keyframes hc-page-dot {
    from { opacity: .35; transform: translateY(2px) scale(.85); }
    to { opacity: 1; transform: translateY(-2px) scale(1); }
}

@keyframes hc-page-bar {
    to { left: 100%; }
}

.admin-transition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 680px) {
    .admin-transition-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-page-transition] body,
    .page-transition-overlay {
        transition-duration: 1ms !important;
    }

    .page-transition-spinner,
    .page-transition-dots i,
    .page-transition-bar i {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   Kart alt tab menüsü · görsel altını kaplayan tam genişlik şerit
   ========================================================= */
.gallery-card-media-shell {
    overflow: hidden !important;
    border-radius: calc(var(--radius) - 1px) !important;
}

.card-side-tools {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 0 !important;
    transform: translateY(100%) !important;
    border-top: 1px solid color-mix(in srgb, var(--card-overlay-border) 84%, transparent);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 82%, transparent);
    box-shadow: 0 -8px 24px color-mix(in srgb, #000 10%, transparent);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.gallery-card.is-card-tools-visible .card-side-tools,
.gallery-card:focus-within .card-side-tools {
    transform: translateY(0) !important;
}

.card-side-tool {
    min-width: 0;
    min-height: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--card-overlay-border) 50%, transparent);
}

.card-side-tool:last-child {
    border-right: 0;
}

.card-side-trigger {
    width: 100% !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .88 !important;
}

.card-side-trigger .icon,
.card-side-action .icon {
    width: 15px;
    height: 15px;
}

.card-side-tool:hover .card-side-trigger,
.card-side-tool:focus-within .card-side-trigger,
.card-side-tool.is-open .card-side-trigger,
.card-side-tool.is-panel-hovered .card-side-trigger {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 60%, transparent) !important;
}

.card-side-panel {
    bottom: calc(100% + 10px) !important;
    min-width: max-content;
    max-width: min(340px, calc(100vw - 24px));
}

.card-side-panel::after {
    bottom: -6px;
}

.card-side-panel-actions {
    gap: 6px;
    flex-wrap: nowrap;
}

.card-side-panel-social .social-share-strip-card {
    grid-template-columns: repeat(7, minmax(24px, 28px));
}

.card-side-panel-stats {
    grid-template-columns: repeat(4, auto);
}

.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover {
    bottom: calc(100% + 10px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.card-side-tool::before {
    right: 0;
    left: 0;
    height: 14px;
}

@media (max-width: 760px) {
    .card-side-trigger {
        height: 38px !important;
    }

    .card-side-trigger .icon,
    .card-side-action .icon {
        width: 14px;
        height: 14px;
    }

    .card-side-panel {
        max-width: calc(100vw - 18px);
    }
}

@media (max-width: 520px) {
    .card-side-tools {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .card-side-trigger {
        height: 36px !important;
    }
}


/* =========================================================
   Kart alt tab menüsü · tek satır + kart içi ortak çekmece
   ========================================================= */
.gallery-card-media-shell {
    overflow: hidden !important;
}

/* Önceki görünmez hover köprüleri ikinci satır etkisi oluşturmasın. */
.card-side-tool::before,
.card-side-panel::before,
.card-side-panel::after {
    display: none !important;
    content: none !important;
}

/* Tab şeridi tek satırdır ve görselin altını tam kaplar. */
.card-side-tools {
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 42px;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 !important;
    transform: translateY(100%) !important;
    border-top: 1px solid color-mix(in srgb, var(--card-overlay-border) 82%, transparent);
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 88%, transparent);
    box-shadow: 0 -8px 22px color-mix(in srgb, #000 10%, transparent);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    overflow: visible !important;
}

.gallery-card.is-card-tools-visible .card-side-tools,
.gallery-card:focus-within .card-side-tools {
    transform: translateY(0) !important;
}

.card-side-tool {
    position: relative;
    min-width: 0;
    min-height: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--card-overlay-border) 48%, transparent);
    overflow: visible !important;
}

.card-side-tool:last-child {
    border-right: 0;
}

.card-side-trigger {
    width: 100% !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .86 !important;
    transform: none !important;
}

.card-side-tool:hover .card-side-trigger,
.card-side-tool:focus-within .card-side-trigger,
.card-side-tool.is-open .card-side-trigger,
.card-side-tool.is-panel-hovered .card-side-trigger {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 64%, transparent) !important;
    opacity: 1 !important;
}

/*
 * Her içerik paneli kendi sekmesine bağlıdır fakat beş sekmenin toplam
 * genişliğini kullanır. Böylece bilgi her zaman kartın içinde kalır.
 */
.card-side-panel {
    top: auto !important;
    right: auto !important;
    bottom: 42px !important;
    width: 500% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(170px, 52vh);
    padding: 8px 10px;
    overflow: auto !important;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 76%, transparent);
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 91%, transparent);
    box-shadow: 0 -8px 24px color-mix(in srgb, #000 12%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px) !important;
    pointer-events: none;
}

.card-side-tool:nth-child(1) > .card-side-panel {
    left: 0 !important;
}

.card-side-tool:nth-child(2) > .card-side-panel {
    left: -100% !important;
}

.card-side-tool:nth-child(3) > .card-side-panel {
    left: -200% !important;
}

.card-side-tool:nth-child(4) > .card-side-panel {
    left: -300% !important;
}

.card-side-tool:nth-child(5) > .card-side-panel {
    left: -400% !important;
}

.card-side-tool:hover > .card-side-panel,
.card-side-tool:focus-within > .card-side-panel,
.card-side-tool.is-open > .card-side-panel,
.card-side-tool.is-panel-hovered > .card-side-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.card-side-panel-text {
    justify-content: center;
    text-align: center;
}

.card-side-panel-text strong {
    max-width: 100%;
    font-size: 12px;
}

/* Bilgi, sosyal ve istatistik içerikleri tek satırda ve taşmadan gösterilir. */
.card-side-panel-actions,
.card-side-panel-social,
.card-side-panel-stats {
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.card-side-panel-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.card-side-panel-social .social-share-strip-card {
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.card-side-panel-social .social-share-strip-card .social-share-button {
    width: 100%;
    max-width: 34px;
    justify-self: center;
}

.card-side-panel-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.card-side-panel-stats > span {
    min-width: 0;
    justify-content: center;
}

/*
 * Çözünürlük ve İndirme Panosu alt pencereleri de ortak çekmecenin
 * genişliğini kullanır; görsel kartının dışına çıkmaz.
 */
.card-side-panel-actions {
    position: relative !important;
    overflow: visible !important;
}

.card-side-panel-actions .resolution-preview,
.card-side-panel-actions .card-board-menu {
    position: static !important;
}

.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover {
    top: auto !important;
    right: 8px !important;
    bottom: calc(100% + 5px) !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(125px, 38vh);
    margin: 0 !important;
    overflow: auto !important;
    transform: none !important;
    z-index: 1400 !important;
}

@supports not (height: 1cqh) {
    .card-side-panel {
        max-height: 170px;
    }

    .card-side-panel-actions .resolution-preview-panel,
    .card-side-panel-actions .card-board-popover {
        max-height: 125px;
    }
}

@media (max-width: 620px) {
    .card-side-tools {
        height: 37px;
    }

    .card-side-trigger {
        height: 37px !important;
    }

    .card-side-panel {
        bottom: 37px !important;
        padding: 6px 8px;
        max-height: min(155px, 48vh);
        border-radius: 10px 10px 0 0;
    }

    .card-side-panel-actions {
        gap: 5px;
    }

    .card-side-panel-social .social-share-strip-card {
        gap: 2px;
    }

    .card-side-panel-stats {
        gap: 3px;
    }

    .card-side-panel-stats > span {
        height: 25px;
        padding: 0 4px;
    }

    .card-side-panel-actions .resolution-preview-panel,
    .card-side-panel-actions .card-board-popover {
        right: 5px !important;
        left: 5px !important;
        max-height: min(115px, 34vh);
    }
}


/* Görsel kartı yükseklik güvenlik düzeltmesi */
.gallery-card-media-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 120px;
    overflow: hidden !important;
}

.gallery-card-media {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    border-radius: calc(var(--radius) - 1px) !important;
}

.gallery-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-side-tools {
    position: absolute;
}

@media (max-width: 520px) {
    .gallery-card-media-shell {
        min-height: 100px;
    }
}


/* =========================================================
   Kart tab menüsü · hover ile kesin görünme
   ========================================================= */
.card-side-tools {
    transition-delay: 0ms;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-card:hover .card-side-tools,
    .gallery-card:focus-within .card-side-tools,
    .gallery-card.is-card-tools-visible .card-side-tools {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        transition-delay: var(--card-tools-hover-delay, 1000ms);
        pointer-events: auto;
    }

    .gallery-card:hover .card-side-tool,
    .gallery-card:focus-within .card-side-tool,
    .gallery-card.is-card-tools-visible .card-side-tool {
        pointer-events: auto;
    }
}

.card-side-tools {
    z-index: 800 !important;
}

.card-side-tool,
.card-side-trigger,
.card-side-panel,
.card-side-panel * {
    pointer-events: auto;
}

.card-side-panel {
    z-index: 950 !important;
}

/* =========================================================
   İndirme Panosu ve çözünürlük paneli · sabit gerçek genişlik
   ========================================================= */
.card-side-panel-actions {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.card-side-panel-actions .card-board-menu,
.card-side-panel-actions .resolution-preview {
    position: relative !important;
    flex: 0 0 auto;
    overflow: visible !important;
}

.card-side-panel-actions .card-board-popover,
.card-side-panel-actions .resolution-preview-panel {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    width: min(300px, calc(100vw - 34px)) !important;
    min-width: min(240px, calc(100vw - 34px)) !important;
    max-width: min(300px, calc(100vw - 34px)) !important;
    max-height: min(280px, 58vh) !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
    z-index: 1600 !important;
    box-sizing: border-box;
    inset-inline: auto !important;
}

.card-side-panel-actions .card-board-popover {
    display: grid;
    gap: 8px;
}

.card-side-panel-actions .card-board-resolution-list,
.card-side-panel-actions .resolution-preview-list {
    display: grid;
    width: 100%;
    min-width: 0;
    max-height: min(180px, 38vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.card-side-panel-actions .board-resolution-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-side-panel-actions .board-resolution-button > span,
.card-side-panel-actions .board-resolution-button > small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-side-panel-actions .board-popover-link {
    width: 100%;
    justify-content: center;
}

@media (max-width: 620px) {
    .card-side-panel-actions .card-board-popover,
    .card-side-panel-actions .resolution-preview-panel {
        width: min(280px, calc(100vw - 20px)) !important;
        min-width: min(220px, calc(100vw - 20px)) !important;
        max-width: min(280px, calc(100vw - 20px)) !important;
        max-height: min(250px, 56vh) !important;
        padding: 10px !important;
    }

    .card-side-panel-actions .card-board-resolution-list,
    .card-side-panel-actions .resolution-preview-list {
        max-height: min(155px, 34vh);
    }
}

@media (hover: none), (pointer: coarse) {
    .card-side-tools {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }
}


/* =========================================================
   Alt tab menü · tüm üst paneller tam genişlik ve düz köşe
   ========================================================= */

/* Sekme şeridi referans katmanı */
.card-side-tools {
    overflow: visible !important;
}

/* Bütün ana paneller aynı yerde, sekme satırının hemen üstünde açılır */
.card-side-panel {
    left: 0 !important;
    right: 0 !important;
    width: 500% !important;
    max-width: none !important;
    bottom: 42px !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transform: translateY(8px) !important;
}

/* Sekmelerin her biri aynı ortak tam genişlik panelini açıyormuş gibi hizalansın */
.card-side-tool:nth-child(1) > .card-side-panel { left: 0 !important; }
.card-side-tool:nth-child(2) > .card-side-panel { left: -100% !important; }
.card-side-tool:nth-child(3) > .card-side-panel { left: -200% !important; }
.card-side-tool:nth-child(4) > .card-side-panel { left: -300% !important; }
.card-side-tool:nth-child(5) > .card-side-panel { left: -400% !important; }

.card-side-tool:hover > .card-side-panel,
.card-side-tool:focus-within > .card-side-panel,
.card-side-tool.is-open > .card-side-panel,
.card-side-tool.is-panel-hovered > .card-side-panel {
    transform: translateY(0) !important;
}

/* Bilgi sekmesi de dahil tüm içerik alanları aynı düzeni kullansın */
.card-side-panel-text,
.card-side-panel-actions,
.card-side-panel-social,
.card-side-panel-stats {
    width: 100%;
    min-width: 0;
}

/* Bilgi alanı ortaya/yanlara kaçmasın */
.card-side-panel-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

/* Bilgi / çözünürlük / pano alt açılır alanları da tam genişlikte yukarı açılsın */
.card-side-panel-actions {
    position: relative !important;
    overflow: visible !important;
}

.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover {
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(100% + 8px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 0 !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box;
    z-index: 1700 !important;
}

/* İç listeler kaydırılabilir kalsın */
.card-side-panel-actions .card-board-resolution-list,
.card-side-panel-actions .resolution-preview-list {
    width: 100%;
    max-height: min(180px, 38vh);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Görsel taşmasın, ama alt panel düz çizgide kalsın */
.card-side-panel,
.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover {
    box-shadow: 0 -8px 24px color-mix(in srgb, #000 12%, transparent);
}

/* Tüm yuvarlatmaları kapat */
.card-side-panel *,
.card-side-panel-actions .resolution-preview-panel *,
.card-side-panel-actions .card-board-popover * {
    border-radius: inherit;
}

.card-side-panel,
.card-side-panel-actions .resolution-preview-panel,
.card-side-panel-actions .card-board-popover,
.card-side-trigger {
    border-radius: 0 !important;
}

/* Mobil yükseklik uyumu */
@media (max-width: 620px) {
    .card-side-panel {
        bottom: 37px !important;
    }

    .card-side-panel-actions .resolution-preview-panel,
    .card-side-panel-actions .card-board-popover {
        padding: 10px !important;
    }
}


/* =========================================================
   Bilgi sekmesi kaldırıldı · çözünürlük ve pano ayrı sekmeler
   ========================================================= */
.card-side-tools {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.card-side-panel {
    width: 600% !important;
}

.card-side-tool:nth-child(1) > .card-side-panel { left: 0 !important; }
.card-side-tool:nth-child(2) > .card-side-panel { left: -100% !important; }
.card-side-tool:nth-child(3) > .card-side-panel { left: -200% !important; }
.card-side-tool:nth-child(4) > .card-side-panel { left: -300% !important; }
.card-side-tool:nth-child(5) > .card-side-panel { left: -400% !important; }
.card-side-tool:nth-child(6) > .card-side-panel { left: -500% !important; }

.card-side-panel-resolution,
.card-side-panel-board {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    align-content: start;
}

.card-side-panel-resolution > strong,
.card-side-panel-board > strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.card-side-panel-resolution > small,
.card-side-panel-board > small {
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.card-side-panel-resolution .resolution-preview-ratio {
    justify-self: center;
}

.card-side-panel-resolution .resolution-preview-list,
.card-side-panel-board .card-board-resolution-list {
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-height: min(170px, 38vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.card-side-panel-resolution .resolution-preview-list > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    font-size: 11px;
}

.card-side-panel-resolution .resolution-preview-list b,
.card-side-panel-board .board-resolution-button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.card-side-panel-resolution .resolution-preview-list small {
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-side-panel-board .board-resolution-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.card-side-panel-board .board-resolution-button small {
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-side-panel-board.is-in-board > strong::after {
    content: " ✓";
    color: var(--primary);
    font-weight: 900;
}

.card-side-panel-board .board-popover-link {
    width: 100%;
    justify-content: center;
}

@media (max-width: 620px) {
    .card-side-tools {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .card-side-panel-resolution,
    .card-side-panel-board {
        padding: 8px 10px;
    }

    .card-side-panel-resolution .resolution-preview-list,
    .card-side-panel-board .card-board-resolution-list {
        max-height: min(145px, 34vh);
    }
}


/* =========================================================
   Alt tab şeridi · süreli, daha ince ve daha şeffaf
   ========================================================= */
.card-side-tools {
    height: 31px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    background: color-mix(in srgb, var(--card-overlay-bg-strong) 43%, transparent) !important;
    border-top-color: color-mix(in srgb, var(--card-overlay-border) 52%, transparent) !important;
    box-shadow: 0 -4px 14px color-mix(in srgb, #000 7%, transparent) !important;
    backdrop-filter: blur(8px) saturate(112%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(112%) !important;
    pointer-events: none !important;
    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .22s cubic-bezier(.22, .72, .24, 1) !important;
    transition-delay: 0ms !important;
}

/* Yönetimde ayarlanan süre sonunda görünür. */
@media (hover: hover) and (pointer: fine) {
    .gallery-card:hover .card-side-tools {
        opacity: .84 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition-delay: var(--card-tools-hover-delay, 1000ms) !important;
    }
}

.gallery-card.is-card-tools-visible .card-side-tools,
.gallery-card:focus-within .card-side-tools {
    opacity: .84 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0ms !important;
}

.gallery-card:hover .card-side-tools:hover,
.gallery-card:focus-within .card-side-tools,
.gallery-card.is-card-tools-visible .card-side-tools:hover {
    opacity: .94 !important;
}

.card-side-trigger {
    height: 31px !important;
    color: color-mix(in srgb, var(--card-overlay-text) 78%, transparent) !important;
    opacity: .82 !important;
}

.card-side-trigger .icon {
    width: 13px !important;
    height: 13px !important;
}

.card-side-tool:hover .card-side-trigger,
.card-side-tool:focus-within .card-side-trigger,
.card-side-tool.is-open .card-side-trigger,
.card-side-tool.is-panel-hovered .card-side-trigger {
    color: var(--primary) !important;
    opacity: 1 !important;
    background: color-mix(in srgb, var(--primary-soft) 34%, transparent) !important;
}

/* Önceki dokunmatik kuralı tab şeridini sürekli görünür yapmasın. */
@media (hover: none), (pointer: coarse) {
    .card-side-tools {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(100%) !important;
        pointer-events: none !important;
    }

    .gallery-card.is-card-tools-visible .card-side-tools,
    .gallery-card:focus-within .card-side-tools {
        opacity: .88 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* =========================================================
   Sosyal paylaşım · tek satır, tam genişlik, düz SVG alanları
   ========================================================= */
.card-side-panel-social {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.card-side-panel-social .social-share-strip-card {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-side-panel-social .social-share-strip-card .social-share-button {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: none !important;
    height: 30px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--card-overlay-border) 42%, transparent) !important;
    border-radius: 0 !important;
    color: color-mix(in srgb, var(--card-overlay-text) 72%, transparent) !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .74 !important;
    transform: none !important;
}

.card-side-panel-social .social-share-strip-card .social-share-button:last-child {
    border-right: 0 !important;
}

.card-side-panel-social .social-share-strip-card .social-share-button:hover,
.card-side-panel-social .social-share-strip-card .social-share-button:focus-visible {
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary-soft) 30%, transparent) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.card-side-panel-social .social-share-svg {
    width: 13px !important;
    height: 13px !important;
}

@media (max-width: 620px) {
    .card-side-tools,
    .card-side-trigger {
        height: 28px !important;
    }

    .card-side-trigger .icon {
        width: 12px !important;
        height: 12px !important;
    }

    .card-side-panel-social .social-share-strip-card .social-share-button {
        height: 27px !important;
    }

    .card-side-panel-social .social-share-svg {
        width: 12px !important;
        height: 12px !important;
    }
}


/* =========================================================
   Görseli kaplayan şeffaf panel düzeni
   ========================================================= */
.card-side-panel {
    top: 0 !important;
    bottom: 31px !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 16%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 38%, transparent) 45%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 52%, transparent) 100%) !important;
    backdrop-filter: blur(8px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(118%) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-overlay-border) 36%, transparent) !important;
}

.card-overlay-heading {
    display: grid;
    gap: 4px;
    place-items: center;
    align-self: center;
    width: 100%;
    text-align: center;
}

.card-overlay-heading strong {
    max-width: 90%;
    overflow: hidden;
    color: var(--card-overlay-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-overlay-heading small {
    max-width: 90%;
    overflow: hidden;
    color: color-mix(in srgb, var(--card-overlay-text) 78%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.card-side-panel-text {
    justify-content: center !important;
    align-items: center !important;
}

.card-overlay-content {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-width: 0;
}

.card-overlay-content-compact {
    gap: 4px;
}

.card-side-panel-resolution,
.card-side-panel-board {
    justify-content: center !important;
    align-items: center !important;
}

.card-side-panel-resolution strong,
.card-side-panel-board strong {
    color: var(--card-overlay-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.card-side-panel-resolution > small,
.card-side-panel-board > small,
.card-overlay-content > small {
    color: color-mix(in srgb, var(--card-overlay-text) 78%, transparent);
    font-size: 10px;
    text-align: center;
}

.card-side-panel-resolution .resolution-preview-ratio {
    margin: 0 !important;
    padding: 2px 7px !important;
    font-size: 9px !important;
}

.card-side-panel-resolution .resolution-preview-list,
.card-side-panel-board .card-board-resolution-list {
    display: grid !important;
    gap: 4px !important;
    width: min(280px, 100%) !important;
    margin: 0 auto !important;
    max-height: min(165px, 38vh) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.card-side-panel-resolution .resolution-preview-list > span,
.card-side-panel-board .board-resolution-button {
    min-height: 26px !important;
    padding: 5px 8px !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--surface) 74%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 62%, transparent) !important;
}

.card-side-panel-resolution .resolution-preview-list > span {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-side-panel-resolution .resolution-preview-list b,
.card-side-panel-board .board-resolution-button > span {
    font-size: 11px;
}

.card-side-panel-resolution .resolution-preview-list small,
.card-side-panel-board .board-resolution-button small {
    font-size: 9px !important;
}

.card-side-panel-board .board-resolution-button {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
    width: 100% !important;
}

.card-side-panel-board .board-resolution-button svg,
.card-side-panel-board .board-resolution-button .icon {
    width: 12px !important;
    height: 12px !important;
}

.card-side-panel-social {
    justify-content: center !important;
    align-items: center !important;
    padding-inline: 18px !important;
}

.card-side-panel-social .social-share-strip-card {
    align-items: center !important;
    width: min(310px, 100%) !important;
    margin: 0 auto !important;
    border-top: 1px solid color-mix(in srgb, var(--card-overlay-border) 30%, transparent) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 30%, transparent) !important;
}

.card-side-panel-social .social-share-strip-card .social-share-button {
    height: 34px !important;
    opacity: .85 !important;
}

.card-side-panel-stats {
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding-inline: 22px !important;
}

.card-stat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(280px, 100%);
    min-height: 28px;
    padding: 5px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 34%, transparent);
    color: var(--card-overlay-text);
}

.card-stat-row:last-child {
    border-bottom: 0;
}

.card-stat-row span {
    overflow: hidden;
    font-size: 11px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-stat-row b {
    justify-self: end;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 620px) {
    .card-side-panel {
        bottom: 28px !important;
        padding: 10px 12px !important;
    }

    .card-overlay-heading strong {
        font-size: 15px;
    }

    .card-side-panel-social .social-share-strip-card .social-share-button {
        height: 30px !important;
    }

    .card-side-panel-resolution .resolution-preview-list,
    .card-side-panel-board .card-board-resolution-list {
        max-height: min(140px, 34vh) !important;
    }
}


/* =========================================================
   Tab üstü tam alan şeffaf overlay düzeltmesi
   ========================================================= */

/* Kart medya alanı overlay için referans olsun */
.gallery-card-media-shell {
    position: relative !important;
    overflow: hidden !important;
}

/*
 * Açılan panel, tabın üstündeki tüm görsel alanını baştan sona kaplar.
 * Böylece küçük kutu gibi değil, komple overlay gibi görünür.
 */
.card-side-panel {
    position: absolute !important;
    inset: 0 0 31px 0 !important;
    width: 600% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 24%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 42%, transparent) 35%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 54%, transparent) 100%
        ) !important;
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--card-overlay-border) 34%, transparent),
        inset 0 -1px 0 color-mix(in srgb, var(--card-overlay-border) 24%, transparent) !important;
}

/* Overlay üstünde içerikler aynı katmanda ve net görünsün */
.card-side-panel > * {
    position: relative;
    z-index: 2;
}

/* Gerekirse panelin tüm alanı kaplamasını güçlendiren yardımcı katman */
.card-side-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 10%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 18%, transparent) 30%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 22%, transparent) 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* Sosyal, istatistik ve çözünürlük alanları overlay içinde daha net hizalansın */
.card-side-panel-social,
.card-side-panel-stats,
.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-text {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobilde tab yüksekliği farklı olduğu için overlay alt sınırı da uyumlu olsun */
@media (max-width: 620px) {
    .card-side-panel {
        inset: 0 0 28px 0 !important;
        padding: 10px 12px !important;
    }
}


/* =========================================================
   Sekme panel konum düzeltmesi + birleşik bilgi sekmesi
   ========================================================= */
.card-side-tools {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.card-side-tool {
    position: relative !important;
    --card-panel-shift: 0%;
}

.card-side-tool:nth-child(1) { --card-panel-shift: 0%; }
.card-side-tool:nth-child(2) { --card-panel-shift: -100%; }
.card-side-tool:nth-child(3) { --card-panel-shift: -200%; }
.card-side-tool:nth-child(4) { --card-panel-shift: -300%; }
.card-side-tool:nth-child(5) { --card-panel-shift: -400%; }
.card-side-tool:nth-child(6) { --card-panel-shift: -500%; }

/* inset yerine soldan kaydırmalı konumlandırma */
.card-side-panel {
    top: 0 !important;
    left: var(--card-panel-shift) !important;
    right: auto !important;
    bottom: 31px !important;
    width: 600% !important;
    max-width: none !important;
    inset: auto auto 31px auto !important;
}

@media (max-width: 620px) {
    .card-side-panel {
        bottom: 28px !important;
        inset: auto auto 28px auto !important;
    }
}

/* Bilgi sekmesi */
.card-side-panel-info {
    justify-content: center !important;
    align-items: center !important;
    padding-inline: 22px !important;
    width: 100% !important;
}

.card-overlay-content-info {
    width: min(320px, 100%) !important;
    margin: 0 auto !important;
}

.card-overlay-meta-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.card-overlay-meta-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 6px 8px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 58%, transparent);
}

.card-overlay-meta-row span {
    color: color-mix(in srgb, var(--card-overlay-text) 78%, transparent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: left;
}

.card-overlay-meta-row b {
    min-width: 0;
    color: var(--card-overlay-text);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    word-break: break-word;
}

@media (max-width: 620px) {
    .card-overlay-content-info {
        width: min(280px, 100%) !important;
    }

    .card-overlay-meta-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 7px;
    }
}


/* =========================================================
   Tüm tab panelleri · istatistik satırı standardı
   ========================================================= */
.card-side-panel {
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 20px !important;
}

.card-panel-list,
.card-side-panel-stats,
.card-side-panel-social .social-share-strip-card {
    display: grid !important;
    align-content: center;
    gap: 0 !important;
    width: min(300px, 100%) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.card-panel-list-scroll {
    max-height: min(190px, 46vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.card-panel-row,
.card-stat-row,
.card-side-panel-social .social-share-button {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 34%, transparent) !important;
    border-radius: 0 !important;
    color: var(--card-overlay-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transform: none !important;
}

.card-panel-row:last-child,
.card-stat-row:last-child,
.card-side-panel-social .social-share-button:last-child {
    border-bottom: 0 !important;
}

.card-panel-row > span,
.card-stat-row > span,
.card-side-panel-social .social-share-button .sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    color: color-mix(in srgb, var(--card-overlay-text) 82%, transparent) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: ellipsis;
}

.card-panel-row > b,
.card-stat-row > b {
    justify-self: end;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    color: var(--card-overlay-text);
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: right !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.card-panel-value-group {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.card-panel-value-group em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-panel-value-group small {
    color: var(--primary);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-panel-value-group .icon,
.card-panel-value-group svg {
    flex: 0 0 auto;
    width: 12px !important;
    height: 12px !important;
}

/* İndirme Panosu satırları aynı tasarımda işlem düğmesidir. */
.card-panel-row-button {
    cursor: pointer;
}

.card-panel-row-button:hover,
.card-panel-row-button:focus-visible,
.card-panel-row-button.is-selected {
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary-soft) 28%, transparent) !important;
}

.card-panel-row-button.is-selected > b {
    color: var(--primary);
}

/* Sosyal paylaşım: platform adı solda, SVG sağda. */
.card-side-panel-social {
    padding-inline: 20px !important;
}

.card-side-panel-social .social-share-strip-card {
    grid-template-columns: minmax(0, 1fr) !important;
}

.card-side-panel-social .social-share-button {
    grid-template-columns: minmax(0, 1fr) auto !important;
    height: auto !important;
    opacity: 1 !important;
}

.card-side-panel-social .social-share-button .sr-only {
    grid-column: 1;
    grid-row: 1;
}

.card-side-panel-social .social-share-svg {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 13px !important;
    height: 13px !important;
}

.card-side-panel-social .social-share-button:hover,
.card-side-panel-social .social-share-button:focus-visible {
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary-soft) 28%, transparent) !important;
}

/* Eski özel panel aralıklarını etkisizleştir. */
.card-overlay-heading,
.card-overlay-meta-list,
.card-overlay-content-info,
.card-overlay-content,
.card-side-panel-resolution .resolution-preview-list,
.card-side-panel-board .card-board-resolution-list {
    width: 100% !important;
    max-width: none !important;
}

.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-info,
.card-side-panel-text,
.card-side-panel-stats,
.card-side-panel-social {
    padding-inline: 20px !important;
}

@media (max-width: 620px) {
    .card-side-panel {
        padding: 10px 12px !important;
    }

    .card-panel-list,
    .card-side-panel-stats,
    .card-side-panel-social .social-share-strip-card {
        width: min(280px, 100%) !important;
    }

    .card-panel-list-scroll {
        max-height: min(155px, 38vh);
    }

    .card-panel-row,
    .card-stat-row,
    .card-side-panel-social .social-share-button {
        min-height: 27px !important;
        padding: 5px 7px !important;
        gap: 9px !important;
    }

    .card-panel-row > span,
    .card-stat-row > span,
    .card-side-panel-social .social-share-button .sr-only,
    .card-panel-row > b,
    .card-stat-row > b {
        font-size: 10px !important;
    }
}


/* =========================================================
   Sekme düzen toparlama
   - Sosyal ikonlar yatay sığacak şekilde
   - İstatistik paneli tekrar tam görünür
   - İlk/Bilgi sekmesi metinleri büyütülür
   ========================================================= */

/* Panel ortak genişliği */
.card-side-panel {
    padding: 14px 18px !important;
}

.card-panel-list,
.card-side-panel-stats {
    width: min(320px, 100%) !important;
}

/* Ortak satır düzeni */
.card-panel-row,
.card-stat-row {
    grid-template-columns: minmax(88px, 110px) minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
}

/* İlk sekme ve bilgi sekmesi daha okunur */
.card-side-tool-title .card-panel-row > span,
.card-side-tool-info .card-panel-row > span {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.card-side-tool-title .card-panel-row > b,
.card-side-tool-info .card-panel-row > b {
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: initial !important;
    word-break: break-word !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.card-side-tool-title .card-panel-row {
    min-height: 42px !important;
}

.card-side-tool-info .card-panel-row {
    min-height: 38px !important;
}

/* Çözünürlük ve pano değerleri rahat görünsün */
.card-side-tool-resolution .card-panel-row > b,
.card-side-tool-board .card-panel-row > b {
    max-width: none !important;
    white-space: nowrap !important;
    font-size: 12px !important;
}

.card-side-tool-resolution .card-panel-row > span,
.card-side-tool-board .card-panel-row > span {
    font-size: 11px !important;
}

.card-side-tool-resolution .card-panel-value-group,
.card-side-tool-board .card-panel-value-group {
    gap: 5px !important;
}

/* İstatistik paneli kesin görünür kural */
.card-side-panel-stats {
    display: grid !important;
    align-content: center !important;
    justify-items: stretch !important;
    gap: 0 !important;
    width: min(300px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.card-stat-row {
    display: grid !important;
    align-items: center !important;
    width: 100% !important;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 34%, transparent) !important;
    background: transparent !important;
}

.card-stat-row span {
    color: color-mix(in srgb, var(--card-overlay-text) 84%, transparent) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.card-stat-row b {
    justify-self: end !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-align: right !important;
}

/* Sosyal panel: ikonlar yatay ve sığacak şekilde */
.card-side-panel-social {
    padding-inline: 12px !important;
}

.card-side-panel-social .social-share-strip-card {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 4px !important;
    width: min(320px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.card-side-panel-social .social-share-button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 6px 4px !important;
    border: 1px solid color-mix(in srgb, var(--card-overlay-border) 28%, transparent) !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--surface) 18%, transparent) !important;
    opacity: .92 !important;
}

.card-side-panel-social .social-share-button .sr-only {
    display: none !important;
}

.card-side-panel-social .social-share-svg {
    grid-column: 1 !important;
    justify-self: center !important;
    width: 14px !important;
    height: 14px !important;
}

.card-side-panel-social .social-share-button:hover,
.card-side-panel-social .social-share-button:focus-visible {
    background: color-mix(in srgb, var(--primary-soft) 32%, transparent) !important;
    border-color: color-mix(in srgb, var(--primary) 36%, transparent) !important;
    color: var(--primary) !important;
}

/* Mobil uyum */
@media (max-width: 620px) {
    .card-side-panel {
        padding: 10px 10px !important;
    }

    .card-panel-list,
    .card-side-panel-stats,
    .card-side-panel-social .social-share-strip-card {
        width: min(280px, 100%) !important;
    }

    .card-panel-row,
    .card-stat-row {
        grid-template-columns: 76px minmax(0, 1fr) !important;
        min-height: 29px !important;
        padding: 5px 6px !important;
        gap: 8px !important;
    }

    .card-side-tool-title .card-panel-row > b,
    .card-side-tool-info .card-panel-row > b {
        font-size: 12px !important;
    }

    .card-stat-row span,
    .card-panel-row > span {
        font-size: 10px !important;
    }

    .card-stat-row b,
    .card-panel-row > b {
        font-size: 11px !important;
    }

    .card-side-panel-social .social-share-strip-card {
        gap: 3px !important;
    }

    .card-side-panel-social .social-share-button {
        min-height: 28px !important;
        padding: 5px 3px !important;
    }

    .card-side-panel-social .social-share-svg {
        width: 13px !important;
        height: 13px !important;
    }
}


/* =========================================================
   Bilgi / İstatistik paneli ve şeffaflık düzeltmesi
   ========================================================= */
.card-side-panel-info,
.card-side-panel-stats {
    left: var(--card-panel-shift) !important;
    right: auto !important;
    width: 600% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 20px !important;
    overflow: hidden !important;
}

.card-side-panel-info > .card-panel-list,
.card-side-panel-stats > .card-panel-list,
.card-panel-list-stats {
    display: grid !important;
    align-content: center !important;
    width: min(320px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.card-side-panel-info .card-panel-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    min-height: 38px !important;
}

.card-side-panel-info .card-panel-row > b {
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: initial !important;
    word-break: break-word !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.card-panel-list-stats .card-stat-row {
    display: grid !important;
    grid-template-columns: minmax(100px, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
    gap: 12px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--card-overlay-border) 42%, transparent) !important;
}

.card-panel-list-stats .card-stat-row:last-child {
    border-bottom: 0 !important;
}

.card-panel-list-stats .card-stat-row span {
    min-width: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--card-overlay-text) 88%, transparent) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-panel-list-stats .card-stat-row b {
    justify-self: end !important;
    min-width: 54px;
    max-width: none !important;
    overflow: visible !important;
    color: var(--card-overlay-text) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

/* Şeffaflık azaltıldı; panel biraz daha opak. */
.card-side-panel {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 48%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 66%, transparent) 42%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 76%, transparent) 100%
        ) !important;
    backdrop-filter: blur(11px) saturate(116%) !important;
    -webkit-backdrop-filter: blur(11px) saturate(116%) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--card-overlay-border) 48%, transparent),
        inset 0 -1px 0 color-mix(in srgb, var(--card-overlay-border) 36%, transparent) !important;
}

.card-side-panel::before {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 14%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 24%, transparent) 100%
        ) !important;
}

@media (max-width: 620px) {
    .card-side-panel-info,
    .card-side-panel-stats {
        padding: 10px 12px !important;
    }

    .card-side-panel-info > .card-panel-list,
    .card-side-panel-stats > .card-panel-list,
    .card-panel-list-stats {
        width: min(280px, 100%) !important;
    }

    .card-side-panel-info .card-panel-row {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        min-height: 34px !important;
    }

    .card-panel-list-stats .card-stat-row {
        grid-template-columns: minmax(90px, 1fr) auto !important;
        min-height: 29px !important;
        padding: 5px 7px !important;
        gap: 9px !important;
    }

    .card-side-panel-info .card-panel-row > b,
    .card-panel-list-stats .card-stat-row b {
        font-size: 11px !important;
    }

    .card-panel-list-stats .card-stat-row span {
        font-size: 10px !important;
    }
}


/* =========================================================
   Tüm sekmeler için tam overlay düzeni
   - İstatistik paneli gibi tüm sekmeler resmi kaplasın
   ========================================================= */

/* Tüm sekme panelleri aynı tam kaplama davranışında olsun */
.card-side-panel,
.card-side-panel-text,
.card-side-panel-info,
.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-social,
.card-side-panel-stats {
    left: var(--card-panel-shift) !important;
    right: auto !important;
    top: 0 !important;
    bottom: 31px !important;
    width: 600% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 20px !important;
    overflow: hidden !important;
}

/* Mobilde tab yüksekliğine uyumlu alt sınır */
@media (max-width: 620px) {
    .card-side-panel,
    .card-side-panel-text,
    .card-side-panel-info,
    .card-side-panel-resolution,
    .card-side-panel-board,
    .card-side-panel-social,
    .card-side-panel-stats {
        bottom: 28px !important;
        padding: 10px 12px !important;
    }
}

/* İçerik listeleri panelin ortasında sabit genişlikte dursun */
.card-side-panel > .card-panel-list,
.card-side-panel-text > .card-panel-list,
.card-side-panel-info > .card-panel-list,
.card-side-panel-resolution > .card-panel-list,
.card-side-panel-board > .card-panel-list,
.card-side-panel-stats > .card-panel-list,
.card-side-panel-social > .social-share-strip-card {
    width: min(320px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    align-content: center !important;
    justify-items: stretch !important;
}

/* Görsel adı paneli artık küçük kutu değil tam overlay içinde */
.card-side-tool-title .card-panel-list {
    width: min(340px, 100%) !important;
}

.card-side-tool-title .card-panel-row {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    min-height: 42px !important;
}

.card-side-tool-title .card-panel-row > b {
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: initial !important;
    word-break: break-word !important;
}

/* Bilgi paneli */
.card-side-tool-info .card-panel-list {
    width: min(340px, 100%) !important;
}

.card-side-tool-info .card-panel-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
}

/* Çözünürlük ve pano paneli de tam overlay içinde aynı davranışta */
.card-side-tool-resolution .card-panel-list,
.card-side-tool-board .card-panel-list {
    width: min(320px, 100%) !important;
}

.card-side-tool-resolution .card-panel-list-scroll,
.card-side-tool-board .card-panel-list-scroll {
    max-height: min(190px, 45vh) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Sosyal panel overlay içinde sabit genişlikte kalsın */
.card-side-tool-social .social-share-strip-card {
    width: min(320px, 100%) !important;
}

/* Ortak arka katman biraz daha okunur kalsın */
.card-side-panel {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-overlay-bg-strong) 52%, transparent) 0%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 68%, transparent) 42%,
            color-mix(in srgb, var(--card-overlay-bg-strong) 78%, transparent) 100%
        ) !important;
}

/* Eski küçük max-content davranışını kapat */
.card-side-panel-text {
    width: 600% !important;
    max-width: none !important;
}

/* Küçük ekranlarda liste genişliği */
@media (max-width: 620px) {
    .card-side-panel > .card-panel-list,
    .card-side-panel-text > .card-panel-list,
    .card-side-panel-info > .card-panel-list,
    .card-side-panel-resolution > .card-panel-list,
    .card-side-panel-board > .card-panel-list,
    .card-side-panel-stats > .card-panel-list,
    .card-side-panel-social > .social-share-strip-card,
    .card-side-tool-title .card-panel-list,
    .card-side-tool-info .card-panel-list {
        width: min(280px, 100%) !important;
    }

    .card-side-tool-title .card-panel-row,
    .card-side-tool-info .card-panel-row {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    .card-side-tool-resolution .card-panel-list-scroll,
    .card-side-tool-board .card-panel-list-scroll {
        max-height: min(155px, 36vh) !important;
    }
}


/* =========================================================
   Overlay yalnızca tab şeridinin üstündeki görsel alanını kaplar
   ========================================================= */

/*
 * inline-size containment yükseklik çökmesine neden olmaz.
 * 4:3 kart genişliğinden overlay yüksekliği güvenli hesaplanır.
 */
.gallery-card-media-shell {
    container-type: inline-size !important;
}

/*
 * Panel, sekmenin içinden yukarı doğru açılır.
 * Tab şeridi panel tarafından örtülmez.
 */
.card-side-panel,
.card-side-panel-text,
.card-side-panel-info,
.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-social,
.card-side-panel-stats {
    top: auto !important;
    bottom: 31px !important;
    height: calc(75cqw - 31px) !important;
    max-height: calc(75cqw - 31px) !important;
    min-height: 0 !important;
    inset: auto auto 31px auto !important;
    overflow: hidden !important;
}

/* Overlay tab satırının altında veya üstünde taşma yapmasın */
.card-side-tools {
    z-index: 900 !important;
}

.card-side-panel {
    z-index: 880 !important;
}

/* Tab düğmeleri overlay üzerinde ve kullanılabilir kalır */
.card-side-trigger {
    position: relative;
    z-index: 920 !important;
}

/* Eski tam-alan top:0 kuralını kesin olarak etkisizleştir */
.card-side-tool:hover > .card-side-panel,
.card-side-tool:focus-within > .card-side-panel,
.card-side-tool.is-open > .card-side-panel,
.card-side-tool.is-panel-hovered > .card-side-panel {
    top: auto !important;
    bottom: 31px !important;
}

/* Container query birimi desteklenmeyen tarayıcılar için 4:3 yedek */
@supports not (height: 1cqw) {
    .card-side-panel,
    .card-side-panel-text,
    .card-side-panel-info,
    .card-side-panel-resolution,
    .card-side-panel-board,
    .card-side-panel-social,
    .card-side-panel-stats {
        height: calc(100% * 4.5) !important;
        max-height: 220px !important;
    }
}

@media (max-width: 620px) {
    .card-side-panel,
    .card-side-panel-text,
    .card-side-panel-info,
    .card-side-panel-resolution,
    .card-side-panel-board,
    .card-side-panel-social,
    .card-side-panel-stats {
        bottom: 28px !important;
        height: calc(75cqw - 28px) !important;
        max-height: calc(75cqw - 28px) !important;
        inset: auto auto 28px auto !important;
    }

    .card-side-tool:hover > .card-side-panel,
    .card-side-tool:focus-within > .card-side-panel,
    .card-side-tool.is-open > .card-side-panel,
    .card-side-tool.is-panel-hovered > .card-side-panel {
        bottom: 28px !important;
    }
}


/* =========================================================
   Görsel adı sekmesi kaldırıldı
   Bilgi + Çözünürlük + Pano + Sosyal + İstatistik = 5 sekme
   ========================================================= */

/* Alt tab şeridi 5 sütun olsun */
.card-side-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* Her panel artık 5 sekmeye göre hizalansın */
.card-side-panel,
.card-side-panel-text,
.card-side-panel-info,
.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-social,
.card-side-panel-stats {
    width: 500% !important;
}

/* 5 sekme için doğru yatay kaydırma */
.card-side-tool:nth-child(1) > .card-side-panel { left: 0 !important; }
.card-side-tool:nth-child(2) > .card-side-panel { left: -100% !important; }
.card-side-tool:nth-child(3) > .card-side-panel { left: -200% !important; }
.card-side-tool:nth-child(4) > .card-side-panel { left: -300% !important; }
.card-side-tool:nth-child(5) > .card-side-panel { left: -400% !important; }

/* Eski 6. sekme kalıntıları etkisizleşsin */
.card-side-tool:nth-child(6) > .card-side-panel { left: -400% !important; }

/* Bilgi panelinde sadece görsel adı ve kategori */
.card-side-tool-info .card-panel-list {
    width: min(340px, 100%) !important;
}

.card-side-tool-info .card-panel-row {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    min-height: 38px !important;
}

.card-side-tool-info .card-panel-row > b {
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: initial !important;
    word-break: break-word !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

@media (max-width: 620px) {
    .card-side-tools {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .card-side-panel,
    .card-side-panel-text,
    .card-side-panel-info,
    .card-side-panel-resolution,
    .card-side-panel-board,
    .card-side-panel-social,
    .card-side-panel-stats {
        width: 500% !important;
    }

    .card-side-tool-info .card-panel-row {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }
}


/* =========================================================
   Benzer içerikler · görsel sayısından bağımsız sabit kart ölçüsü
   ========================================================= */
.related-content-section {
    min-width: 0;
    overflow: hidden;
}

.related-image-row {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 220px !important;
    grid-template-columns: none !important;
    justify-content: start !important;
    align-items: start;
    gap: 12px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
}

.related-image-card {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    aspect-ratio: 4 / 3 !important;
    scroll-snap-align: start;
}

.related-image-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Tek içerikte kart satır boyunca büyümez. */
.related-image-row > .related-image-card:only-child {
    width: 220px !important;
    max-width: 220px !important;
}

/* Orta ekran */
@media (max-width: 900px) {
    .related-image-row {
        grid-auto-columns: 190px !important;
        gap: 10px !important;
    }

    .related-image-card,
    .related-image-row > .related-image-card:only-child {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;
        height: 143px !important;
        min-height: 143px !important;
        max-height: 143px !important;
    }
}

/* Mobil */
@media (max-width: 620px) {
    .related-content-head {
        margin-bottom: 10px;
    }

    .related-image-row {
        grid-auto-columns: 168px !important;
        gap: 9px !important;
        padding-bottom: 8px;
    }

    .related-image-card,
    .related-image-row > .related-image-card:only-child {
        width: 168px !important;
        min-width: 168px !important;
        max-width: 168px !important;
        height: 126px !important;
        min-height: 126px !important;
        max-height: 126px !important;
    }
}


/* =========================================================
   Benzer içerikler · başlıksız yerleşim
   ========================================================= */
.related-content-section {
    padding-top: 0 !important;
}

.related-content-section .related-image-row {
    margin-top: 0 !important;
}

.related-content-head {
    display: none !important;
}

/* Sosyal etkileşim v3 */
.social-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.social-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.social-user-row>a,.social-user-row>span{display:grid}.social-user-row small{color:var(--muted)}.social-user-row>div{display:flex;gap:6px}.social-user-row form{margin:0}.social-user-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.social-user-card{display:grid;justify-items:center;gap:8px;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface);text-align:center}.social-user-card h3,.social-user-card p{margin:0}.social-user-card small,.social-user-card p{color:var(--muted)}.social-settings-form{max-width:760px}.social-activity-list article{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr) auto;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.comment-action-button.is-active{color:var(--primary);background:var(--primary-soft)}@media(max-width:720px){.social-two-column{grid-template-columns:1fr}.social-activity-list article{grid-template-columns:1fr}.social-user-row{align-items:flex-start}}


/* =========================================================
   Sosyal v3 tasarım koruması
   ========================================================= */
.detail-showcase-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
    align-items: start !important;
    gap: 20px !important;
    margin-top: 18px !important;
}

.detail-showcase-grid > .image-stage {
    min-width: 0;
    margin: 0 !important;
}

.detail-showcase-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    align-self: start;
    min-width: 0;
}

.detail-main-full {
    width: 100%;
    max-width: none !important;
    margin-top: 18px;
}

.card-side-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.card-side-panel,
.card-side-panel-text,
.card-side-panel-info,
.card-side-panel-resolution,
.card-side-panel-board,
.card-side-panel-social,
.card-side-panel-stats {
    width: 500% !important;
}

.card-side-tool:nth-child(1) > .card-side-panel { left: 0 !important; }
.card-side-tool:nth-child(2) > .card-side-panel { left: -100% !important; }
.card-side-tool:nth-child(3) > .card-side-panel { left: -200% !important; }
.card-side-tool:nth-child(4) > .card-side-panel { left: -300% !important; }
.card-side-tool:nth-child(5) > .card-side-panel { left: -400% !important; }

@media (max-width: 980px) {
    .detail-showcase-grid {
        grid-template-columns: minmax(0, 1fr) 280px !important;
        gap: 14px !important;
    }
}

@media (max-width: 780px) {
    .detail-showcase-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .detail-showcase-sidebar {
        position: static;
    }
}

/* =========================================================
   HC_CARD_INPUT_COMPAT_V1
   Mouse · touchpad · dokunmatik ekran · hibrit cihaz uyumu
   ========================================================= */

/*
 * Dokunmatik ekranlı bilgisayarda birincil aygıt coarse görünse bile
 * bağlı mouse veya touchpad any-pointer:fine ile algılanır.
 */
@media (any-hover: hover) and (any-pointer: fine) {
    .gallery-card:hover .card-side-tools {
        opacity: .84 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition-delay: var(--card-tools-hover-delay, 1000ms) !important;
    }

    .gallery-card:hover .card-side-tool {
        pointer-events: auto !important;
    }
}

/* Gerçek touch-only cihazlarda ilk dokunuş menüyü açar. */
@media (any-hover: none) {
    .card-side-tools {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(100%) !important;
        pointer-events: none !important;
    }

    .gallery-card.is-card-tools-visible .card-side-tools,
    .gallery-card:focus-within .card-side-tools {
        opacity: .88 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition-delay: 0ms !important;
    }
}

/* =========================================================
   HC_HEADER_AUTH_SVG_V1
   Header giriş ve üyelik işlemleri · SVG ikon düğmeleri
   ========================================================= */

.header-auth-svg-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: none;
    line-height: 1;
    transition:
        transform .18s ease,
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.header-auth-svg-button:hover,
.header-auth-svg-button:focus-visible {
    z-index: 140;
    color: var(--primary);
    border-color:
        color-mix(in srgb, var(--primary) 42%, var(--border));
    background: var(--primary-soft);
    box-shadow:
        0 8px 20px
        color-mix(in srgb, var(--primary) 15%, transparent);
    transform: translateY(-1px);
    outline: none;
}

.header-auth-svg-button:active {
    transform: translateY(0);
}

.header-auth-svg-button > .icon {
    width: 18px;
    height: 18px;
}

.header-auth-svg-button.is-register {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow:
        0 8px 20px
        color-mix(in srgb, var(--primary) 24%, transparent);
}

.header-auth-svg-button.is-register:hover,
.header-auth-svg-button.is-register:focus-visible {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
    color: #fff;
}

.header-auth-svg-register-icons {
    position: relative;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.header-auth-svg-register-icons > .icon:first-child {
    width: 18px;
    height: 18px;
}

.header-auth-svg-register-icons .header-auth-svg-plus {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 11px;
    height: 11px;
    padding: 1px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow:
        0 0 0 1px
        color-mix(in srgb, var(--primary) 70%, transparent);
}

/* Klavye ve mouse için kısa açıklama. */
.header-auth-svg-button::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 160;
    width: max-content;
    max-width: 150px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-md);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-3px);
    transition:
        opacity .16s ease,
        visibility .16s ease,
        transform .16s ease;
}

.header-auth-svg-button:hover::after,
.header-auth-svg-button:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 920px) {
    .header-auth-svg-button::after {
        display: none;
    }
}


/* HC Galeri :: image info hover v1 */
.stage-utility-cluster {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 6;
}

.stage-utility-cluster .stage-expand,
.stage-info-trigger {
    position: static;
    background: rgba(12, 14, 22, .68);
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.stage-info-hover {
    position: relative;
}

.stage-info-hover > summary {
    list-style: none;
    cursor: pointer;
}

.stage-info-hover > summary::-webkit-details-marker {
    display: none;
}

.stage-info-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(92vw, 340px);
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 14, 24, .78);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.stage-info-hover:hover .stage-info-popover,
.stage-info-hover:focus-within .stage-info-popover,
.stage-info-hover[open] .stage-info-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.stage-info-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.stage-info-heading strong {
    font-size: 14px;
}

.stage-info-heading small {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.stage-info-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.stage-info-list > div {
    display: grid;
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.stage-info-list dt {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.stage-info-list dd {
    margin: 0;
    display: grid;
    gap: 2px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.stage-info-list dd small {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 680px) {
    .stage-utility-cluster {
        right: 10px;
        bottom: 10px;
        gap: 6px;
    }

    .stage-info-popover {
        width: min(94vw, 300px);
        padding: 12px 13px;
    }

    .stage-info-list > div {
        grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
        gap: 8px;
    }
}
