:root {
  --menu-h: clamp(44px, 7.2vh, 56px); 
  --frame-max-w: 720px;
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bot: env(safe-area-inset-bottom, 0px);

  --fs-base: clamp(12px, 1.6vw, 14px);
  --ink: #0a0a0a;
  --cta-h: 0px;
}


html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden; 
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: var(--fs-base);            
  color: var(--ink);   
  html, body { background: #000; }
                 
}

.scroll-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--menu-h) + var(--sa-top));
  bottom: var(--sa-bot);
  height: auto;
  min-height: 0;

  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  contain: size layout; 
  padding: 0;
  scroll-padding-top: 0;
}

.block{
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: stretch;
}

.player-box{
  position: relative;
  width: 100%;
  max-width: var(--frame-max-w);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-box video,
.player-box .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

.vjs-control-bar,
.playkit-control-bar,
.playkit-control-bar-container {
  position: fixed !important;
  left: 0;
  bottom: calc(var(--sa-bot) + var(--cta-h, 0px)) !important;
  width: 100vw;
  z-index: 2500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.player-box .vjs-top-bar,
.player-box .vjs-big-play-button { display: none !important; }

.playkit-overlay.playkit-active {
  background: transparent !important;
  pointer-events: none !important;
}

.top-menu {
  position: fixed;
  width: min(var(--frame-max-w), 100%);
  box-sizing: border-box;
  left: 50%;
  transform: translateX(-50%);
  height: var(--menu-h);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 10px);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;  
  padding: 0 clamp(8px, 2vw, 12px);
  z-index: 3000;
  top: 0;
  justify-content: space-between;
  padding-top: var(--sa-top);
  color: var(--ink);
}

.top-menu .d-flex { display: flex; flex-direction: row; align-items: center; }
.top-menu img     { max-height: calc(var(--menu-h) - 10px); width: auto; display: block; }

.top-menu .d-flex img { max-height: 30px; }
.top-menu .d-flex span:last-child { font-weight: 700; font-size: clamp(1rem, 3.4vw, 1.2rem); }

.desktop-logo { display: block; }
.mobile-logo  { display: none; }

@media (max-width: 500px) {
  .desktop-logo { display: none; }
  .mobile-logo  {
    display: block;
    max-height: calc(var(--menu-h) - 12px);
    width: auto;
  }
  .categories-desktop { display: none; }
}

@media (min-width: 501px) {
  .mobile-logo { display: none !important; }
}

.mobile-categories a {
  transition: background-color .2s ease, color .2s ease;
}
.mobile-categories a:hover {
  background-color: rgba(0,0,0,0.05);
  color: #105fba;
  border-radius: 4px;
  padding-left: 0.6rem; 
}

nav.top-menu { 
  height: var(--menu-h) !important; 
width: min(100vw, var(--frame-max-w)) !important;
}

#shareTop,
#hamburger {
  width: clamp(42px, 7vw, 50px) !important;
  height: clamp(42px, 7vw, 50px) !important;
  padding: clamp(8px, 1.6vw, 12px) !important;
}
#shareTop i,
#hamburger i {
  font-size: clamp(1rem, 3.6vw, 1.2rem) !important;
  color: #3c414d !important;
}

.search-btn {
  background: #fff;
  color: #3c414d;
  border: 1px solid #e5e7eb;           
  border-radius: 12px;
  width: clamp(40px, 7vw, 48px);
  height: clamp(40px, 7vw, 48px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.search-btn i {
  font-size: clamp(.95rem, 3.2vw, 1.1rem);
  font-weight: 400;
}
.search-btn:hover {
  background: #f5f5f5;
  border-color: #cfd4da;
}

.search-panel{
  position:absolute;
  top: 4px; bottom: 4px;
  right: 6px; left: 6px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;                 
  transform-origin: right center;
  transform: scaleX(0.05);
  opacity: 0;
  transition: transform .24s cubic-bezier(.4,0,.2,1), opacity .18s;
  pointer-events: none;
  z-index: 3500;
}
.search-panel.active{
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

#searchField{
  height: clamp(36px, 6.6vh, 42px);
  border: none;
  outline: none;

  
  font-size: clamp(.9rem, 2.8vw, .95rem);

  background: transparent;
  color: var(--ink);
}


@supports (-webkit-touch-callout: none) {
  #searchField { font-size: 16px; }
}

.search-close{
  width: clamp(32px, 6vw, 36px);
  height: clamp(32px, 6vw, 36px);
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  line-height: 1;
}
.search-close:hover{ background:#f3f4f6; }

.top-menu.search-open .desktop-logo,
.top-menu.search-open .mobile-logo,
.top-menu.search-open .d-flex.align-items-center.gap-2:first-child {
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s;
}

*, *::before, *::after { font-family: inherit; }
input, button, select, textarea { font: inherit; }

[style*="youtubeSansBold"]   { font-family: 'Montserrat', sans-serif !important; font-weight: 800 !important; }
[style*="youtubeSansMedium"] { font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; }
[style*="youtubeSansLight"]  { font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; }

@media (max-width: 640px){
  .desktop-logo{ display: none !important; }
  .mobile-logo { display: block !important; }

  .top-menu > .d-flex.align-items-center.gap-2:first-child{
    flex: 0 1 40%;
    max-width: 40%;
    min-width: 0;
    overflow: hidden;
  }
  .top-menu > .d-flex.align-items-center.gap-2:first-child img{
    height: calc(var(--menu-h) - 18px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .brand-sep,
  .brand-light{
    font-size: clamp(.82rem, 3vw, .95rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    display: inline-block;
    vertical-align: middle;
  }
  nav.top-menu .search-inline{
    flex: 1 1 60%;
    min-width: 0;
  }
}

.top-menu img.mobile-logo{ max-height: none !important; }

@media (max-width: 640px){
  .brand-sep{
    margin: 0 4px;
    font-size: clamp(.78rem, 3vw, .95rem);
  }
  .brand-light{
    display: inline-block;
    max-width: 72%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    font-weight: 600;
    font-size: clamp(.78rem, 3vw, .95rem);
  }
}

html.no-init .scroll-wrapper { visibility: hidden; }


.brand-light {
  display: inline-block;
  max-width: clamp(120px, 40vw, 280px);
  white-space: normal !important;     
  overflow: visible !important;        
  text-overflow: clip !important;      
  word-break: break-word;              
  overflow-wrap: anywhere;             
  line-height: 1.15;
  font-weight: 600;
}


@media (max-width: 640px){
  .brand-light{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 72%;                    
  }
}

