/* AI Akış — özel koyu tema */
.nfx-root {
    margin: 0 auto;
    background: #141414;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 80vh;
    max-width: 480px;
    overflow: hidden;
    padding-bottom: 32px;
}

/* Profil kapısı */
.nfx-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px 80px; }
.nfx-gate h1 { font-size: 28px; font-weight: 500; margin: 56px 0 28px; }
.nfx-profiles { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: center; }
.nfx-profile { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; color: #9c9c9c; font-size: 14px; cursor: pointer; }
.nfx-profile:hover { color: #fff; }
.nfx-profile:hover .nfx-avatar { outline: 3px solid #fff; }
.nfx-avatar { width: 84px; height: 84px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #fff; }
.nfx-avatar.mini { width: 32px; height: 32px; font-size: 15px; border: 0; cursor: pointer; }
.nfx-gate-note { margin-top: 56px; color: #6d6d6d; font-size: 12px; }

/* Logo */
.nfx-logo { color: #4f9cf9; font-weight: 800; font-size: 26px; letter-spacing: 0.5px; }
.nfx-logo.small { font-size: 22px; }

/* Nav */
.nfx-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 16px; background: linear-gradient(180deg, rgba(20,20,20,0.95), rgba(20,20,20,0.85)); }
.nfx-nav .nfx-logo { font-size: 22px; }
.nfx-nav-links { display: flex; gap: 18px; flex: 1; }
.nfx-nav-links a { color: #d2d2d2; text-decoration: none; font-size: 13px; }
.nfx-nav-links a.active { color: #fff; font-weight: 600; }
.nfx-nav-links a:hover { color: #9c9c9c; }
.nfx-nav-right { display: flex; align-items: center; gap: 14px; }
.nfx-search { display: flex; align-items: center; }
.nfx-search > button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; }
.nfx-search input { width: 0; opacity: 0; transition: width .25s, opacity .25s; background: rgba(0,0,0,0.75); border: 1px solid #4d4d4d; color: #fff; padding: 7px 10px; font-size: 13px; border-radius: 2px; }
.nfx-search.open input { width: 150px; opacity: 1; }
/* Mobil-only duzen: nav her ekranda mobil */
.nfx-nav { gap: 14px; }
.nfx-nav-links { display: none; }
.nfx-nav-right { margin-left: auto; }
.nfx-search.open input { width: 110px; }

/* Hero */
.nfx-hero { position: relative; aspect-ratio: 16/9; max-height: 72vh; overflow: hidden; }
.nfx-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.nfx-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.35) 50%, transparent 75%), linear-gradient(0deg, #141414 2%, transparent 40%); }
.nfx-hero-body { position: absolute; left: 16px; bottom: 12%; max-width: 520px; }
.nfx-hero-tag { color: #d2d2d2; font-size: 12px; letter-spacing: 4px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.nfx-hero-body h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.nfx-hero-meta { color: #d2d2d2; font-size: 13px; margin: 0 0 10px; }
.nfx-match { color: #46d369; font-weight: 700; }
.nfx-hero-desc { font-size: 15px; line-height: 1.45; margin: 0 0 16px; text-shadow: 0 1px 8px rgba(0,0,0,0.7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nfx-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.nfx-btn { border: 0; border-radius: 4px; padding: 10px 20px; font-size: 15px; font-weight: 700; cursor: pointer; }
.nfx-btn.play { background: #fff; color: #000; }
.nfx-btn.play:hover { background: rgba(255,255,255,0.8); }
.nfx-btn.info { background: rgba(109,109,110,0.6); color: #fff; }
.nfx-btn.info:hover { background: rgba(109,109,110,0.45); }
.nfx-btn:disabled { opacity: 0.5; cursor: default; }
/* Mobil-only duzen: hero her ekranda mobil olculer */
.nfx-hero { aspect-ratio: 4/5; max-height: none; }
.nfx-hero-body { bottom: 8%; max-width: 86%; }
.nfx-hero-body h1 { font-size: 30px; }
.nfx-hero-desc { font-size: 13px; }
.nfx-btn { padding: 8px 14px; font-size: 13px; }

/* Satırlar */
.nfx-rows { margin-top: -8px; position: relative; z-index: 5; display: flex; flex-direction: column; gap: 26px; padding: 0 0 8px; }
.nfx-row h2 { font-size: 16px; font-weight: 700; color: #e5e5e5; margin: 0 16px 8px; }
.nfx-row-wrap { position: relative; }
.nfx-strip { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 16px 24px; scrollbar-width: none; scroll-snap-type: x proximity; }
.nfx-strip::-webkit-scrollbar { display: none; }
.nfx-arrow { position: absolute; top: 0; bottom: 10px; width: 40px; border: 0; background: rgba(20,20,20,0.6); color: #fff; font-size: 30px; cursor: pointer; opacity: 0; transition: opacity .2s; z-index: 3; }
.nfx-arrow.left { left: 0; } .nfx-arrow.right { right: 0; }
.nfx-row-wrap:hover .nfx-arrow { opacity: 1; }
@media (hover: none) { .nfx-arrow { display: none; } }

/* Kart (yatay küçük resim + altta başlık) */
.nfx-card { position: relative; flex: 0 0 auto; width: 210px; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; padding: 0; background: #1f1f1f; scroll-snap-align: start; transition: transform .25s; display: flex; flex-direction: column; text-align: left; color: inherit; font: inherit; }
.nfx-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.nfx-card-art { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.nfx-card-meta { padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.nfx-card-meta .nfx-trailer-name { font-size: 12px; color: #e5e5e5; }
.nfx-card-meta .nfx-trailer-studio { font-size: 10px; color: #8c8c8c; }
.nfx-poster-grad { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px; }
.nfx-poster-grad span { font-size: 15px; font-weight: 800; line-height: 1.15; text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.nfx-poster-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent); }
.nfx-poster-grad + .nfx-poster-name { display: none; }
.nfx-poster-badge { position: absolute; top: 0; right: 0; background: #4f9cf9; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 0 0 0 4px; }
@media (hover: hover) { .nfx-card:hover { transform: scale(1.05); z-index: 4; } }

/* Top 10 */
.nfx-top10 { display: flex; align-items: flex-end; flex: 0 0 auto; scroll-snap-align: start; }
.nfx-rank { font-size: 104px; font-weight: 800; line-height: 0.8; color: #141414; -webkit-text-stroke: 3px #6d6d6d; margin-right: -16px; user-select: none; }

/* Devam edenler */
.nfx-progress { height: 3px; background: #4d4d4d; width: 100%; overflow: hidden; }
.nfx-progress > div { height: 100%; background: #4f9cf9; }

/* Arama sonuçları */
.nfx-results { min-height: 60vh; padding: 24px 16px; }
.nfx-results h2 { font-size: 18px; margin: 0 0 16px; }
.nfx-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.nfx-empty { color: #9c9c9c; font-size: 14px; margin: 8px 16px; }
.nfx-results .nfx-empty { margin: 8px 0; }

/* Modal */
.nfx-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.nfx-modal { background: #181818; border-radius: 8px; width: 100%; max-width: 440px; overflow: hidden; }
.nfx-modal-art { position: relative; aspect-ratio: 16/9; background: #2a2a2a; }
.nfx-modal-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nfx-modal-art .nfx-poster-grad span { font-size: 30px; padding: 14px; }
.nfx-modal-art-fade { position: absolute; inset: 0; background: linear-gradient(0deg, #181818 2%, transparent 55%); }
.nfx-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #181818; color: #fff; font-size: 14px; cursor: pointer; }
.nfx-modal-body { padding: 14px 24px 24px; font-size: 14px; line-height: 1.55; color: #e5e5e5; }
.nfx-modal-body .nfx-modal-title { font-size: 20px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.nfx-modal-body .nfx-hero-btns { margin: 0 0 14px; }
.nfx-modal-body .nfx-hero-meta { margin: 6px 0 12px; }
.nfx-age { border: 1px solid #6d6d6d; padding: 0 5px; font-size: 11px; }
.nfx-play-note { background: rgba(79,156,249,0.15); border: 1px solid rgba(79,156,249,0.5); border-radius: 4px; padding: 10px 12px; color: #ffb3b6; font-size: 13px; }
.nfx-genres { color: #9c9c9c; font-size: 12px; }
.nfx-genres span { color: #6d6d6d; }

/* Footer */
.nfx-footer { margin-top: 48px; padding: 20px 16px 8px; border-top: 1px solid #2a2a2a; }
.nfx-footer p { color: #6d6d6d; font-size: 12px; line-height: 1.6; max-width: 640px; }

/* Fragman / kullanıcı kartları */
.nfx-poster-grad.trailer-grad { background: linear-gradient(160deg, #3a0d0d, #120404); }
.nfx-card-art.user-grad, .nfx-poster-grad.user-grad { background: linear-gradient(160deg, #123a3a, #041212); }
.nfx-poster-grad.trailer-grad, .nfx-poster-grad.user-grad { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; }
.nfx-play-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); color: #fff; font-size: 11px; }
.nfx-play-ico.big { width: 46px; height: 46px; font-size: 16px; }
.nfx-trailer-name { font-size: 14px; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.nfx-trailer-name.big { font-size: 22px; }
.nfx-trailer-studio { font-size: 10px; color: #b5b5b5; }
.nfx-poster-badge.pd { background: rgba(20,20,20,0.85); color: #d2d2d2; border: 1px solid #4d4d4d; border-radius: 3px; top: 6px; right: 6px; }
.nfx-pd { border: 1px solid #6d6d6d; padding: 0 5px; font-size: 11px; }

/* Video ekleme formu */
.nfx-addform { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 16px 6px; }
.nfx-addform input { flex: 1 1 160px; background: rgba(0,0,0,0.6); border: 1px solid #4d4d4d; color: #fff; padding: 10px 12px; font-size: 13px; border-radius: 4px; min-height: 44px; }
.nfx-addform .nfx-btn { flex: 0 0 auto; min-height: 44px; }
.nfx-hint { color: #6d6d6d; font-size: 11px; margin: 4px 16px 0; }

/* Oynatıcı */
.nfx-player { position: relative; aspect-ratio: 16/9; background: #000; }
.nfx-player iframe, .nfx-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nfx-btn.danger { background: rgba(79,156,249,0.2); color: #ff8085; border: 1px solid rgba(79,156,249,0.5); margin-top: 10px; }
.nfx-genres a { color: #fff; }

/* Fragman kartı metin taşma koruması */
.nfx-trailer-name { color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nfx-trailer-studio { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfx-modal .nfx-trailer-name.big { -webkit-line-clamp: 3; }

.nfx-ext { position: absolute; left: 12px; bottom: 10px; z-index: 3; color: #fff; font-size: 12px; background: rgba(0,0,0,0.6); padding: 6px 10px; border-radius: 4px; text-decoration: none; }
.nfx-ext:hover { text-decoration: underline; }

a.nfx-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* Bağımsız sürüm: kart dolgusu yok */
body { background: #141414; margin: 0; }
.nfx-root { min-height: 100vh; }
