/* ================= صور واقعية + فيديو + خلفيات غامضة ================= */
.av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: contrast(1.05) saturate(.92); }

/* مشغل الفيديو السينمائي */
.cine { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(217,164,65,.28); box-shadow: 0 30px 60px -30px #000; aspect-ratio: 16 / 9; }
.cine video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.cine-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.85)); }
.cine-cap { position: absolute; inset-inline: 6%; bottom: 9%; text-align: center; font-size: clamp(1rem, 2.4vw, 1.45rem); font-weight: 800; color: #f6efe0; text-shadow: 0 2px 14px #000, 0 0 2px #000; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; pointer-events: none; line-height: 1.7; }
.cine-cap.on { opacity: 1; transform: none; }
.cine-play { position: absolute; left: 50%; top: 50%; margin: -37px 0 0 -37px; width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(200,54,60,.88); color: #fff; font-size: 1.5rem; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(200,54,60,.18); transition: opacity .3s; }
.cine.playing .cine-play { opacity: 0; }
.cine.playing:hover .cine-play { opacity: .85; }
.cine-tag { position: absolute; top: 12px; inset-inline-end: 14px; font-size: .68rem; color: #e7b357; background: rgba(0,0,0,.55); padding: 3px 10px; border-radius: 6px; direction: ltr; }
.cine.broken { display: none; }
.cine.reveal { margin: 4px 0 14px; border-color: rgba(194,65,45,.5); }
.case-cine { margin-bottom: 26px; }
.scene-file .cine { margin: 10px 0 6px; }

/* صور مسرح الجريمة */
.scene-shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 6px 0 14px; }
.scene-shots figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.scene-shots img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: saturate(.85) contrast(1.05); transition: transform 6s ease; }
.scene-shots figure:hover img { transform: scale(1.06); }
.scene-shots figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 18px 12px 8px; font-size: .8rem; font-weight: 700; color: #f0d9a8; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* خلفية المحادثة: صورة مسرح الجريمة بحركة بطيئة وضباب */
.pc-bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: grayscale(.35) brightness(.5) contrast(1.15) blur(1px); animation: kb 38s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-2%, 1.5%); } }
.pc-fog { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 20% 80%, rgba(180,170,150,.10), transparent 70%),
  radial-gradient(50% 40% at 80% 30%, rgba(160,150,140,.08), transparent 70%);
  animation: fog 22s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes fog { to { transform: translateX(-6%) translateY(2%); opacity: .7; } }
.pc-scene { overflow: hidden; }
.pc-scene::after { background: radial-gradient(ellipse at 50% 40%, rgba(7,8,10,.35), rgba(7,8,10,.86) 75%), linear-gradient(180deg, rgba(7,8,10,.3), rgba(7,8,10,.85)) !important; }

/* بطاقات القضايا بغلاف صورة المكان */
.folder.has-cover::after { opacity: 1; background-image: linear-gradient(180deg, rgba(8,7,6,.35), rgba(8,7,6,.82) 55%, rgba(8,7,6,.96)), var(--cover); background-size: cover; background-position: center; }
.folder.has-cover p { color: #d9cfba; }

@media (prefers-reduced-motion: reduce) {
  .pc-bg, .pc-fog { animation: none; }
}
@media (max-width: 860px) {
  .scene-shots { grid-template-columns: 1fr; }
  .cine-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1.2rem; }
}

body.room-mode .toasts { top: 120px !important; bottom: auto !important; }
@media (min-width: 861px) { body.room-mode .toasts { top: 70px !important; } }

/* Cairo أطول: مسافة تحت عنوان الرئيسية والبوابة */
.hero h1 { line-height: 1.22; margin-bottom: 18px; }
@media (max-width: 860px) { .gate h1 { line-height: 1.25; margin-bottom: 14px; } }

.cine-sound { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.6); color: #f0e6d0; font-size: .8rem; font-weight: 700; backdrop-filter: blur(4px); }
.cine-sound.on { border-color: rgba(217,164,65,.6); color: #e7b357; }
