/* LokaFun shared site shell. This file is loaded AFTER page-specific styles on every page. */
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:clip}
body{margin:0;min-height:100vh;background:#0b0b0c;color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;overflow-x:clip}
a{color:inherit}
button{font-family:inherit;cursor:pointer}

/* Keep the two header rows together, exactly as on index.php. */
.sticky-navigation{position:sticky;top:0;left:0;right:0;width:100%;z-index:9999;background:#0f0f11;isolation:isolate}
.site-header{position:relative;top:auto;z-index:auto;width:100%;margin:0;padding:0;background:#0f0f11;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.site-header-inner{width:100%;max-width:1340px;min-height:66px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:18px}
.site-header .logo{display:flex;align-items:center;flex:0 0 auto}
.site-header .logo img{display:block;width:138px;height:auto;max-height:36px;object-fit:contain}
.site-header .header-search{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
.site-header .search-mini{width:210px;height:38px;display:flex;align-items:center;gap:6px;padding:4px 4px 4px 14px;background:#1a1a1c;border:1px solid rgba(255,255,255,.12);border-radius:999px}
.site-header .search-mini input{width:100%;min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:13px}
.site-header .search-mini input::placeholder,.mobile-search input::placeholder{color:#888}
.site-header .search-btn{width:30px;height:30px;min-width:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#22d3ee;color:#00141a}
.site-header .search-btn svg{display:block;stroke:#00141a}
.site-header .header-nav{display:flex;align-items:center;gap:4px;flex:0 0 auto;margin:0}
.site-header .header-nav a,.site-header .header-nav button{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border:0;border-radius:999px;background:transparent;color:#bbb;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;text-decoration:none}
.site-header .header-nav a:hover,.site-header .header-nav button:hover{color:#22d3ee}
.site-header .header-nav a.active{background:#22d3ee;color:#00141a;box-shadow:0 4px 14px rgba(34,211,238,.22)}
.site-header .header-nav a.active:hover{background:#22d3ee;color:#00141a}
.site-header .icon-btn{display:none}
.menu-dots{display:flex;flex-direction:column;gap:3px;align-items:center}
.menu-dots i{display:block;width:4px;height:4px;border-radius:50%;background:#fff}
.drawer-is-open{overflow:hidden}
.mobile-search{display:none;max-width:1340px;margin:0 auto;padding:0 16px 12px;gap:8px}
.mobile-search.open{display:flex;align-items:center;gap:6px;padding:5px 5px 5px 16px;margin:0 14px 12px;min-height:46px;max-width:1340px;background:#1a1a1c;border:1px solid rgba(255,255,255,.12);border-radius:999px}
.mobile-search input{height:32px;min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:14px}
.mobile-search .search-btn{width:36px;height:36px;min-width:36px;flex:0 0 36px}
#mobileSearchClose{width:36px;height:36px;min-width:36px;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:transparent;color:#fff;font-size:15px}

/* Category navigation row */
.sticky-category-shell{position:relative;width:100%;margin:0;background:#0f0f11;border:0}
.sticky-category-inner{width:100%;max-width:1340px;margin:0 auto;padding:0 20px}
.sticky-category-pills{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0;margin:0;padding:10px 0 11px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;cursor:grab;user-select:none;-webkit-user-select:none}
.sticky-category-pills:active{cursor:grabbing}
.sticky-category-pills::-webkit-scrollbar{display:none}
.sticky-category-pills>a{flex:0 0 auto;padding:8px 13px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.07);color:#ddd;font-size:13px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;user-select:none;-webkit-user-drag:none}
.sticky-category-pills>a.active{border-color:#22d3ee;background:#22d3ee;color:#00141a}
.sticky-category-pills>a:hover,.sticky-category-pills>a:focus-visible{border-color:#22d3ee;background:#10252a;color:#22d3ee;outline:none}
.sticky-category-pills>a.active:hover{border-color:#22d3ee;background:#22d3ee;color:#00141a}
.sticky-category-shell:after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:100vw;height:1px;pointer-events:none;background:linear-gradient(90deg,rgba(34,211,238,0) 0%,rgba(34,211,238,.18) 8%,rgba(34,211,238,.42) 50%,rgba(34,211,238,.18) 92%,rgba(34,211,238,0) 100%)}

/* Shared drawer and floating controls */
.overlay{display:none;position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.6)}
.overlay.open{display:block}
.drawer{position:fixed;top:0;right:0;left:auto;bottom:0;width:min(82vw,300px);height:100vh;height:100dvh;z-index:10001;display:flex;flex-direction:column;overflow-y:auto;background:#100d0f;border-left:1px solid #30282c;box-shadow:-12px 0 32px rgba(0,0,0,.28);transform:translateX(102%);transition:transform .25s ease}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 14px;border-bottom:1px solid #292326}
.drawer-logo{display:flex;align-items:center;min-width:0}.drawer-logo img{display:block;width:auto;height:26px;max-width:108px}
.drawer-head .x{width:36px;height:36px;flex:0 0 36px;border:1px solid #382f34;border-radius:11px;background:#171316;color:#fff;font-size:18px}
.drawer-menu{flex:0 0 auto;padding:0;margin:0}.drawer-menu a{display:block;padding:13px 14px;border-bottom:1px solid #292326;color:#eee;font-size:14px;font-weight:650;text-decoration:none}
.drawer-menu a.active{background:#171316;color:#22d3ee}
.drawer-label{flex:0 0 auto;padding:18px 14px 10px;color:#8d8187;font-size:10px;font-weight:700;letter-spacing:1.5px}
.drawer-cats{display:flex;flex:0 0 auto;flex-wrap:wrap;align-content:flex-start;gap:7px;padding:0 10px 22px}
.drawer-cats a{padding:6px 10px;border:1px solid #382f34;border-radius:999px;background:#1c171a;color:#ddd;font-size:11px;font-weight:600;text-decoration:none}
.drawer-cats a.active{border-color:#22d3ee;background:#22d3ee;color:#00141a}
.back-to-top{position:fixed;right:20px;bottom:20px;z-index:150;width:44px;height:44px;border:1px solid #444;border-radius:12px;background:#1d1d1d;color:#fff;font-size:20px;opacity:0;visibility:hidden;transition:.2s}
.back-to-top.show{opacity:1;visibility:visible}

/* Footer shared with index.php */
.footer-v2{position:relative;width:100%;margin-top:40px;border:0;background:#0a0a0b}
.footer-v2:before,.footer-bottom:before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:100vw;height:1px;pointer-events:none;background:linear-gradient(90deg,rgba(34,211,238,0) 0%,rgba(34,211,238,.18) 8%,rgba(34,211,238,.42) 50%,rgba(34,211,238,.18) 92%,rgba(34,211,238,0) 100%)}
.footer-v2-inner{display:grid;width:100%;max-width:1200px;grid-template-columns:1.4fr 1.2fr .8fr;gap:40px;margin:0 auto;padding:44px 20px 32px}
.footer-logo img{display:block;width:auto;height:30px;max-width:180px;object-fit:contain}
.footer-desc{max-width:320px;margin:16px 0 14px;color:#9ca3af;font-size:13.5px;line-height:1.6}
.footer-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid rgba(16,185,129,.25);border-radius:999px;background:rgba(16,185,129,.12);color:#6ee7a8;font-size:12px;font-weight:600}
.footer-col h2{margin:0 0 14px;color:#fff;font-size:14px;font-weight:700}
.footer-col>a,.footer-links a{display:block;padding:5px 0;color:#9ca3af;font-size:13.5px;line-height:1.5;text-decoration:none}
.footer-col a:hover{color:#22d3ee}
.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.footer-links a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.footer-bottom{position:relative;padding:16px 20px;color:#747b89;text-align:center;font-size:12.5px}
.shell-share-status{position:fixed;left:-9999px}

@media(max-width:900px){.site-header-inner{gap:10px}.site-header .logo img{width:120px}.site-header .search-mini{width:clamp(160px,24vw,240px)}.site-header .header-nav a,.site-header .header-nav button{padding:8px;font-size:11px}}
@media(max-width:768px){
 .site-header-inner{min-height:58px;padding:9px 12px;gap:8px}
 .site-header .logo img{width:112px;max-height:32px}
 /* Keep the mobile action buttons visible: they are children of .header-search. */
 .site-header .header-search{
   display:flex;
   flex:0 0 auto;
   align-items:center;
   justify-content:flex-end;
   gap:8px;
   width:auto;
   min-width:0;
   max-width:none;
   margin-left:auto;
 }
 .site-header .header-search .search-mini,
 .site-header .header-search .header-nav{display:none}
 .site-header .header-nav{display:none}
 .site-header .header-search .icon-btn{
   display:inline-flex;
   visibility:visible;
   opacity:1;
   align-items:center;
   justify-content:center;
   width:36px;
   height:36px;
   min-width:36px;
   flex:0 0 36px;
   padding:0;
   margin:0;
   border:1px solid #333;
   border-radius:10px;
   background:#1c1c1e;
   color:#fff;
   font-size:19px;
 }
 .site-header #mobileSearchBtn{margin-left:0}
 .sticky-category-inner{padding:0 12px}
 .sticky-category-pills{gap:7px;padding:8px 0 9px}
 .sticky-category-pills>a{padding:7px 10px;font-size:11px}
 .footer-v2-inner{grid-template-columns:1fr;gap:24px;padding:30px 18px 22px}
 .footer-links{grid-template-columns:1fr 1fr;gap:0 16px}
 .footer-bottom{padding:13px 12px}
 .back-to-top{right:12px;bottom:12px}
}
@media(hover:none) and (pointer:coarse){.sticky-category-pills>a:hover{border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.07);color:#ddd}.sticky-category-pills>a.active:hover{border-color:#22d3ee;background:#22d3ee;color:#00141a}}

/* Shared public video listing */
.empty > h2{font-size:1.17em}
.movies{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.movie{display:block;min-width:0}
.poster{position:relative;width:100%;aspect-ratio:16/9;background:#222;border-radius:12px;overflow:hidden}
.poster img{width:100%;height:100%;object-fit:cover;display:block}
.video-duration{position:absolute;right:8px;bottom:8px;padding:4px 7px;background:rgba(0,0,0,.72);border-radius:999px;font-size:11px;font-weight:700}
.movie-info{padding:10px 2px 0}
.movie-info .movie-title{font-size:13.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:768px){
 .movies{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
.movie{display:block;min-width:0;transition:transform .25s ease}
.movie:hover{transform:translateY(-4px)}
.poster{transition:box-shadow .25s ease,border-color .25s ease}
.poster img{transition:transform .35s ease}
.movie:hover .poster{box-shadow:0 14px 30px rgba(0,0,0,.55),0 0 0 1px rgba(34,211,238,.7)}
.movie:hover .poster img{transform:scale(1.06)}
.movie-info .movie-title{transition:color .2s ease}
.movie:hover .movie-info .movie-title{color:#22d3ee}
.poster::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(0,0,0,0) 40%,rgba(0,0,0,.45) 100%);opacity:0;transition:opacity .25s ease;pointer-events:none}
.movie:hover .poster::after{opacity:1}
.video-duration{transition:background .2s ease}
.movie:hover .video-duration{background:#22d3ee;color:#00141a}
@media(max-width:768px){
 .movies{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media (hover:none) and (pointer:coarse){
  .movie:hover{transform:none !important}
  .movie:hover .poster{box-shadow:none !important}
  .movie:hover .poster img{transform:none !important}
  .movie:hover .movie-info .movie-title{color:inherit !important}
  .movie:hover .poster::after{opacity:0 !important}
  .movie:hover .video-duration{background:rgba(0,0,0,.72) !important;color:#fff !important}
  .movie:active{transform:translateY(-2px) !important}
  .movie:active .poster img{transform:scale(1.03) !important}
  .movie:active .movie-info .movie-title{color:#22d3ee !important}
}

a{text-decoration:none}
.site-header .header-search{flex:0 0 auto;max-width:none}
.mobile-search .search-btn{border:none;border-radius:50%;display:grid;place-items:center;background:#22d3ee}
.mobile-search input{font-family:inherit}
:where(a,button,input):focus-visible{outline:2px solid #22d3ee;outline-offset:3px}
.search-mini:focus-within,.mobile-search:focus-within{border-color:#22d3ee}
.container,.page-breadcrumb,.category-directory,.error-page{width:100%;max-width:1340px;margin-inline:auto;padding-inline:20px}
.movie{color:#fff;text-decoration:none}
.movie-info .movie-title{margin:0;font-family:inherit;font-weight:700;overflow-wrap:anywhere}
.video-duration{color:#fff;line-height:normal;z-index:1}
.poster-empty{display:grid;place-items:center;width:100%;height:100%;font-size:12px;font-weight:600;color:#aaa}
.category-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:768px){.container,.page-breadcrumb,.category-directory,.error-page{padding-inline:12px}.category-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(prefers-reduced-motion:reduce){.movie,.poster,.poster img,.poster::after,.movie-title,.video-duration,.drawer,.category-directory-card,.category-directory-image img{transition:none!important}.movie:is(:hover,:active),.movie:is(:hover,:active) .poster img,.category-directory-card:hover,.category-directory-card:hover img{transform:none!important}}

/* Header interactions */
@media (min-width:769px){
  .site-header .search-mini{transition:width .22s ease,border-color .18s ease}
  .site-header .search-mini:focus-within{width:clamp(250px,33vw,360px);border-color:#22d3ee}
}
#drawerBtn,#mobileSearchBtn,.drawer-head .x,.drawer-menu a,.drawer-cats a{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
#drawerBtn .menu-dots i{background:currentColor}
  #drawerBtn:hover,#mobileSearchBtn:hover,.drawer-head .x:hover,.drawer-cats a:not(.active):hover{background:#10252a;color:#22d3ee;border-color:#22d3ee;transform:translateY(-1px)}
  .drawer-menu a:hover{background:#10252a;color:#22d3ee;box-shadow:inset 3px 0 #22d3ee}
  .drawer-cats a.active:hover{transform:translateY(-1px);box-shadow:0 0 0 2px #236770}
#drawerBtn:focus-visible,#mobileSearchBtn:focus-visible,.drawer :is(a,button):focus-visible{outline:2px solid #22d3ee;outline-offset:-2px}
#drawerBtn:active,#mobileSearchBtn:active,.drawer-head .x:active,.drawer-cats a:active{transform:scale(.96);border-color:#22d3ee}
.drawer-menu a:active{color:#22d3ee;background:#183137;box-shadow:inset 3px 0 #22d3ee}
@media(prefers-reduced-motion:reduce){
  #drawerBtn,#mobileSearchBtn,.drawer-head .x,.drawer-menu a,.drawer-cats a,.site-header .search-mini{transition:none}
  #drawerBtn:is(:hover,:active),#mobileSearchBtn:is(:hover,:active),.drawer-head .x:is(:hover,:active),.drawer-cats a:is(:hover,:active){transform:none}
}
