:root {
    --bg: #0e1015;
    --surface: #171a22;
    --surface-2: #1f2430;
    --text: #e8eaf0;
    --muted: #8b92a5;
    --accent: #e50914;
    --accent-hover: #f6121d;
    --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header { background: rgba(14,16,21,.92); border-bottom: 1px solid var(--surface-2); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--accent); letter-spacing: .5px; }
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a { color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }

main.container { padding-block: 1.5rem 3rem; min-height: 70vh; }

/* Buttons & alerts */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.5rem; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-hover); }
.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: var(--surface-2); }
.alert-success { border-left: 4px solid #2ecc71; }
.alert-error { border-left: 4px solid var(--accent); }

/* Hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; margin-bottom: 2.5rem; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 5%, rgba(14,16,21,.35) 70%); }
.hero-content { position: relative; padding: 2rem; max-width: 640px; }
.hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.hero-content p { color: #c9cddb; margin-bottom: 1.2rem; }

/* Sections & grid */
.movie-section { margin-bottom: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.section-head h2 { font-size: 1.3rem; border-left: 4px solid var(--accent); padding-left: .7rem; }
.section-head a { color: var(--muted); font-size: .9rem; }
.section-head a:hover { color: var(--text); }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }

/* Movie card */
.movie-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.movie-card .poster { position: relative; aspect-ratio: 2 / 3; background: var(--surface-2); }
.movie-card .poster img { width: 100%; height: 100%; object-fit: cover; }
.badge-rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.8); color: #f5c518; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
.movie-card .meta { padding: .6rem .7rem .8rem; }
.movie-card h3 { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.movie-card .year { color: var(--muted); font-size: .8rem; }

/* Empty / error */
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-state h1 { font-size: 4rem; color: var(--accent); }
.empty-state p { color: var(--muted); margin: .5rem 0 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--surface-2); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; text-align: center; }
.tmdb-note { font-size: .75rem; margin-top: .4rem; }

@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
    .hero { min-height: 300px; }
}

/* Auth & formlar */
.auth-card { max-width: 400px; margin: 3rem auto; background: var(--surface); padding: 2rem; border-radius: var(--radius); }
.auth-card h1 { margin-bottom: 1rem; font-size: 1.5rem; }
.auth-card label, .form-card label { display: block; font-size: .9rem; color: var(--muted); margin: .9rem 0 .3rem; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select {
    width: 100%; padding: .65rem .8rem; border-radius: 8px; border: 1px solid #2a3040; background: var(--bg); color: var(--text); font-size: 1rem;
}
input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.btn-block { width: 100%; margin-top: 1.4rem; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--text); }

/* Liste sayfaları */
.page-head { margin-bottom: 1rem; }
.page-head h1 { font-size: 1.6rem; }
.muted { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.chip-row.tight { margin: .6rem 0; }
.chip-link { padding: .25rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid #2a3040; font-size: .85rem; color: var(--muted); transition: all .2s; }
.chip-link:hover { color: var(--text); border-color: var(--accent); }
.chip-link.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0 1.4rem; font-size: .9rem; }
.sort-row a { color: var(--muted); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.sort-row a:hover { color: var(--text); }
.sort-row a.on { color: var(--text); border-color: var(--accent); }
.pager { display: flex; gap: .3rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { padding: .35rem .8rem; background: var(--surface); border-radius: 6px; }
.pager a:hover { background: var(--surface-2); }
.pager a.on { background: var(--accent); }

/* Film sayfası */
.movie-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.movie-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: .35; filter: blur(2px); }
.movie-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(14,16,21,.55)); }
.movie-hero-inner { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem; background: rgba(23,26,34,.55); }
.movie-poster { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.6); aspect-ratio: 2/3; object-fit: cover; background: var(--surface-2); }
.movie-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; }
.movie-info .year { color: var(--muted); font-weight: 400; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: .8rem 0; color: #c9cddb; }
.fact.rating { color: #f5c518; font-weight: 700; font-size: 1.1rem; }
.fact small { color: var(--muted); font-weight: 400; }
.tagline { font-style: italic; color: var(--muted); margin: .6rem 0; }
.movie-info .sub { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.overview { color: #d5d8e3; max-width: 70ch; margin-bottom: 1rem; }
.ext-links { display: flex; gap: 1.2rem; margin-top: 1rem; font-size: .9rem; }
.ext-links a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.ext-links a:hover { color: var(--text); }
.block { margin-bottom: 2.5rem; }
.block h2 { font-size: 1.3rem; border-left: 4px solid var(--accent); padding-left: .7rem; margin-bottom: 1rem; }

/* Fragman oynatıcı */
.trailer-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.trailer-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background-size: cover; background-position: center; }
.trailer-facade .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(229,9,20,.92); color: #fff; font-size: 1.9rem; display: grid; place-items: center; padding-left: 5px; transition: transform .2s; }
.trailer-facade:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.trailer-list { display: flex; gap: .8rem; overflow-x: auto; margin-top: .8rem; padding-bottom: .4rem; max-width: 900px; }
.trailer-item { flex: 0 0 160px; background: var(--surface); border: 0; border-radius: 8px; overflow: hidden; color: var(--text); cursor: pointer; text-align: left; }
.trailer-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.trailer-item span { display: block; padding: .4rem .5rem; font-size: .75rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Oyuncular */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.cast-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cast-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--surface-2); }
.cast-card strong { font-size: .85rem; padding: .5rem .6rem 0; line-height: 1.3; }
.cast-card .muted { font-size: .75rem; padding: 0 .6rem .6rem; }

@media (max-width: 760px) {
    .movie-hero-inner { grid-template-columns: 1fr; padding: 1.2rem; }
    .movie-poster { max-width: 220px; margin-inline: auto; }
    .trailer-facade .play { width: 60px; height: 60px; }
}

/* Kayıt formu: honeypot gizli alan */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-alt { margin-top: 1.2rem; text-align: center; font-size: .9rem; }
.alert div + div { margin-top: .2rem; }
.small { font-size: .8rem; }

/* Puan kutusu */
.rate-box { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.rate-avg { margin-bottom: .6rem; }
.rate-form { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.rate-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2a3040; background: var(--bg); color: var(--muted); cursor: pointer; font-weight: 600; }
.rate-btn:hover { border-color: var(--accent); color: var(--text); }
.rate-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fact.rating.site { color: #ff6b81; }

/* Yorumlar */
textarea { width: 100%; padding: .7rem .8rem; border-radius: 8px; border: 1px solid #2a3040; background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.comment-form { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.cf-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .4rem; }
.cf-row .btn-sm { margin-top: .6rem; }
.login-prompt { background: var(--surface); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.comment { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--surface-2); }
.comment.reply { border-bottom: 0; padding: .8rem 0 0; }
.comment .avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.comment.reply .avatar { flex-basis: 30px; height: 30px; font-size: .85rem; background: #3b4256; }
.c-main { flex: 1; min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.c-head .muted { font-size: .8rem; }
.c-text, .spoiler p { margin: .3rem 0 .4rem; overflow-wrap: anywhere; color: #d5d8e3; }
.spoiler { margin: .3rem 0; }
.spoiler summary { cursor: pointer; color: #f5c518; font-size: .9rem; }
.badge-pending { background: rgba(245,197,24,.15); color: #f5c518; font-size: .75rem; padding: 1px 8px; border-radius: 999px; }
.c-actions { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .85rem; }
.act { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.act:hover { color: var(--text); }
.act.on { color: #ff6b81; }
.act.danger:hover { color: var(--accent); }
.reply-box { width: 100%; }
.reply-box summary { list-style: none; }
.reply-box form { margin-top: .6rem; }
.reply-box .btn-sm { margin-top: .5rem; }
.c-main > .comment.reply { margin-left: .2rem; border-left: 2px solid var(--surface-2); padding-left: .8rem; }

/* Sanatçı kartları ve sayfa */
.person-card .poster img { object-position: center top; }
.movie-card .year.char { display: block; margin-top: .1rem; font-style: italic; }
.cast-card { color: inherit; transition: transform .2s, box-shadow .2s; }
a.cast-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.plain-link { border-bottom: 1px dotted var(--muted); }
.plain-link:hover { color: #fff; border-color: #fff; }
.bio-more summary { cursor: pointer; color: var(--accent); font-size: .9rem; margin-bottom: .4rem; }
.bio-more summary:hover { color: var(--accent-hover); }

/* Arama kutusu */
.header-inner { gap: 1rem; }
.search-form { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.search-form input { padding: .45rem .8rem; font-size: .9rem; border-radius: 999px; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--surface); border: 1px solid #2a3040; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 60; }
.sg-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .7rem; }
.sg-item:hover { background: var(--surface-2); }
.sg-item img { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex: none; }
.sg-item b { display: block; font-size: .9rem; line-height: 1.25; }
.sg-item small { color: var(--muted); font-size: .75rem; }
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; height: auto; padding-block: .6rem; }
    .search-form { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
}

/* Manşet slaytı */
.hero-slider { position: relative; margin-bottom: 2.5rem; }
.hero-slider .hero { margin-bottom: 0; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: .6rem; line-height: 1.2; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 3; opacity: 0; transition: opacity .2s, background .2s; }
.hero-arrow.prev { left: .8rem; }
.hero-arrow.next { right: .8rem; }
.hero-slider:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: var(--accent); }
.hero-nav { position: absolute; right: 1.2rem; bottom: 1rem; display: flex; align-items: center; gap: .45rem; z-index: 3; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, transform .2s; }
.hero-dot.is-active { background: var(--accent); transform: scale(1.25); }
.hero-pause { background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 999px; font-size: .65rem; padding: .3rem .6rem; cursor: pointer; margin-right: .3rem; }
.hero-pause:hover { background: var(--accent); }
@media (hover: none) { .hero-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Üye profili */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
.profile-head h1 { font-size: 1.5rem; }
.avatar.big { width: 68px; height: 68px; font-size: 1.8rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.stat-row { display: flex; gap: 1.6rem; margin-left: auto; }
.stat-row div { text-align: center; }
.stat-row b { display: block; font-size: 1.5rem; }
.stat-row span { color: var(--muted); font-size: .8rem; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.settings-grid .form-card { max-width: none; }
.settings-grid h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.settings-grid .btn-sm { margin-top: 1rem; }
.mod-card { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.mod-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-size: .9rem; }
.mod-body { margin: .6rem 0; color: #d5d8e3; overflow-wrap: anywhere; }
.badge-mine { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: .75rem; padding: 2px 8px; border-radius: 6px; }
.hero-actions { margin-top: 1rem; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: #fff; padding: .55rem 1.3rem; }
.btn-outline:hover, .btn-outline.on { background: var(--accent); }
.comment .c-head a:hover { text-decoration: underline; }

/* E-posta ayarları formu */
.form-sub { font-size: 1.05rem; margin: 1.6rem 0 .4rem; border-top: 1px solid var(--surface-2); padding-top: 1.2rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: .85em; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* Ana sayfa: son yorumlar */
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.recent-card { display: flex; gap: .8rem; background: var(--surface); border-radius: var(--radius); padding: .8rem; transition: background .2s; }
.recent-card:hover { background: var(--surface-2); }
.recent-card img { width: 46px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex: none; }
.recent-card strong { font-size: .95rem; }
.recent-card p { color: #c9cddb; font-size: .85rem; margin: .2rem 0; overflow-wrap: anywhere; }
