:root {
    --primary: #111111;
    --primary-dark: #000000;
    --primary-light: #c8102e;
    --primary-light-matt: #c8102e;
    --light-0-invert: #1f1f1f;
    --light-0: #fff;
    --light-1: #e3e3e3;
    --light-2: #f8f9fa;
    --light-3: #f6f7f7;
    --dark-0: #353535;
    --dark-1: #777;
    --text-light: #212529;
    --text-light-1: #ccc;
    --d-inner-dark: #333333;
    --d-inner-dark-1: #272727;
    --input-placeholder: #6c757d;
    --body-bg: #fff;
    --logo-big: url("/static/dictionary/img/logo-genis-acik.58e010dc37ec.png") no-repeat; /* Using absolute path. Safari says "no" when relative paths used in variables. */
    --logo-small: url("/static/dictionary/img/logo-kartal-acik.0ee3459d4daf.png") no-repeat;
    --link-blank: url('data:image/svg+xml, <svg fill="%23c8102e" xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M11 10h1v3c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h3v1H1v10h10v-3zM6 2l2.25 2.25L5 7.5 6.5 9l3.25-3.25L12 8V2H6z"/></svg>');
    --link-image: url('data:image/svg+xml, <svg fill="%23c8102e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 4a.25.25 0 00-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.75 1.75 0 012.506-.032L22 16.44V4.25a.25.25 0 00-.25-.25H2.25zm3.496 17.5H21.75a1.75 1.75 0 001.75-1.75V4.25a1.75 1.75 0 00-1.75-1.75H2.25A1.75 1.75 0 00.5 4.25v15.5c0 .966.784 1.75 1.75 1.75h3.496zM22 19.75v-1.19l-6.555-6.554a.25.25 0 00-.358.004L7.497 20H21.75a.25.25 0 00.25-.25zM9 9.25a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0zm1.5 0a3.25 3.25 0 11-6.5 0 3.25 3.25 0 016.5 0z"></path></svg>');
    --focus-shadow: 0 0 0 .2rem rgba(200, 16, 46, .25);
    --dark-box-shadow: none;
}

body.dark {
    --primary: #e8283f;
    --primary-dark: #c8102e;
    --primary-light: var(--primary);
    --primary-light-matt: #ff4d5e;
    --primary-light-white-fore: rgba(255, 77, 94, .43);
    --light-0-invert: #fff;
    --light-0: #1f1f1f;
    --light-1: #262626;
    --light-2: #333;
    --light-3: var(--light-1);
    --dark-1: rgba(255, 255, 255, .75);
    --dark-0: rgba(255, 255, 255, .7);
    --text-light: rgba(255, 255, 255, .9);
    --text-light-1: var(--dark-1);
    --input-placeholder: rgba(255, 255, 255, .5);
    --body-bg: #121212;
    --logo-big: url("/static/dictionary/img/logo-genis-koyu.6397de448fb1.png") no-repeat;
    --logo-small: url("/static/dictionary/img/logo-kartal-koyu.ec29de296fb9.png") no-repeat;
    --link-blank: url('data:image/svg+xml, <svg fill="%23ff4d5e" opacity=".7" xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M11 10h1v3c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h3v1H1v10h10v-3zM6 2l2.25 2.25L5 7.5 6.5 9l3.25-3.25L12 8V2H6z"/></svg>');
    --link-image: url('data:image/svg+xml, <svg fill="%23ff4d5e" opacity=".7" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 4a.25.25 0 00-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.75 1.75 0 012.506-.032L22 16.44V4.25a.25.25 0 00-.25-.25H2.25zm3.496 17.5H21.75a1.75 1.75 0 001.75-1.75V4.25a1.75 1.75 0 00-1.75-1.75H2.25A1.75 1.75 0 00.5 4.25v15.5c0 .966.784 1.75 1.75 1.75h3.496zM22 19.75v-1.19l-6.555-6.554a.25.25 0 00-.358.004L7.497 20H21.75a.25.25 0 00.25-.25zM9 9.25a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0zm1.5 0a3.25 3.25 0 11-6.5 0 3.25 3.25 0 016.5 0z"></path></svg>');
    --focus-shadow: 0 0 0 .2rem rgba(255, 77, 94, .25);
    --dark-box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, .2);

    background-color: var(--body-bg);
    color: var(--text-light);
}

body {
    font-family: "Source Sans Pro", sans-serif;
    overflow-y: scroll;
    /* Açık tema da zeminini kendisi boyar; tarayıcı koyu kipteyken siyah zemin kalmasın. */
    background-color: var(--body-bg);
    color-scheme: light;
}

body.dark {
    color-scheme: dark;
}

header.page_header {
    border-top: 4px solid var(--primary);
    border-bottom: 1px solid var(--light-1);
    padding-top: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: var(--light-0);
    transition: top .5s ease;
}

.logo {
    width: 120px;
}

.logo a {
    display: block;
    background: var(--logo-big);
    background-size: 120px 40px;
    height: 40px;
}

.top-bar {
    margin-bottom: .5em;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-search-form {
    flex: auto;
    max-width: 550px;
    margin: 0 1em;
}

.searchbox,
.searchbox .searchbox-text,
.searchbox .searchbtn,
.searchbox .dropbtn {
    height: 32px;
}

.searchbox > .searchbox-text {
    border-right: none;
}

.searchbox > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

body.dark .searchbox .searchbtn {
    background: var(--primary-light-white-fore);
    color: var(--text-light);
}

.searchbox .searchbtn {
    background: var(--primary);
    color: #fff;
    padding: 3px 4px;
    width: 32px;
}

.searchbox .dropbtn {
    background: #fff;
    color: var(--input-placeholder);
    border-color: var(--light-1);
    padding: 0 10px;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

body.dark .searchbox .dropbtn {
    background: var(--d-inner-dark);
}

nav.usermenu ul li {
    display: inline-block;
}

nav.usermenu ul li a {
    color: var(--dark-0);
    padding: 0 10px;
    font-size: 1rem;
}

nav.sub-nav ul.desktop-only {
    padding: 0;
    margin: 0;
    display: flex;
}

nav.sub-nav ul.mobile-only {
    padding: 0;
    margin: 0;
    display: none;
}

nav.sub-nav ul li {
    display: inline-block;
    text-align: center;
    flex-grow: 1;
    border-bottom: 6px solid transparent;
    transition: border-bottom-color .2s ease-in;
}

nav.sub-nav ul li.active {
    border-color: var(--primary);
}

nav.sub-nav ul li:hover {
    border-color: var(--primary);
    cursor: pointer;
}

nav.sub-nav ul li a {
    padding-bottom: 5px;
    color: var(--dark-0);
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color .2s ease-in;
}

nav.sub-nav ul.desktop-only li:hover a,
nav.sub-nav ul.desktop-only li.active a {
    color: var(--primary);
}

nav.sub-nav ul li svg {
    fill: var(--dark-0);
}

.content {
    margin-top: 94px;
    padding-top: 1.5em;
    display: flex;
}

nav.sub-nav ul .more_tags_dropdown a {
    padding: .5rem 1.5rem;
    text-align: center;
}

nav.sub-nav ul .more_tags_dropdown a:focus,
nav.sub-nav ul .more_tags_dropdown a:active,
nav.sub-nav ul .more_tags_dropdown a.active,
.usermenu-dropdown a:focus,
.usermenu-dropdown a:active,
.usermenu-dropdown a.active {
    color: #fff;
    background: var(--primary);
}

nav.sub-nav ul .more_tags_dropdown,
.usermenu-dropdown {
    top: -3px;
}

.small-device-alert {
    display: none;
}

.left-frame {
    height: calc(100% - 94px - 1.5em);
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    width: 250px;
    padding: 0 .5em;
}

#show_more {
    display: inline-block;
    margin-top: .4em;
    margin-bottom: 1.25em;
}

.tinybar {
    --thumb: #bababa;
    --thumb-hover: #666;
    --track: #efefef;
    --track-hover: #ccc;

    /* Firefox only */
    scrollbar-width: thin;
    scrollbar-color: var(--thumb) var(--track);
}

body.dark .tinybar {
    --track: var(--body-bg);
    --track-hover: var(--light-0);
    --thumb: var(--light-1);
    --thumb-hover: var(--light-2);
}

.tinybar::-webkit-scrollbar-button {
    display: none;
    height: 13px;
    border-radius: 0;
}

.tinybar::-webkit-scrollbar-thumb {
    background-color: var(--thumb);
    border-radius: 2px;
}

.tinybar::-webkit-scrollbar-thumb:hover {
    background-color: var(--thumb-hover);
}

.tinybar::-webkit-scrollbar-track {
    background-color: var(--track);
}

.tinybar::-webkit-scrollbar-track:hover {
    background-color: var(--track-hover);
}

.tinybar::-webkit-scrollbar {
    width: 6px;
}

.left-frame-in {
    font-size: 1.2rem;
}

.right-frame {
    width: 250px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(94px + 1.5em);
    height: max-content;
}

.right-frame > * + footer,
.right-frame > * + .scrolltop {
    margin-top: 1em;
}

.content-frame {
    max-width: 730px;
    width: calc(100% - 500px);
    padding: 0 1em;
    margin-left: 250px;
}

.lf-hidden > .content-frame {
    width: 100%;
    margin-left: 0;
}

.left-frame h2 {
    font-size: 1.4em;
    color: #828282;
    max-width: 240px;
}

.left-frame-in h1:not(.description) {
    font-size: 1.4em;
    color: #828282;
}

ul.topic-list li {
    padding: 0;
    border: none;
    line-height: 20px;
    border-radius: 4px;
}

ul.topic-list li.active {
    padding: 0 1em;
    background: var(--primary);
    transition: background-color ease .5s;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

ul.topic-list li.active:not(:first-child) {
    border-radius: 0;
}

ul.topic-list li.active:hover {
    background: #c8102e;
}

ul.topic-list li.active a {
    color: #fff;
}

ul.topic-list li:hover {
    background: var(--light-3);
}

ul.topic-list li a {
    padding: 10px 0;
    display: grid;
    grid-gap: .25em;
    grid-template-columns: 1fr minmax(min-content, 35px);
    text-decoration: none;
    color: var(--dark-0);
    font-size: 1em;
    word-break: break-word;
    align-items: center;
}

ul.topic-list li small.total_entries {
    color: #828282;
    font-size: inherit;
    text-align: center;
}

ul.topic-list li.active small.total_entries {
    color: white;
    font-weight: 600;
}

header.entry_header h1 {
    font-size: 1.5em;
    font-weight: 700;
}

header.entry_header .upper {
    display: grid;
    grid-template-columns: minmax(min-content, max-content) min-content;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    grid-gap: .5rem;
}

header.entry_header .lower a:not(.active) {
    color: var(--dark-0);
}

header.entry_header > .lower > .title_sub {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    grid-gap: 1.25rem;
    height: min-content;
}

header.entry_header > .lower > .title_sub a:not(.dropdown-item) {
    transition: color .2s ease-in;
}

header.entry_header > .lower > .title_sub a:not(.dropdown-item):hover,
header.entry_header > .lower > .title_sub a:not(.dropdown-item):focus {
    color: var(--primary-light);
    text-decoration: none;
}

.pagination a {
    display: block;
    text-decoration: none;
    padding: 1px 8px;
    border: 1px solid var(--light-1);
    border-radius: 4px;
    box-shadow: var(--dark-box-shadow);
}

.pagination a:hover {
    background: var(--light-2);
}

.pagination select,
.lf_pagination select {
    background: var(--light-0);
    min-width: 50px;
    max-width: 65px;
    padding: 2px;
    cursor: pointer;
    border-color: var(--light-1);
    border-radius: 4px;
    color: var(--text-light);
    box-shadow: var(--dark-box-shadow);
}

section.user_entries ul.entries {
    padding: 0;
    margin: 0;
}

section.user_entries ul.home li h2 {
    font-size: 1.5em;
}

section.user_entries ul.entries li h2 {
    font-size: 1.3em;
    font-weight: 700;
    padding: 0;
    margin: 0;
}

section.user_entries ul.entries li {
    padding: .75em 0;
    list-style: none;
    height: auto;
}

section.user_entries ul li .entry-actions a:focus,
section.user_entries ul li .entry-actions a:active {
    background: var(--primary-light);
    color: #fff;
}

section.user_entries article.entry {
    padding: .8em 0;
    font-size: 16px;
}

section.user_entries article.entry p {
    overflow: hidden;
    line-height: 1.5em;
    max-height: 15em;
    word-wrap: break-word;
    margin-bottom: 0;
}

section.user_entries article.entry.permalink p {
    max-height: none;
}

section.user_entries article.entry.by_novice {
    font-style: italic;
    color: #666;
}

footer.entry-footer {
    display: grid;
    grid-template-columns: 1fr auto;
}

footer.entry-footer > .meta {
    display: grid;
    justify-content: end;
    grid-template-columns: auto auto 25px;
    grid-column-gap: .05em;
    align-items: baseline;
}

footer.entry-footer > .meta > a.permalink {
    font-size: 12px;
    color: var(--dark-1);
    padding-right: .5em;
}

footer.entry-footer > .feedback {
    display: grid;
    grid-template-columns: repeat(3, 50px);
}

footer.entry-footer > .feedback svg,
section.ama-comments aside.votes svg {
    display: block;
    fill: var(--dark-1);
    transition: fill .2s ease;
}

footer.entry-footer > .feedback > div {
    display: grid;
    grid-template-columns: repeat(2, 25px);
    align-items: center;
}

footer.entry-footer > .feedback > .social > a.facebook svg:hover {
    fill: #3b5998;
}

footer.entry-footer > .feedback > .social > a.twitter svg:hover {
    fill: #38a1f3;
}

.votes > a.downvote.active svg {
    fill: darkred;
}

footer.entry-footer > .meta > a.action svg,
header.entry-individual > .mobile > a.action svg,
footer.entry-footer > .feedback > .favorites > a.favorite.active svg,
.votes > a.upvote.active svg {
    fill: var(--primary-light);
}

@media (hover) {
    ul.threads li:hover {
        background: var(--light-2);
    }

    .votes > a.upvote svg:hover,
    footer.entry-footer > .feedback > .favorites > a.favorite svg:hover {
        fill: var(--primary-light);
    }

    .votes > a.downvote svg:hover {
        fill: darkred;
    }
}

footer.entry-footer > .feedback > .favorites > a.fav-count {
    text-align: center;
}

footer.entry-footer > .feedback > .favorites > .favorites-list {
    min-width: 0;
    max-height: 250px;
    overflow-y: auto;
}

footer.entry-footer > .feedback > .favorites > .favorites-list a {
    display: block;
    padding: 0 1em;
}

section.user_entries ul li.entry-full.owner footer.entry-footer > .feedback,
body#ua section.user_entries ul li.entry-full footer.entry-footer > .feedback {
    grid-template-columns: repeat(2, 50px);
}

footer.entry-footer > .feedback > .favorites > .favorites-list a.novice {
    color: var(--dark-1);
}

section.ama-comments {
    margin-top: 1.75em;
    margin-left: .75em;
    border-left: 2px solid var(--light-1);
}

section.ama-comments .comment:not(:first-child) {
    margin-top: 2em;
}

section.ama-comments aside.votes strong {
    margin: 1em 0;
    font-size: 1.25rem;
    color: var(--dark-1);
}

form#signup small,
.fs-90 {
    font-size: 90%;
}

.fw-600 {
    font-weight: 600;
}

mark {
    padding: 0;
    background-color: yellow;
}

.datepick select {
    min-width: max-content;
}

body.dark .btn-django,
body.dark .btn-django-link {
    background-color: var(--primary-light-white-fore);
}

.btn-django {
    padding: .5em 1em;
    background: var(--primary-dark);
    color: #fff;
    font-size: 1em;
}

.btn-django.stretch {
    width: 100%;
}

.btn-django:hover,
.btn-django-link:hover {
    color: var(--text-light-1);
}

nav#user-navigation {
    display: grid;
    grid-gap: 1rem;
    grid-auto-flow: column;
    height: 32px;
    align-items: center;
}

nav#user-navigation > a {
    height: min-content;
    text-decoration: none;
    display: grid;
    grid-auto-flow: column;
    grid-gap: .5rem;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-0);
    position: relative;
    transition: color .2s ease-in;
}

nav#user-navigation > a:hover,
nav#user-navigation > a:focus,
nav#user-navigation > a:active {
    color: var(--primary-light);
}

body a,
body a[role="button"]:not(.dropdown-item) {
    color: var(--primary-light);
}

.text-formatted img,
article.entry img {
    display: block;
    max-height: 600px;
}

a[data-img] + a[data-img] {
    margin-left: .35rem;
}

article.entry a[data-img]::after,
article.entry a[target="_blank"]::after,
.text-formatted a[data-img]::after,
.text-formatted a[target="_blank"]::after {
    display: inline-block;
    content: '';
    background-repeat: no-repeat;
    background-size: 1em 1em;
    height: 1em;
    width: 1em;
}

article.entry a[target="_blank"]::after,
.text-formatted a[target="_blank"]::after {
    background-image: var(--link-blank);
    top: 1px;
    left: 1px;
    position: relative;
}

article.entry a[data-img]::after,
.text-formatted a[data-img]::after {
    background-image: var(--link-image);
    margin-left: 5px;
    position: relative;
    top: 3px;
}

body a:hover {
    color: var(--primary-dark);
}

section.user-comments {
    background: var(--light-1);
    padding: 1em;
    border-radius: 4px;
}

body.dark .editor-buttons button.add-code {
    background: var(--d-inner-dark);
}

.editor-buttons button.add-code {
    background: var(--light-0);
    color: var(--dark-0);
    border-radius: 4px;
    border: none;
    margin-bottom: .5rem;
    padding: .1em .4em;
}

.editor-buttons .add-code:not(:last-child) {
    margin-right: .25em;
}

.editor-buttons button.add-code:hover {
    background: var(--light-2);
}

section.user-comments textarea.entry_editor {
    margin: .5em 0 1em;
    width: 100%;
    padding: .5em;
    font-size: 16px;
}

.topic-categories-list {
    background: var(--light-1);
    padding: 1em;
    border-radius: 4px;
}

.topic-categories-list ul {
    margin: 0;
    padding: 0;
}

section.topic-categories-list ul li {
    list-style-type: none;
    display: inline-block;
}

section.topic-categories-list ul li:not(:last-child) a {
    margin-right: 1em;
}

.topic-categories-list h2 {
    font-size: 1.3em;
}

a.more-entries-button {
    display: block;
    width: 100%;
    border: 1px solid var(--light-1);
    padding: .25em;
    text-align: center;
    font-size: 1em;
    border-radius: 3px;
    text-decoration: none;
}

body.dark a.more-entries-button {
    background: var(--light-1);
}

body.dark a.more-entries-button:hover,
a.more-entries-button:hover {
    background: var(--light-2);
}

body.dark ul.autocomplete {
    border-color: var(--light-2);
}

ul.autocomplete {
    width: 100%;
    display: none;
    border: 1px solid #999;
    border-radius: 3px;
    background: var(--light-0);
    padding-left: 0;
    list-style: none;
    overflow: auto;
    z-index: 1;
    box-shadow: var(--dark-box-shadow);
}

ul.autocomplete li {
    padding: .3em 1em;
    white-space: nowrap;
    cursor: default;
}

ul.autocomplete li.selected {
    background: var(--light-2);
}

ul.autocomplete li.no-results {
    text-align: center;
}

ul.autocomplete mark {
    color: inherit;
    background: none;
    font-weight: 700;
}

.dj-hidden {
    display: none;
}

section.user-info h1,
article.post h2 {
    font-weight: 700;
}

section.user-info ul.user-links,
ul.user-stats {
    padding: 0;
    margin: 0 0 .25em;
}

section.user-info ul.user-stats li {
    font-size: .9em;
}

section.user-info ul.user-stats li::after {
    content: " \00b7";
    margin: .3em;
}

section.user-info ul.user-stats li.nobullet::after {
    content: none;
}

section.user-info ul.user-links:last-child {
    margin: 0;
}

section.user-info ul.user-links li,
ul.user-stats li {
    list-style-type: none;
    display: inline;
}

section.user-info ul.user-links li {
    margin-right: .8em;
}

.user-stats-nav {
    border-bottom: 1px solid var(--light-1);
    padding: .4em 0;
}

.user-stats-nav ul li {
    list-style-type: none;
    display: inline;
    margin-right: 1em;
    padding: .4em 0;
    border-bottom: 3px solid transparent;
    font-weight: 600;
}

.user-stats-nav ul li.active {
    border-bottom: 3px solid var(--primary-light);
}

.user-stats-nav ul li a {
    padding: 0 .4em;
}

@keyframes rotate {
    from {
        transform: rotate(1deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning {
    transform: rotate(360deg);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    vertical-align: bottom;
    margin-left: 3px;
}

ul.threads {
    padding: 0;
}

ul.threads li {
    padding: .3em .3em .3em .6em;
    list-style-type: none;
    border-bottom: 2px solid var(--light-1);
    margin-bottom: 1em;
    transition: border-bottom-color .3s ease-in-out;
}

ul.threads li > a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
}

ul.threads li.unread {
    border-left: 3px solid var(--primary);
    padding-left: .75em;
}

ul.threads li.selected {
    background: var(--light-1);
    border-color: var(--primary-light);
}

ul.chat {
    padding: 0;
    max-width: 90%;
}

ul.chat li.bubble {
    list-style-type: none;
    border-radius: 4px;
    padding: .6em;
    position: relative;
    max-width: 60%;
    margin: 1em 0;
    word-break: break-word;
}

ul.chat li.bubble:not(:nth-last-child(-n+10)) {
    display: none;
}

/* Kartal Sözlük: mobilde son 4 mesaj (masaüstünde 10) */
body[data-mobile="1"] ul.chat li.bubble:not(:nth-last-child(-n+4)) {
    display: none;
}

ul.chat li.bubble > span.date-info {
    display: flex;
    align-items: center;
}

ul.chat li.bubble.received {
    border: 1px solid var(--light-1);
    left: 0;
}

ul.chat li.bubble.sent {
    left: 50%;
    background: var(--light-1);
}

ul.chat li.bubble.sent > span.date-info {
    justify-content: flex-end;
}

span.chat-quick-links,
span.chat-quick-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

section.chat-reply form {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

section.chat-reply form textarea {
    width: inherit;
    flex-grow: 1;
    padding: .5em;
    font-size: 16px;
}

.people-list {
    padding: 0 1em;
    margin: .5em;
}

.people-list li {
    list-style-type: none;
}

body.dark .profile-badges a {
    background: var(--primary-light-white-fore);
}

.profile-badges a {
    display: inline-block;
    color: #fff;
    background: var(--primary-light);
    padding: .45em 1em;
    text-decoration: none;
    border-radius: 3px;
}

.profile-badges a.badge-item {
    margin-right: .4em;
}

.profile-badges a:hover {
    color: var(--text-light-1);
}

.blackquote-container {
    background: #f3f3f3;
    padding: 1em;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

body.dark .blackquote-container {
    background-color: var(--light-1);
}

blockquote.user-pin .entry-content {
    display: block;
    margin-bottom: 1em;
}

section.user_entries ul.profile li {
    padding: .6em 0;
}

a.expand::after {
    vertical-align: baseline;
    position: relative;
    left: 2px;
    content: '\25BE';
    color: inherit;
    padding: 2px;
}

.topic-dropdown a.dropdown-item:focus,
.topic-dropdown a.dropdown-item:active {
    background: var(--light-2);
    color: inherit;
}

.topic-dropdown a.dropdown-item .input-group input.searchbox-text {
    padding: 0 .3em;
    font-size: 14px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.nice-filter .sep {
    color: var(--dark-0);
}

.nice-filter a.active {
    color: var(--primary-light);
    font-weight: 700;
}

ul.category-list-all li {
    align-items: center;
    list-style-type: none;
    padding: 1em;
}

ul.category-list-all li article {
    flex: 1;
    margin-right: .75rem;
}

ul.category-list-all li:hover {
    background: var(--light-3);
}

.lf_pagination {
    align-items: flex-start;
    margin: 5px auto 0;
}

.lf_pagination.index {
    margin: 5px auto 5px;
}

.lf_pagination.index a {
    width: 45px;
    display: inline-block;
    text-align: center;
    height: 30px;
    line-height: 25px;
    box-shadow: var(--dark-box-shadow);
}

.lf_pagination.index select {
    height: 30px;
}

.lf_pagination.stretch {
    display: flex;
}

.lf_pagination.stretch a.number {
    flex-grow: 1;
    text-align: center;
    display: inline;
    margin: 0 .5em;
    box-shadow: var(--dark-box-shadow);
}

.lf_pagination.stretch select {
    flex-grow: 1;
    text-align: center;
    display: inline;
    max-width: none;
    margin: 0 .5em;
}

.lf_pagination a {
    display: inline-flex;
    text-decoration: none;
    padding: 1px 8px;
    border: 1px solid var(--light-1);
    border-radius: 4px;
}

.lf_pagination a:hover {
    background: var(--light-3);
}

select.mobile-topic-list {
    width: 100%;
    padding: .3em;
}

.refresh-button {
    border: 1px solid var(--light-1);
    border-radius: 3px;
    padding: .3em;
    text-align: center;
    margin-bottom: .75em;
}

.refresh-button:hover {
    background: var(--light-2);
}

form.memento textarea {
    height: auto;
    padding: .4em .6em;
    width: 100%;
}

div.read_more {
    color: var(--primary-light);
    font-size: 1rem;
    display: inline-block;
    margin-top: .5rem;
}

div.read_more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.year-select {
    width: 100%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-light);
}

.refresh-button-mobile {
    border: 1px solid var(--light-1);
    background: var(--light-0);
    color: inherit;
    border-radius: 3px;
    width: 100%;
    padding: .25em 0;
    margin-bottom: 1em;
}

a.search-closer:active {
    background: inherit;
}

.topic-title {
    word-wrap: break-word;
}

.topic-title small {
    font-size: 1rem;
    margin-left: .5em;
}

.form-group label strong,
.topic-title small strong {
    font-weight: 600;
}

.modal-open {
    overflow: hidden;
    overflow-y: scroll;
    padding-right: 0 !important;
}

.dropdown-advanced-search {
    width: calc(100% - 32px);
    min-width: 300px;
}

.btn-django-link {
    background: var(--primary-dark);
    color: #fff;
}

.btn-django-link.stretch {
    width: 100%;
}

body.dark .btn-django-link.faded {
    background: rgba(255, 77, 94, .2);
}

.btn-django-link.faded {
    background: var(--primary-light);
}

li.profile-stat-expand .dropdown-menu .dropdown-item {
    padding: .5rem 1.5rem;
    color: var(--primary-light);
}

li.profile-stat-expand .dropdown-menu .dropdown-item:focus,
li.profile-stat-expand .dropdown-menu .dropdown-item:active {
    background: inherit;
}

footer.body-footer {
    background: var(--light-1);
    padding: 1em;
    border-radius: 4px;
}

footer.body-footer > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: .5em;
}

.password-help ul {
    list-style-type: decimal;
    margin: 1em;
    padding: 0;
}

#wish-list > li {
    border: 0;
}

body.dark #wish-list > li.owner {
    background: var(--light-1);
}

#wish-list > li.owner {
    background: #f3f3f3;
    padding-left: 1em;
}

.exclusion-button {
    vertical-align: sub;
    margin-left: 3px;
}

#popular_excluder.active svg {
    fill: var(--primary-light);
}

.exclusion-settings {
    background: var(--light-1);
    padding: .5em;
    border-radius: 4px;
    margin: 0 0 .25em;
}

ul.exclusion-choices {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.exclusion-choices > li {
    display: inline-block;
}

ul.exclusion-choices > li:not(:last-child) {
    margin-right: .75em;
}

ul.exclusion-choices > li > a.active {
    color: var(--dark-1);
}

.toast-holder {
    position: fixed;
    top: 140px;
    right: 5%;
    z-index: 5000;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 160px;
}

.toast-body.error {
    border-left: 4px solid red;
}

.toast-body.info {
    border-left: 4px solid var(--primary-dark);
}

#main {
    scroll-margin-top: 100px;
}

.content-skipper {
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    text-align: center;
    transform: translateY(-200%);
    z-index: 10;
    padding: .5em;
    max-width: 300px;
    background: var(--light-0);
    border: 2px solid var(--primary-light);
    transition: transform .3s ease-in-out;
    color: inherit;
}

.content-skipper:focus {
    transform: translateY(0%);
}

.image-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1em;
}

.image-list .img-fluid {
    margin: 0 auto;
    max-height: 220px;
    border-radius: 4px;
}

.image-detail {
    display: grid;
    border: 2px solid var(--light-1);
    border-radius: 4px;
    align-items: end;
    background: var(--light-1);
    padding: .1rem;
    width: 100%;
}

.image-detail span {
    user-select: all;
}

textarea.expandable {
    height: 9rem;
    transition: height .4s;
}

.fs-16,
.pw-text {
    font-size: 16px;
}

.svg-group {
    display: inline-flex;
    align-items: center;
}

.danger-area {
    background: #dc3545;
    color: #f8f9fa;
}

.danger-area input,
.danger-area select {
    border: 0;
}

.dropdown-menu.icon-assisted .dropdown-item {
    padding: .5rem 1.5rem;
    font-size: 1rem;
}

.dropdown-menu.icon-assisted .dropdown-item:focus svg,
.dropdown-menu.icon-assisted .dropdown-item:active svg {
    color: inherit;
}

.dropdown-menu.icon-assisted .dropdown-item > svg {
    --icon-color: rgba(27, 27, 27, .75);

    margin-right: 1em;
    height: 1.35rem;
    width: 1.35rem;
    color: var(--icon-color); /* Not 'fill' for :hov effects! */
}

body.dark .dropdown-menu.icon-assisted .dropdown-item > svg {
    --icon-color: rgba(255, 255, 255, .75);
}

.mobile-nav-wrapper {
    background: var(--light-0);
    position: fixed;
    bottom: 0;
    display: none;
    width: 100%;
}

nav.mobile-nav {
    background: inherit;
    display: grid;
    grid-template-columns: repeat(6, max-content); /* 1903: bildirim eklendi */
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--light-1);
    height: 50px;
    position: relative;
    bottom: env(safe-area-inset-bottom);
}

nav.mobile-nav > a {
    color: var(--dark-0);
    max-height: 28px;
    position: relative;
}

nav.mobile-nav > a.active {
    color: var(--primary-light);
}

nav#user-navigation > a > .user-badge,
nav.mobile-nav > a .user-badge {
    z-index: 10;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--primary-light-matt);
    color: var(--light-0);
}

/** MEDIA QUERIES **/

/** CONTAINER WIDTHS **/
@media (min-width: 576px) {
    .container {
        max-width: 776px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 968px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1192px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }
}

/** CONTAINER WIDTHS END **/

@media (max-width: 1092px) {
    .content {
        flex-direction: column;
    }

    .content-frame {
        width: calc(100% - 250px);
    }

    .lf-hidden > .content-frame {
        margin: 0 auto;
    }

    .right-frame {
        margin-top: 1em;
        margin-left: calc(250px + 1em);
        width: calc(100% - 250px - 2em);
    }

    .lf-hidden > .right-frame {
        width: 730px;
        margin: 1em auto 0;
    }

    footer.body-footer > ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .search-dates {
        grid-template-columns: none;
        grid-gap: 0;
    }
}

/** MOBILE VERSION SWITCH **/
@media (max-width: 810px) {
    .content {
        margin-top: 90px;
        padding-top: .75em;
    }

    nav.sub-nav ul.mobile-only {
        display: flex;
    }

    nav.sub-nav ul li a {
        padding-bottom: .5em;
    }

    nav.sub-nav ul.desktop-only,
    nav#user-navigation,
    body .left-frame,
    nav.usermenu {
        display: none !important;
    }

    .mobile-nav-wrapper {
        display: block;
    }

    body#au {
        margin-bottom: 50px; /* space occupied by nav.mobile-nav */
    }

    .top-bar {
        margin-bottom: .25em;
    }

    .right-frame,
    .lf-hidden > .right-frame {
        margin-top: 1em;
        width: 100%;
        margin-left: 0;
    }

    body .content-frame {
        display: block;
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    nav.sub-nav ul li,
    nav.sub-nav ul li.active,
    nav.sub-nav ul li:hover {
        border-bottom: none;
    }

    .stretch-mobile {
        width: 100%;
    }
}

/** MOBILE VERSION SWITCH END **/

@media (min-width: 615px) {
    header.entry-individual > .mobile {
        display: none;
    }

    .settings-nav-mobile {
        display: none;
    }
}

@media (max-width: 615px) {
    .logo {
        width: 40px;
    }

    .logo a {
        background: var(--logo-small);
        background-size: 40px 40px;
    }

    .pagination a,
    .pagination select {
        max-height: 26px;
    }

    section.user_entries ul li.entry-full:not(:first-child) {
        margin-top: .75em;
    }

    section.user_entries article.entry {
        padding-top: 0;
    }

    header.entry-individual > .mobile {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        margin-bottom: .75em;
    }

    header.entry-individual > .mobile > a.permalink {
        font-size: 90%;
        line-height: .75;
        color: var(--dark-1);
    }

    footer.entry-footer > .feedback {
        display: grid;
        grid-template-columns: 75px 50px auto;
        height: 21px;
        grid-gap: 25px;
    }

    footer.entry-footer > .feedback > .social {
        grid-template-columns: repeat(2, 25px);
        justify-content: end;
        order: 3;
        grid-gap: 25px;
    }

    footer.entry-footer > .feedback > .votes {
        grid-gap: 25px;
    }

    section.user_entries ul li.entry-full.owner footer.entry-footer > .feedback,
    body#ua section.user_entries ul li.entry-full footer.entry-footer > .feedback {
        grid-template-columns: 50px auto;
    }

    footer.entry-footer > .feedback > div {
        grid-template-columns: repeat(2, 1fr);
        align-content: center;
    }

    footer.entry-footer > .meta {
        display: none;
    }

    .image-list {
        grid-template-columns: 1fr;
    }

    .image-list .img-fluid {
        max-height: initial;
    }

    .settings-nav-expander {
        display: block;
    }

    .settings-nav-tabs {
        display: none;
    }
}

@media (max-width: 525px) {
    header.entry_header > .lower {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        grid-gap: .75rem;
    }

    header.entry_header > .lower:not(.paginated) {
        grid-gap: 0;
    }

    body#ua header.entry_header > .lower {
        grid-template-columns: max-content max-content;
        grid-template-rows: none;
    }

    header.entry_header > .lower > .pagination {
        justify-content: flex-end;
    }

    header.entry_header > .lower > .title_sub {
        justify-content: space-between;
        grid-gap: 0;
    }

    body#ua header.entry_header > .lower > .title_sub {
        grid-template-columns: max-content max-content;
        grid-gap: 1.25rem;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    body#ua header.entry_header > .lower {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
    }

    .logo {
        width: 50px;
    }
}

@media (max-width: 380px) {
    .logo {
        width: 70px;
    }
}

@media (max-width: 350px) {
    header.entry_header > .lower > .title_sub {
        grid-template-columns: max-content;
        grid-gap: .75rem;
    }
}

@media (max-width: 300px) {
    body#au form.header-search-form {
        display: none;
    }

    .topic-search-expander {
        display: block;
    }

    .logo {
        width: 120px;
    }

    .logo a {
        background: var(--logo-big);
        background-size: 120px 40px;
    }
}

@media (max-width: 225px) {
    .small-device-alert {
        display: block;
        background: red;
        color: #fff;
    }
}

/* 1903: entry içi gömmeler */
.entry-embeds {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: .5rem 0 .75rem;
    max-width: 560px;
}

.entry-embed.embed-youtube {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.entry-embed.embed-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entry-embed blockquote {
    margin: 0;
}

.entry-embed.embed-tiktok {
    width: 325px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.entry-embed.embed-tiktok iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 1903: editördeki gömme düğmeleri ve bağlantı penceresi */
.editor-buttons button.embed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    min-width: 2em;
}

.editor-buttons button.embed-btn svg {
    width: 16px;
    height: 16px;
    margin: .2em 0;
}

.editor-buttons button.embed-btn:hover {
    color: var(--primary-light);
}

.embed-dialog {
    border: none;
    border-radius: 8px;
    padding: 1.25rem;
    width: min(460px, calc(100vw - 32px));
    background: var(--light-0);
    color: var(--text-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.embed-dialog::backdrop {
    background: rgba(0, 0, 0, .5);
}

.embed-dialog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .75rem;
}

.embed-dialog-hint {
    font-size: .85rem;
    color: var(--dark-1);
    margin: .5rem 0 0;
    overflow-wrap: anywhere;
}

.embed-dialog-error {
    font-size: .9rem;
    color: #c8102e;
    margin: .5rem 0 0;
}

body.dark .embed-dialog-error {
    color: #ff4d5e;
}

.embed-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}

/* 1903: tema seçici (açık / koyu / sistem) */
.theme-switch {
    display: inline-flex;
    background: var(--light-1);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.theme-switch .btn {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-size: .8rem;
    line-height: 1;
    padding: .35em .55em;
    margin: 0;
    border: 0;
    border-radius: 4px;
    color: var(--dark-1);
    background: transparent;
}

.theme-switch .btn:hover {
    color: var(--text-light);
}

.theme-switch .btn.active {
    background: var(--light-0);
    color: var(--primary-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

body.dark .theme-switch {
    background: var(--light-2);
}

body.dark .theme-switch .btn.active {
    background: var(--light-0);
}

/* 1903: sembol rozetler */
.author-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: .2em;
    line-height: 1;
    color: var(--dark-1);
}

.author-mark.mark-verified {
    color: #c8102e;
}

body.dark .author-mark.mark-verified {
    color: #ff4d5e;
}

.author-mark.mark-milestone {
    font-size: .6rem;
    font-weight: 700;
    min-width: 1.6em;
    height: 1.6em;
    padding: 0 .35em;
    border-radius: 99px;
    background: var(--light-1);
    color: var(--text-light);
}

.author-mark.mark-m1000,
.author-mark.mark-m10000 {
    background: #111;
    color: #fff;
}

.author-mark.mark-m10000 {
    background: #c8102e;
}

body.dark .author-mark.mark-milestone {
    background: var(--light-2);
}

body.dark .author-mark.mark-m1000 {
    background: #fff;
    color: #111;
}

body.dark .author-mark.mark-m10000 {
    background: #e8283f;
    color: #fff;
}

h1 .author-mark svg {
    width: 18px;
    height: 18px;
}

/* 1903: kayıt formunda kullanıcı adı durumu */
.username-status.is-free {
    color: #1a7f37;
}

.username-status.is-taken {
    color: #c8102e;
}

body.dark .username-status.is-free {
    color: #4ac26b;
}

body.dark .username-status.is-taken {
    color: #ff4d5e;
}

/* 1903: benzer başlıklar */
.topic-categories-list.similar-topics {
    margin-top: 1em;
}

section.topic-categories-list.similar-topics ul li {
    display: block;
    margin: 0 0 .35em;
}

/* 1903: başlıkta sabitlenmiş entry */
li.pinned-entry-label {
    list-style: none;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary-light);
    margin: .5rem 0 -.25rem;
}

li.pinned-entry-label + li {
    border-left: 3px solid var(--primary-light);
    padding-left: .75rem;
}

/* 1903: profil fotoğrafı */
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: .6rem;
    background: var(--light-1);
}

.avatar-settings {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.avatar-preview img,
.avatar-preview .avatar-fallback {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-preview .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c8102e;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

/* 1903: profilde öne çıkanlar */
.profile-highlights {
    margin-top: 1rem;
}

.profile-highlights h2 {
    font-weight: 700;
    text-transform: lowercase;
    color: var(--primary-light);
}

.profile-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.profile-highlights li {
    background: var(--light-1);
    border-radius: 6px;
    padding: .6rem .8rem;
}

.profile-highlights .hl-topic {
    display: block;
    font-weight: 700;
    margin-bottom: .2rem;
}

.profile-highlights .hl-text {
    color: var(--text-light);
    font-size: .9rem;
}

body.dark .profile-highlights li {
    background: var(--light-2);
}

/* 1903: bildirimler sayfası */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .2rem;
    border-bottom: 1px solid var(--light-1);
}

.notification-list li.unread {
    border-left: 3px solid var(--primary-light);
    padding-left: .6rem;
}

.notification-list .n-date {
    color: var(--dark-1);
    font-size: .8rem;
    white-space: nowrap;
}

/* 1903: iki adımlı giriş */
.two-factor-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: 280px;
}

.two-factor-form input {
    font-size: 1.4rem;
    letter-spacing: .3em;
    text-align: center;
}

.two-factor-form .btn {
    align-self: flex-start;
}

.two-factor-steps li {
    margin-bottom: .8rem;
}

.two-factor-qr svg {
    display: block;
    margin: .5rem 0;
    border-radius: 6px;
}

.two-factor-secret {
    word-break: break-all;
}

/* Kartal Sözlük logosu (geniş logo masaüstünde, kartal simgesi dar ekranda) */
.logo {
    width: 280px;
}

.logo a {
    background-size: contain;
    background-position: left center;
}

@media (max-width: 615px) {
    .logo {
        width: 44px;
    }

    .logo a {
        background: var(--logo-small);
        background-size: contain;
        background-position: left center;
    }
}

/* 1903: maç paneli (canlı skor, akış, kadrolar, istatistik) */
.match-panel {
    --mp-bg: #111;
    --mp-fg: #fff;
    --mp-muted: rgba(255, 255, 255, .7);
    --mp-line: rgba(255, 255, 255, .12);
    --mp-red: #e8283f;
    margin: 0 0 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mp-bg);
    color: var(--mp-fg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.match-panel .mp-head,
.match-panel .mp-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .55rem .9rem;
    font-size: .8rem;
    color: var(--mp-muted);
}

.match-panel .mp-foot {
    border-top: 1px solid var(--mp-line);
}

.match-panel .mp-comp {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-transform: lowercase;
}

.match-panel .mp-comp img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
    padding: 1px;
}

.match-panel .mp-status {
    background: rgba(255, 255, 255, .12);
    border-radius: 99px;
    padding: .1rem .65rem;
    white-space: nowrap;
}

.match-panel.status-live .mp-status {
    background: var(--mp-red);
    color: #fff;
}

.match-panel .mp-minute {
    margin-left: .2rem;
    animation: mp-blink 1.2s steps(2, start) infinite;
}

@keyframes mp-blink {
    50% { opacity: .35; }
}

.match-panel .mp-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .8rem;
    padding: .5rem .9rem .4rem;
    background-image: linear-gradient(135deg, transparent 72%, rgba(200, 16, 46, .4) 72%, rgba(200, 16, 46, .4) 75%, transparent 75%);
}

.match-panel .mp-team {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.match-panel .mp-home {
    justify-content: flex-end;
    text-align: right;
}

.match-panel .mp-away {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.match-panel .mp-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.match-panel .mp-name {
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.match-panel .mp-score {
    font-size: 2rem;
    font-weight: 800;
    background: #fff;
    color: #111;
    border-radius: 8px;
    padding: .1rem .8rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.match-panel .mp-score i {
    font-style: normal;
    color: #c8102e;
    margin: 0 .3rem;
}

.match-panel .mp-kickoff {
    font-size: 1.5rem;
}

.match-panel .mp-scorers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 .9rem .5rem;
    font-size: .8rem;
    color: var(--mp-muted);
}

.match-panel .mp-scorers:empty {
    display: none;
}

.match-panel .mp-scorers ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-panel .mp-scorers-home {
    text-align: right;
}

.match-panel .mp-scorers span {
    color: var(--mp-fg);
    font-weight: 600;
}

.match-panel .mp-tabs {
    display: flex;
    border-top: 1px solid var(--mp-line);
    border-bottom: 1px solid var(--mp-line);
}

.match-panel .mp-tabs[hidden] {
    display: none;
}

.match-panel .mp-tabs button {
    flex: 1;
    background: none;
    border: 0;
    color: var(--mp-muted);
    padding: .55rem .4rem;
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.match-panel .mp-tabs button:hover {
    color: var(--mp-fg);
}

.match-panel .mp-tabs button[aria-selected=true] {
    color: var(--mp-fg);
    font-weight: 700;
    border-bottom-color: var(--mp-red);
}

.match-panel .mp-pane {
    padding: .7rem .9rem;
    max-height: 440px;
    overflow-y: auto;
}

.match-panel .mp-pane:empty,
.match-panel .mp-pane[hidden] {
    display: none;
}

.match-panel .mp-empty {
    margin: .3rem 0;
    color: var(--mp-muted);
    font-size: .85rem;
    text-align: center;
}

/* akış: ev sahibi solda, deplasman sağda, dakika ortada */
.match-panel .mp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.match-panel .mp-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--mp-line);
}

.match-panel .mp-ev {
    display: grid;
    grid-template-columns: 1fr 22px 2.8rem 22px 1fr;
    align-items: center;
    gap: .35rem;
    padding: .35rem 0;
    font-size: .85rem;
    border-radius: 6px;
}

.match-panel .mp-ev-min {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    background: var(--mp-bg);
    position: relative;
    z-index: 1;
    padding: 0 .2rem;
    font-weight: 700;
    font-size: .75rem;
    color: var(--mp-muted);
}

.match-panel .mp-ev-icon {
    grid-row: 1;
    width: 18px;
    height: 18px;
    color: var(--mp-fg);
}

.match-panel .mp-ev-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.match-panel .mp-ev-text {
    grid-row: 1;
    line-height: 1.25;
}

.match-panel .mp-ev.side-home .mp-ev-icon {
    grid-column: 2;
}

.match-panel .mp-ev.side-home .mp-ev-text {
    grid-column: 1;
    text-align: right;
}

.match-panel .mp-ev.side-away .mp-ev-icon {
    grid-column: 4;
}

.match-panel .mp-ev.side-away .mp-ev-text {
    grid-column: 5;
}

.match-panel .mp-ev-text small {
    display: block;
    color: var(--mp-muted);
    font-size: .72rem;
}

.match-panel .mp-ev-sub,
.match-panel .mp-ev-out {
    color: var(--mp-muted);
}

.match-panel .mp-ev.ev-goal {
    background: linear-gradient(90deg, transparent, rgba(232, 40, 63, .18), transparent);
}

/* kadrolar: saha dizilişi */
.match-panel .mp-pitch {
    background: repeating-linear-gradient(0deg, #1d6b34 0 34px, #1a6230 34px 68px);
    border-radius: 8px;
    padding: .6rem .3rem;
    margin-bottom: .8rem;
}

.match-panel .mp-half {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.match-panel .mp-half.half-home {
    border-bottom: 2px solid rgba(255, 255, 255, .35);
    padding-bottom: .7rem;
    margin-bottom: .7rem;
}

.match-panel .mp-line {
    display: flex;
    justify-content: space-around;
}

.match-panel .mp-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    min-width: 0;
    flex: 1;
}

.match-panel .mp-player b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.match-panel .half-away .mp-player b {
    background: #111;
    color: #fff;
    border: 2px solid var(--mp-red);
}

.match-panel .mp-player em {
    font-style: normal;
    font-size: .68rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.match-panel .mp-rosters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: .82rem;
}

.match-panel .mp-roster h4 {
    font-size: .9rem;
    margin: 0 0 .3rem;
}

.match-panel .mp-roster h4 small,
.match-panel .mp-roster li small,
.match-panel .mp-coach {
    color: var(--mp-muted);
}

.match-panel .mp-roster h5 {
    font-size: .75rem;
    margin: .6rem 0 .2rem;
    color: var(--mp-muted);
}

.match-panel .mp-roster ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-panel .mp-roster li b {
    display: inline-block;
    min-width: 1.6em;
    color: var(--mp-muted);
}

.match-panel .mp-coach {
    margin: .5rem 0 0;
    font-size: .75rem;
}

/* istatistik */
.match-panel .mp-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}

.match-panel .mp-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
}

.match-panel .mp-stat-row span {
    color: var(--mp-muted);
}

.match-panel .mp-bar {
    display: flex;
    gap: 3px;
    height: 6px;
    margin-top: .2rem;
}

.match-panel .mp-bar i {
    border-radius: 3px;
    background: #fff;
    transition: width .6s ease;
}

.match-panel .mp-bar i + i {
    background: var(--mp-red);
}

/* bilgi */
.match-panel .mp-info {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem 1rem;
    margin: 0;
    font-size: .85rem;
}

.match-panel .mp-info dt {
    color: var(--mp-muted);
    font-weight: 400;
}

.match-panel .mp-info dd {
    margin: 0;
}

/* gol olunca kısa vurgu */
.match-panel.mp-goal-flash .mp-score {
    animation: mp-goal 1s ease-in-out 3;
}

@keyframes mp-goal {
    50% { transform: scale(1.12); background: var(--mp-red); color: #fff; }
}

@media (max-width: 520px) {
    .match-panel .mp-name {
        font-size: .9rem;
    }

    .match-panel .mp-logo img {
        width: 28px;
        height: 28px;
    }

    .match-panel .mp-score {
        font-size: 1.4rem;
        padding: .05rem .5rem;
    }

    .match-panel .mp-rosters {
        grid-template-columns: 1fr;
    }

    .match-panel .mp-scorers {
        gap: 1rem;
    }
}

.match-panel .mp-pane[data-pane=lineups] {
    max-height: none;
}

/* 1903: ön yüz moderasyonu */
.mod-links {
    display: inline-flex;
    gap: .6rem;
    margin-left: .4rem;
    font-size: .85em;
}

.mod-links a {
    color: var(--dark-1);
    cursor: pointer;
}

.mod-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.mod-links .mod-danger {
    color: #c8102e;
}

.mod-entry {
    margin: 0 .6rem 0 0;
}

.mod-dialog {
    border: none;
    border-radius: 8px;
    padding: 1.25rem;
    width: min(480px, calc(100vw - 32px));
    background: var(--light-0);
    color: var(--text-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.mod-dialog::backdrop {
    background: rgba(0, 0, 0, .5);
}

.mod-dialog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.mod-dialog-text {
    font-size: .88rem;
    color: var(--dark-1);
    margin: 0 0 .75rem;
}

.mod-dialog-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .6rem;
}

.mod-reason {
    border: 1px solid var(--light-2);
    background: var(--light-1);
    color: var(--text-light);
    border-radius: 99px;
    padding: .2rem .65rem;
    font-size: .8rem;
    cursor: pointer;
}

.mod-reason:hover {
    border-color: #c8102e;
}

.mod-dialog-error {
    color: #c8102e;
    font-size: .88rem;
    margin: .5rem 0 0;
}

.mod-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}

.mod-dialog .mod-danger-btn {
    background: #c8102e !important;
    border-color: #c8102e !important;
    color: #fff !important;
}

a.mention {
    font-weight: 600;
}

.notification-list .n-topic {
    color: var(--dark-1);
}

.notification-list .n-message {
    margin-top: .2rem;
    font-size: .85rem;
    color: var(--dark-1);
    border-left: 2px solid var(--light-2);
    padding-left: .5rem;
}

.notification-list li.kind-m_e_del,
.notification-list li.kind-m_t_del {
    border-left-color: #c8102e;
}

/* moderasyon bağlantıları entry altındaki ızgaraya ayrı sütun olarak girer */
footer.entry-footer > .meta:has(> .mod-entry) {
    grid-template-columns: auto auto auto 25px;
}

/* telefonda üstteki nick satırında */
.entry-individual .mobile .mod-entry {
    margin-left: .6rem;
    font-size: .8rem;
}

/* moderasyon simgeleri */
.mod-links {
    align-items: center;
    gap: .45rem;
}

.mod-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.mod-links a:hover {
    background: var(--light-1);
    text-decoration: none;
}

.mod-links .mod-icon {
    display: block;
}

.mod-links .mod-active {
    color: var(--primary-light);
}

/* 1903: mobilde yazar adı ve tarih masaüstündeki gibi entry'nin altında */
@media (max-width: 615px) {
    header.entry-individual > .mobile {
        display: none;
    }

    footer.entry-footer {
        grid-template-columns: 1fr;
    }

    footer.entry-footer > .meta,
    footer.entry-footer > .meta:has(> .mod-entry) {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: .15rem .5rem;
        margin-top: .45rem;
    }
}

/* 1903: reklamlar */
.ad-slot { position: relative; margin: 0 0 1em; text-align: center; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; display: inline-block; }
.ad-label { display: block; font-size: 10px; letter-spacing: .05em; color: var(--muted, #888); text-align: right; line-height: 1.6; }
.ad-entry { list-style: none; margin: 1.5em 0; }
.ad-entry .ad-slot { margin: 0; }
.ad-alt { margin-top: 1.5em; }
.ad-sag_sabit { position: sticky; top: calc(94px + 1.5em); }
.ad-yapiskan_alt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; margin: 0; padding: 4px 28px 4px 4px;
    background: var(--body-bg); border-top: 1px solid var(--light-1, #ddd); box-shadow: 0 -2px 8px rgba(0, 0, 0, .15); }
.ad-yapiskan_alt .ad-label { position: absolute; left: 6px; top: 0; }
.ad-close { position: absolute; top: 2px; right: 4px; border: 0; background: none; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; }

.sponsored-topics { margin-bottom: 0; }
.sponsored-topics .sponsored a { font-weight: 700; }
.sponsor-label { margin-left: .4em; font-weight: 400; font-size: 10px; text-transform: lowercase; opacity: .75; color: var(--muted, #888); white-space: nowrap; }
/* Kartal Sözlük: sponsorlu satırda sağ sütun etikete göre genişler (entry sayısı sütunu 35 px, etiket sığmıyordu) */
ul.topic-list.sponsored-topics li a { grid-template-columns: 1fr auto; }

/* tema reklamı (web): arka plan görseli iki yanda ve üstte görünür, tıklanır */
body.kampanya > .container.content { position: relative; z-index: 1; background: var(--body-bg); box-shadow: 0 0 0 1em var(--body-bg); }
.kampanya-zemin { position: fixed; inset: 0; z-index: 0; display: block; }
.kampanya-cubuk { position: fixed; top: 94px; left: 50%; transform: translateX(-50%); z-index: 1030; padding-top: 6px; }
.kampanya-kapat { border: 0; border-radius: 0 0 4px 4px; padding: 3px 12px; font-size: 12px; cursor: pointer;
    background: rgba(0, 0, 0, .7); color: #fff; }
.kampanya-kapat:hover { background: #000; }
.kampanya-mobil { position: relative; margin: -1em 0 1em; }
.kampanya-mobil img { display: block; width: 100%; height: auto; }
.kampanya-mobil .kampanya-kapat { position: absolute; right: 0; bottom: 0; border-radius: 4px 0 0 0; }

/* 1903: şairler parkı */
.park-kutu { border: 1px solid var(--light-1, #ddd); border-radius: 4px; padding: .6em .75em; margin-bottom: 1em; max-width: 250px; }
.park-kutu header { display: flex; justify-content: space-between; align-items: center; }
.park-kapat { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .7; }
.park-sayi { display: block; color: var(--muted, #888); margin-bottom: .4em; }
.park-yazarlar { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow-y: auto; }
.park-yazarlar li { padding: 1px 0; font-size: .95em; }

/* Kartal Sözlük: sabitlenen başlıklar (bugün ve gündemde en üstte) kalın */
#topic-list .list-group-item.pinned > a,
.topic-list .list-group-item.pinned > a {
    font-weight: 700;
}

/* Kartal Sözlük: çerez onay çubuğu */
.cerez-cubugu { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1050; max-width: 760px; margin: 0 auto;
    background: var(--body-bg, #fff); color: inherit; border: 1px solid rgba(127, 127, 127, .35); border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25); padding: 12px 14px; font-size: 14px; }
.cerez-cubugu[hidden] { display: none; }
.cerez-metin { margin: 0 0 10px; line-height: 1.45; }
.cerez-dugmeler { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cerez-dugme { border: 1px solid var(--primary, #c8102e); background: var(--primary, #c8102e); color: #fff; border-radius: 4px;
    padding: 6px 16px; cursor: pointer; font-size: 14px; }
.cerez-baglanti { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font-size: 13px; opacity: .8; }
.cerez-panel { margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.cerez-panel[hidden] { display: none; }
.cerez-secenek { margin: 0; display: flex; gap: 8px; align-items: center; }
.cerez-panel .cerez-dugme { align-self: flex-start; }
@media (max-width: 615px) { .cerez-cubugu { bottom: 64px; left: 8px; right: 8px; font-size: 13px; } }
