/*
 * MagazinTürkiye design system
 * ---------------------------------------------------------------------------
 * A project-specific token layer on top of Bootstrap 5. The visual identity is
 * deliberately distinct: deep aubergine/ink backgrounds, a magenta-to-amber
 * editorial accent, tight display typography and card surfaces with soft
 * elevation rather than default Bootstrap chrome.
 */

:root {
    /* Brand palette */
    --mt-ink-900: #0c0a14;
    --mt-ink-800: #131020;
    --mt-ink-700: #1b1730;
    --mt-ink-600: #251f42;
    --mt-ink-500: #322a56;

    --mt-surface: #ffffff;
    --mt-surface-alt: #f6f4fb;
    --mt-surface-sunken: #eeeaf6;

    --mt-accent: #e0398a;
    --mt-accent-strong: #c0246f;
    --mt-accent-soft: #ffe4f1;
    --mt-gold: #f0a202;
    --mt-teal: #00b4d8;

    --mt-text: #16121f;
    --mt-text-muted: #6b6480;
    --mt-text-inverse: #f7f5fc;
    --mt-text-inverse-muted: #b6aecd;

    --mt-border: #e4e0ee;
    --mt-border-strong: #cfc9e0;

    --mt-success: #17936b;
    --mt-warning: #c77700;
    --mt-danger: #d33b45;
    --mt-info: #2f6fd0;

    /* Typography */
    --mt-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mt-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

    /* Spacing / shape */
    --mt-radius-sm: 8px;
    --mt-radius: 14px;
    --mt-radius-lg: 22px;
    --mt-shadow-sm: 0 1px 2px rgba(16, 12, 32, .06), 0 2px 8px rgba(16, 12, 32, .04);
    --mt-shadow: 0 4px 12px rgba(16, 12, 32, .08), 0 12px 32px rgba(16, 12, 32, .06);
    --mt-shadow-lg: 0 12px 32px rgba(16, 12, 32, .14), 0 32px 64px rgba(16, 12, 32, .10);

    --mt-container: 1240px;
    --mt-header-height: 68px;

    --mt-transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--mt-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--mt-text);
    background: var(--mt-surface-alt);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mt-font-display);
    font-weight: 700;
    letter-spacing: -.022em;
    line-height: 1.18;
    color: var(--mt-text);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

p { margin: 0 0 1rem; }

a {
    color: var(--mt-accent-strong);
    text-decoration: none;
    transition: color var(--mt-transition);
}

a:hover { color: var(--mt-accent); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Visible, high-contrast focus for keyboard users. */
:focus-visible {
    outline: 3px solid var(--mt-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.mt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: .75rem 1.25rem;
    background: var(--mt-ink-900);
    color: #fff;
    border-radius: 0 0 var(--mt-radius-sm) 0;
}

.mt-skip-link:focus {
    left: 0;
    color: #fff;
}

.mt-container {
    width: 100%;
    max-width: var(--mt-container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

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

/* ---------------------------------------------------------------- header */

.mt-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(12, 10, 20, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mt-header__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: var(--mt-header-height);
}

.mt-logo {
    display: inline-flex;
    align-items: baseline;
    gap: .12rem;
    font-family: var(--mt-font-display);
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: -.03em;
    color: #fff;
    white-space: nowrap;
}

.mt-logo:hover { color: #fff; text-decoration: none; }
.mt-logo__accent { color: var(--mt-accent); }

.mt-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}

.mt-nav__link {
    padding: .5rem .8rem;
    border-radius: var(--mt-radius-sm);
    color: var(--mt-text-inverse-muted);
    font-weight: 550;
    font-size: .94rem;
    transition: background var(--mt-transition), color var(--mt-transition);
}

.mt-nav__link:hover,
.mt-nav__link:focus {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    text-decoration: none;
}

.mt-nav__link[aria-current="page"] {
    color: #fff;
    background: rgba(224, 57, 138, .22);
}

.mt-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .3rem .35rem .3rem .9rem;
    /*
     * Sabit `min-width: 210px` idi: 768-1000px arası tabletlerde logo, menü
     * ve arama aynı satıra sığmayınca kutu ekranın dışına taşıyor ve sayfa
     * yatay kayıyordu (iPad dikeyde 100px taşma ölçüldü). Esnek taban
     * genişlik dar alanda küçülmeye izin verir, geniş ekranda görünüm aynı
     * kalır.
     */
    flex: 0 1 210px;
    min-width: 0;
    transition: border-color var(--mt-transition), background var(--mt-transition);
}

.mt-search:focus-within {
    background: rgba(255, 255, 255, .16);
    border-color: var(--mt-accent);
}

.mt-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: .9rem;
    padding: .18rem 0;
}

.mt-search__input::placeholder { color: rgba(255, 255, 255, .55); }
.mt-search__input:focus { outline: none; }

.mt-search__button {
    border: 0;
    background: var(--mt-accent-strong);
    color: #fff;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--mt-transition);
}

.mt-search__button:hover { background: #a81a5f; }

.mt-menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    color: #fff;
    border-radius: var(--mt-radius-sm);
    padding: .4rem .6rem;
    cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.mt-hero {
    position: relative;
    background: linear-gradient(135deg, var(--mt-ink-900), var(--mt-ink-600) 60%, var(--mt-ink-500));
    color: var(--mt-text-inverse);
    padding: clamp(2rem, 1rem + 4vw, 3.5rem) 0 clamp(2.5rem, 1rem + 5vw, 4rem);
    overflow: hidden;
}

.mt-hero::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -30%;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(224, 57, 138, .40), transparent 62%);
    pointer-events: none;
}

.mt-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: center;
}

.mt-hero h1 { color: #fff; margin-bottom: .75rem; }
.mt-hero p { color: var(--mt-text-inverse-muted); font-size: 1.05rem; max-width: 56ch; }

.mt-hero__media {
    border-radius: var(--mt-radius-lg);
    overflow: hidden;
    box-shadow: var(--mt-shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--mt-ink-700);
}

.mt-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- cards */

.mt-section {
    padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
}

.mt-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mt-section__title {
    margin: 0;
    position: relative;
    padding-left: .9rem;
}

.mt-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--mt-accent), var(--mt-gold));
}

.mt-section__link {
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.mt-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.mt-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.mt-grid--tight {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1rem;
}

.mt-card {
    display: flex;
    flex-direction: column;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    transition: transform var(--mt-transition), box-shadow var(--mt-transition), border-color var(--mt-transition);
    height: 100%;
}

.mt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mt-shadow);
    border-color: var(--mt-border-strong);
}

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

.mt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(.4, 0, .2, 1);
}

.mt-card:hover .mt-card__media img { transform: scale(1.04); }

.mt-card__media--portrait { aspect-ratio: 3 / 4; }
.mt-card__media--square { aspect-ratio: 1 / 1; }
/* Dizi/film afişleri 2:3 dikeydir; 16:9 kapta üstü altı kırpılıyordu.
   Kap oranı kaynağın oranına eşitlenince cover kırpmadan tam gösterir. */
.mt-card__media--poster { aspect-ratio: 2 / 3; }

.mt-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
}

.mt-card__title {
    font-family: var(--mt-font-display);
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.32;
    margin: 0;
    letter-spacing: -.015em;
}

.mt-card__title a { color: var(--mt-text); }
.mt-card__title a:hover { color: var(--mt-accent-strong); text-decoration: none; }

.mt-card__excerpt {
    font-size: .9rem;
    color: var(--mt-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-card__meta {
    margin-top: auto;
    padding-top: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--mt-text-muted);
    flex-wrap: wrap;
}

/* Stretched link keeps the whole card clickable without nesting anchors. */
.mt-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mt-card { position: relative; }

/* Feature card: larger editorial treatment. */
.mt-feature {
    position: relative;
    border-radius: var(--mt-radius-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--mt-ink-700);
    box-shadow: var(--mt-shadow);
}

.mt-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-feature__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 20, .05) 30%, rgba(12, 10, 20, .82) 78%, rgba(12, 10, 20, .94));
}

.mt-feature__body {
    position: relative;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    width: 100%;
}

.mt-feature__title {
    color: #fff;
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
    margin: .5rem 0 .5rem;
    text-wrap: balance;
}

.mt-feature__title a { color: #fff; }
.mt-feature__title a:hover { color: #fff; text-decoration: none; }
.mt-feature__excerpt { color: rgba(255, 255, 255, .84); margin: 0; max-width: 62ch; }

/* ---------------------------------------------------------------- badges */

.mt-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--mt-accent-soft);
    color: var(--mt-accent-strong);
    white-space: nowrap;
}

.mt-badge--dark { background: rgba(255, 255, 255, .16); color: #fff; }
.mt-badge--gold { background: #fff2d6; color: #8a5b00; }
.mt-badge--teal { background: #d9f4fb; color: #006781; }
.mt-badge--muted { background: var(--mt-surface-sunken); color: var(--mt-text-muted); }
.mt-badge--success { background: #daf3ea; color: #0d6b4d; }
.mt-badge--warning { background: #fdefd6; color: #8a5300; }
.mt-badge--danger { background: #fbe0e2; color: #97242c; }
.mt-badge--info { background: #dfeafb; color: #1c4f9c; }

.mt-rank {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--mt-ink-800);
    color: #fff;
    font-family: var(--mt-font-display);
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}

.mt-rank--1 { background: linear-gradient(140deg, var(--mt-gold), #d98600); }
.mt-rank--2 { background: linear-gradient(140deg, #b9b6c8, #8d8a9e); }
.mt-rank--3 { background: linear-gradient(140deg, #cf9c6a, #a9703f); }

/* --------------------------------------------------------------- profile */

.mt-profile {
    background: linear-gradient(135deg, var(--mt-ink-900), var(--mt-ink-600));
    color: var(--mt-text-inverse);
    padding-block: clamp(1.75rem, 1rem + 3vw, 3rem);
}

.mt-profile__grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
    align-items: start;
}

.mt-profile__portrait {
    border-radius: var(--mt-radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--mt-ink-700);
    box-shadow: var(--mt-shadow-lg);
}

.mt-profile__portrait img { width: 100%; height: 100%; object-fit: cover; }

.mt-profile h1 { color: #fff; margin-bottom: .35rem; }
.mt-profile__lede { color: var(--mt-text-inverse-muted); font-size: 1.05rem; max-width: 62ch; }

.mt-factlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .9rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.mt-factlist dt,
.mt-factlist__label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .12rem;
}

.mt-factlist dd,
.mt-factlist__value {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

/* ------------------------------------------------------------- prose/art */

.mt-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    align-items: start;
}

/*
 * Grid items default to min-width:auto, so a single wide descendant (a table,
 * a long unbroken word) stretches its column and overflows the page. Allowing
 * them to shrink keeps overflow contained where it belongs.
 */
.mt-article-layout > * {
    min-width: 0;
}

.mt-prose {
    font-size: 1.06rem;
    line-height: 1.75;
    color: #241f31;
}

.mt-prose p { margin-bottom: 1.15rem; }
.mt-prose h2 { margin-top: 2rem; }
.mt-prose a { text-decoration: underline; }

.mt-panel {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--mt-shadow-sm);
}

.mt-panel + .mt-panel { margin-top: 1.25rem; }

.mt-panel__title {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--mt-text-muted);
    margin-bottom: .85rem;
    font-family: var(--mt-font-body);
    font-weight: 700;
}

/* Provenance block: sources are a first-class, visible product feature. */
.mt-sources {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.mt-sources li {
    font-size: .86rem;
    padding-left: .85rem;
    border-left: 3px solid var(--mt-accent-soft);
    color: var(--mt-text-muted);
}

.mt-sources strong { color: var(--mt-text); display: block; font-size: .9rem; }

.mt-disclosure {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    background: #fff8ec;
    border: 1px solid #f3dfbc;
    border-radius: var(--mt-radius);
    padding: .85rem 1rem;
    font-size: .88rem;
    color: #6b4b12;
}

.mt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: .84rem;
    color: var(--mt-text-muted);
}

.mt-breadcrumb li::after { content: "›"; margin-left: .4rem; opacity: .5; }
.mt-breadcrumb li:last-child::after { content: ""; }

/* --------------------------------------------------------------- listing */

.mt-list-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .85rem 0;
    border-bottom: 1px solid var(--mt-border);
    position: relative;
}

.mt-list-row:last-child { border-bottom: 0; }

.mt-list-row__thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--mt-radius-sm);
    overflow: hidden;
    background: var(--mt-surface-sunken);
    flex-shrink: 0;
}

.mt-list-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-list-row__body { min-width: 0; flex: 1; }
.mt-list-row__title { font-weight: 650; margin: 0 0 .15rem; font-size: .98rem; }
.mt-list-row__title a { color: var(--mt-text); }
.mt-list-row__meta { font-size: .8rem; color: var(--mt-text-muted); margin: 0; }

.mt-trend-delta { font-size: .78rem; font-weight: 700; }
.mt-trend-delta--up { color: var(--mt-success); }
.mt-trend-delta--down { color: var(--mt-danger); }
.mt-trend-delta--flat { color: var(--mt-text-muted); }

/* ----------------------------------------------------------------- forms */

.mt-input {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--mt-border-strong);
    border-radius: var(--mt-radius-sm);
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--mt-text);
    transition: border-color var(--mt-transition), box-shadow var(--mt-transition);
}

.mt-input:focus {
    outline: none;
    border-color: var(--mt-accent);
    box-shadow: 0 0 0 3px rgba(224, 57, 138, .16);
}

.mt-label {
    display: block;
    font-size: .85rem;
    font-weight: 650;
    margin-bottom: .35rem;
    color: var(--mt-text);
}

.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .62rem 1.15rem;
    border-radius: var(--mt-radius-sm);
    border: 1px solid transparent;
    font-weight: 650;
    font-size: .93rem;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--mt-transition), color var(--mt-transition), border-color var(--mt-transition);
    text-decoration: none;
}

/* Solid buttons use the darker accent: white on --mt-accent is only 4.1:1,
   below the WCAG AA 4.5:1 threshold, while --mt-accent-strong reaches 5.6:1. */
.mt-btn--primary { background: var(--mt-accent-strong); color: #fff; }
.mt-btn--primary:hover { background: #a81a5f; color: #fff; text-decoration: none; }

.mt-btn--ghost {
    background: transparent;
    border-color: var(--mt-border-strong);
    color: var(--mt-text);
}

.mt-btn--ghost:hover { background: var(--mt-surface-sunken); color: var(--mt-text); text-decoration: none; }

.mt-btn--danger { background: var(--mt-danger); color: #fff; }
.mt-btn--sm { padding: .4rem .75rem; font-size: .84rem; }

.mt-alert {
    padding: .85rem 1.1rem;
    border-radius: var(--mt-radius-sm);
    margin-bottom: 1.25rem;
    font-size: .92rem;
    border: 1px solid transparent;
}

.mt-alert--success { background: #e8f7f1; border-color: #b9e6d5; color: #0d6b4d; }
.mt-alert--error { background: #fdecee; border-color: #f5c9ce; color: #97242c; }
.mt-alert--info { background: #e9f1fd; border-color: #c6dbf7; color: #1c4f9c; }
.mt-alert--warning { background: #fdf4e3; border-color: #f2ddb4; color: #8a5300; }

/* ---------------------------------------------------------------- footer */

.mt-footer {
    background: var(--mt-ink-900);
    color: var(--mt-text-inverse-muted);
    padding-block: 2.75rem 1.75rem;
    margin-top: 3rem;
}

.mt-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.mt-footer h2 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #fff;
    margin-bottom: .9rem;
    font-family: var(--mt-font-body);
    font-weight: 700;
}

.mt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mt-footer a { color: var(--mt-text-inverse-muted); font-size: .9rem; }
.mt-footer a:hover { color: #fff; }

.mt-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 1.25rem;
    font-size: .82rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------ pagination */

.mt-pagination {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.mt-pagination a,
.mt-pagination span {
    display: grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding-inline: .6rem;
    border-radius: var(--mt-radius-sm);
    border: 1px solid var(--mt-border);
    background: #fff;
    color: var(--mt-text);
    font-size: .9rem;
    font-weight: 600;
}

.mt-pagination a:hover { border-color: var(--mt-accent); color: var(--mt-accent-strong); text-decoration: none; }
.mt-pagination [aria-current="page"] { background: var(--mt-accent-strong); border-color: var(--mt-accent-strong); color: #fff; }

.mt-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mt-text-muted);
}

/* --------------------------------------------------------------- utility */

.mt-stack > * + * { margin-top: var(--mt-stack-gap, 1rem); }
.mt-muted { color: var(--mt-text-muted); }
.mt-small { font-size: .85rem; }
.mt-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-mt-0 { margin-top: 0; }
.mt-mb-0 { margin-bottom: 0; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 992px) {
    .mt-hero__grid { grid-template-columns: 1fr; }
    .mt-article-layout { grid-template-columns: 1fr; }
    .mt-footer__grid { grid-template-columns: 1fr 1fr; }
}

/*
 * Başlık, menü ve arama: 992px altında mobil düzene geçer.
 *
 * Eşik 768px idi ama kırılma noktası yanlış yerdeydi: 800-990px arası
 * tabletlerde altı menü maddesi, logo ve arama kutusu tek satıra sığmıyor,
 * arama 69px'e kadar eziliyor ve kullanılamaz hale geliyordu. Menünün
 * hamburger'e geçtiği nokta, öğelerin gerçekten sığmayı bıraktığı noktadır.
 */
@media (max-width: 992px) {
    .mt-menu-toggle { display: inline-flex; order: 3; }

    /* Menü akışta bir satır olarak açıldığı için çubuk sarabilmeli.
       height yerine min-height: kapalıyken yükseklik aynı kalır, menü
       açılınca çubuk kendiliğinden uzar. */
    .mt-header__bar {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--mt-header-height);
        row-gap: .35rem;
    }

    /*
     * Açılır menü, başlık çubuğunun bir satırı olarak akışta durur.
     *
     * Önce `position:absolute; top:<başlık yüksekliği>` kullanılıyordu. Dar
     * telefonlarda çubuk iki satıra sarıldığı için gerçek yükseklik sabitten
     * (68px) büyük oluyor, hesaplanan `top` negatife düşüyor ve menü ekranın
     * üstünde, görünmez bir yere açılıyordu: kullanıcı düğmeye basıyor ama
     * hiçbir şey görmüyordu.
     *
     * Akışta bırakmak bu sınıfı tamamen ortadan kaldırır: çubuk kaç satıra
     * sararsa sarsın menü her zaman onun hemen altındadır.
     */
    .mt-nav {
        display: none;
        order: 5;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .25rem 0 .5rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
        /* Menü ekrandan uzunsa kendi içinde kaydırılır; sticky başlık
           yüzünden alt maddelere hiç ulaşılamamasını önler. */
        max-height: calc(100dvh - var(--mt-header-height) - 2rem);
        overflow-y: auto;
    }

    .mt-nav.is-open { display: flex; }

    /* Dokunma hedefi en az 44px: WCAG 2.5.8 ve parmakla isabet için. */
    .mt-nav__link {
        padding: .75rem .5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: var(--mt-radius-sm);
    }

    .mt-search { min-width: 0; flex: 1; margin-left: auto; }

    /*
     * iOS Safari, 16px'ten küçük yazı tipli bir alana dokunulduğunda sayfayı
     * kendiliğinden yakınlaştırır ve kullanıcı uzaklaştırana kadar site
     * kaymış görünür. 16px bunu tamamen önler; görsel boyut farkı ihmal
     * edilebilir, kazanç ise her aramada yaşanan sıçramanın kaybolmasıdır.
     */
    .mt-search__input { font-size: 16px; }
}

@media (max-width: 768px) {
    .mt-profile__grid { grid-template-columns: 1fr; }
    .mt-profile__portrait { max-width: 180px; }
    .mt-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

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

@media print {
    .mt-header, .mt-footer, .mt-search, .mt-nav { display: none; }
    body { background: #fff; }
}

/* -------------------------------------------------- search suggestions */

.mt-search-suggest {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow-lg);
    z-index: 950;
    overflow: hidden;
}

.mt-search-suggest ul { list-style: none; margin: 0; padding: .3rem; }

.mt-search-suggest a {
    display: block;
    padding: .55rem .7rem;
    border-radius: var(--mt-radius-sm);
    color: var(--mt-text);
    font-size: .9rem;
}

.mt-search-suggest a:hover,
.mt-search-suggest a:focus {
    background: var(--mt-surface-sunken);
    text-decoration: none;
}

/* Very narrow phones: the inline search would crowd the wordmark, so it
   moves to its own row beneath the header bar. */
@media (max-width: 520px) {
    .mt-header__bar {
        padding-block: .6rem;
    }

    .mt-logo { font-size: 1.12rem; }

    .mt-menu-toggle { margin-left: auto; order: 2; }

    .mt-search {
        order: 4;
        flex-basis: 100%;
        min-width: 0;
    }
}

/* Production pages use 16:9 key art rather than a portrait, so the media
   column is wider than on person profiles. */
.mt-profile__grid--wide { grid-template-columns: 360px 1fr; }

@media (max-width: 768px) {
    .mt-profile__grid--wide { grid-template-columns: 1fr; }
    .mt-profile__grid--wide .mt-profile__portrait { max-width: 100%; }
}

/* ------------------------------------------------- embeds, crew, episodes */

/*
 * Official video embeds. Trailers are never rehosted, so the frame has to sit
 * comfortably next to prose at any width; a fixed aspect box avoids layout
 * shift while the third-party iframe loads.
 */
.mt-embed {
    margin: 0 0 1.5rem;
}

.mt-embed__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--mt-radius, 12px);
    overflow: hidden;
    background: #140d1c;
    box-shadow: 0 10px 30px rgba(20, 8, 30, .18);
}

.mt-embed__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mt-embed figcaption {
    margin-top: .5rem;
}

/*
 * Crew list on the light content background. The hero factlist inverts its
 * colours for the dark banner, so this variant restores readable contrast.
 */
.mt-factlist--inline {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: .75rem;
}

.mt-factlist--inline dt {
    color: var(--mt-text-muted, #6b6478);
}

.mt-factlist--inline dd {
    color: var(--mt-text, #1d1626);
}

.mt-factlist--inline dd a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.mt-table caption {
    caption-side: bottom;
    text-align: left;
    padding-top: .6rem;
}

.mt-table th,
.mt-table td {
    padding: .55rem .7rem;
    text-align: left;
    border-bottom: 1px solid var(--mt-border, rgba(29, 22, 38, .12));
}

.mt-table thead th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mt-text-muted, #6b6478);
    border-bottom-width: 2px;
}

.mt-table tbody tr:last-child th,
.mt-table tbody tr:last-child td {
    border-bottom: 0;
}

/*
 * Long episode tables stay usable on narrow screens.
 *
 * min-width:0 is required: a grid item defaults to min-width:auto, which lets
 * a wide child stretch the whole column instead of scrolling inside it. Without
 * it the table pushes the entire page wider than the viewport.
 */
.mt-table-scroll {
    display: block;
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
}

/*
 * Card titles for entities that have no public page yet. Keeps the visual
 * rhythm of a linked title without pretending to be clickable.
 */
.mt-card__link--plain {
    cursor: default;
    text-decoration: none;
}

/*
 * Mobile adjustments for the sections above. Declared last so they win over
 * the base rules regardless of where those were appended in the file.
 */
@media (max-width: 768px) {
    /* One label/value pair per row keeps long crew names readable. */
    .mt-factlist--inline {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .mt-table {
        font-size: .85rem;
        /* Wider than the viewport on purpose: the scroll wrapper handles it,
           and squeezing four columns into 360px makes them unreadable. */
        min-width: 420px;
    }

    .mt-table th,
    .mt-table td {
        padding: .45rem .5rem;
        white-space: nowrap;
    }

    /* Episode titles may wrap; everything else stays on one line. */
    .mt-table td:nth-child(3) {
        white-space: normal;
        min-width: 140px;
    }

    .mt-embed {
        margin-bottom: 1.15rem;
    }
}

/*
 * Third-party data attribution. Required by the TMDB API terms, so it must
 * stay legible rather than being hidden as fine print.
 */
.mt-footer__attribution {
    display: block;
    max-width: 62ch;
    opacity: .85;
}

/* ==========================================================================
   MagazinTürkiye AI analiz bloğu
   Kendi görsel kimliği var (koyu yüzey, teal vurgu) ki okuyucu bunun
   editoryal bir AI değerlendirmesi olduğunu bir bakışta ayırt edebilsin;
   ancak tipografi ve aralıklar sitenin geri kalanıyla aynı ölçekte kalır.
   ========================================================================== */
.mt-ai {
    margin-block: 2rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border-radius: 18px;
    background: linear-gradient(150deg, var(--mt-ink-800) 0%, var(--mt-ink-600) 100%);
    color: #fff;
    /* Uzun metin ve uzun kelimeler dar ekranda taşmasın. */
    min-width: 0;
    overflow-wrap: anywhere;
}

.mt-ai__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}

.mt-ai__badge {
    display: inline-block;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: var(--mt-teal);
    color: var(--mt-ink-900);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.mt-ai__title {
    margin: 0;
    font-size: clamp(1.1rem, 2.6vw, 1.4rem);
    color: #fff;
}

.mt-ai__scoreboard {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.mt-ai__score {
    flex: 1 1 8rem;
    min-width: 0;
    padding: .8rem .9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.mt-ai__score--audience { background: rgba(255, 255, 255, .05); }
.mt-ai__score--diff { background: rgba(240, 162, 2, .16); }

.mt-ai__score-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .75;
}

.mt-ai__score-value {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

.mt-ai__score-value small {
    font-size: .5em;
    font-weight: 500;
    opacity: .7;
}

.mt-ai__score-note {
    display: block;
    font-size: .72rem;
    opacity: .7;
}

.mt-ai__metrics {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.mt-ai__metric {
    display: grid;
    /* Etiket ve değer sabit, çubuk kalan alanı alır. */
    grid-template-columns: minmax(6.5rem, 9rem) 1fr 2.5rem;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
}

.mt-ai__metric-name { min-width: 0; }

.mt-ai__metric-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}

.mt-ai__metric-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mt-teal), var(--mt-accent));
}

.mt-ai__metric-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.mt-ai__summary {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
}

.mt-ai__lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.mt-ai__list ul {
    margin: .35rem 0 0;
    padding-left: 1.1rem;
    font-size: .9rem;
    line-height: 1.6;
}

.mt-ai__list-title {
    margin: 0;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--mt-teal);
}

.mt-ai__list--weak .mt-ai__list-title { color: var(--mt-gold); }

.mt-ai__details {
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.mt-ai__details summary {
    cursor: pointer;
    font-weight: 600;
}

.mt-ai__details .mt-prose { margin-top: .75rem; }
.mt-ai__details .mt-prose p { color: rgba(255, 255, 255, .9); }

.mt-ai__disclosure {
    margin: 0;
    font-size: .78rem;
    line-height: 1.55;
    opacity: .72;
}

/* Kişi sayfasındaki performans listesi: her satır tek bir yapımdaki rol. */
.mt-ai-performances {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.mt-ai-performance {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    background: var(--mt-surface-alt);
}

.mt-ai-performance__year {
    font-variant-numeric: tabular-nums;
    opacity: .7;
    font-size: .85rem;
}

.mt-ai-performance__title {
    flex: 1 1 12rem;
    min-width: 0;
    font-weight: 600;
}

.mt-ai-performance__character {
    font-size: .85rem;
    opacity: .75;
}

.mt-ai-performance__score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--mt-accent-strong);
}

@media (max-width: 30rem) {
    .mt-ai__metric {
        grid-template-columns: 1fr 2.5rem;
    }

    /* Dar ekranda çubuk kendi satırına iner; etiket ve değer üstte kalır. */
    .mt-ai__metric-bar {
        grid-column: 1 / -1;
        order: 3;
    }
}

/* ==========================================================================
   Sosyal medya hesapları
   Platform renkleri bilerek kullanılmadı: sayfa MagazinTürkiye'nin, beş ayrı
   marka rengi tasarımı dağıtırdı. Ayrım ince bir kenarlıkla yapılır.
   ========================================================================== */
.mt-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.mt-social__item { min-width: 0; }

.mt-social__link {
    display: inline-flex;
    flex-direction: column;
    gap: .1rem;
    padding: .5rem .8rem;
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    background: var(--mt-surface);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.mt-social__link:hover,
.mt-social__link:focus-visible {
    border-color: var(--mt-accent);
    transform: translateY(-1px);
}

.mt-social__platform {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mt-accent-strong);
}

.mt-social__handle {
    font-size: .85rem;
    color: var(--mt-text);
    /* Uzun kullanıcı adları dar ekranda taşmasın. */
    overflow-wrap: anywhere;
}

.mt-embed {
    margin-block: .75rem;
    padding: .9rem;
    border: 1px dashed var(--mt-border);
    border-radius: 12px;
    background: var(--mt-surface-alt);
    /* Widget kendi genişliğini dayatabilir; kap taşmayı içeride tutar. */
    min-width: 0;
    overflow: hidden;
}

.mt-embed__note {
    margin: .5rem 0 0;
    font-size: .78rem;
    color: var(--mt-text-muted);
}

.mt-social__source {
    margin: 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--mt-text-muted);
}

/* ==========================================================================
   Etkinlik detayı: katılımcılar ve program
   ========================================================================== */
.mt-event-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: .6rem;
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.mt-event-person {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    background: var(--mt-surface);
    /* Uzun isimler dar ekranda kartı taşırmasın. */
    min-width: 0;
}

.mt-event-person__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.mt-event-person__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mt-event-person__name {
    font-weight: 600;
    color: var(--mt-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.mt-event-person__name:hover { color: var(--mt-accent-strong); }

.mt-programme {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.mt-programme__item {
    display: flex;
    gap: .8rem;
    padding: .7rem .85rem;
    border-left: 3px solid var(--mt-accent);
    border-radius: 0 10px 10px 0;
    background: var(--mt-surface-alt);
    min-width: 0;
}

.mt-programme__day {
    flex: 0 0 4.5rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--mt-accent-strong);
    text-transform: uppercase;
    letter-spacing: .03em;
}

@media (max-width: 30rem) {
    .mt-programme__item { flex-direction: column; gap: .25rem; }
    .mt-programme__day { flex: none; }
}
