/* search & filter row */ .search-panel { background: rgba(0, 0, 0, 0.45); border-radius: 2rem; padding: 1.2rem 1.5rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; backdrop-filter: blur(8px); } .search-wrapper { flex: 3; min-width: 200px; position: relative; } .search-wrapper input { width: 100%; padding: 0.85rem 1.2rem; border-radius: 60px; border: none; background: #1e2b2f; color: #f0ede8; font-size: 1rem; outline: none; transition: 0.2s; border: 1px solid #ffcf7a40; } .search-wrapper input:focus { border-color: #f3b33d; box-shadow: 0 0 0 3px rgba(243,179,61,0.3); } .filter-group { display: flex; gap: 0.7rem; flex-wrap: wrap; } .filter-btn { background: #2d3e3f; border: none; padding: 0.6rem 1.2rem; border-radius: 40px; font-weight: 500; color: #e2e8f0; cursor: pointer; transition: all 0.2s; font-size: 0.85rem; } .filter-btn.active { background: #f3b33d; color: #1e2a2e; box-shadow: 0 2px 8px rgba(243,179,61,0.4); } .filter-btn:hover:not(.active) { background: #4a6b6e; }
/* loading + error */ .loading-state, .error-state, .no-results { text-align: center; padding: 3rem; font-size: 1.2rem; background: rgba(0,0,0,0.3); border-radius: 2rem; margin-top: 1rem; } .error-state { color: #ffae70; } footer { text-align: center; margin-top: 2.5rem; font-size: 0.75rem; color: #6f8f92; border-top: 1px solid #ffcf7a30; padding-top: 1.5rem; } @media (max-width: 680px) { .archive-feature { padding: 1.2rem; } .title-area h1 { font-size: 1.8rem; } } </style> </head> <body> <div class="archive-feature"> <div class="jeannie-header"> <div class="title-area"> <h1>I Dream of Jeannie · Archive</h1> <div class="sub">classic episodes · promos · nostalgic media from the Internet Archive</div> </div> <div class="archive-badge"> 📀 powered by <a href="https://archive.org" target="_blank" rel="noopener">archive.org</a> metadata </div> </div> i dream of jeannie archive.org
// event listeners searchInput.addEventListener("input", (e) => { currentSearch = e.target.value; renderCards(); }); /* search & filter row */
if (filtered.length === 0) { container.innerHTML = `<div class="no-results">🧞 No Jeannie treasures match — try another search or clear filter! “Master, say the magic word!” 🧞</div>`; return; } padding: 1.2rem 1.5rem
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <title>I Dream of Jeannie · Archive Explorer</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; }
const cardsHTML = filtered.map(item => { // type label styling let typeLabel = ""; if (item.type === "episode") typeLabel = "📺 Full Episode"; else if (item.type === "promo") typeLabel = "🎞️ Promo / Clip"; else typeLabel = "🎙️ Featurette / Interview";