.mood-overlay {
    display: none; position: fixed; inset: 0; z-index: 100000; align-items: center; justify-content: center;
    padding: 20px; background: rgba(4,4,10,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.mood-dialog {
    position: relative; width: min(100%,690px); max-height: min(88vh,820px); overflow: auto; padding: 36px;
    border: 1px solid rgba(180,151,255,.2); border-radius: 24px; color: #fff; text-align: right;
    background: radial-gradient(ellipse at 8% 0%,rgba(124,58,237,.19),transparent 36%),linear-gradient(145deg,#171321,#0c0b11 76%);
    box-shadow: 0 32px 100px rgba(0,0,0,.66),inset 0 1px rgba(255,255,255,.06); animation: moodDialogIn .3s ease both;
}
@keyframes moodDialogIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mood-close { position: absolute; top: 20px; left: 20px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: rgba(255,255,255,.78); background: rgba(255,255,255,.045); cursor: pointer; transition: .2s ease; }
.mood-close:hover { color: #fff; border-color: rgba(196,181,253,.45); background: rgba(124,58,237,.25); transform: rotate(90deg); }
.mood-close-svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.mood-heading { padding: 3px 0 24px; text-align: center; }
.mood-kicker { display: inline-block; color: #b5a0ff; font: 700 10px/1.4 'Rajdhani',sans-serif; letter-spacing: 2.2px; direction: ltr; }
.mood-heading h2 { margin: 9px 0 5px; color: #fff; font-size: clamp(23px,4vw,30px); font-weight: 800; }
.mood-heading p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; }
.mood-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; direction: rtl; }
.mood-choice { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; color: #fff; text-align: right; background: rgba(255,255,255,.035); cursor: pointer; transition: border-color .2s,background .2s,transform .2s; }
.mood-choice:hover,.mood-choice:focus-visible { outline: none; border-color: rgba(167,139,250,.48); background: linear-gradient(110deg,rgba(124,58,237,.18),rgba(56,189,248,.06)); transform: translateY(-2px); }
.mood-choice-icon { display: flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(167,139,250,.16); border-radius: 12px; color: #a78bfa; background: rgba(124,58,237,.13); filter: drop-shadow(0 0 5px rgba(167,139,250,.3)); transition: color .2s,filter .2s,background .2s; }
.mood-svg { display: block; flex: 0 0 28px; width: 28px; min-width: 28px; height: 28px; min-height: 28px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mood-choice:hover .mood-choice-icon { color: #d7c8ff; background: rgba(124,58,237,.24); filter: drop-shadow(0 0 8px rgba(167,139,250,.6)); }
.mood-choice>span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.mood-choice strong { font-size: 13px; font-weight: 800; }
.mood-choice small { overflow: hidden; color: rgba(255,255,255,.43); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mood-choice-arrow { display: block; flex: 0 0 16px; width: 16px; height: 16px; margin-right: auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: rgba(196,181,253,.42); transition: transform .2s,color .2s; }
.mood-choice:hover .mood-choice-arrow { color: #c4b5fd; transform: translateX(-3px); }
.mood-footer-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: rgba(255,255,255,.34); font-size: 10px; }
.mood-footer-note span { width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
.mood-result { margin-top: 8px; }
.mood-loading,.mood-error { padding: 28px 14px; color: rgba(255,255,255,.7); text-align: center; }
.mood-spinner { display: block; width: 25px; height: 25px; margin: 0 auto 12px; border: 2px solid rgba(167,139,250,.2); border-top-color: #a78bfa; border-radius: 50%; animation: moodSpin 1s linear infinite; }
@keyframes moodSpin { to { transform: rotate(360deg); } }
.mood-error { color: #fca5a5; }
.mood-film { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 20px; padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.035); text-align: right; }
.mood-film-poster { width: 100%; aspect-ratio: 2/3; border-radius: 12px; object-fit: cover; background: #171321; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.mood-film-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.mood-film-kicker { color: #b5a0ff; font: 700 9px 'Rajdhani',sans-serif; letter-spacing: 1.8px; }
.mood-film-title { margin: 7px 0 5px; color: #fff; font-size: 20px; font-weight: 800; }
.mood-film-rating { display: inline-flex; align-items: center; gap: 5px; color: #e9c46a; font-size: 12px; }
.mood-film-overview { display: -webkit-box; overflow: hidden; margin: 12px 0 18px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.mood-film-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mood-film-watch,.mood-again { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 10px; font: 700 11px 'Cairo',sans-serif; text-decoration: none; cursor: pointer; transition: .2s ease; }
.mood-result-icon { display: block; flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mood-rating-star { fill: currentColor; stroke: none; }
.mood-play-icon { fill: currentColor; stroke: none; }
.mood-film-watch { color: #fff; background: linear-gradient(120deg,#8b5cf6,#6d28d9); box-shadow: 0 6px 20px rgba(109,40,217,.25); }
.mood-again { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); background: rgba(255,255,255,.04); }
.mood-film-watch:hover,.mood-again:hover { transform: translateY(-2px); filter: brightness(1.12); }
.mood-trailer { position: relative; overflow: hidden; width: 100%; margin-top: 14px; padding-top: 56.25%; border-radius: 14px; background: #050509; }
.mood-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width:560px) {
    .mood-overlay { align-items: flex-end; padding: 10px; }
    .mood-dialog { width: 100%; max-height: 88dvh; padding: 30px 17px 19px; border-radius: 22px 22px 16px 16px; }
    .mood-close { top: 14px; left: 14px; width: 34px; height: 34px; }
    .mood-heading { padding: 5px 0 19px; }
    .mood-heading p { font-size: 11px; }
    .mood-options { gap: 8px; }
    .mood-choice { gap: 8px; padding: 10px 8px; border-radius: 12px; }
    .mood-choice-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
    .mood-choice strong { font-size: 11px; }
    .mood-choice small { font-size: 9px; }
    .mood-choice-arrow { display: none; }
    .mood-film { grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 11px; }
    .mood-film-title { font-size: 16px; }
    .mood-film-overview { margin: 8px 0 12px; font-size: 10px; }
    .mood-film-watch,.mood-again { min-height: 34px; padding: 7px 9px; font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) { .mood-dialog,.mood-choice,.mood-choice-arrow,.mood-film-watch,.mood-again { animation:none; transition:none; } }
