/* cariin.xyz polished responsive theme v6 */
*{box-sizing:border-box}
:root{color-scheme:light;--page:#edf8f7;--ink:#526b75;--muted:#8299a0;--purple:#087f8c;--blue:#28a6bd;--border:#b9e2df;--glass:rgba(255,255,255,.78);--card:#fff}
html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body{min-height:100vh;display:flex;flex-direction:column;color:var(--ink);background:radial-gradient(ellipse 56% 48% at 52% 56%,rgba(198,239,232,.78) 0%,rgba(226,246,244,.52) 55%,transparent 100%),radial-gradient(ellipse 36% 40% at 90% 82%,rgba(210,235,249,.7),transparent 75%),linear-gradient(112deg,#f0f8f7 0%,#f5fafc 52%,#eaf5f8 100%);overflow-x:hidden}
.site-header{height:76px;width:100%;max-width:1240px;margin:0 auto;padding:0 30px;display:flex;align-items:center;justify-content:space-between}
.header-brand{display:inline-flex;align-items:center;text-decoration:none;line-height:0}
.header-brand img{display:block;width:118px;height:auto;max-height:38px;object-fit:contain;object-position:left center}
.theme-toggle{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(8,127,140,.16);border-radius:50%;background:rgba(255,255,255,.62);color:#087f8c;cursor:pointer;transition:transform .18s,background .18s}
.theme-toggle:hover{transform:translateY(-1px);background:#fff}
.theme-toggle svg{width:19px;height:19px;fill:currentColor}
.page-main{width:100%;flex:1;display:flex;flex-direction:column;align-items:center;padding:clamp(112px,17vh,188px) 22px 35px}
.hero{width:100%;max-width:650px;text-align:center}
.hero-logo-wrap{width:min(100%,400px);margin:0 auto;display:flex;align-items:center;justify-content:center}
.hero-logo{display:block;width:100%;height:auto;max-height:120px;object-fit:contain}

.hero-subtitle{max-width:520px;margin:22px auto 38px;color:#5f7880;font-size:17px;font-weight:400;line-height:1.5;letter-spacing:.005em;text-wrap:balance}
.search-form{width:100%;min-height:74px;display:flex;align-items:center;gap:14px;padding:8px 9px 8px 25px;border:5px solid rgba(176,224,221,.8);border-radius:60px;background:rgba(255,255,255,.78);box-shadow:0 15px 40px rgba(23,121,131,.08);transition:border-color .2s,box-shadow .2s}
.search-form:focus-within{border-color:rgba(105,199,196,.92);box-shadow:0 15px 42px rgba(23,121,131,.13)}
.search-leading{width:22px;height:22px;flex:0 0 22px;color:#929bad}
.search-leading svg,.search-submit svg,.empty-symbol svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.search-form input{width:100%;min-width:0;flex:1;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#344054;font-family:inherit;font-size:16px;line-height:1.4;padding:10px 0;-webkit-appearance:none;appearance:none}
.search-form input::placeholder{color:#9aa2b2;opacity:1}
.search-form input::-webkit-search-cancel-button{cursor:pointer}
.search-submit{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;border:0!important;border-radius:50%;padding:14px;background:linear-gradient(135deg,#087f8c,#20a9bc);color:white;box-shadow:0 5px 15px rgba(8,127,140,.2);cursor:pointer;transition:transform .18s,filter .18s}
.search-submit svg{stroke-width:2}
.search-submit:hover{filter:brightness(1.08);transform:translateY(-1px)}
.results{width:100%;max-width:720px;margin:46px auto 0}
.result-count{font-size:13px;color:#789097;margin:0 0 14px}
.result-card{text-decoration:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;opacity:0;transform:translateY(10px);animation:cardIn .35s ease forwards;transition:transform .18s,box-shadow .18s,border-color .18s;display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;padding:18px;margin-bottom:14px;border:1px solid rgba(150,160,190,.2);border-radius:16px;background:var(--card);box-shadow:0 8px 24px rgba(40,50,100,.06)}
.result-card .preview{display:block;width:96px;height:96px;object-fit:cover;border-radius:11px;background:#eef2ff}
.result-card .url{font-size:13px;color:#778196;margin-bottom:7px;overflow-wrap:anywhere}
.result-card h2{font-size:20px;line-height:1.3;margin:0 0 8px}
.result-card h2{color:#087f8c}
.result-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(40,50,100,.1);border-color:rgba(8,127,140,.25)}
.result-card:hover h2{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.result-card:active{transform:scale(.99)}
@keyframes cardIn{to{opacity:1;transform:none}}
.result-card p{font-size:14px;line-height:1.6;color:#596579;margin:0}
.empty-state{width:100%;max-width:650px;text-align:center;margin:44px auto 0;padding:20px 12px;color:#789097}
.empty-symbol{width:36px;height:36px;margin:0 auto 13px;color:#8ba5a9}
.empty-state h2{font-size:20px;color:#385c64;margin:0 0 8px}
.empty-state p{font-size:14px;line-height:1.6;margin:0}
.site-footer{text-align:center;color:#8b93a6;font-size:12px;padding:24px 15px 26px}
body.dark{color-scheme:dark;--page:#0f172a;--ink:#cbd5e1;--muted:#94a3b8;--card:#172033;background:radial-gradient(ellipse 60% 48% at 50% 54%,rgba(49,46,129,.44) 0%,rgba(15,23,42,.9) 68%),#0f172a}
.dark .header-brand img{filter:drop-shadow(0 1px 2px rgba(0,0,0,.08))}
.dark .theme-toggle{background:#1e293b;color:#c7d2fe;border-color:#334155}
.dark .hero-subtitle,.dark .site-footer{color:#94a3b8}
.dark .search-form{background:rgba(15,23,42,.86);border-color:rgba(99,102,241,.42)}
.dark .search-form input{color:#e2e8f0}.dark .search-form input::placeholder{color:#94a3b8}
.dark .dark .result-card{background:#172033;border-color:#334155}.dark .result-card p{color:#cbd5e1}.dark .result-card h2{color:#93c5fd}
.dark .empty-state h2{color:#e2e8f0}
@media(max-width:640px){
 .site-header{height:66px;padding:0 18px}
 .header-brand img{width:108px;max-height:34px}
 .theme-toggle{width:38px;height:38px}
 .page-main{padding:clamp(112px,18vh,160px) 17px 28px}
 .hero-logo-wrap{width:min(82vw,330px)}.hero-logo{max-height:100px}
 .hero-subtitle{max-width:340px;font-size:15px;line-height:1.5;margin:18px auto 30px}
 .desktop-break{display:none}
 .search-form{min-height:64px;padding:6px 7px 6px 17px;gap:10px;border-width:4px}
 .search-leading{width:20px;height:20px;flex-basis:20px}
 .search-form input{font-size:15px}
 .search-submit{width:44px;height:44px;flex-basis:44px;padding:12px}
  .results{margin-top:34px}
 .result-card{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:13px;border-radius:14px;margin-bottom:10px}
 .result-card .preview{display:block;width:70px;height:70px}
 .result-card h2{font-size:16px;line-height:1.3;margin-bottom:5px}.result-card p{font-size:13px;line-height:1.5}.result-card .url{font-size:12px;margin-bottom:4px}
 .site-footer{padding-top:34px}
}
@media(max-width:360px){
 .page-main{padding-left:12px;padding-right:12px}
 .search-form{padding-left:12px;gap:8px}
 .search-form input{font-size:14px}
 .hero-logo-wrap{width:min(86vw,300px)}
}

/* ===== Mode hasil pencarian: hasil langsung naik ke atas ===== */
.hero-intro{transition:opacity .2s}
body.searching .hero-intro{display:none}
body.searching .page-main{padding-top:14px}
body.searching .results{margin-top:22px}
body.searching .empty-state{margin-top:30px}
.loading{display:flex;justify-content:center;padding:28px 0}
.loading span{width:28px;height:28px;border:3px solid rgba(8,127,140,.15);border-top-color:#087f8c;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:640px){
 body.searching .page-main{padding-top:6px}
 body.searching .search-form{min-height:58px;border-width:3px}
 body.searching .results{margin-top:16px}
 .result-count{margin-bottom:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.result-card{opacity:1;transform:none}}
