/* Fontlar css/fonts.css üzerinden yerel yüklenir (Inter, Plus Jakarta Sans, Gilroy opsiyonel) */

/*! base css start */
* {
    margin: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
}
body {
    margin: 0 !important;
    padding: 0 !important;
}
/*! base css end */

/* Navbar shell: fetch tamamlanana kadar gri flash önleme (Firefox vb.) – yükseklik ve arka plan gerçek navbar ile aynı */
.navbar-shell {
    min-height: 60px;
    height: 60px;
    background-color: #0f0f0f;
    box-sizing: border-box;
}
body:not(.dark) .navbar-shell {
    background-color: #f4f4f4;
}

:root {
    /* Açık tema (varsayılan) */
    --bg-100: #f4f4f4;
    --bg-200: #ffffff;
    --text-100: #050505;
    --text-200: #333333;
    --text-300: #777777;
    /* Brand accent (Netflix kırmızısı yerine) */
    --brand: #3ab2f7;
    --brand-rgb: 58, 178, 247;
    --surface: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* Koyu tema */
body.dark {
    --bg-100: #0f0f0f;
    --bg-200: #0a0a0a;
    --text-100: #ffffff;
    --text-200: #e6e6e6;
    --text-300: #aaaaaa;
    --brand: #3ab2f7;
    --brand-rgb: 58, 178, 247;
    --surface: #1a1a1a;
    --shadow: rgba(0,0,0,0.6);
}

body {
    margin: 0 !important;
    padding: 60px 0 0 0 !important; /* üst: navbar için; yan/alt 0 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Electrolize", sans-serif;
    background: radial-gradient(circle at top left, rgba(var(--brand-rgb),0.05), transparent 55%),
                radial-gradient(circle at bottom right, rgba(0,0,0,0.04), transparent 55%),
                var(--bg-100);
    color: var(--text-100);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Detay sayfasında sol üst köşedeki mavi gradient'i kaldır - navbar renk farkını önler */
body.page-movie-detail {
    background: var(--bg-100) !important;
    background-image: none !important;
}

.section, .site-footer {
    margin-left: 0;
}

.account-page {
    margin: 40px auto;
    max-width: 1200px;
    padding: 48px 24px 60px; /* üst: navbar altında daha fazla boşluk (kutular yukarı kaymasın) */
    flex: 1 1 auto;
    flex-shrink: 0;
    /* Sayfa içeriği az olsa bile footer'ın yukarı tırmanmaması için minimum yükseklik ver */
    min-height: calc(100vh - 160px); /* ~navbar + üst/bottom boşluk payı */
    width: 100%;
    box-sizing: border-box;
}
.account-page-inner {
    width: 100%;
    padding: 0;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.14);
    color: #fff;
    backdrop-filter: blur(2px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* Açık zeminli ana içerik bölümünde (filtreler, Daha Fazla Yükle vb.) ikincil butonların okunabilirliğini artır */
.section .btn.btn-secondary,
.section-actions .btn.btn-secondary {
    color: var(--text-100);
    background: rgba(0,0,0,0.06);
}
.section .btn.btn-secondary:hover,
.section-actions .btn.btn-secondary:hover {
    background: rgba(0,0,0,0.10);
}

/* Açık temada hesap / Ne İzlesem sayfasındaki ikincil butonların okunabilirliğini artır */
.account-page .btn.btn-secondary {
    color: var(--text-100);
    background: rgba(0,0,0,0.06);
}
.account-page .btn.btn-secondary:hover {
    background: rgba(0,0,0,0.10);
}

/* Ne İzlesem: "Detayları Göster" butonu daha belirgin olsun */
#random-page #random-detail-btn{
    background: var(--brand);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 30px rgba(var(--brand-rgb),0.25);
}
#random-page #random-detail-btn:hover{
    filter: brightness(1.06);
    box-shadow: 0 16px 40px rgba(var(--brand-rgb),0.32);
}

/* Auth (Giriş / Kayıt / Şifre Yenile) modalındaki ikincil butonların açık temada görünürlüğünü artır */
#auth-modal .btn.btn-secondary {
    color: var(--text-100);
    background: rgba(0,0,0,0.06);
}
#auth-modal .btn.btn-secondary:hover {
    background: rgba(0,0,0,0.10);
}

/* Home/Keşfet gridinde TMDB/YouTube etiketi görünmesin */
body.tab-home #movie-grid .movie-card .badge.badge-source{
    display: none !important;
}


.btn,
.movie-card,
.hero-poster {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease, color .25s ease;
}

.btn:active { transform: scale(0.98); }

/* Nerede İzlenir? - ülke satırı */
.watch-region-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin: 0;
    flex-wrap: nowrap;
}
.watch-region-label{
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
    color: var(--text-300);
    opacity: .9;
}
.watch-region-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-100);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}
.watch-region-btn:hover{
    background: rgba(255,255,255,0.10);
}
.watch-region-flag{ font-size: 16px; line-height: 1; }
.watch-region-name{ 
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}
.watch-region-caret{ font-size: 12px; opacity: .7; }

/* Nerede İzlenir üst bar (sol meta + sağ ülke) */
.providers-topbar{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    flex: 0 0 100%;
    width: 100%;
}
.providers-meta{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap: wrap;
    min-width: 0;
}
/* Nerede İzlenir: Abonelik/Ücretsiz vb. etiket metni kaldırıldı – tüm dillerde gizli */
#providers-mode-pill {
    display: none !important;
}
.providers-meta-pill{
    display:inline-flex;
    align-items:center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
    color: var(--text-200);
}
.providers-meta-text{
    font-size: 12px;
    opacity: .85;
    color: var(--text-200);
}
.overview-note{
    display: block !important;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: .85;
    color: var(--text-200);
}
.overview-text{
    display: block !important;
    white-space: pre-wrap;
}
.providers-region-slot{
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

/* Üst barda tek provider rozet gibi dursun */
.provider-item.provider-item--compact{
    padding: 6px 10px;
    border-radius: 999px;
}

/* Provider item bazen <div>/<span> olarak da kullanılabiliyor */
.provider-item.provider-item--static{
    cursor: default;
}

/* Ülke seçim penceresi */
.country-modal{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.country-modal-backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
}
.country-modal-card{
    position: relative;
    width: min(560px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 24px));
    background: radial-gradient(1200px 500px at 20% -10%, rgba(var(--brand-rgb),0.35), rgba(0,0,0,0.00)),
                linear-gradient(180deg, rgba(24,6,8,0.96), rgba(10,10,10,0.96));
    border: 1px solid rgba(var(--brand-rgb),0.22);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
    overflow: hidden;
    display:flex;
    flex-direction: column;
}
.country-modal-header{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 16px 18px 10px;
}
.country-modal-actions{
    display:flex;
    align-items:center;
    gap: 8px;
}
.country-help{ position: relative; display: inline-flex; align-items: center; }
.country-help-btn{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: var(--text-100);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.country-help-btn:hover{
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.16);
}
.country-help-tooltip{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, 82vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(10,10,10,0.92);
    border: 1px solid rgba(var(--brand-rgb),0.22);
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
    color: var(--text-100);
    font-size: 12px;
    line-height: 1.35;
    z-index: 2;
    display: none;
}
.country-help:hover .country-help-tooltip,
.country-help:focus-within .country-help-tooltip{
    display: block;
}

.alert-dont-show{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-200);
}
.alert-dont-show input{
    width: 14px;
    height: 14px;
}
.country-modal-title{
    font-size: 18px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
}
.country-modal-close{
    border: none;
    background: transparent;
    color: var(--text-200);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
}
.country-modal-close:hover{ background: rgba(255,255,255,0.08); color: var(--text-100); }

.country-modal-search{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 18px 14px;
}
.country-modal-search i{
    opacity: .7;
}
.country-modal-search input{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: var(--text-100);
    outline: none;
}
.country-modal-search input:focus{
    border-color: rgba(var(--brand-rgb),0.45);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.18);
}
.country-modal-list{
    padding: 4px 8px 12px;
    overflow: auto;
}
.country-modal-item{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-100) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}
@media (hover: hover) {
.country-modal-item:hover{ background: rgba(255,255,255,0.06) !important; }
}
.country-modal-item.active{
    background: rgba(var(--brand-rgb),0.14) !important;
    border: 1px solid rgba(var(--brand-rgb),0.30) !important;
}
.country-modal-flag{ font-size: 18px; width: 22px; text-align:center; }
.country-modal-name{
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-100) !important;
}

.toggle-icon {
    color: goldenrod;
}

.toggle {
    width: 40px;
    height: 20px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
}

.toggle-ball {
    width: 18px;
    height: 18px;
    background-color: #000;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    right: 1px;
}

body.dark .toggle { background-color: #222; }
body.dark .toggle-ball { background-color: #fff; right: auto; left: 1px; }
body.dark .toggle-icon { color: #ffcc33; }

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
}

.stat-label {
    font-size: 11px;
    color: var(--text-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ana içerik alanı: footer her zaman en altta kalsın (sticky footer) */
main#catalog.section {
    flex: 1 1 auto;
    min-height: calc(100vh - 200px);
    padding-top: 24px; /* navbar altında nefes alanı */
}
.section {
    background: var(--bg-100);
    color: var(--text-100);
}

.section-header {
    display: none !important; /* Favorilerim / Filmler / Diziler vb. başlık kaldırıldı */
}

.section-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 24px;
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.section-link { color: var(--text-300); text-decoration: none; }
.section-link:hover { color: var(--text-100); }

.content-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.content-tab {
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--text-200);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.content-tab:hover {
    background: rgba(255,255,255,0.12);
}

.content-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.filters-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Gizli checkbox – state sadece pill toggle ile yönetiliyor */
.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;
}

/* Netflix/Prime tarzı bölge filtresi – pill toggle */
.filter-region-toggle {
    display: inline-flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 3px;
    gap: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-region-pill {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.filter-region-pill:hover {
    color: rgba(255, 255, 255, 0.95);
}

.filter-region-pill.active {
    background: var(--brand, #e50914);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.dark .filter-region-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .filter-region-pill.active {
    background: var(--brand, #e50914);
}

/* Filtre barını Keşfet altına hizala */
.filters-after-discover{
    max-width: 1200px;
    margin: 12px auto 6px;
    padding: 0 50px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .filters-after-discover{ padding: 0 30px; }
}
@media (max-width: 600px) {
    .filters-after-discover{
        padding: 0 20px;
        justify-content: flex-start;
    }
}

.filter-select {
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--text-100);
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    cursor: pointer;
    outline: none;
}

.filter-select option {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}

.filter-select:hover {
    background: rgba(255,255,255,0.15);
}

.filter-select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Dark mode filtre select görünürlüğü */
body.dark .filter-select {
    background: #181818;
    border-color: rgba(255,255,255,0.25);
    color: #ffffff;
}

body.dark .filter-select:hover {
    background: #222222;
}

/* Birçok tarayıcıda açılan listeyi de etkiler */
body.dark .filter-select option {
    background: #181818;
    color: #ffffff;
}

/* Ne İzlesem sayfası: dark mode select/dropdown görünürlüğü */
body.dark #random-page select {
    background: #181818;
    border-color: rgba(255,255,255,0.25);
    color: #ffffff;
}

body.dark #random-page select:hover {
    background: #222222;
}

body.dark #random-page select option {
    background: #181818;
    color: #ffffff;
}

.filters { display: flex; align-items: center; gap: 10px; }
.chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--text-100); padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.chip.active { background: var(--brand); border-color: var(--brand); }

/* Discover categories – Kategoriler/Keşfet hariç (onlar aşağıda kendi kurallarıyla) */
.discover:not(#discover-section):not(#explore-title-wrap) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 50px 30px;
}
/* Tüm bölüm başlıkları (mavi çizgi + metin) YATAYDA AYNI HİZADA – tek kural.
   daily/weekly: section’da yan padding yok, h3’te 24px. Keşfet: section’da yok, h3’te 24px.
   Kategoriler: section’da 24px (grid için), h3 ekstra padding almaz. */
#catalog .daily-title,
#catalog .weekly-title-heading,
#catalog #explore-title-wrap .discover-title {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    #catalog .daily-title,
    #catalog .weekly-title-heading,
    #catalog #explore-title-wrap .discover-title {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}
@media (max-width: 600px) {
    #catalog .daily-title,
    #catalog .weekly-title-heading,
    #catalog #explore-title-wrap .discover-title {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
@media (max-width: 480px) {
    #catalog .daily-title,
    #catalog .weekly-title-heading,
    #catalog #explore-title-wrap .discover-title {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
/* Kategoriler/Keşfet kutuları: tam genişlik, kendi sol padding yok (başlık h3’te) */
#discover-section,
#explore-title-wrap {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}
#explore-title-wrap {
    padding: 0 !important;
    margin: 0 0 6px !important;
}
.discover-title,
h3.discover-title {
    margin: 0 0 12px;
    font-size: 22px !important;
    font-weight: 800 !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-200);
    display: flex;
    align-items: center;
    gap: 8px;
}
.discover-title::before,
h3.discover-title::before,
#discover-section .discover-title::before,
#discover-section h3.discover-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 26px !important;
    border-radius: 999px;
    background: var(--brand);
}
.discover-grid { display: grid; gap: 8px; justify-content: start; }
@media (max-width: 900px) { .discover-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .explore-title-wrap { padding: 0 18px; } }
@media (max-width: 600px) { .explore-title-wrap { padding: 0 14px; } }

/* Kategoriler bölümü: Keşfet kartları (.movie-grid) ile aynı sağ/sol hizada – aynı max-width + 40px yan padding */
#discover-section{
    background: none;
    border: none;
    border-radius: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 18px;
    box-shadow: none;
}
body.dark #discover-section{
    background: none;
    border: none;
    box-shadow: none;
}
#discover-section .discover-title,
#discover-section h3.discover-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: .2px;
    margin-bottom: 14px;
}
#discover-section .discover-grid{
    gap: 8px;
    grid-template-columns: repeat(5, 1fr);
    justify-content: start;
    width: 100%;
}
@media (min-width: 1120px) {
    #discover-section .discover-grid {
        grid-template-columns: repeat(5, 1fr);
        width: 100%;
    }
    #discover-section .discover-card,
    .discover-grid .discover-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 155/175;
    }
}
@media (max-width: 900px) {
    #discover-section { padding: 16px 24px 20px; }
}
@media (max-width: 600px) {
    #discover-section { padding: 14px 16px 18px; }
}
/* Keşfet başlığı, Kategoriler ile aynı hizaya gelsin (tam genişlik, aynı sol padding) */
.explore-title-wrap{
    padding: 0 24px;
    margin: 0 0 6px;
}
.daily-title,
.weekly-title-heading {
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Weekly top section - Carousel tasarımı (daily ile aynı boyut) */
.weekly-top {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 20px 0 30px !important;
    overflow: hidden;
    position: relative;
}

.weekly-top-grid {
    display: none !important; /* Eski grid kullanılmıyor, carousel kullanılıyor */
}

/* Daily kartlar hover – sadece hover destekleyen cihazlarda (mobilde takılı kalmayı önler) */
@media (hover: hover) {
    .daily-top-list .daily-card:hover,
    .daily-carousel-wrapper .daily-card:hover,
    #daily-top-list .daily-card:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0) !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.4) !important;
        border-color: rgba(var(--brand-rgb),0.4) !important;
        z-index: 10;
    }
}

/* Weekly kartlar artık carousel'de, daily ile TAMAMEN aynı boyutta */
.weekly-top-list .weekly-card,
.weekly-carousel-wrapper .weekly-card,
#weekly-top-list .weekly-card {
    flex-shrink: 0 !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    background: var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transform: translateZ(0);
    display: block !important; /* Eski flex layout'u override et */
    padding: 0 !important; /* Eski padding'i kaldır */
    gap: 0 !important;
    align-items: unset !important;
}

@media (hover: hover) {
    .weekly-top-list .weekly-card:hover,
    .weekly-carousel-wrapper .weekly-card:hover,
    #weekly-top-list .weekly-card:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0) !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.4) !important;
        border-color: rgba(var(--brand-rgb),0.4) !important;
        z-index: 10;
    }
}

.weekly-top-list .weekly-poster,
.weekly-carousel-wrapper .weekly-poster,
#weekly-top-list .weekly-poster {
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important; /* Poster artık kartın içinde, border-radius kartta */
}

.weekly-top-list .weekly-info,
.weekly-carousel-wrapper .weekly-info,
#weekly-top-list .weekly-info {
    padding: 12px !important;
    padding-bottom: 34px !important;
    background: var(--surface) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    min-height: 68px !important;
}

.weekly-top-list .weekly-header,
.weekly-carousel-wrapper .weekly-header,
#weekly-top-list .weekly-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.weekly-top-list .weekly-title,
.weekly-carousel-wrapper .weekly-title,
#weekly-top-list .weekly-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-100) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: 1 !important;
}

.weekly-top-list .weekly-meta,
.weekly-carousel-wrapper .weekly-meta,
#weekly-top-list .weekly-meta {
    font-size: 12px !important;
    color: var(--text-300) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: absolute !important;
    left: 12px !important;
    bottom: 10px !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
}

.weekly-top-list .weekly-badge,
.weekly-carousel-wrapper .weekly-badge,
#weekly-top-list .weekly-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    background: rgba(var(--brand-rgb),0.2) !important;
    color: var(--brand) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(var(--brand-rgb),0.3) !important;
    height: fit-content !important;
}

.weekly-top-list .weekly-rating,
.weekly-carousel-wrapper .weekly-rating,
#weekly-top-list .weekly-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(255,255,255,0.08) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    color: var(--text-200) !important;
}

.weekly-top-list .weekly-rating::before,
.weekly-carousel-wrapper .weekly-rating::before,
#weekly-top-list .weekly-rating::before {
    content: '★' !important;
    color: #ffd700 !important;
    font-size: 12px !important;
}

.weekly-top-list .weekly-year,
.weekly-carousel-wrapper .weekly-year,
#weekly-top-list .weekly-year {
    color: var(--text-300) !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Mobil: haftalık kartları film kartlarıyla aynı boyutta (140px / 128px) */
@media (max-width: 900px) {
    .weekly-top-list .weekly-card,
    .weekly-carousel-wrapper .weekly-card,
    #weekly-top-list .weekly-card {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }
}
@media (max-width: 360px) {
    .weekly-top-list .weekly-card,
    .weekly-carousel-wrapper .weekly-card,
    #weekly-top-list .weekly-card {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
    }
}

/* ========== Kategoriler: daha kompakt kart (PC’de boyut ve dikey uzunluk azaltıldı) ========== */
#discover-section .discover-card,
.discover-grid .discover-card {
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    height: 175px !important;
}
.discover-card {
    position: relative;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    height: 175px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06) inset;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease, border-color 0.3s ease;
    display: flex;
    align-items: flex-end;
}
.discover-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb),0.9), transparent);
    opacity: 0;
    transform: scaleX(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.discover-card:hover {
    transform: translateY(-6px) scale(1.03) translateZ(0);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--brand-rgb),0.25);
    border-color: rgba(var(--brand-rgb),0.35);
    z-index: 10;
}
.discover-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
.discover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.82) 100%);
    pointer-events: none;
}
.discover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 16px 14px 14px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 52px;
}
/* Kategori ismi: estetik, profesyonel tipografi + hafif zemin */
.discover-card-title,
.discover-content h4,
#discover-section .discover-content h4,
.discover-card .discover-content h4,
#discover-section .discover-card .discover-content h4 {
    font-size: 15px;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.8);
    max-width: 100%;
    padding: 6px 10px 6px 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), background 0.25s ease, color 0.2s ease;
}
.discover-card:hover .discover-card-title,
.discover-card:hover .discover-content h4 {
    transform: translateY(-2px);
    background: rgba(0,0,0,0.5);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}
/* Eski "Kategoriye Git" butonu artık yok; başka yerde kullanılıyorsa korunur */
.discover-content .discover-filter,
#discover-section .discover-content .discover-filter,
button.btn.btn-primary.discover-filter {
    font-size: 11px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-rgb),0.55);
    background: rgba(var(--brand-rgb),0.2) !important;
    box-shadow: none;
    white-space: nowrap;
    align-self: flex-start;
}

/* Keşfet + Filmler/Diziler: 1 satırda 6 kart (yeterli genişlikte), gap 8px */
.movie-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 40px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 8px;
    justify-content: start;
    justify-items: start;
    transition: opacity 0.3s ease;
}
/* PC: 6 kart sığdığında (≈1120px içerik) kesin 6 sütun */
@media (min-width: 1120px) {
    .movie-grid,
    body.tab-list .movie-grid {
        grid-template-columns: repeat(6, 180px) !important;
    }
}
.movie-grid .movie-card {
    width: 180px;
    max-width: 180px;
}
/* Favoriler sayfası için mobil görünümde kartlar tam genişlikte olmalı */
@media (max-width: 600px) {
    body.page-favorites .favorites-grid .movie-card,
    body.page-favorites #favorites-grid .movie-card,
    body.tab-favorites #movie-grid .movie-card,
    body.tab-favorites .movie-grid .movie-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}
body.tab-list .movie-grid {
    grid-template-columns: repeat(auto-fill, 180px) !important;
    justify-content: start !important;
    align-content: start !important;
    justify-items: start !important;
    grid-auto-flow: row;
}
body.tab-list .movie-grid .movie-card {
    width: 180px !important;
    max-width: 180px !important;
}

@media (max-width: 1119px) { .movie-grid, body.tab-list .movie-grid { grid-template-columns: repeat(auto-fill, 180px) !important; } }
@media (max-width: 900px) { .movie-grid, body.tab-list .movie-grid { grid-template-columns: repeat(auto-fill, 140px) !important; } }
@media (max-width: 600px) { 
    .movie-grid, 
    body.tab-list .movie-grid,
    body.page-favorites .favorites-grid,
    body.page-favorites #favorites-grid,
    body.tab-favorites #movie-grid,
    body.tab-favorites .movie-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        justify-content: stretch !important;
        justify-items: stretch !important;
    }
    .movie-grid .movie-card,
    body.tab-list .movie-grid .movie-card,
    body.page-favorites .favorites-grid .movie-card,
    body.page-favorites #favorites-grid .movie-card,
    body.tab-favorites #movie-grid .movie-card,
    body.tab-favorites .movie-grid .movie-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}


.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--brand);
    color: var(--text-100);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.section-actions { max-width: 1200px; margin: 0 auto; padding: 0 50px 60px; }
.section-actions #load-more{
    background: var(--brand);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 30px rgba(var(--brand-rgb),0.25);
    min-height: 40px;
    padding: 10px 18px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}
.section-actions #load-more:hover{
    filter: brightness(1.06);
    box-shadow: 0 16px 40px rgba(var(--brand-rgb),0.32);
}

.loadmore-loading{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    width: 100%;
}
.loadmore-loading .loading-spinner{
    width: 16px;
    height: 16px;
    border-width: 3px;
    border-color: rgba(255,255,255,0.35);
    border-top-color: #fff;
    margin: 0;
}
.section-actions #load-more:disabled{
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}
.fav-btn { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.4); color: #fff; cursor: pointer; transition: all 0.2s ease; z-index: 10; }
.fav-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }
.fav-btn .bi-heart { color: #fff; }
.fav-btn .bi-heart-fill { color: #e74c3c; }
/* Favorilerim sekmesinde çarpı ikonu için sağ üst köşe */
.fav-btn.fav-remove { left: auto; right: 8px; background: rgba(231, 76, 60, 0.85); border-color: rgba(231, 76, 60, 0.6); width: 30px; height: 30px; }
.fav-btn.fav-remove:hover { background: rgba(231, 76, 60, 1); }
.fav-btn.fav-remove:hover { transform: none; }
.fav-btn.fav-remove .bi { font-size: 14px; font-weight: 700; }

/* Çarpı butonu temaya göre stil */
body:not(.dark) .fav-btn.fav-remove {
    background: #ffffff;
    border-color: #e5e7eb;
}
body:not(.dark) .fav-btn.fav-remove .bi {
    color: #6b7280;
}
body:not(.dark) .fav-btn.fav-remove:hover .bi {
    color: var(--brand);
}

body.dark .fav-btn.fav-remove {
    background: #2b2b2b;
    border-color: rgba(255,255,255,0.15);
}

/* Tüm listelerde çarpı boyutunu sabitle */
.movie-card .fav-btn.fav-remove {
    width: 30px;
    height: 30px;
}
.movie-card .fav-btn.fav-remove .bi {
    font-size: 14px;
}
.fav-x-icon{
    font-size: 14px !important;
    line-height: 1 !important;
}
/* İzlediklerim/İzliyorum/İzleme listesi: çarpıyı favoriyle birebir hizala */
body.tab-list .movie-card .list-remove {
    width: 30px !important;
    height: 30px !important;
    top: 8px !important;
    right: 8px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
}
body.tab-list .movie-card .list-remove .bi {
    font-size: 14px !important;
    line-height: 1 !important;
}
/* Listelerdeki çarpıyı favori boyutuna zorla */
body.tab-list .movie-card .fav-btn.fav-remove.list-remove,
body.tab-list .movie-card .list-remove {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
}
body.tab-list .movie-card .list-remove .bi {
    font-size: 14px !important;
    line-height: 1;
}

/* İzlediklerim/İzliyorum/İzleme listesi çarpısı = Favoriler görünümü */
.movie-card .list-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
body:not(.dark) .movie-card .list-remove {
    background: #ffffff;
    border-color: #e5e7eb;
}
body:not(.dark) .movie-card .list-remove .bi {
    color: #6b7280;
}
body:not(.dark) .movie-card .list-remove:hover .bi {
    color: var(--brand);
}
body.dark .movie-card .list-remove {
    background: #2b2b2b;
    border-color: rgba(255,255,255,0.15);
}
body.dark .movie-card .list-remove .bi {
    color: #9ca3af;
}
body.dark .movie-card .list-remove:hover .bi {
    color: var(--brand);
}
body.dark .fav-btn.fav-remove .bi {
    color: #9ca3af;
}
body.dark .fav-btn.fav-remove:hover .bi {
    color: var(--brand);
}

/* Dark mode */
body.dark .btn-secondary { background: rgba(255,255,255,0.1); }

/* Movie hover overlay */
.movie-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 5 !important;
    pointer-events: none !important;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
@media (hover: hover) {
    .movie-card:hover .movie-overlay { opacity: 1; }
}

.play-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    display: grid;
    place-items: center;
    color: var(--text-100);
    border: 2px solid rgba(255,255,255,0.6);
}

/* KRİTİK: Bu kural kart içindeki .movie-meta için geçerli DEĞİL - card.css override ediyor */
.movie-meta:not(.movie-card .movie-meta):not(.movie-info .movie-meta) {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    gap: 8px;
    color: var(--text-200);
    font-size: 11px;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; overflow: hidden; }
/* Detay sayfası (full-page, modal yerine) */
/* Detay sayfası – tam sayfa düzen (modal değil) */
.detail-page { position: relative; min-height: 100vh; background: var(--bg-100); z-index: 1; }
.detail-page.u-hidden { display: none !important; }

/* Detay sayfası açıkken navbar koyu kalsın (Ne İzlesem'den gelince beyaz görünmesin) */
body.dark.detail-page-open .navbar,
body.dark.detail-page-open .navbar-inner {
    background: var(--bg-100) !important;
    background-color: var(--bg-100) !important;
    background-image: none !important;
}
body.dark.detail-page-open .navbar .menu-list-item,
body.dark.detail-page-open .navbar .profile-text,
body.dark.detail-page-open .navbar .nav-region-name,
body.dark.detail-page-open .navbar .nav-region-caret {
    color: #e6e6e6 !important;
}
body.dark.detail-page-open .navbar .menu-list-item:hover,
body.dark.detail-page-open .navbar .menu-list-item.active {
    color: #ffffff !important;
}
.detail-page-inner { max-width: min(1400px, 96vw); margin: 0 auto; padding: 40px 24px 56px; }
.detail-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.detail-hero-poster { position: relative; }
.detail-hero-poster .detail-poster { width: 100%; border-radius: 12px; box-shadow: 0 20px 56px rgba(0,0,0,.5); display: block; }
.detail-hero-content { min-width: 0; }
.detail-sections { display: flex; flex-direction: column; gap: 40px; }
.detail-section { width: 100%; }
.detail-section-title { font-size: 1.125rem; font-weight: 700; margin: 0 0 16px; letter-spacing: .02em; color: var(--text-100); display: inline-flex; align-items: center; gap: 8px; }
.detail-section-title--with-info { display: inline-flex; align-items: center; gap: 8px; }
.detail-where-info { display: inline-flex; align-items: center; color: var(--text-300); cursor: help; font-size: 1rem; }
.detail-where-info:hover { color: var(--text-100); }
.detail-additional-info--grid { display: grid; grid-template-columns: 1fr; gap: 6px 0; margin-top: 20px; }
#detail-modal { z-index: 10001; } /* Eski modal referansı (artık kullanılmıyor) */
#cast-full-modal { z-index: 10002; } /* Detay ekranının üstünde; Tümünü Gör oyuncu penceresi */
#cast-full-modal .modal-dialog {
    width: min(900px, 92vw);
    min-width: min(900px, 92vw);
    height: 90vh;
    max-height: 90vh;
}
#cast-full-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#cast-full-modal #cast-full-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
#cast-full-modal .cast-full-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    visibility: visible;
    opacity: 1;
}

/* Modal içindeki cast-card'lar - temiz ve basit - genel kuralları override et */
#cast-full-modal .cast-full-grid .cast-card {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
}

/* Modal içindeki cast-photo - genel kuralları override et */
#cast-full-modal .cast-full-grid .cast-card .cast-photo {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.05) !important;
    position: relative !important;
    display: block !important;
    height: auto !important;
    align-items: unset !important;
    justify-content: unset !important;
}

#cast-full-modal .cast-full-grid .cast-card .cast-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

#cast-full-modal .cast-full-grid .cast-card .cast-photo-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Modal içindeki cast-info - genel kuralları override et */
#cast-full-modal .cast-full-grid .cast-card .cast-info {
    flex: 1 !important;
    display: grid !important;
    gap: 4px !important;
    padding: 10px 12px 12px !important;
    min-height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#cast-full-modal .cast-full-grid .cast-card .cast-label,
#cast-full-modal .cast-full-grid .cast-card .cast-name,
#cast-full-modal .cast-full-grid .cast-card .cast-role,
#cast-full-modal .cast-full-grid .cast-card .cast-episodes {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Desktop grid (601px ve üstü) */
@media (min-width: 601px) {
    #cast-full-modal .cast-full-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Mobil grid (600px ve altı) */
@media (max-width: 600px) {
    #cast-full-modal .cast-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    #cast-full-modal .cast-full-grid .cast-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

#country-modal { z-index: 10003; } /* Detay ekranının üstünde; bölge seçimi detay açıkken üstte görünsün, bilgilendirme kapatılınca ülke listesi görünsün */
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); }
.modal-dialog { position: relative; max-width: 960px; margin: 6vh auto 6vh; background: var(--bg-200); border-radius: var(--radius-lg); padding: 16px; z-index: 1; color: var(--text-100); max-height: calc(100vh - 12vh); overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; background: transparent; color: var(--text-100); border: none; font-size: 20px; cursor: pointer; z-index: 2; }
.player-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); }
.player-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.player-title { margin-top: 10px; }

.detail-poster { width: 100%; height: auto; vertical-align: middle; }

#random-result .detail-poster { 
    width: 100%; 
    max-width: 190px; 
    height: auto; 
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    margin-right: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
    object-fit: cover;
}

#random-result {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    text-align: left;
}

#random-result .detail-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

#random-result .detail-title {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: var(--text-100);
}

#random-result .detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

#random-result .detail-meta .meta-pill {
    font-size: 12px;
    padding: 4px 10px;
}

#random-result .detail-overview {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-200);
    margin: 0 0 16px;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#random-result .btn {
    padding: 10px 20px;
    font-size: 14px;
}
.detail-title { 
    margin: 0 0 12px; 
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--text-100); 
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; 
    font-weight: 700 !important; 
    letter-spacing: -0.02em; 
    line-height: 1.2;
}
.detail-hero-content { color: var(--text-100); overflow-x: hidden; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.detail-meta-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-meta-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-top: 20px; }
.detail-meta .detail-share-btn,
.detail-meta-actions .detail-share-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--text-100); font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; margin-left: 0; }
.detail-meta .detail-share-btn:hover,
.detail-meta-actions .detail-share-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); transform: scale(1.02); }
.detail-meta .detail-fav-btn,
.detail-meta-actions .detail-fav-btn { flex-shrink: 0; position: static; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.35); color: #fff; cursor: pointer; transition: all 0.2s ease; margin-left: 0; }
.detail-meta .detail-fav-btn:hover,
.detail-meta-actions .detail-fav-btn:hover { background: rgba(0,0,0,0.5); transform: scale(1.08); }
.detail-meta .detail-fav-btn .bi-heart,
.detail-meta-actions .detail-fav-btn .bi-heart { color: rgba(255,255,255,0.9); }
.detail-meta .detail-fav-btn .bi-heart-fill,
.detail-meta-actions .detail-fav-btn .bi-heart-fill { color: #e74c3c; }
body:not(.dark) .detail-meta .detail-fav-btn,
body:not(.dark) .detail-meta-actions .detail-fav-btn { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); color: var(--text-100); }
body:not(.dark) .detail-meta .detail-fav-btn:hover,
body:not(.dark) .detail-meta-actions .detail-fav-btn:hover { background: rgba(0,0,0,0.12); }
body:not(.dark) .detail-meta .detail-fav-btn .bi-heart,
body:not(.dark) .detail-meta-actions .detail-fav-btn .bi-heart { color: var(--text-300); }
body:not(.dark) .detail-meta .detail-fav-btn .bi-heart-fill,
body:not(.dark) .detail-meta-actions .detail-fav-btn .bi-heart-fill { color: #e74c3c; }
.meta-pill { 
    background: rgba(255,255,255,.06); 
    border: 1px solid rgba(255,255,255,.14); 
    padding: 5px 10px; 
    border-radius: 999px; 
    font-size: 12px; 
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-100); 
    letter-spacing: .2px; 
}
.meta-pill--rating { background: rgba(var(--brand-rgb),0.12); border-color: rgba(var(--brand-rgb),0.45); color: #fff; }
.meta-pill--year { background: rgba(255,255,255,0.08); }
.meta-pill--runtime { background: rgba(255,255,255,0.08); }
.meta-pill--episodes { background: rgba(255,255,255,0.08); }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.detail-genres--chips .meta-pill{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.detail-hero-content .detail-overview { 
    color: var(--text-200); 
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
    margin: 20px 0 0; 
    display: block; 
    line-height: 1.65;
    font-size: 15px;
}
.detail-subtitle { 
    font-size: 1rem; 
    font-weight: 700 !important;
    margin-bottom: 10px; 
    letter-spacing: .3px; 
}
.detail-cast .detail-cast-row { margin-top: 0; }
.detail-section .trailer-player { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.detail-section.comments-section .comments-header { margin-bottom: 16px; }
.detail-section.comments-section .comment-form { margin-bottom: 20px; }

/* Oyuncular (yatay kaydırma) */
.detail-cast {
    margin: 14px 0 8px;
}
.detail-cast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.detail-cast-row{
    position: relative;
    overflow: hidden;
}
.modal-dialog{
    overflow-x: hidden;
}
.detail-cast-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    padding-right: 40px;
    padding-left: 40px;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: stretch; /* Tüm kartlar aynı yükseklikte olsun */
}
.detail-cast-scroll { scrollbar-width: none; }
.detail-cast-scroll::-webkit-scrollbar { display: none; }
.detail-cast-scroll::-webkit-scrollbar {
    height: 6px;
}
.detail-cast-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}
.cast-scroll-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: var(--text-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.cast-scroll-btn--edge{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    border-radius: 0 12px 12px 0;
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}
.cast-scroll-btn--edge:hover{
    opacity: 1;
}
.cast-scroll-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.cast-scroll-btn--left{
    right: auto;
    left: 0;
    border-radius: 12px 0 0 12px;
    display: none;
}
.detail-cast-row .cast-scroll-btn--left{
    opacity: 0;
    pointer-events: none;
}
.detail-cast-row.show-prev .cast-scroll-btn--left{
    display: flex;
    pointer-events: auto;
}
.detail-cast-row.show-prev .cast-scroll-btn--left:hover{
    opacity: 1;
}
.cast-scroll-btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}
.cast-card {
    min-width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}
.cast-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cast-card--link:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}
.cast-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.cast-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-300);
    font-size: 32px;
    background: rgba(255,255,255,0.06);
}
.cast-info {
    padding: 10px 12px 12px;
    min-height: auto;
    display: grid;
    gap: 4px;
}
.cast-label {
    font-size: 8px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    color: var(--text-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.cast-name {
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-100);
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cast-role {
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-200);
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cast-episodes {
    font-size: 11px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
    color: var(--text-300);
}
.cast-card--more {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.15);
    transition: all 0.2s ease;
    align-self: stretch; /* Parent flex container'ın yüksekliğine uyum sağla */
    min-width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
}
.cast-card--more:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.02);
}
.cast-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
}
.cast-more-content i {
    font-size: 32px;
    color: var(--brand);
}
.cast-more-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-100);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.cast-more-count {
    font-size: 11px;
    color: var(--text-300);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.cast-full-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Ek Bilgiler – Yönetmen, Ülke, Orijinal Dil (alt alta) */
.detail-additional-info {
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px 0;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.info-row {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    align-items: baseline;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-300);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
    min-width: auto;
}

.info-value {
    color: var(--text-200);
    font-weight: 500;
    font-size: 13px;
    flex: none;
}

@media (max-width: 700px){
    .detail-hero { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; padding-bottom: 32px; }
    .detail-hero-poster { max-width: 240px; margin: 0 auto; min-height: 0; }
}

/* İzleme Durumu Butonları */
.detail-actions {
    margin: 18px 0;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-status {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--text-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-status:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.btn-status.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-status[data-status="watched"].active { background: #27ae60; border-color: #27ae60; }
.btn-status[data-status="watching"].active { background: #3498db; border-color: #3498db; }
.btn-status[data-status="watchlist"].active { background: #f39c12; border-color: #f39c12; }
.btn-status[data-status="dropped"].active { background: #e74c3c; border-color: #e74c3c; }

/* Puanlama Sistemi */
.rating-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-label {
    font-size: 14px;
    color: var(--text-200);
}

.rating-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

#user-rating-input {
    width: 60px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--text-100);
    font-size: 14px;
    text-align: center;
}

#user-rating-input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.rating-max {
    color: var(--text-300);
    font-size: 14px;
}

.btn-rating-save {
    padding: 6px 12px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-rating-save:hover {
    background: #ff1a26;
    transform: scale(1.05);
}

.user-rating-pill {
    background: #f39c12 !important;
    border-color: #f39c12 !important;
}

/* Fragman Bölümü */
.trailer-section {
    margin: 20px 0;
}

.trailer-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
    margin-top: 10px;
}

.trailer-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Nerede İzlenir Bölümü */
.watch-providers {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
}

.providers-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.provider-tab {
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--text-200);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-tab:hover {
    background: rgba(255,255,255,0.12);
}

.provider-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-100);
    transition: all 0.2s ease;
}

.provider-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.provider-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
}

.provider-name {
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}

.provider-placeholder {
    text-align: center;
    color: var(--text-300);
    font-size: 14px;
    padding: 20px;
    color: var(--text-300);
    font-size: 13px;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 20px;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--brand);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-300);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--brand);
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-container p {
    font-size: 14px;
    margin: 0;
}



/* Logo İyileştirmesi */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 28px;
}

/* Responsive İyileştirmeler */
@media (max-width: 600px) {
    
    .rating-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-actions {
        padding: 12px;
    }
}

/* Yorumlar – sektör standardı (IMDb / Letterboxd tarzı) */
.comments-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.comments-header .detail-section-title {
    margin: 0;
}

.comments-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-300);
}

.comment-form {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comment-input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    color: var(--text-100);
    font-size: 15px;
    line-height: 1.5;
    font-family: inherit;
    resize: none;
    min-height: 72px;
    margin-bottom: 16px;
    transition: border-color 0.15s;
}

.comment-input::placeholder {
    color: var(--text-300);
}

.comment-input:focus {
    outline: none;
    border-bottom-color: rgba(255,255,255,0.3);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.comment-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-300);
    font-size: 13px;
}

.comment-rating-input label {
    font-weight: 500;
    color: var(--text-200);
    flex-shrink: 0;
}

.comment-rating-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-rating-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.comment-rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgb(64,196,255);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
    transition: transform 0.12s ease;
}

.comment-rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.comment-rating-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgb(64,196,255);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.comment-rating-slider::-moz-range-track {
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.comment-rating-value {
    min-width: 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-100);
    text-align: right;
}

.comment-rating-max {
    font-size: 13px;
    color: var(--text-300);
}

#btn-submit-comment,
.btn-submit-comment {
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}

.comment-author {
    font-weight: 600;
    color: var(--text-100);
    font-size: 14px;
}

.comment-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-300);
}

.comment-meta .comment-date::before {
    content: '·';
    margin-right: 8px;
    color: var(--text-300);
}

.comment-rating-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(64,196,255,0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.comment-date {
    color: var(--text-300);
    font-size: 12px;
}

.comment-text {
    color: var(--text-200);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 0 42px;
}
.comment-mention {
    color: rgb(64, 196, 255);
    font-weight: 600;
    cursor: default;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    margin-left: 42px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-300);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s;
}

.comment-action-btn:hover {
    color: var(--text-100);
}

.comment-action-btn.liked {
    color: rgb(64,196,255);
}

/* ======= Yanıt (Reply) Stilleri ======= */
.comment-replies {
    margin-left: 42px;
    padding-left: 16px;
    border-left: 2px solid rgba(255,255,255,0.08);
    margin-top: 4px;
}
.comment-reply {
    padding: 12px 0 8px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.comment-reply:last-child {
    border-bottom: none !important;
}
.comment-reply .comment-avatar {
    width: 28px !important;
    height: 28px !important;
}
.comment-reply .comment-actions {
    margin-left: 36px;
}

/* Yanıt formu */
.comment-reply-form {
    margin-left: 42px;
    margin-top: 8px;
    margin-bottom: 4px;
}
.comment-reply-form.u-hidden {
    display: none !important;
}
.reply-form-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 6px 10px;
    transition: border-color 0.2s;
}
.reply-form-inner:focus-within {
    border-color: rgba(var(--brand-rgb),0.5);
}
.reply-input,
textarea.reply-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-100);
    font-size: 13px;
    font-family: Inter, system-ui, sans-serif;
    padding: 6px 4px;
    min-width: 0;
    resize: none !important;
    overflow-y: auto;
    max-height: 120px;
    line-height: 1.4;
}
.reply-input::placeholder {
    color: var(--text-300);
}
.reply-submit-btn,
.reply-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.reply-submit-btn {
    color: var(--brand);
    font-size: 16px;
}
.reply-submit-btn:hover {
    background: rgba(var(--brand-rgb),0.15);
}
.reply-cancel-btn {
    color: var(--text-300);
    font-size: 14px;
}
.reply-cancel-btn:hover {
    color: var(--text-100);
    background: rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
    .comment-replies {
        margin-left: 20px;
        padding-left: 12px;
    }
    .comment-reply-form {
        margin-left: 20px;
    }
}

.no-comments {
    text-align: left;
    color: var(--text-300);
    font-size: 14px;
    padding: 32px 0;
}

/* Benzer İçerikler */
.similar-content {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.similar-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 2/3;
}

.similar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.similar-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: var(--text-100);
}

.similar-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-rating {
    font-size: 10px;
    color: var(--text-300);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-rating-input {
        justify-content: center;
    }
    
    .btn-submit-comment {
        width: 100%;
    }
}





.account-dialog {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    background: var(--surface);
    color: var(--text-100);
}

/* Tam sayfa Hesabım: wrapper şeffaf */
.account-page .account-dialog.account-page-inner {
    max-width: 100%;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.account-page .account-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
}
.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
body.dark .account-header {
    border-bottom-color: rgba(255,255,255,0.08);
}
.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-200);
}
body.dark .account-avatar {
    border-color: rgba(255,255,255,0.12);
}

.account-photo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-photo-row .btn,
.account-photo-row .btn-choose-photo {
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

label.btn-choose-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Profil fotoğrafı ayarlama (zoom) modalı – Netflix/Prime tarzı */
#profile-photo-crop-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#profile-photo-crop-modal[hidden] {
    display: none !important;
}
.profile-photo-crop-modal .profile-photo-crop-dialog {
    width: 100%;
    max-width: 380px;
    padding: 28px 24px;
    background: var(--bg-200);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
body:not(.dark) .profile-photo-crop-modal .profile-photo-crop-dialog {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.profile-photo-crop-title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-100);
    font-family: Inter, system-ui, sans-serif !important;
}
.profile-photo-crop-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.profile-photo-crop-box {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.12);
}
body:not(.dark) .profile-photo-crop-box {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
}
.profile-photo-crop-img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    transform: translate(-50%, -50%) scale(1);
}
.profile-photo-crop-img[style*="width:"] {
    min-width: 0;
    min-height: 0;
}
.profile-photo-crop-controls {
    margin-bottom: 20px;
}
.profile-photo-zoom-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-300);
    margin-bottom: 8px;
    font-family: Inter, system-ui, sans-serif !important;
}
.profile-photo-zoom {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    cursor: pointer;
}
body:not(.dark) .profile-photo-zoom {
    background: rgba(0,0,0,0.1);
}
.profile-photo-zoom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.profile-photo-zoom::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.profile-photo-crop-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.profile-photo-crop-actions .btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}
.profile-photo-crop-actions .btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}
body.profile-photo-crop-open { overflow: hidden; }

.account-title,
h3.account-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -0.02em;
    color: var(--text-100);
}
.account-subtitle {
    margin: 4px 0 0;
    color: var(--text-300);
    font-size: 14px;
    font-weight: 400;
    font-family: Inter, system-ui, sans-serif !important;
}
#random-page .account-subtitle {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
.account-card {
    background: var(--bg-200);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.08);
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
body.dark .account-card {
    border-color: rgba(255,255,255,0.08);
}
.account-card:hover {
    border-color: rgba(0,0,0,0.12);
}
body.dark .account-card:hover {
    border-color: rgba(255,255,255,0.12);
}
.account-card h4 {
    font-family: Inter, system-ui, sans-serif !important;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-100);
}
.account-card h4 i {
    color: var(--text-300);
    font-size: 18px;
}
.account-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    font-family: Inter, system-ui, sans-serif !important;
    color: var(--text-200);
    margin: 14px 0 6px;
}
.account-card label:first-of-type {
    margin-top: 0;
}
.account-card input,
.account-card select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    background: var(--bg-100);
    color: var(--text-100);
    font-size: 14px;
    font-family: Inter, system-ui, sans-serif !important;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}
body.dark .account-card input,
body.dark .account-card select {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
}
.account-card input:focus,
.account-card select:focus {
    outline: none;
    border-color: var(--brand);
}
body.dark .account-card input:focus,
body.dark .account-card select:focus {
    border-color: rgba(var(--brand-rgb), 0.7);
}
.account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.account-list li:last-child {
    border-bottom: none;
}
.account-hint {
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-300);
    margin-top: 10px;
    line-height: 1.5;
}

/* Hesabım: Profili Kaydet, Doğrula, Şifre yenileme bağlantısı – Inter, 500 */
#btn-save-profile-page,
#btn-save-profile,
#btn-verify-email,
#btn-verify-email-modal,
#btn-request-reset,
#btn-request-reset-page,
#btn-send-verification-code,
#btn-send-verification-code-modal {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}

#email-verification-section strong,
#email-verification-section-modal strong {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}

#email-verification-status,
#email-verification-status-modal {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}
.security-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 16px 0;
}
.account-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-200);
    margin-top: 10px;
}

.account-switch input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.account-switch span {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.5;
    flex: 1;
}

#btn-random-pick {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
}

#apply-filters-btn,
#reset-filters-btn {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
}
.upload-label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-200);
    background: rgba(255,255,255,0.04);
}
.upload-label:hover {
    border-color: var(--brand);
    color: var(--text-100);
}

.security-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 16px 0;
}


/* Auth modal */
.auth-dialog{
    max-width: 420px;
    width: 95%;
    background: var(--surface);
    color: var(--text-100);
}

/* Auth (giriş/kayıt) modalı – sadece standalone sayfalarda (login/register) */
body.auth-standalone-page #auth-modal .modal-dialog.auth-dialog {
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

@media (max-height: 600px) {
    body.auth-standalone-page #auth-modal .modal-dialog.auth-dialog {
        top: auto;
        transform: none;
        margin: 6vh auto;
    }
}
.auth-title{
    margin: 0 0 6px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
}
.auth-reason{
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-200);
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}
.auth-tabs{
    display: flex;
    gap: 8px;
    margin: 10px 0;
}
.auth-tab{
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-200);
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}
.auth-tab.active{
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.auth-panel label{
    display:block;
    font-size: 13px;
    color: var(--text-300);
    margin: 8px 0 2px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
}
.auth-panel input{
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-100);
    box-sizing: border-box;
}
.auth-panel {
    box-sizing: border-box;
    padding: 0;
    width: 100%;
    overflow: hidden;
}
.auth-page-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.auth-mini{
    margin: 10px 0 0;
    color: var(--text-300);
    font-size: 13px;
    text-align: center;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}
.auth-link{
    background: transparent;
    border: none;
    color: var(--brand);
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}

#btn-auth-register,
#btn-auth-login {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
}
.auth-msg{
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: var(--text-100);
    font-size: 13px;
}

.pass-strength-text {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}

.pass-rules {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}

.pass-rules strong {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
}




