*{box-sizing:border-box}
:root{color-scheme:dark;--bg:#090a0b;--panel:#101214;--panel-hover:#151719;--line:#25282b;--line-strong:#383c40;--text:#f4f4f2;--muted:#92979d;--soft:#c2c5c8;--chip:#15181a;--white:#f4f4f2;--black:#090a0b;--accent:#fff;--shadow:0 18px 50px rgba(0,0,0,.18)}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input{font:inherit}.site-shell{width:min(1240px,calc(100% - 64px));margin:0 auto}
.header{height:88px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:44px}
.brand{width:174px;height:38px;display:flex;align-items:center;flex:none}.brand img{width:100%;height:100%;object-fit:contain;object-position:left center}
.main-nav{height:100%;display:flex;align-items:center;gap:28px}.nav-link{height:100%;display:flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:650;position:relative}.nav-link.active{color:var(--text)}.nav-link.active:after{content:"";height:2px;background:var(--text);position:absolute;bottom:-1px;left:0;right:0}.nav-count{font-size:9px;color:var(--muted);letter-spacing:.08em}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.search-box{width:218px;height:38px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:0 10px 0 12px}.search-box svg{width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:1.7}.search-box input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}.search-box input::placeholder{color:#737980}.search-box kbd{border:1px solid var(--line-strong);border-radius:4px;color:var(--muted);font-size:10px;padding:1px 5px}
.theme-toggle,.profile{height:38px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:8px;cursor:pointer}.theme-toggle{width:38px;display:grid;place-items:center}.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.profile{display:flex;align-items:center;gap:8px;padding:0 10px;font-size:11px;font-weight:700}.profile-avatar{width:21px;height:21px;border-radius:6px;background:var(--white);color:var(--black);display:grid;place-items:center;font-size:10px}.profile-chevron{color:var(--muted);font-size:15px}.mobile-menu{display:none}
.hero{min-height:395px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}.hero-copy{padding:54px 0 58px;max-width:590px;position:relative;z-index:1}.eyebrow,.section-kicker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.18em}.eyebrow-line{width:24px;height:1px;background:var(--soft)}.eyebrow-dot{width:4px;height:4px;background:var(--soft);border-radius:50%;margin-left:1px}
h1{font-size:clamp(54px,7.2vw,88px);line-height:.99;letter-spacing:-.085em;margin:24px 0 18px;font-weight:800}h1 span{color:#777d83}.hero-description{max-width:425px;color:var(--muted);font-size:13px;line-height:1.8;margin:0}.hero-link{display:inline-flex;align-items:center;gap:20px;margin-top:28px;padding-bottom:7px;border-bottom:1px solid var(--line-strong);color:var(--text);text-decoration:none;font-size:11px;font-weight:750}.hero-link span{font-size:16px;transition:transform .2s}.hero-link:hover span{transform:translateY(3px)}
.hero-art{width:390px;height:300px;position:absolute;right:26px;top:48px;display:grid;place-items:center}.hero-art>img{width:135px;height:135px;object-fit:contain;opacity:.92;position:relative;z-index:1;filter:drop-shadow(0 15px 30px rgba(255,255,255,.04))}.art-orbit{position:absolute;border:1px solid var(--line);border-radius:50%;transform:rotate(-25deg)}.orbit-one{width:270px;height:150px}.orbit-two{width:355px;height:215px}.art-caption,.art-index{position:absolute;color:#666d73;font-size:8px;font-weight:800;letter-spacing:.17em;line-height:1.6}.art-caption{right:2px;top:35px}.art-index{left:0;bottom:26px}
.catalog{padding:65px 0 78px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.section-kicker{margin-bottom:12px}.section-heading h2{font-size:clamp(25px,3vw,35px);letter-spacing:-.06em;line-height:1.15;margin:0;font-weight:800}.heading-period{color:#777d83}.catalog-meta{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;padding-bottom:4px}.live-dot,.card-status i{width:6px;height:6px;border-radius:50%;background:#d9d9d6;display:inline-block}.meta-divider{width:1px;height:12px;background:var(--line-strong);margin:0 3px}
.filter-row{display:flex;gap:7px;margin:29px 0 19px}.filter-chip{height:31px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:10px;font-weight:650;cursor:pointer;transition:.18s}.filter-chip:hover{border-color:var(--line-strong);color:var(--text)}.filter-chip.selected{background:var(--white);color:var(--black);border-color:var(--white)}.filter-chip span{margin-left:5px;opacity:.55;font-size:9px}
.widget-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.widget-card{min-height:320px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:18px 19px 16px;display:flex;flex-direction:column;position:relative;overflow:hidden;transition:background .22s,border-color .22s,transform .22s}.widget-card:hover{background:var(--panel-hover);border-color:var(--line-strong);transform:translateY(-3px)}.card-head{display:flex;align-items:center;justify-content:space-between;color:#737980;font-size:8px;font-weight:800;letter-spacing:.13em}.card-status{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:4px;padding:5px 7px;color:#aeb3b7;font-size:8px;letter-spacing:.08em}.card-status i{width:5px;height:5px}.icon-stage{height:104px;display:flex;align-items:center;justify-content:center;margin:7px 0 2px}.icon-stage img{width:83px;height:83px;object-fit:contain;display:block;filter:grayscale(1);transition:transform .25s}.widget-card:hover .icon-stage img{transform:scale(1.07)}
.card-content{margin-top:auto}.card-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-title-line h3{font-size:19px;letter-spacing:-.055em;margin:0;font-weight:800}.card-arrow{font-size:16px;color:#777d83;transition:transform .2s,color .2s}.widget-card:hover .card-arrow{transform:translate(2px,-2px);color:var(--text)}.card-content p{font-size:11px;line-height:1.75;color:var(--muted);margin:8px 0 17px;max-width:340px;min-height:58px}
.card-footer{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.tag-list{display:flex;gap:5px;flex-wrap:wrap}.tag-list span{border:1px solid var(--line);border-radius:4px;padding:4px 7px;color:#92989e;font-size:8px;white-space:nowrap}.card-action{border:0;background:var(--white);color:var(--black);height:31px;border-radius:5px;padding:0 11px;font-size:9px;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .2s,transform .2s}.card-action span{margin-left:8px;font-size:13px}.card-action:hover{background:#d8d9d7;transform:translateX(2px)}
.no-results{grid-column:1/-1;min-height:230px;border:1px dashed var(--line-strong);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:8px}.no-results>span{font-size:24px}.no-results strong{color:var(--text);font-size:14px}.no-results p{margin:0;font-size:11px}
.footer{height:76px;border-top:1px solid var(--line);display:flex;align-items:center;gap:13px;color:var(--muted);font-size:10px}.footer-brand{width:24px;height:24px;display:block}.footer-brand img{width:100%;height:100%;object-fit:contain}.footer-copy{margin-left:auto}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);padding:11px 16px;border:1px solid var(--line-strong);border-radius:7px;background:var(--panel);color:var(--text);font-size:11px;opacity:0;pointer-events:none;transition:.2s;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}
body.light{color-scheme:light;--bg:#f4f4f2;--panel:#fff;--panel-hover:#fafaf8;--line:#dedfdd;--line-strong:#c6c8c5;--text:#151617;--muted:#747a7e;--soft:#414649;--chip:#ebedeb;--white:#151617;--black:#fff;--shadow:0 18px 50px rgba(0,0,0,.08)}
body.light .brand img{filter:invert(1)}body.light .hero-art>img{filter:invert(1)}body.light .icon-stage img{filter:grayscale(1) invert(1)}body.light .card-action{background:#151617;color:#fff}body.light .filter-chip.selected{background:#151617;color:#fff;border-color:#151617}body.light .profile-avatar{background:#151617;color:#fff}
@media(min-width:1500px){.site-shell{width:min(1320px,calc(100% - 100px))}.widget-card{min-height:340px;padding:21px 22px 18px}.icon-stage{height:116px}}
@media(max-width:980px){.site-shell{width:calc(100% - 44px)}.header{gap:25px}.main-nav{gap:18px}.hero-art{right:-25px;opacity:.55}.widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.site-shell{width:calc(100% - 32px)}.header{height:70px;gap:0}.brand{width:145px;height:32px}.main-nav{display:none}.header-actions{gap:7px}.search-box{width:38px;padding:0;justify-content:center;border-radius:7px}.search-box input,.search-box kbd{display:none}.search-box svg{width:17px;height:17px}.profile{padding:0 7px}.profile-name,.profile-chevron{display:none}.mobile-menu{display:flex;width:34px;height:34px;margin-left:7px;flex-direction:column;justify-content:center;gap:5px;align-items:center;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.mobile-menu span{width:13px;height:1px;background:var(--text)}
.hero{min-height:350px}.hero-copy{padding:49px 0 48px;max-width:100%}h1{font-size:61px;margin:21px 0 15px}.hero-description{max-width:330px;font-size:12px}.hero-art{right:-190px;top:35px;opacity:.2}.catalog{padding:47px 0 55px}.section-heading{align-items:flex-start;flex-direction:column;gap:13px}.section-heading h2{font-size:28px}.catalog-meta{padding:0}.filter-row{margin:22px 0 14px;overflow-x:auto;padding-bottom:2px}.filter-chip{flex:none}.widget-grid{grid-template-columns:1fr;gap:10px}.widget-card{min-height:295px;padding:17px}.icon-stage{height:85px}.icon-stage img{width:72px;height:72px}.card-content p{min-height:0}.footer{height:65px}.footer>span:nth-child(2){max-width:160px}.toast{width:max-content;max-width:calc(100% - 30px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Compact widget library — matches the previous EZWidgets card layout */
.widget-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.widget-card{min-height:274px;border-radius:20px;padding:23px 23px 20px;background:var(--panel);border-color:var(--line);transform:none}
.widget-card:hover{transform:translateY(-2px)}
.card-head{min-height:46px;letter-spacing:0;font-size:10px;color:var(--muted)}
.widget-icon{width:44px;height:44px;flex:none;border:1px solid var(--line-strong);border-radius:13px;background:var(--chip);display:grid;place-items:center}
.widget-icon img{width:29px;height:29px;object-fit:contain;display:block;filter:grayscale(1)}
.card-status{border-radius:999px;padding:6px 10px;background:var(--chip);font-size:10px;letter-spacing:0;color:var(--muted);white-space:nowrap}
.card-status i{display:none}
.card-content{margin-top:17px}
.card-title-line{display:block}
.card-content h3{font-size:17px;letter-spacing:-.045em;line-height:1.35;margin:0;font-weight:800}
.card-arrow{display:none}
.card-content p{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 17px;max-width:none;min-height:58px}
.card-footer{border-top:1px solid var(--line);padding-top:13px;min-height:51px;align-items:center}
.tag-list{gap:6px;max-width:calc(100% - 112px)}
.tag-list span{border:0;border-radius:999px;background:var(--chip);padding:5px 9px;color:var(--muted);font-size:9px}
.card-action{height:36px;border-radius:999px;padding:0 16px;font-size:11px;flex:none}
.card-action span{margin-left:5px}
@media(max-width:980px){.widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.widget-grid{grid-template-columns:1fr;gap:12px}.widget-card{min-height:260px;padding:20px;border-radius:17px}.card-content{margin-top:14px}.card-content p{min-height:0}.tag-list{max-width:calc(100% - 100px)}.card-action{padding:0 13px}}

/* Twitch OAuth integration in new design header */
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.twitch-login-pill {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.twitch-login-pill:hover {
  opacity: .9;
  transform: translateY(-1px);
}
body.light .twitch-login-pill {
  background: #151617;
  color: #ffffff;
}
.profile-menu-wrap {
  position: relative;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}
.profile-dropdown.open {
  display: block;
}
.profile-dropdown-item {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-dropdown-item:hover {
  background: var(--chip);
}
.profile-dropdown-meta {
  padding: 6px 10px 8px;
  font-size: 10.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
/* Light theme icon invert fix for new widget-icon */
body.light .widget-icon img {
  filter: grayscale(1) invert(1);
}

/* Жёсткое скрытие элементов с атрибутом hidden (фикс фильтров и плашки пустого результата) */
[hidden], .no-results[hidden], .widget-card[hidden] {
  display: none !important;
}
