/* ===== VARIABLES & BASE ===== */
:root { --bg-primary: #0d1117; --bg-secondary: #161b22; --bg-card: #1c2128; --bg-hover: #21262d; --accent-primary: #e53935; --accent-secondary: #b71c1c; --accent-gold: #ffd700; --text-primary: #ffffff; --text-secondary: #8b949e; --text-muted: #6e7681; --border: #30363d; --success: #3fb950; --error: #f85149; --warning: #d29922; --shadow-sm: 0 2px 8px rgba(0,0,0,0.4); --shadow-md: 0 4px 16px rgba(0,0,0,0.5); --shadow-lg: 0 8px 32px rgba(0,0,0,0.6); --shadow-glow: 0 0 30px rgba(229,57,53,0.3); --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --nb-h: 64px; --nb-grad: linear-gradient(180deg,rgba(0,0,0,0.85) 0%,transparent 100%); --nb-solid: #141414; --nb-red: #e50914; --nb-yellow: #f5c518; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Assistant', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; padding-top: var(--nb-h); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

/* ===== NAVBAR ===== */
.nb-sr { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
#nb-header { position: fixed; top: 0; right: 0; left: 0; z-index: 9800; background: var(--nb-grad); transition: background 0.4s ease, box-shadow 0.4s ease; direction: rtl; }
#nb-header.nb-scrolled { background: var(--nb-solid); box-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.nb-row { height: var(--nb-h); max-width: 1600px; margin: 0 auto; padding: 0 4%; display: flex; align-items: center; gap: 32px; }
.nb-logo { display: flex; align-items: center; text-decoration: none !important; flex-shrink: 0; user-select: none; }
.nb-logo img { max-height: 54px; width: auto; transition: transform 0.2s ease; }
.nb-logo:hover img { transform: scale(1.05); }
.nb-logo-badge { background: var(--nb-yellow); color: #000; font-size: 17px; font-weight: 900; letter-spacing: -1px; padding: 4px 8px; border-radius: 4px 0 0 4px; line-height: 1; transition: filter 0.2s; }
.nb-logo-slash { background: var(--nb-red); color: #fff; font-size: 13px; font-weight: 900; padding: 4px 7px; border-radius: 0 4px 4px 0; line-height: 1; letter-spacing: 1px; }
.nb-logo:hover .nb-logo-badge { filter: brightness(1.15); }
.nb-logo:hover .nb-logo-slash { filter: brightness(1.2); }
.nb-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; flex: 1; }
.nb-link { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #999; text-decoration: none !important; white-space: nowrap; transition: color 0.2s ease, background 0.2s ease; position: relative; }
.nb-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s ease; }
.nb-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nb-link:hover svg { opacity: 1; }
.nb-link.nav-active { color: #fff; font-weight: 700; }
.nb-link.nav-active::after { content: ''; position: absolute; bottom: -2px; right: 10px; left: 10px; height: 2px; background: var(--nb-yellow); border-radius: 1px; }
.nb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: auto; }
.nb-search-wrap { display: flex; align-items: center; position: relative; }
.nb-search-trigger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: #999; cursor: pointer; transition: all 0.2s ease; }
.nb-search-trigger svg { width: 18px; height: 18px; }
.nb-search-trigger:hover, .nb-search-trigger.open { color: #fff; border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); }
.nb-search-expand { display: flex; align-items: center; position: absolute; left: 0; background: rgba(20,20,20,0.97); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; width: 0; opacity: 0; pointer-events: none; transition: width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease; white-space: nowrap; min-height: 36px; }
.nb-search-expand.open { width: 280px; opacity: 1; pointer-events: all; }
.nb-search-expand input { flex: 1; background: transparent; border: none; outline: none; padding: 0 14px; font-size: 14px; font-weight: 500; color: #fff; caret-color: var(--nb-yellow); text-align: right; }
.nb-search-expand input::placeholder { color: rgba(255,255,255,0.4); }
.nb-search-go { background: var(--nb-yellow); border: none; color: #000; font-size: 13px; font-weight: 800; padding: 0 14px; height: 36px; cursor: pointer; transition: filter 0.2s ease; flex-shrink: 0; }
.nb-search-go:hover { filter: brightness(1.1); }
.nb-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.nb-btn { padding: 7px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: all 0.2s ease; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nb-btn-ghost { color: #e5e5e5; border: 1px solid rgba(255,255,255,0.25); background: transparent; }
.nb-btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.nb-btn-primary { background: var(--nb-red); color: #fff !important; border: none; }
.nb-btn-primary:hover { background: #f6121d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(229,9,20,0.45); }
.nb-user-wrap { position: relative; }
.nb-user-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: none; cursor: pointer; padding: 4px 6px; border-radius: 4px; transition: background 0.2s ease; color: #e5e5e5; }
.nb-user-btn:hover { background: rgba(255,255,255,0.08); }
.nb-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, #e50914 0%, #8b0000 100%); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; }
.nb-uname { font-size: 14px; font-weight: 600; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-caret { font-size: 9px; color: #999; transition: transform 0.2s ease; }
.nb-user-btn.open .nb-caret { transform: rotate(180deg); }
.nb-dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; background: rgba(18,18,18,0.98); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 4px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.18s ease; z-index: 200; }
.nb-dropdown::before { content: ''; position: absolute; top: -6px; left: 16px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid rgba(255,255,255,0.12); }
.nb-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nb-drop-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: #e5e5e5; text-decoration: none !important; transition: background 0.2s ease, color 0.2s ease; cursor: pointer; white-space: nowrap; }
.nb-drop-item svg { width: 14px; height: 14px; flex-shrink: 0; color: #999; }
.nb-drop-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nb-drop-item:hover svg { color: #fff; }
.nb-drop-sep { height: 1px; background: rgba(255,255,255,0.1); margin: 4px 0; }
.nb-drop-danger { color: #fc8181; }
.nb-drop-danger:hover { background: rgba(229,9,20,0.12); color: #ff6b6b; }
.nb-drop-danger svg { color: #fc8181; }
.nb-ham { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; cursor: pointer; padding: 0; transition: border-color 0.2s ease; }
.nb-ham:hover { border-color: rgba(255,255,255,0.3); }
.nb-bar { display:block; width:20px; height:2px; background:#e5e5e5; border-radius:1px; transition:all 0.28s ease; }
.nb-ham.open { border-color: var(--nb-red); }
.nb-ham.open .nb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background:var(--nb-red); }
.nb-ham.open .nb-bar:nth-child(2) { opacity:0; transform:scaleX(0); }
.nb-ham.open .nb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background:var(--nb-red); }

/* ===== FOOTER ===== */
.main-footer { background: #0d1117; border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 0; margin-top: 80px; position: relative; z-index: 10; width: 100%; direction: rtl; }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 0 4% 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-section h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid #e53935; padding-bottom: 10px; display: inline-block; }
.footer-section p { color: #8b949e; font-size: 15px; line-height: 1.6; margin-bottom: 15px; }
.footer-section a { display: block; color: #8b949e; text-decoration: none; margin-bottom: 10px; transition: all 0.3s ease; font-size: 15px; font-weight: 500; }
.footer-section a:hover { color: #e53935; transform: translateX(-5px); }
.footer-bottom { position: relative; margin-top: 40px; padding: 30px 0; background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(139,92,246,0.04) 100%); border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), rgba(139,92,246,0.4), transparent) 1; text-align: center; overflow: hidden; }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 2px; background: linear-gradient(90deg, transparent, #e53935, #ff5252, transparent); animation: glowingBar 4s infinite linear; }
.fb-content { display: flex; flex-direction: row; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 0 4%; }
.fb-content p { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); text-shadow: 0 0 10px rgba(255,255,255,0.05); }

/* ===== FOOTER BOTTOM & PREMIUM CREDIT ===== */
.ns-tech-credit { position:relative; display:inline-flex; align-items:center; gap:8px; padding:6px 16px; background-color:#0a0e1a; border:1px solid #1f2937; border-radius:50px; text-decoration:none; overflow:hidden; transition:all .3s ease; z-index:1; }
.ns-tech-credit:hover { border-color:rgba(255,195,0,0.5); box-shadow:0 0 15px rgba(255,195,0,0.15); }
.ns-shimmer { position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.05),transparent); transform:translateX(-100%); z-index:0; pointer-events:none; }
.ns-tech-credit:hover .ns-shimmer { animation:ns-shimmer-anim 1.5s infinite; }
.ns-text-main { font-size:11px; color:#6b7280; font-weight:500; display:flex; align-items:center; gap:4px; transition:color .3s ease; position:relative; z-index:2; }
.ns-tech-credit:hover .ns-text-main { color:#d1d5db; }
.ns-text-main .bi-heart-fill { color:#ef4444; font-size:10px; }
.ns-brand-wrapper { display:flex; align-items:center; gap:6px; position:relative; z-index:2; }
.ns-brand-name { font-size:12px; font-weight:800; background:linear-gradient(90deg,#FFC300,#f97316); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; transition:all .5s ease; }
.ns-tech-credit:hover .ns-brand-name { background:linear-gradient(90deg,#FFC300,#facc15); }
.ns-icon { font-size:12px; color:#FFC300; transition:transform .7s ease; }
.ns-tech-credit:hover .ns-icon { transform:rotate(180deg); }

/* ===== GLOBAL INPUTS & CUSTOM SELECT ===== */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], textarea { width: 100%; height: 52px; padding: 0 16px; background-color: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); font-family: 'Assistant', sans-serif; font-size: 15px; outline: none; transition: all 0.3s ease; text-align: right; box-sizing: border-box; }
input:focus, textarea:focus { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); background-color: var(--bg-primary); }
input:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.8; }

.custom-select-wrapper { position: relative; width: 100%; user-select: none; font-family: 'Assistant', sans-serif; }
.custom-select-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 52px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); padding: 0 16px; font-size: 15px; cursor: pointer; transition: all 0.3s ease; box-sizing: border-box; }
.custom-select-trigger::after { content: ''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text-muted); transition: transform 0.3s ease; margin-right: 12px; }
.custom-select-wrapper.open .custom-select-trigger { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); background: var(--bg-primary); }
.custom-select-wrapper.open .custom-select-trigger::after { transform: rotate(180deg); border-top-color: var(--accent-primary); }
.custom-options { position: absolute; display: block; top: calc(100% + 8px); left: 0; right: 0; background: rgba(13,17,23,0.95); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(229,57,53,0.1); z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); max-height: 300px; overflow-y: auto; }
.custom-select-wrapper.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-option { padding: 12px 18px; border-radius: 10px; color: var(--text-primary); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-bottom: 2px; text-align: right; }
.custom-option:hover, .custom-option.selected { background: linear-gradient(90deg, rgba(229,57,53,0.2), transparent); color: #fff; padding-right: 26px; border-right: 2px solid var(--accent-primary); }
.custom-options::-webkit-scrollbar { width: 6px; }
.custom-options::-webkit-scrollbar-track { background: transparent; }
.custom-options::-webkit-scrollbar-thumb { background: rgba(229,57,53,0.5); border-radius: 10px; }

/* ===== GLOBAL COMPONENTS ===== */
.btn { padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; border: none; text-decoration: none; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; box-shadow: 0 4px 15px rgba(229,57,53,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(229,57,53,0.5); color: white; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--accent-primary); color: #fff; }
.message { padding: 14px 16px; border-radius: var(--radius-md); text-align: center; font-size: 14px; font-weight: 500; display: none; margin-top: 20px; animation: slideUp 0.4s ease; }
.message.success { display: block; background: rgba(63,185,80,0.15); color: var(--success); border: 1px solid rgba(63,185,80,0.3); }
.message.error { display: block; background: rgba(248,81,73,0.15); color: var(--error); border: 1px solid rgba(248,81,73,0.3); }

/* ===== ANIMATIONS & UTILS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowingBar { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes neonGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ns-shimmer-anim{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

/* ===== 🚀 GLOBAL BUTTONS (CTA & LINKS) 🚀 ===== */
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; z-index: 1; font-family: 'Assistant', sans-serif; }
.cta-btn-primary { background: linear-gradient(135deg, #e53935, #b71c1c); color: #fff !important; box-shadow: 0 10px 20px rgba(229,57,53,0.3); border: none; }
.cta-btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(229,57,53,0.5); background: linear-gradient(135deg, #ff5252, #e53935); color: #fff !important; }
.cta-btn-secondary { background: rgba(255,255,255,0.05); color: #fff !important; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(10px); }
.cta-btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #e53935; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); color: #fff !important; }
.arrow { transition: transform 0.3s ease; display: inline-block; }
.cta-btn:hover .arrow { transform: translateX(-5px); }

/* ===== 🚀 BACK TO TOP BUTTON 🚀 ===== */
#back-top { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background: rgba(13,17,23,0.8); backdrop-filter: blur(10px); border: 2px solid #e53935; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; color: #fff; font-size: 24px; font-weight: bold; box-shadow: 0 0 20px rgba(229,57,53,0.3); outline: none; }
#back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-top:hover { background: #e53935; color: #fff; transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 30px rgba(229,57,53,0.6); }

/* ── Layout ───────────────────────────────────────────────── */
.page-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; direction: rtl; font-family: 'Assistant', sans-serif; }

/* ── Header ───────────────────────────────────────────────── */
.page-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 50px; text-align: center; position: relative; }
.page-header h1 { font-size: 42px; color: #fff; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px; }
.results-meta { text-align: center; color: var(--text-muted); font-size: 13px; min-height: 18px; margin-bottom: 20px; }

/* כפתור חזרה — ממורכז */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.25s; margin-bottom: 15px; }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.back-link:hover { color: #fff; }

/* ── Controls ─────────────────────────────────────────────── */
.controls-container { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }

/* Search */
.search-form { position: relative; width: 100%; display: flex; align-items: center; }
.search-input { width: 100%; padding: 16px 20px 16px 50px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); color: #fff; font-size: 16px; transition: all 0.3s; font-family: 'Assistant', sans-serif; text-align: right; }
.search-input:focus { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); outline: none; background: var(--bg-primary); }
.search-button { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; width: 24px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: center; transition: color 0.3s; }
.search-button svg { width: 100%; height: 100%; display: block; }
.search-button:hover { color: var(--accent-primary); }

/* Filters */
.filters-container { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; width: 100%; }
.filter-group { flex: 1; min-width: 220px; }

/* ── Custom Select ────────────────────────────────────────── */
.custom-select-wrapper { position: relative; user-select: none; }
.custom-select-trigger { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary); font-size: 15px; font-family: 'Assistant', sans-serif; cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s; white-space: nowrap; }
.custom-select-trigger .trigger-text { flex: 1; text-align: right; }
.custom-select-trigger::after { content: ''; display: block; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s, border-color 0.25s; flex-shrink: 0; margin-right: 2px; }
.custom-select-trigger:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.custom-select-wrapper.open .custom-select-trigger { border-color: var(--accent-primary); color: #fff; background: var(--bg-primary); }
.custom-select-wrapper.open .custom-select-trigger::after { transform: rotate(225deg) translateY(-3px); border-color: var(--accent-primary); }
.custom-select-trigger svg.select-arrow { display: none !important; }
.custom-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; max-height: 260px; overflow-y: auto; z-index: 200; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 16px 48px rgba(0,0,0,0.7); }
.custom-options::-webkit-scrollbar { width: 4px; }
.custom-options::-webkit-scrollbar-track { background: transparent; }
.custom-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.custom-select-wrapper.open .custom-options { opacity: 1; pointer-events: all; transform: translateY(0); }
.custom-option { padding: 10px 16px; color: var(--text-secondary); font-size: 14px; font-family: 'Assistant', sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s; text-align: right; }
.custom-option:hover { background: rgba(255,255,255,0.07); color: #fff; }
.custom-option.selected { color: var(--accent-primary); font-weight: 700; background: rgba(229,57,53,0.08); }

/* ── Grid ─────────────────────────────────────────────────── */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-bottom: 50px; width: 100%; align-items: stretch; justify-content: center; justify-items: center; }

/* ── Card ─────────────────────────────────────────────────── */
.movie-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: all 0.4s ease; text-decoration: none; display: flex; flex-direction: column; height: 100%; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.movie-card:hover { transform: translateY(-10px); border-color: var(--accent-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(229,57,53,0.25); }

/* ── Poster ───────────────────────────────────────────────── */
.poster-container { position: relative; width: 100%; aspect-ratio: 2/2.85; overflow: hidden; background: var(--bg-secondary); }
.poster-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.movie-card:hover .poster-image { transform: scale(1.08); }

.poster-meta { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; gap: 4px; }
.meta-pill { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: rgba(0,0,0,0.72); color: rgba(255,255,255,0.9); backdrop-filter: blur(6px); line-height: 1.4; white-space: nowrap; }
.meta-pill.r-hi { color: #4ade80; }
.meta-pill.r-mid { color: #fbbf24; }
.meta-pill.r-lo { color: #f87171; }

/* ── Card Content ─────────────────────────────────────────── */
.card-content { padding: 15px 20px; display: flex; flex-direction: column; flex: 1; }
.titles-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; margin-bottom: 8px; }
.movie-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; text-align: right; flex: 1; }
.movie-card:hover .movie-title { color: var(--accent-primary); }
.movie-title-english { font-size: 14px; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; max-width: 45%; }
.movie-overview { position: absolute; inset: 0; background: rgba(0,0,0,0.85); color: #fff; font-size: 14px; line-height: 1.6; padding: 20px; opacity: 0; transition: opacity 0.3s ease; text-align: right; margin: 0; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.movie-card:hover .movie-overview { opacity: 1; }

/* ── Footer — תגיות איכות בשורה תחתונה ───────────────────── */
.card-footer { display: flex; justify-content: center; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); min-height: 26px; width: 100%; }
.footer-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; }
.quality-badge { font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; line-height: 1.4; white-space: nowrap; }
.badge-uhd { background: #6d28d9; }
.badge-fhd { background: #1d4ed8; }
.badge-hd { background: #0369a1; }
.badge-hdr { background: #b45309; }
.badge-dv { background: #047857; }
.badge-atmos { background: #0c4a6e; border: 1px solid rgba(56,189,248,0.55); }
.badge-default { background: rgba(55,65,81,0.9); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.pagination-button { background: var(--bg-secondary); border: 1px solid var(--border); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; transition: all 0.3s ease; padding: 0; }
.pagination-button:not(:disabled):hover { background: linear-gradient(135deg, var(--accent-primary), #b71c1c); border-color: var(--accent-primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(229,57,53,0.3); }
.pagination-button:disabled { opacity: 0.5; cursor: not-allowed; }
#page-info { color: var(--text-secondary); font-size: 16px; font-weight: 600; background: rgba(0,0,0,0.5); padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border); }
#page-info span { color: #fff; font-weight: 800; }

/* ── Skeleton ─────────────────────────────────────────────── */
.skeleton-card { width: 100%; aspect-ratio: 2/3; background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 12px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Error ────────────────────────────────────────────────── */
.error-message { grid-column: 1 / -1; text-align: center; color: var(--error); font-size: 18px; padding: 40px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) { .page-header h1 { font-size: 32px; } }
@media (max-width: 768px) { .filters-container { flex-direction: column; } }
@media (max-width: 768px) { .filter-group { width: 100%; min-width: unset; } }
@media (max-width: 768px) { .content-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; justify-content: center; } }
@media (max-width: 480px) { .content-grid { grid-template-columns: repeat(2, 1fr); justify-content: center; } }
@media (max-width: 768px) { .fb-content { flex-direction: column; gap: 16px; text-align: center; } }