/* Yoyo Fotograflar: koyu, kenarsiz, galeri tarzi. Fotograflar on planda; arayuz geri cekilir. */
:root {
  --bg: #0e0f13; --panel: #171920; --panel-2: #20232c; --ink: #f2f3f5; --mute: #9aa0ad; --line: #2a2d38;
  --accent: #ff7a59; --accent-d: #f0603c; --gold: #ffd166; --red: #ff5d5d;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
.grow { flex: 1; }

.yp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: rgba(14, 15, 19, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.yp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.yp-logo svg { width: 30px; height: 30px; }
.yp-tabs { display: flex; gap: 4px; margin-inline: auto; background: var(--panel); padding: 4px; border-radius: 999px; }
.yp-tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 600; color: var(--mute); }
.yp-tabs button:hover { color: var(--ink); }
.yp-tabs button.on { background: var(--ink); color: var(--bg); }
.yp-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 600; background: var(--panel-2); color: var(--ink); text-decoration: none; }
.yp-btn:hover { filter: brightness(1.15); }
.yp-btn.accent { background: var(--accent); color: #1a0d08; }
.yp-btn.accent:hover { background: var(--accent-d); filter: none; }
.yp-btn.ghost { background: transparent; border: 1px solid var(--line); }
.yp-btn.ghost:hover { background: var(--panel-2); filter: none; }
.yp-btn.danger { color: var(--red); }
.yp-icon { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; }
.yp-icon:hover { background: rgba(255, 255, 255, .12); }
.yp-icon.on { color: var(--accent); }
.yp-av { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #1a0d08; font-weight: 700; display: inline-grid; place-items: center; overflow: hidden; padding: 0; flex: none; }
.yp-av img { width: 100%; height: 100%; object-fit: cover; }
.yp-av.big { width: 64px; height: 64px; font-size: 26px; }

.yp-selbar { position: sticky; top: 63px; z-index: 19; display: flex; align-items: center; gap: 8px; padding: 8px 24px; background: var(--panel-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.yp-body { padding: 8px 24px 80px; }
.yp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.yp-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.yp-day h2 { font-size: 15px; font-weight: 600; color: var(--mute); margin: 26px 0 10px; }
.yp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 4px; }
.ph { position: relative; aspect-ratio: 1; background: var(--panel); overflow: hidden; border-radius: 4px; }
.ph .pic { border: 0; padding: 0; width: 100%; height: 100%; display: block; background: none; }
.ph .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s; }
.ph:hover .pic img { transform: scale(1.03); }
.ph .noth { display: grid; place-items: center; height: 100%; padding: 10px; font-size: 12px; color: var(--mute); overflow-wrap: anywhere; text-align: center; }
.ph .tick { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .28); color: transparent; display: grid; place-items: center; padding: 0; opacity: 0; transition: opacity .12s; }
.ph .tick svg { width: 16px; height: 16px; }
.ph:hover .tick, body.selecting .ph .tick { opacity: 1; }
.ph.sel .tick { background: var(--accent); border-color: var(--accent); color: #1a0d08; opacity: 1; }
.ph.sel .pic img, .ph.sel .noth { transform: scale(.86); border-radius: 8px; }
.ph.sel { background: #2b2118; }
.ph .vid, .ph .fav { position: absolute; bottom: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); pointer-events: none; }
.ph .vid { right: 8px; }
.ph .fav { left: 8px; color: var(--accent); }
.yp-more { text-align: center; padding: 28px 0; }

.yp-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.al { border: 0; background: none; text-align: start; padding: 0; display: grid; gap: 4px; }
.al .cover { aspect-ratio: 1; border-radius: 16px; background: var(--panel); display: grid; place-items: center; overflow: hidden; color: var(--mute); margin-bottom: 6px; }
.al .cover svg { width: 44px; height: 44px; }
.al .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s; }
.al:hover .cover img { transform: scale(1.04); }
.al b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al small { color: var(--mute); }

.yp-empty { text-align: center; padding: 90px 16px; color: var(--mute); }
.yp-empty .art { width: 92px; height: 92px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; margin: 0 auto 18px; }
.yp-empty .art svg { width: 46px; height: 46px; }
.yp-empty b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.yp-empty p { margin: 0; }

.yp-pop { position: fixed; right: 24px; top: 62px; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); padding: 8px; display: grid; min-width: 270px; }
.yp-pop .who { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; text-align: center; }
.yp-pop .who span { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.yp-pop .quota { padding: 4px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 6px; }
.yp-pop .quota small { color: var(--mute); }
.yp-pop a, .yp-pop > button { border: 0; background: none; text-align: start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.yp-pop a:hover, .yp-pop > button:hover { background: var(--panel-2); }
.bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .15s; }

.up { position: fixed; right: 24px; bottom: 24px; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 260px; display: grid; gap: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; z-index: 90; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast.bad { background: var(--red); color: #fff; }
body.dropping::after { content: ""; position: fixed; inset: 10px; border: 3px dashed var(--accent); border-radius: 18px; background: rgba(255, 122, 89, .08); pointer-events: none; z-index: 70; }

.yp-dlg { border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: min(420px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.yp-dlg::backdrop { background: rgba(0, 0, 0, .6); }
.yp-dlg h2 { margin: 0 0 12px; font-size: 19px; }
.yp-dlg .pick { display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.yp-dlg .pick button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px; border-radius: 10px; text-align: start; font-weight: 600; }
.yp-dlg .pick button:hover { background: var(--panel-2); }
.yp-dlg .pick button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-dlg .pick small, .yp-dlg .pick p { color: var(--mute); }
.yp-dlg .foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; }

.yp-view { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.yp-view .bar2 { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: linear-gradient(#000c, #0000); position: relative; z-index: 2; }
.yp-view .info { flex: 1; min-width: 0; display: grid; }
.yp-view .info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-view .info small { color: #b9bdc7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-view .stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px 16px; }
.yp-view .stage img, .yp-view .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.yp-view .cant { color: var(--mute); text-align: center; max-width: 320px; }
.yp-view .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; z-index: 2; }
.yp-view .nav:hover { background: rgba(255, 255, 255, .25); }
.yp-view .nav svg { width: 28px; height: 28px; }
.yp-view .prev { left: 14px; }
.yp-view .next { right: 14px; }

@media (max-width: 760px) {
  .yp-top { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .yp-logo span { display: none; }
  .yp-tabs { order: 5; width: 100%; margin: 0; justify-content: space-between; }
  .yp-tabs button { flex: 1; padding: 7px 6px; font-size: 14px; }
  #upbtn { margin-inline-start: auto; }
  .yp-body { padding: 4px 4px 80px; }
  .yp-head, .yp-day h2 { padding-inline: 10px; }
  .yp-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .ph { border-radius: 0; }
  .yp-selbar { top: 108px; padding: 8px 12px; }
  .yp-selbar .yp-btn span { display: none; }
  .yp-pop { right: 12px; top: 58px; }
  .yp-albums { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 10px; }
  .up { right: 12px; left: 12px; width: auto; }
  .yp-view .nav { width: 40px; height: 40px; }
}
