/* TikTok-inspired palette adapted for a clean light/day interface. */
:root { --bg:#f6f7f9; --bg-soft:#ffffff; --card:#ffffff; --card-solid:#ffffff; --border:#e3e5e9; --border-strong:#d3d6dc; --primary:#14cfc9; --primary-2:#fe2c55; --text:#15171a; --muted:#4a4f57; --soft:#4a4f57; --success:#14b8b3; --danger:#e33b5d; --radius:16px; }
*{margin:0;padding:0;box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{font-family:'Plus Jakarta Sans','Cairo',sans-serif;background:var(--bg);color:var(--text);min-height:100vh;line-height:1.5;overflow-x:hidden;display:flex;flex-direction:column}
body[dir="rtl"]{font-family:'Cairo','Plus Jakarta Sans',sans-serif}
button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0}
.background-glow{display:none}
.container{width:100%;max-width:900px;margin:0 auto;padding:1.25rem}
.app-header{position:relative;z-index:2;border-bottom:1px solid var(--border);background:#fff;flex-shrink:0;direction:ltr}
.header-container{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:.8rem;padding-bottom:.8rem}
.brand-wrap,.header-actions{display:flex;align-items:center;gap:.65rem}
.brand-wrap{color:inherit;text-decoration:none}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#000;color:#f5f7fa;font-weight:900;border:1px solid #1c1c1c;box-shadow:2px 2px 0 rgba(254,44,85,.8),-2px -2px 0 rgba(20,207,201,.8);overflow:hidden}
.brand-mark span{position:relative;z-index:1;display:block;font-family:Arial Black,Arial,sans-serif;font-size:1.5rem;font-weight:900;line-height:1;transform:translateY(-1px) skewX(-10deg) rotate(-8deg);color:#f5f7fa;text-shadow:2px 0 0 var(--primary),-2px 1px 0 var(--primary-2)}
.logo{display:flex;align-items:baseline;white-space:nowrap}.logo-accent{font-weight:800;font-size:1.12rem;letter-spacing:.055em;color:#15171a}.logo-sub{color:var(--muted);font-size:.68rem;margin-left:5px;font-weight:700;letter-spacing:.08em}
.language-btn{text-decoration:none;color:#4f545c;background:#fff;border:1px solid var(--border);border-radius:9px;padding:.42rem .68rem;cursor:pointer;font-size:.76rem;font-weight:700;transition:background .15s ease,border-color .15s ease}.language-btn:hover{background:#f4f5f7;border-color:#cfd2d8}
.badge-status{display:inline-flex;align-items:center;gap:6px;color:#50555d;background:#fff;border:1px solid var(--border);padding:.42rem .68rem;border-radius:9px;font-size:.76rem;font-weight:700;white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--success);position:relative;flex:0 0 6px}.status-dot::after{content:"";position:absolute;inset:-4px;border:1px solid var(--success);border-radius:50%;opacity:.55;animation:statusPulse 1.8s ease-out infinite}@keyframes statusPulse{0%{transform:scale(.6);opacity:.65}70%{transform:scale(1.35);opacity:0}100%{transform:scale(1.35);opacity:0}}@media (prefers-reduced-motion:reduce){.status-dot::after{animation:none;opacity:0}}
.hero-section{text-align:center;margin:4rem 0 2.5rem}.hero-badge{display:inline-flex;align-items:center;gap:7px;color:#565b63;border:1px solid var(--border);background:#fff;padding:.38rem .7rem;border-radius:20px;font-size:.66rem;font-weight:800;letter-spacing:.07em;margin-bottom:1rem}
.hero-title{max-width:760px;margin:0 auto .7rem;font-size:clamp(2rem,6vw,3.45rem);line-height:1.08;letter-spacing:-.04em;font-weight:800;color:#15171a}body[dir="rtl"] .hero-title{letter-spacing:0;line-height:1.25}.hero-subtitle{max-width:620px;margin:0 auto 1.7rem;color:var(--muted);font-size:.92rem}
.search-box-card{display:flex;gap:.65rem;align-items:center;padding:.5rem;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 24px rgba(20,24,32,.07)}.search-box-card:focus-within{border-color:#bcc1c9}
.input-wrapper{min-width:0;flex:1;display:flex;align-items:center;gap:.45rem;background:#fafbfc;border:1px solid #e1e4e8;border-radius:12px;padding:.18rem .28rem}input{width:100%;min-width:0;padding:.7rem .35rem;background:transparent;border:0;outline:0;color:#15171a;font-size:.92rem}input::placeholder{color:#4a4f57}.input-actions{display:flex;gap:.2rem;flex-shrink:0}.btn-ghost{color:#5f646c;background:#eef0f3;padding:.46rem .62rem;border-radius:8px;cursor:pointer;font-size:.7rem;transition:.15s ease}.btn-ghost:hover{color:#15171a;background:#e5e7eb}
.btn-primary,.btn-download{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;background:#15171a;color:#fff;font-weight:800;text-decoration:none;border-radius:12px;cursor:pointer;padding:.88rem 1.1rem;transition:transform .15s ease,background .15s ease}.btn-primary{min-width:145px}.btn-primary:hover,.btn-download:hover{transform:translateY(-1px);background:#2a2d32}.btn-primary:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn-icon{font-size:1.05rem}
.trust-row{display:flex;justify-content:center;flex-wrap:wrap;gap:1.1rem;margin-top:1rem;color:#444950;font-size:.68rem}.trust-row span{display:inline-flex;align-items:center;gap:5px}.trust-row i{font-style:normal;color:#13aaa5}.status-card{margin-top:1rem;color:#0d918d;font-weight:700;font-size:.8rem}.error-card{margin-top:1rem;color:#b62c49;background:#fff4f6;border:1px solid #f2cfd7;padding:.7rem .95rem;border-radius:11px;font-size:.8rem}
.result-section{width:100%}.result-heading{display:flex;align-items:center;gap:.65rem;justify-content:center;color:#666b73;font-size:.7rem;font-weight:800;margin-bottom:.8rem;text-transform:uppercase;letter-spacing:.07em}.result-line{height:1px;flex:1;max-width:150px;background:#dfe2e6}.result-line:last-child{transform:scaleX(-1)}
.media-card{overflow:hidden;display:flex;flex-direction:row;background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 28px rgba(20,24,32,.08)}.media-thumbnail-container{position:relative;width:310px;min-width:310px;min-height:330px;overflow:hidden;background:#111317}.media-thumbnail-container img{display:block;width:100%;height:100%;min-height:330px;object-fit:cover}.thumbnail-overlay{position:absolute;inset:0;background:linear-gradient(90deg,transparent 65%,rgba(0,0,0,.35));pointer-events:none}.duration-badge{position:absolute;right:12px;bottom:12px;padding:.28rem .52rem;border-radius:7px;color:#fff;background:rgba(15,17,21,.82);font-size:.68rem;font-weight:700}
.media-details{min-width:0;flex:1;padding:1.45rem;display:flex;flex-direction:column;justify-content:center}.author-block{display:flex;align-items:center;gap:10px;margin-bottom:1rem}.author-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#f1f3f5;border:1px solid var(--border)}.author-meta{min-width:0;display:flex;flex-direction:column}.author-name{font-size:.86rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.author-user{color:var(--muted);font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-title{font-size:1.06rem;line-height:1.55;font-weight:700;overflow-wrap:anywhere}.download-actions{display:flex;gap:.6rem;margin-top:1.35rem}.btn-download{flex:1;padding:.78rem .85rem;font-size:.78rem}.btn-download.btn-hd{background:#f1f3f5;color:#25282d;border:1px solid #dfe2e6;box-shadow:none}.btn-download.btn-hd:hover{background:#e7eaee}.photo-result{flex-direction:column}.photo-result .media-thumbnail-container{display:none}.photo-result .media-thumbnail-container img{object-fit:contain}.photo-result .photo-gallery{width:100%;box-sizing:border-box;padding:0 1.45rem}.photo-result .media-details{padding-top:1.15rem}.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:1rem}.photo-item{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:#fafbfc;text-decoration:none;cursor:zoom-in}.photo-item:focus-visible{outline:2px solid currentColor;outline-offset:2px}.photo-item img{display:block;width:100%;height:100%;object-fit:cover}.photo-item:hover{border-color:var(--border-strong)}.photo-download-button{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:56px;height:56px;padding:0;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:rgba(15,17,21,.78);color:#fff;text-decoration:none;opacity:0;visibility:hidden;transform:translate(-50%,-46%) scale(.82);transition:opacity .16s ease,visibility .16s ease,transform .16s ease;backdrop-filter:blur(5px);box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:3}.photo-item.photo-download-visible .photo-download-button{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}.photo-download-button:hover{background:rgba(15,17,21,.93);transform:translate(-50%,-50%) scale(1.05)}.photo-download-button:focus-visible{outline:2px solid #fff;outline-offset:3px}.photo-download-button svg{width:23px;height:23px}.photo-item.photo-download-visible::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.16);pointer-events:none;z-index:2}.photo-item.photo-download-visible .photo-download-button{pointer-events:auto}.photo-download-button{pointer-events:none}
.photo-view-button{position:absolute;top:.45rem;right:.45rem;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(15,17,21,.72);color:#fff;cursor:pointer;backdrop-filter:blur(4px);box-shadow:0 3px 10px rgba(0,0,0,.18)}.photo-view-button:hover{background:rgba(15,17,21,.88)}.photo-view-button:focus-visible{outline:2px solid #fff;outline-offset:2px}.photo-view-button svg{width:17px;height:17px}.photo-index{position:absolute;right:.4rem;bottom:.4rem;display:grid;place-items:center;min-width:22px;height:22px;padding:0 .35rem;border-radius:7px;background:rgba(15,17,21,.78);color:#fff;font-size:.62rem;font-weight:800;line-height:1}.photo-result .download-actions{margin-top:1.35rem}.photo-result .btn-download.is-loading{opacity:.7;pointer-events:none}
.seo-content,.faq-section{margin:0 0 1.25rem}.content-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:1.35rem 1.4rem}.content-card h2{font-size:1.15rem;line-height:1.35;margin-bottom:.55rem}.content-card>p{color:var(--muted);font-size:.82rem;max-width:760px}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1rem}.info-grid article{border:1px solid var(--border);border-radius:12px;padding:.9rem;background:#fafbfc}.info-grid h3{font-size:.78rem;margin-bottom:.3rem}.info-grid p{color:var(--muted);font-size:.72rem}.faq-section details{border-top:1px solid var(--border);padding:.8rem 0}.faq-section details:first-of-type{margin-top:.7rem}.faq-section summary{cursor:pointer;font-size:.8rem;font-weight:700}.faq-section details p{color:var(--muted);font-size:.75rem;padding-top:.45rem}.app-footer{margin-top:auto;padding:0 0 .35rem;color:var(--soft);text-align:center;flex-shrink:0}.footer-inner{border-top:1px solid var(--border);padding-top:.85rem;padding-bottom:0}.footer-brand{color:#3f444b;font-weight:800;font-size:.7rem;letter-spacing:.07em}.footer-brand span{color:#444950;font-weight:600}.app-footer p{margin-top:.25rem;font-size:.65rem;color:#444950}.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:.8rem;margin-top:.55rem}.footer-links a{color:#444950;text-decoration:none;font-size:.64rem}.footer-links a:hover{text-decoration:underline;color:#202329}.hidden{display:none!important}
main.container{flex:1}
.photo-lightbox{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;overscroll-behavior:contain;padding:1rem;background:rgba(7,9,12,.94)}
.photo-lightbox.hidden{display:none}
.photo-lightbox-backdrop{position:fixed;inset:0}
.photo-lightbox-content{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:auto;height:auto;max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)}
.photo-lightbox-stage{position:relative;display:inline-flex;align-items:center;justify-content:center;max-width:100%;max-height:100%}
.photo-lightbox-image{display:block;max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 16px 50px rgba(0,0,0,.4);touch-action:pan-y pinch-zoom}
.photo-lightbox-close{position:absolute;top:.6rem;right:.6rem;z-index:3;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(15,17,21,.7);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;backdrop-filter:blur(5px)}
.photo-lightbox-close:hover{background:rgba(15,17,21,.9)}
.photo-lightbox-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
.photo-lightbox-download{position:absolute;right:.75rem;bottom:.75rem;z-index:3;display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(15,17,21,.78);color:#fff;text-decoration:none;font-size:1.25rem;box-shadow:0 7px 24px rgba(0,0,0,.25);backdrop-filter:blur(5px)}
.photo-lightbox-download:hover{background:rgba(15,17,21,.94)}
.photo-lightbox-download:focus-visible{outline:2px solid #fff;outline-offset:3px}
.photo-lightbox-download span{transform:translateY(-1px)}
body.lightbox-open{overscroll-behavior:none;overflow:hidden}

/* Keep controls readable and usable with touch, zoom and a keyboard. */
:where(a,button,summary):focus-visible{outline:3px solid #087c78;outline-offset:3px}
.language-btn,.badge-status{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:36px;min-height:36px;line-height:1;white-space:nowrap}
.btn-ghost{min-height:44px;min-width:44px;font-size:.8rem}
.hero-subtitle{font-size:1rem;line-height:1.7}
.content-card>p,.info-grid p,.faq-section details p{font-size:.9rem;line-height:1.75}
.info-grid h3,.faq-section summary{font-size:.95rem}
.faq-section summary{padding-block:.3rem;min-height:44px}
.footer-links a{font-size:.8rem;min-height:44px;display:inline-flex;align-items:center;padding-inline:.25rem}
.download-hint{font-size:.8rem;line-height:1.6;color:var(--muted);margin-top:.8rem}
.photo-download-button{opacity:1;visibility:visible;pointer-events:auto;transform:none;left:.5rem;top:auto;bottom:.5rem;width:44px;height:44px}
.photo-download-button:hover{transform:scale(1.05)}
.photo-view-button{width:44px;height:44px}
.photo-index{right:.5rem;bottom:.5rem}
.video-title,.content-card p{overflow-wrap:anywhere}
input[aria-invalid="true"]{box-shadow:inset 0 -2px #b62c49}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

@media (max-width:699px){.container{padding:1rem}.hero-section{margin:3rem 0 2rem}.search-box-card{flex-direction:column;padding:.5rem}.input-wrapper,.btn-primary{width:100%}.btn-primary{min-height:48px}.media-card{flex-direction:column}.media-thumbnail-container{width:100%;min-width:0;min-height:260px;max-height:390px}.media-thumbnail-container img{min-height:260px;max-height:390px}.thumbnail-overlay{background:linear-gradient(0deg,rgba(0,0,0,.32),transparent 55%)}.media-details{padding:1.15rem}.photo-result .photo-gallery{padding:0 1.15rem}.photo-view-button{width:32px;height:32px;top:.4rem;right:.4rem}.photo-download-button{width:52px;height:52px}.photo-lightbox{padding:.5rem}.photo-lightbox-content{width:100%;max-width:100%;max-height:100%}.photo-lightbox-image{max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.photo-lightbox-close{top:.35rem;right:.35rem}.photo-lightbox-download{right:.5rem;bottom:.5rem;width:52px;height:52px}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.info-grid{grid-template-columns:1fr}.content-card{padding:1.1rem}.app-footer{padding-bottom:.2rem}.footer-inner{padding-top:.7rem}}
@media (max-width:470px){.logo-sub{display:none}.badge-status{padding:.39rem .52rem;border-radius:9px;font-size:.68rem}.header-actions{gap:.35rem}.hero-badge{font-size:.58rem}.hero-title{font-size:2rem}.hero-subtitle{font-size:.8rem}.input-actions{gap:.16rem}.btn-ghost{padding:.45rem .5rem}.download-actions{flex-direction:column}.trust-row{gap:.65rem}}
@media (max-width:360px){.brand-mark{width:32px;height:32px;border-radius:9px}.logo-accent{font-size:1rem}.language-btn{font-size:.68rem;padding:.39rem .52rem}.hero-title{font-size:1.75rem}}
@media(max-width:699px){.photo-view-button{width:44px;height:44px}.photo-download-button{width:44px;height:44px}.hero-subtitle{font-size:.95rem}}

/* Compact phone layout with readable text and 44px touch targets. */
@media(max-width:699px){
  .hero-section{margin:1.5rem 0 1.5rem}
  .hero-badge{margin-bottom:.75rem;font-size:.65rem;letter-spacing:0}
  .hero-title{font-size:clamp(1.5rem,7vw,2rem);line-height:1.3}
  body[dir="rtl"] .hero-title{line-height:1.4}
  .hero-subtitle{font-size:.9rem;line-height:1.75;margin-bottom:1.25rem}
  .header-container{gap:.5rem;padding-top:.65rem;padding-bottom:.65rem}
  .search-box-card{gap:.5rem;border-radius:14px}
  #url-input{font-size:16px;padding:.6rem .3rem}
  .btn-primary{padding:.65rem 1rem;min-height:48px;font-size:.95rem}
  .trust-row{font-size:.75rem;gap:.4rem .75rem;margin-top:.75rem}
  .content-card{padding:1rem;border-radius:16px}
  .content-card h2{font-size:1.05rem;line-height:1.6}
  .content-card>p,.info-grid p,.faq-section details p{font-size:.875rem;line-height:1.8}
  .faq-section details{padding:0}
  .faq-section summary{font-size:.875rem;line-height:1.6;padding-block:.6rem;min-height:44px}
  .faq-section details p{padding-top:0;padding-bottom:.75rem}
  .app-footer p{font-size:.75rem;line-height:1.7}
}

/* Compact, single-row footer navigation on phones. */
@media(max-width:699px){
  .app-footer{padding-bottom:4px}
  .footer-inner{padding-top:8px;padding-bottom:0}
  .footer-brand{font-size:10px;letter-spacing:.025em;line-height:1.5}
  .app-footer p{font-size:11px;line-height:1.5;margin-top:4px}
  .footer-links{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:4px;margin-top:4px;overflow-x:auto}
  .footer-links a{font-size:12px;min-height:36px;padding-inline:0;white-space:nowrap;flex:0 0 auto}
  [dir="rtl"] .footer-links a,.ar .footer-links a{font-size:clamp(10px,2.7vw,12px)}
}

@media(max-width:699px){
  .language-btn,.badge-status{width:72px;height:32px;min-height:32px;padding:0 9px;font-size:12px;line-height:1;border-radius:8px}
  .badge-status{gap:6px}
}
