* { box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; background:#f6f7f9; color:#1a1a1a; margin:0; }
.container { max-width:980px; margin:0 auto; padding:0 20px; }

/* Ust menu */
.site-header { position:sticky; top:0; z-index:20; background:rgba(255,255,255,0.92); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-bottom:1px solid #e7e8ec; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:56px; }
.brand { display:flex; align-items:center; gap:9px; font-weight:700; font-size:15px; letter-spacing:-0.2px; color:#1a1a1a; }
.brand:hover { text-decoration:none; }
.brand .logo { width:27px; height:27px; border-radius:7px; background:linear-gradient(135deg,#1a56db,#7c3aed); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; letter-spacing:0; }
.brand .brand-sub { font-size:11px; font-weight:600; color:#999; letter-spacing:0.2px; text-transform:uppercase; }
.site-nav { display:flex; gap:4px; }
.site-nav a { padding:7px 14px; border-radius:8px; font-size:13.5px; font-weight:500; color:#555; }
.site-nav a:hover { background:#f0f2f5; color:#1a1a1a; text-decoration:none; }
.site-nav a.active { background:#e8f0fe; color:#1a56db; }

main { padding:26px 0 48px; }

.icon-btn { border:none; background:none; color:#999; font-size:12px; cursor:pointer; padding:2px 5px; }
.icon-btn:hover { color:#1a56db; }
.merge-select { padding:4px 6px; border:1px solid #ddd; border-radius:6px; font-size:12px; background:#fff; color:#555; max-width:170px; }
.card { background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,0.08); padding:18px 20px; margin-bottom:20px; }
.card h2 { font-size:14px; margin:0 0 12px; color:#333; }

.store-badge { font-size:10px; font-weight:700; padding:1px 6px; border-radius:8px; letter-spacing:0.3px; }
.store-badge.ios { background:#e8f0fe; color:#1a56db; }
.store-badge.gp { background:#e6f4ea; color:#1e7e34; }
.gp-attach { border:1px solid #cde5d3; background:#f2faf4; color:#1e7e34; font-size:11px; font-weight:600; cursor:pointer; padding:2px 7px; border-radius:8px; }
.gp-attach:hover { background:#e6f4ea; }

.add-form { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.add-form input { flex:1; min-width:200px; padding:8px 10px; border:1px solid #ddd; border-radius:6px; font-size:13px; }
.add-form button { padding:8px 16px; border:none; background:#1a56db; color:#fff; border-radius:6px; font-size:13px; cursor:pointer; }
.add-form button:hover { background:#1547b8; }
.add-form button:disabled { opacity:0.6; cursor:default; }
.hint { font-size:12px; color:#888; margin:8px 0 14px; }

/* Siralama + filtre cubugu */
.toolbar { display:flex; flex-wrap:wrap; gap:14px; align-items:center; font-size:12.5px; color:#555; margin-bottom:12px; padding-top:12px; border-top:1px solid #f0f0f0; }
.name-filter { padding:7px 12px; border:1px solid #d6d9e0; border-radius:8px; font-size:13px; width:250px; }
.name-filter:focus { outline:none; border-color:#1a56db; }
.add-panel { background:#f6f8ff; border:1px solid #e2e7fb; box-shadow:none; }
.add-panel h2 { color:#1a56db; }
.chart-tabs { display:flex; gap:6px; }
.chart-tabs button { padding:6px 14px; border:1px solid #d6d9e0; background:#fff; border-radius:8px; font-size:12.5px; font-weight:500; color:#555; cursor:pointer; }
.chart-tabs button:hover { border-color:#1a56db; color:#1a56db; }
.chart-tabs button.active { background:#1a56db; border-color:#1a56db; color:#fff; }
.rank-col { width:36px; color:#888; font-variant-numeric:tabular-nums; }
.rank-hidden .rank-col { display:none; }
.toolbar label { display:flex; align-items:center; gap:6px; }
.toolbar select, .toolbar input[type=date] { padding:5px 8px; border:1px solid #ddd; border-radius:6px; font-size:12.5px; background:#fff; color:#333; }
.divider { width:1px; height:18px; background:#e3e4e8; }
.filter-btn { padding:6px 14px; border:1px solid #d6d9e0; background:#fff; border-radius:8px; font-size:12.5px; font-weight:500; color:#333; cursor:pointer; }
.filter-btn:hover { border-color:#1a56db; color:#1a56db; }

/* Aktif filtre cipleri */
.filter-chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { display:inline-flex; align-items:center; gap:6px; background:#e8f0fe; color:#1a56db; border-radius:14px; padding:4px 7px 4px 11px; font-size:12px; font-weight:500; }
.chip button { border:none; background:rgba(26,86,219,0.12); color:inherit; width:16px; height:16px; border-radius:50%; cursor:pointer; font-size:11px; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; }
.chip button:hover { background:rgba(26,86,219,0.28); }

/* Filtre pop-up'i */
.modal-overlay { position:fixed; inset:0; background:rgba(15,17,22,0.45); z-index:50; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal { background:#fff; border-radius:12px; padding:22px 24px; width:100%; max-width:380px; box-shadow:0 12px 40px rgba(0,0,0,0.18); }
.modal h3 { margin:0 0 16px; font-size:15px; }
.modal-field { display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:#555; margin-bottom:14px; }
.modal-field select, .modal-field input { padding:8px 10px; border:1px solid #ddd; border-radius:6px; font-size:13px; background:#fff; color:#1a1a1a; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
.btn-primary { padding:8px 18px; border:none; background:#1a56db; color:#fff; border-radius:6px; font-size:13px; cursor:pointer; }
.btn-primary:hover { background:#1547b8; }
.btn-secondary { padding:8px 14px; border:1px solid #ddd; background:#fff; color:#555; border-radius:6px; font-size:13px; cursor:pointer; }
.btn-secondary:hover { background:#f5f5f7; }

/* Tablo alt bilgisi + sayfalama */
.table-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; font-size:12px; color:#888; min-height:20px; }
#loadMoreBtn { padding:7px 16px; border:1px solid #d6d9e0; background:#fff; border-radius:8px; font-size:12.5px; font-weight:500; color:#1a56db; cursor:pointer; }
#loadMoreBtn:hover { border-color:#1a56db; }

/* Oyun tablosu */
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 12px; font-size:13.5px; border-bottom:1px solid #eee; vertical-align:middle; }
th { background:#fafafa; font-weight:600; color:#444; }
th.sortable { cursor:pointer; user-select:none; }
th.sortable:hover { color:#1a56db; background:#f0f4ff; }
th.sortable.active { color:#1a56db; }
th.sortable::after { content:''; display:inline-block; width:9px; margin-left:4px; opacity:0.35; }
th.sortable[data-dir="asc"]::after { content:'▲'; font-size:9px; opacity:1; }
th.sortable[data-dir="desc"]::after { content:'▼'; font-size:9px; opacity:1; }
tr:hover td { background:#fafbfc; }
.game-cell { display:flex; align-items:center; gap:10px; }
.game-icon { width:36px; height:36px; border-radius:8px; flex-shrink:0; background:#f0f2f5; object-fit:cover; }
.game-icon.placeholder { display:inline-block; }
.game-cell a { font-weight:500; }
.update-badge { color:#e0501e; font-size:9px; }
.ext-link { font-size:12px; color:#999; padding:0 2px; }
.ext-link:hover { color:#1a56db; }
.pub-tag { display:inline-block; padding:2px 8px; border-radius:12px; font-size:11.5px; font-weight:600; background:#e8f0fe; color:#1a56db; }
a { color:#1a56db; text-decoration:none; } a:hover { text-decoration:underline; }
.empty { color:#999; font-size:13px; padding:20px; text-align:center; }
.updated { font-size:11.5px; color:#aaa; text-align:right; margin-top:6px; }
.status-line { font-size:12px; color:#888; margin-bottom:10px; min-height:16px; }
.status-line.error { color:#c0392b; }
.status-line.busy { color:#1a56db; font-weight:500; animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:0.45; } }
#refreshBtn { padding:7px 14px; border:1px solid #ddd; background:#fff; border-radius:6px; font-size:12.5px; cursor:pointer; }
#refreshBtn:disabled { opacity:0.6; cursor:default; }
#scanBtn { padding:7px 14px; border:1px solid #ddd; background:#fff; border-radius:6px; font-size:12.5px; cursor:pointer; }
#scanBtn:disabled { opacity:0.6; cursor:default; }

/* Oyun detay sayfasi */
.back-link { display:inline-block; font-size:13px; color:#666; margin-bottom:14px; }
.back-link:hover { color:#1a56db; }
.game-header-top { display:flex; gap:16px; align-items:flex-start; }
.game-icon-lg { width:76px; height:76px; border-radius:16px; flex-shrink:0; object-fit:cover; background:#f0f2f5; }
.game-meta { display:flex; gap:8px; align-items:center; margin-bottom:6px; flex-wrap:wrap; }
.version-tag { display:inline-block; padding:2px 8px; border-radius:12px; font-size:11px; font-weight:600; background:#f0f2f5; color:#555; }
.game-dates { font-size:12.5px; color:#888; }

.history-item { padding:14px 0; border-bottom:1px solid #f0f0f0; }
.history-item:last-child { border-bottom:none; }
.history-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.history-change { font-weight:600; font-size:13.5px; }
.history-prev { color:#999; font-weight:400; }
.history-new { color:#1a56db; }
.history-detected { margin-left:auto; font-size:11.5px; color:#aaa; }
.history-notes { font-size:12.5px; color:#666; margin-top:8px; white-space:pre-wrap; }
/* Medya şeridi: video + ekran görüntüleri tek yatay sırada, taşarsa kayar */
.media-strip { display:flex; gap:8px; margin-top:12px; overflow-x:auto; padding-bottom:4px; }
.media-strip::-webkit-scrollbar { height:6px; }
.media-strip::-webkit-scrollbar-thumb { background:#d5d9e0; border-radius:3px; }
.media-strip img { height:130px; min-width:56px; border-radius:8px; object-fit:cover; background:#f0f2f5; flex:0 0 auto; cursor:zoom-in; }
.media-strip.lg img { height:180px; }
.media-strip img.icon { width:130px; }
.media-strip .media-thumb { position:relative; flex:0 0 auto; cursor:pointer; }
.media-thumb.empty { display:flex; align-items:center; justify-content:center; width:100px; background:#20242c; color:#fff; border-radius:8px; font-size:13px; }
.play-badge { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:28px; text-shadow:0 1px 8px rgba(0,0,0,.75); pointer-events:none; }

/* Lightbox: medyayı büyük görüntüleme */
.lightbox { position:fixed; inset:0; background:rgba(10,12,16,.9); display:flex; align-items:center; justify-content:center; z-index:1000; }
.lightbox-content img, .lightbox-content video { max-width:90vw; max-height:86vh; border-radius:10px; display:block; background:#000; }
.lightbox-content iframe { width:min(90vw, 960px); height:min(50.6vw, 540px); border:0; border-radius:10px; background:#000; }
.lightbox-btn { position:fixed; background:rgba(255,255,255,.14); color:#fff; border:0; border-radius:50%; width:44px; height:44px; font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.lightbox-btn:hover { background:rgba(255,255,255,.28); }
.lightbox-prev { left:18px; top:50%; transform:translateY(-50%); }
.lightbox-next { right:18px; top:50%; transform:translateY(-50%); }
.lightbox-close { top:16px; right:16px; font-size:18px; }
.lightbox-count { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); color:#cfd3da; font-size:12.5px; }

/* API hedef secici (Local/Prod) */
.api-switch { margin-left:10px; padding:5px 8px; border:1px solid #ddd; border-radius:8px; font-size:12px; background:#fff; color:#555; cursor:pointer; }
