/* PX İçerik Stüdyosu
   Açık tema, gradientsiz. İmza: kayıt (REC) kırmızısı tek vurgu olarak;
   birincil eylemler mürekkep siyahı, yüzeyler beyaz, hatlar ince. */

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --border: #e3e6ea;
    --border-strong: #c9ced6;
    --ink: #16181d;
    --ink-soft: #3c4149;
    --muted: #6b7280;
    --rec: #e5484d;
    --rec-soft: #fdebec;
    --ok: #1f8a5b;
    --ok-soft: #e7f5ee;
    --warn: #9a6b00;
    --warn-soft: #fdf3d9;
    --radius: 12px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "IBM Plex Sans", -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --nav-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.icon { flex-shrink: 0; vertical-align: -3px; }

.mono { font-family: var(--font-mono); font-size: .92em; }

/* ------------------------------------------------------------- imza: REC */

.rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rec);
}

.rec-dot.pulse { animation: rec-pulse 1.1s ease-in-out infinite; }

@keyframes rec-pulse {
    50% { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
    .rec-dot.pulse { animation: none; }
    * { transition: none !important; }
}

.rec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--rec);
}

/* ------------------------------------------------------------- üst bar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .02em;
}

.brand .rec-dot { align-self: center; }

.brand-sub {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.top-nav { display: flex; gap: 4px; }

.top-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color .15s, background .15s;
}

.top-nav a:hover { color: var(--ink); background: var(--bg); }
.top-nav a.active { color: var(--ink); background: var(--bg); }

/* --------------------------------------------------------------- düzen */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 24px 90px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 2px 0 4px;
}

h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.page-head .eyebrow { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 13.5px; }
.muted-sm { color: var(--muted); font-size: 12.5px; letter-spacing: 0; text-transform: none; }

.inline-link { color: var(--ink-soft); border-bottom: 1px solid var(--border-strong); }
.inline-link:hover { color: var(--ink); border-color: var(--ink); }

/* -------------------------------------------------------------- kartlar */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card.pad { padding: 18px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.project-card { display: block; transition: border-color .15s, transform .15s; }
.project-card:hover { border-color: var(--ink); }
.project-card:active { transform: scale(.99); }

.thumb-wrap { position: relative; aspect-ratio: 16/9; background: var(--bg); }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-wrap .badge { position: absolute; top: 10px; right: 10px; }

.card-body { padding: 13px 15px 15px; }

.card-body h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 3px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ------------------------------------------------------------- rozetler */

.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: none;
}

.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-rev { background: var(--rec-soft); color: var(--rec); }
.badge-live { background: var(--surface); color: var(--rec); gap: 6px; border: 1px solid var(--border); }

/* ------------------------------------------------------------- butonlar */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 40px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-lg { width: 100%; min-height: 48px; font-size: 14.5px; margin-top: 14px; }
.btn-sm { padding: 6px 11px; min-height: 32px; font-size: 12.5px; border-radius: 8px; }

.btn-danger-ghost { color: var(--rec); border-color: var(--border); }
.btn-danger-ghost:hover { background: var(--rec-soft); border-color: var(--rec); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn.danger:hover { background: var(--rec-soft); color: var(--rec); }

/* -------------------------------------------------------------- formlar */

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 6px;
}

input[type=text], input[type=url], input[type=password], select, textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    border-radius: 10px;
    padding: 11px 13px;
    min-height: 44px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color .15s;
}

input.mono { font-family: var(--font-mono); font-size: 13px; }

input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }

input::placeholder, textarea::placeholder { color: #a3a9b3; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 200px; }
.form-row .grow { flex: 2; }
.form-actions { margin-top: 4px; }

.settings-rows { display: flex; flex-direction: column; }

.set-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    max-width: 1040px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.settings-rows .set-row:first-child { padding-top: 4px; }
.set-row:last-of-type { border-bottom: none; }

.set-info h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.set-info .muted-sm { line-height: 1.6; }
.set-info .btn { margin-top: 12px; }

.set-card label:first-of-type, .set-card .form-row:first-child label { margin-top: 0; }

.set-sub {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.set-sub-gap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 860px) {
    .set-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    margin-top: 10px;
    cursor: pointer;
}

.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }

input[type=range] {
    width: 100%;
    height: 28px;
    accent-color: var(--ink);
    margin-top: 8px;
    cursor: pointer;
}

/* -------------------------------------------------------- proje sayfası */

.project-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
}

.side, .main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.video-thumb {
    width: 100%;
    border-radius: 9px;
    margin-bottom: 14px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--border);
}

.transcript-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-height: 170px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.transcript-box.expanded { max-height: 56vh; overflow-y: auto; }

.transcript-box:not(.expanded)::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 50px;
    background: linear-gradient(rgba(244, 245, 247, 0), var(--bg));
}

/* ------------------------------------------------------- sürükle-bırak */

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1.5px dashed var(--border-strong);
    border-radius: 10px;
    padding: 22px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    margin: 12px 0 14px;
}

.dropzone:hover, .dropzone.drag {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.ref-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.ref-del {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    cursor: pointer;
}

.ref-del:hover { background: var(--rec); border-color: var(--rec); color: #fff; }

/* ------------------------------------------------------- üretim paneli */

.count-box { max-width: 200px; min-width: 160px; }
.count-box label { display: flex; justify-content: space-between; align-items: center; }

.progress-wrap { margin-top: 16px; }

.progress-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--rec);
    transition: width .4s;
}

/* ------------------------------------------------------ kapak galerisi */

.covers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.cover-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color .15s;
}

.cover-item:hover { border-color: var(--border-strong); }

.cover-img { display: block; aspect-ratio: 16/9; background: var(--bg); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cover-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-top: 1px solid var(--border);
}

.cover-bar .spacer { flex: 1; }

.empty-covers { padding: 26px 0 8px; text-align: center; }

/* -------------------------------------------------------------- lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 18, .9);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
}

.lb-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.lb-btn:hover { background: rgba(255, 255, 255, .22); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lb-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .08);
    padding: 8px 14px;
    border-radius: 99px;
    color: #fff;
    font-size: 13px;
}

.lb-bar .btn { background: #fff; color: var(--ink); border: none; }

@media (max-width: 760px) {
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lightbox img { max-width: 96vw; }
}

/* -------------------------------------------------------------- modallar */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 24, 29, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
    background: var(--surface);
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    max-width: 500px;
    animation: pop .16s ease;
}

@keyframes pop { from { transform: scale(.97); opacity: 0; } }

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.revise-preview {
    width: 100%;
    border-radius: 9px;
    margin: 12px 0 2px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* -------------------------------------------------------------- boş hal */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.empty-icon { color: var(--border-strong); margin-bottom: 14px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; line-height: 1.6; }

/* --------------------------------------------------------------- toast */

#toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
    border-left: 3px solid var(--border-strong);
}

.toast.show { opacity: 1; transform: none; }
.toast-ok { border-left-color: #4ade80; }
.toast-warn { border-left-color: #fbbf24; }
.toast-error { border-left-color: var(--rec); }

/* ----------------------------------------------------- proje kartı linki */

.project-card { position: relative; }

.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }

.card-pkg { position: relative; z-index: 2; }

.card-meta { position: relative; gap: 10px; }
.card-meta span:first-child { margin-right: auto; }

.head-actions { display: flex; gap: 8px; }

/* ----------------------------------------------------------- yayın paketi */

.pkg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.pkg-main, .pkg-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

@media (max-width: 980px) {
    .pkg-grid { grid-template-columns: 1fr; }
}

.pkg-gen { margin-bottom: 20px; }

.pkg-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pkg-bar .eyebrow { margin-bottom: 0; }

.pkg-bar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pkg-bar-controls select { width: auto; min-width: 190px; }

.pkg-note { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.title-list { display: flex; flex-direction: column; }

.title-item {
    position: relative;
    padding: 12px 44px 12px 0;
    border-bottom: 1px solid var(--border);
}

.title-item:last-child { border-bottom: none; }
.title-item.is-main { background: var(--rec-soft); margin: 0 -18px; padding-left: 18px; padding-right: 56px; border-radius: 8px; border-bottom: none; }

.title-text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; font-size: 14px; }

.title-item .copy-btn { position: absolute; top: 10px; right: 8px; }
.title-item.is-main .copy-btn { right: 14px; }

.copy-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 4px 0 10px;
    max-height: 420px;
    overflow-y: auto;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 12px; }

.chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 11px;
    font-size: 12px;
}

.tag-layer-label { margin-top: 10px; font-weight: 600; }

.over-limit { color: var(--rec); font-weight: 600; }

.pkg-tip {
    background: var(--ok-soft);
    color: var(--ok);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 12px;
}

.pin-variant { margin-bottom: 14px; }
.pin-variant:last-of-type { margin-bottom: 0; }

.checklist { list-style: none; }
.checklist li { padding: 4px 0; }
.checklist .check { margin-top: 0; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

.rules-area { margin-top: 6px; margin-bottom: 10px; line-height: 1.6; font-size: 12.5px; }

.subs-table .subs-actions { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.sub-translate-bar { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ----------------------------------------------------- giriş / kullanıcı */

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card { width: 100%; max-width: 380px; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
}

.auth-card h2 { margin-bottom: 6px; }
.auth-card .muted { line-height: 1.55; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--bg);
    margin-left: 6px;
}

.users-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; }
.users-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.users-table tr:last-child td { border-bottom: none; }
.users-table .t-right { text-align: right; }

.add-user-row { margin-top: 8px; align-items: flex-end; }
.add-user-row .add-user-btn { flex: 0 0 auto; min-width: 0; }

.settings-users, .session-card { max-width: 820px; margin-top: 16px; }
.session-card .btn { margin-top: 12px; }

.gen-note { margin-top: 8px; text-align: center; }

/* --------------------------------------------------- alt gezinme (mobil) */

.bottom-nav { display: none; }

.desktop-only-inline { display: inline; }

@media (max-width: 760px) {
    .container { padding: 18px 16px calc(var(--nav-h) + 28px); }

    .topbar { padding: 0 16px; }
    .top-nav { display: none; }
    .desktop-only { display: none; }
    .desktop-only-inline { display: none; }

    h1 { font-size: 21px; }

    .page-head { align-items: flex-start; flex-direction: row; }

    .project-layout { grid-template-columns: 1fr; }

    .covers-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .icon-btn { width: 40px; height: 40px; }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(var(--nav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 90;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 10.5px;
        font-weight: 500;
        color: var(--muted);
        padding: 6px 18px;
        min-width: 76px;
    }

    .bottom-nav a.active { color: var(--ink); }

    .nav-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        background: var(--ink);
        color: #fff;
        cursor: pointer;
        margin-top: -22px;
        box-shadow: 0 4px 14px rgba(22, 24, 29, .25);
    }

    .nav-fab:active { transform: scale(.94); }

    /* Modallar alttan açılan sayfa gibi davranır */
    .modal-backdrop { align-items: flex-end; padding: 0; }

    .modal {
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
        animation: sheet .22s ease;
    }

    @keyframes sheet { from { transform: translateY(40%); opacity: .4; } }

    .modal-actions .btn { flex: 1; min-height: 48px; }

    #toast-wrap {
        left: 16px;
        right: 16px;
        bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
    }

    .toast { max-width: none; }
}

/* ---------------------------------------------------------- poster modülü */
.poster-role { margin-bottom: 6px; }
.role-grid { margin: 8px 0 4px; }
.role-drop {
    margin: 0;
    padding: 0;
    aspect-ratio: 1;
    justify-content: center;
    min-height: 0;
}
.role-drop.hidden { display: none; }
.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}
.plan-actions .btn-primary { margin-left: auto; }
