:root{
  --vh:1vh;
}
/* Base */
body{
  margin:0;
  overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  color:rgba(255,255,255,.92);
  background:#0b0d10;
}
#app{
  width:100vw;
  height:calc(var(--vh) * 100);
  position:relative;
  overflow:hidden;
}
h2{
  margin:0 0 10px;
  font-size:clamp(1.6rem,4vw,2.2rem);
  word-break:break-word;
}
/* Helpers */
.glass{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.scroll-y{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.floating-btn{
  position:fixed;
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  z-index:1000;
}
/* Counters */
.counter,
.haspart-counter{
  position:fixed;
  top:15px;
  right:15px;
  padding:5px 15px;
  border-radius:12px;
  background:rgba(0,0,0,.6);
  color:#fff;
  font-size:.9rem;
  z-index:1001;
}
.counter{
  cursor:pointer;
}
.haspart-counter{
  pointer-events:none;
}
/* Floating buttons */
.home-button{
  top:10px;
  left:10px;
}
.haspart-button{
  top:50%;
  right:10px;
  transform:translateY(-50%);
}
.back-button{
  top:45.8%;
  left:10px;
  transform:translateY(-50%);
}
/* Loading */
.loading{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:#fff;
  font-size:1.2rem;
  text-align:center;
}
/* Containers */
.items-container,
.haspart-container{
  height:calc(var(--vh) * 100);
  width:100vw;
  position:relative;
  overflow:hidden;
}
.items-container{
  touch-action:pan-y;
}
.haspart-container{
  touch-action:pan-x;
}
/* Tracks */
.items-track,
.haspart-track{
  will-change:transform;
  transition:transform .2s cubic-bezier(.2,0,0,1);
  transform:translate3d(0,0,0);
}
.items-track{
  height:100%;
  position:relative;
}
.haspart-track{
  display:flex;
  width:max-content;
  height:100%;
  flex-wrap:nowrap;
}
.items-track.dragging,
.haspart-track.dragging{
  transition:none;
}
.items-track.locked{
  pointer-events:none;
}
/* Slides */
.item-slide,
.haspart-slide{
  width:100%;
  height:calc(var(--vh) * 100);
  contain:layout paint style;
}
.item-slide{
  position:absolute;
  top:0;
  left:0;
  background-size:cover;
  background-position:center;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  content-visibility:auto;
  contain-intrinsic-size:100vw 100vh;
}
.item-slide::before{
  content:'';
  position:absolute;
  inset:5% 0 0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.9) 20%,
    transparent 60%
  );
}
/* Main content */
.item-content{
  position:relative;
  z-index:1;
  width:100%;
  padding:clamp(10px,4vh,42px) 3vh max(50px, env(safe-area-inset-bottom));
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:0;
}
.meta{
  width:fit-content;
  padding:4px 9px;
  margin:0 0 3px -3px;
  background:rgba(0,0,0,.7);
  font-size:.9rem;
  opacity:.9;
}
.author{
  margin-top:3px;
  font-size:.93rem;
  font-weight:600;
}
.desc{
  margin-top:11px;
  max-height:60dvh;
  line-height:1.45;
  font-size:.95rem;
  opacity:.92;
}
.desc p{
  margin:0 0 .3rem;
}
.desc p:last-child{
  margin-bottom:0;
}
/* HasPart */
.haspart-slide{
  flex:0 0 100vw;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.haspart-image{
  flex:1;
  min-height:0;
  background-size:cover;
  background-position:center;
}
.haspart-text{
  flex:1;
  min-height:0;
  padding:9vw;
  padding-bottom:max(70px, env(safe-area-inset-bottom));
  background:rgba(0,0,0,.9);
}
.haspart-text h3{
  margin:1vh 0 .3vh;
}
/* List */
.items-list{
  position:fixed;
  inset:0;
  z-index:2000;
  padding:60px 0 calc(40px + env(safe-area-inset-bottom));
  background:rgba(0,0,0,.92);
  overflow-y:auto;
  transform:translate3d(100%,0,0);
  transition:transform .25s cubic-bezier(.2,0,0,1);
}
.items-list.open{
  transform:translate3d(0,0,0);
}
.items-list-item,
.info-item,
.info-block{
  border-radius:14px;
  color:rgba(255,255,255,.92);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.items-list-item{
  display:flex;
  align-items:center;
  padding:14px;
  margin:10px 12px;
}
.items-list-item.active{
  background:rgba(255,255,255,.14);
}
.item-thumbnail{
  width:60px;
  height:45px;
  margin-right:10px;
  border-radius:6px;
  flex-shrink:0;
  background-size:cover;
  background-position:center;
}
.item-info{
  flex:1;
  min-width:0;
}
.item-name{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.item-meta{
  font-size:.8rem;
  color:rgba(255,255,255,.65);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Modal */
.modal-overlay{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(12px,2vw,28px);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.05), transparent 30%),
    rgba(8,10,14,.62);
  backdrop-filter:blur(8px) saturate(160%) brightness(.9);
}
.modal-content{
  position:relative;
  width:min(94vw,1100px);
  height:min(90dvh,920px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:22px;
  background:rgba(20,22,26,.78);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 24px;
  border-bottom:1px solid rgba(255,255,255,.08);
  gap:12px;
}
.modal-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.65rem;
  font-weight:600;
  text-transform:uppercase;
}
.title-icon{
  width:1.35em;
  height:1.35em;
  opacity:.5;
  fill:currentColor;
}
.modal-close{
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.modal-body{
  flex:1;
  min-height:0;
  padding:clamp(18px,3vw,36px);
  container-type:inline-size;
}
/* Language */
.lang-globe{
  border:none;
  border-radius:50%;
  width:36px;
  height:36px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.globe-icon{
  width:18px;
  height:18px;
}
.lang-menu{
  position:absolute;
  top:42px;
  right:0;
  z-index:1100;
  min-width:120px;
  border-radius:12px;
  background:rgba(20,22,26,.92);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  padding:6px;
}
.lang-option{
  display:block;
  width:100%;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.9);
  padding:8px 10px;
  font-size:.9rem;
  border-radius:8px;
  cursor:pointer;
}
.lang-option:hover{
  background:rgba(255,255,255,.12);
}
/* Tabs */
.info-tabs{
  position:sticky;
  top:10px;
  z-index:10;
  display:flex;
  gap:10px;
  width:fit-content;
  margin:0 auto 18px;
  padding:8px;
  border-radius:999px;
}
.tab{
  border:none;
  padding:6px 16px;
  border-radius:999px;
  background:transparent;
  color:rgba(255,255,255,.7);
  cursor:pointer;
}
.tab.active{
  background:rgba(255,255,255,.14);
  color:#fff;
}
/* Grid */
.info-grid,
.info-grid-sec{
  display:grid;
  gap:clamp(8px,2vw,14px);
}
.info-grid{
  grid-template-columns:repeat(auto-fit,minmax(var(--btn-size,84px),1fr));
  margin:2vw 0 4vw;
}
.info-grid-sec{
  grid-template-columns:repeat(auto-fit,minmax(60px,1fr));
  margin:1vw auto;
  max-width:600px;
}
/* Buttons */
.info-btn,
.info-btn-sec{
  aspect-ratio:1;
  width:100%;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;
  cursor:pointer;
  transition:.15s;
}
.info-btn:hover,
.info-btn-sec:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-2px);
}
.icon{
  width:clamp(22px,6vw,34px);
  height:clamp(22px,6vw,34px);
  fill:currentColor;
}
/* Info blocks */
.info-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.info-block{
  padding:14px;
  margin-bottom:16px;
}
.info-block-title{
  margin-bottom:10px;
  font-weight:600;
}
.info-price span{
  padding:4px 10px;
  border-radius:999px;
  background:rgba(34,197,94,.15);
  color:#86efac;
}
.info-block a{
  display:inline-flex;
  padding:6px 10px;
  border-radius:8px;
  text-decoration:none;
  background:rgba(59,130,246,.15);
  color:#93c5fd;
}
.price-conditions{
  font-size:.85rem;
  opacity:.8;
  font-style:italic;
}
/* Cookies */
.cookie-banner{
  position:fixed;
  bottom:20px;
  left:20px;
  right:20px;
  background:rgba(20,22,26,.95);
  padding:15px;
  border-radius:10px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:15px;
}
.cookie-banner button{
  background:rgba(255,255,255,.15);
  color:#fff;
  border:none;
  padding:8px 16px;
  border-radius:6px;
  cursor:pointer;
}
.cookie-banner a{
  color:#93c5fd;
  text-decoration:none;
}
/* Transitions */
.app-transition-enter-active,
.app-transition-leave-active,
.modal-enter-active,
.modal-leave-active{
  transition:opacity .3s ease, transform .3s ease;
}
.app-transition-enter-from,
.app-transition-leave-to,
.modal-enter-from,
.modal-leave-to{
  opacity:0;
  transform:scale(.95);
}
/* Containers */
@container (max-width:520px){
  .info-grid{ --btn-size:70px; }
}
@container (max-width:380px){
  .info-grid{ --btn-size:60px; }
}
@container (max-width:300px){
  .info-grid{ --btn-size:52px; }
}
@container (max-width:420px){
  .tab{
    max-width:100px;
    flex:1 1 0;
  }
}
@container (max-width:320px){
  .tab{
    max-width:80px;
    font-size:.78rem;
  }
}
/* Tablet */
@media (min-width:768px) and (max-width:1024px){
  :root{
    --split-left:35%;
    --split-right:65%;
  }
  #app{
    display:flex;
    flex-direction:row;
  }
  .items-list{
    width:var(--split-left);
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    transform:none !important;
    padding:20px;
    box-sizing:border-box;
    overflow-y:auto;
  }
  .items-container,
  .haspart-container{
    width:var(--split-right);
    left:var(--split-left);
    height:100vh;
  }
  .item-slide{
    height:100vh;
    width:100%;
  }
  .haspart-track{
    flex-direction:column;
    height:100%;
  }
  .haspart-slide{
    width:100% !important;
    height:100vh;
  }
  .counter{
    left:calc(var(--split-left) + 15px);
  }
  .home-button{
    left:calc(var(--split-left) + 10px);
  }
}
