:root{color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;overflow-x:hidden;background:#09090b;color:#f4f4f5;font-family:Sora,system-ui,sans-serif}
.entity-page{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 80px}
.entity-loading{display:grid;place-items:center;gap:12px;min-height:55vh;color:#777780}.entity-loading span{width:38px;height:38px;border:3px solid #2d2d32;border-top-color:#f97316;border-radius:50%;animation:entity-spin .8s linear infinite}@keyframes entity-spin{to{transform:rotate(360deg)}}
.entity-hero{position:relative;overflow:hidden;min-height:310px;border:1px solid rgba(255,255,255,.08);border-radius:30px;background:linear-gradient(135deg,#17171a,#0d0d10);box-shadow:0 30px 90px rgba(0,0,0,.32)}
.entity-hero-bg{position:absolute;inset:0;background-position:center;background-size:cover;filter:saturate(.78) brightness(.58);transform:scale(1.02)}
.entity-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,9,11,.98) 0%,rgba(9,9,11,.72) 48%,rgba(9,9,11,.34)),linear-gradient(0deg,#09090b 0%,transparent 48%)}
.entity-hero-content{position:relative;z-index:1;display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:end;gap:28px;min-height:310px;padding:36px}
.entity-avatar{width:190px;height:190px;border:1px solid rgba(255,255,255,.13);border-radius:26px;object-fit:cover;background:#161619;box-shadow:0 22px 65px rgba(0,0,0,.42)}
.entity-kicker{display:flex;align-items:center;gap:8px;color:#fb923c;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.entity-kicker i{display:block;width:22px;height:1px;background:#f97316}
.entity-name{margin:10px 0 0;font-size:clamp(32px,5vw,58px);line-height:.98;letter-spacing:-.05em;font-weight:800;overflow-wrap:anywhere}
.entity-country{margin-top:12px;color:#a1a1aa;font-size:12px}
.entity-hero-actions{display:flex;align-items:center;gap:9px;align-self:end}
.entity-button{display:inline-flex;min-height:43px;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid #35353a;border-radius:13px;background:#202024;color:#e4e4e7;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer;transition:.18s ease}.entity-button:hover{transform:translateY(-1px);border-color:#505058}.entity-button.is-primary{border-color:rgba(249,115,22,.35);background:linear-gradient(135deg,#f97316,#ea580c);color:#fff}.entity-button.is-ghost{background:#18181b}.entity-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.entity-body{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;margin-top:20px}
.entity-card{border:1px solid #28282e;border-radius:24px;background:rgba(24,24,27,.82);box-shadow:0 18px 50px rgba(0,0,0,.14)}
.entity-about{padding:25px}.entity-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.entity-section-head h2{margin:0;font-size:20px;letter-spacing:-.025em}.entity-section-head span{color:#74747d;font-size:10px;font-weight:700}
.entity-description{margin:0;color:#c5c5cb;font-size:14px;line-height:1.78;white-space:pre-wrap;overflow-wrap:anywhere}.entity-description.is-empty{color:#6f6f78}
.entity-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.entity-social{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;border:1px solid #303036;border-radius:12px;background:#1e1e22;color:#d4d4d8;font-size:10px;font-weight:750;text-decoration:none}.entity-social svg{width:17px;height:17px;fill:currentColor}.entity-social:hover{border-color:rgba(249,115,22,.35);color:#fb923c}
.entity-side{display:grid;align-content:start;gap:12px}.entity-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:14px}.entity-stat{padding:13px 8px;border-radius:15px;background:#1b1b1f;text-align:center}.entity-stat strong{display:block;font-size:20px}.entity-stat span{display:block;margin-top:4px;color:#74747d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.entity-members{padding:18px}.entity-member-list{display:grid;gap:8px}.entity-member{display:flex;align-items:center;gap:10px;padding:9px;border-radius:13px;color:inherit;text-decoration:none}.entity-member:hover{background:#202024}.entity-member img{width:38px;height:38px;border-radius:12px;object-fit:cover}.entity-member strong{display:block;font-size:11px}.entity-member span{display:block;margin-top:3px;color:#7d7d86;font-size:9px}
.entity-titles{margin-top:20px;padding:24px}.entity-title-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.entity-title-card{min-width:0;color:inherit;text-decoration:none}.entity-title-cover{position:relative;overflow:hidden;aspect-ratio:2/3;border-radius:17px;background:#151518}.entity-title-cover img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.entity-title-card:hover img{transform:scale(1.035)}.entity-title-rating{position:absolute;left:7px;top:7px;padding:5px 7px;border-radius:9px;background:rgba(9,9,11,.82);color:#fbbf24;font-size:9px;font-weight:850;backdrop-filter:blur(8px)}.entity-title-card strong{display:-webkit-box;min-height:37px;margin-top:9px;overflow:hidden;font-size:11px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.entity-title-card small{display:block;margin-top:4px;color:#73737c;font-size:9px}.entity-empty{padding:38px 20px;border:1px dashed #303036;border-radius:18px;color:#74747d;text-align:center;font-size:11px}
.entity-edit-modal{position:fixed;inset:0;z-index:200;display:none;place-items:center;padding:18px;background:rgba(0,0,0,.76);backdrop-filter:blur(10px)}.entity-edit-modal.is-open{display:grid}.entity-edit-card{width:min(760px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;padding:24px;border:1px solid #35353b;border-radius:26px;background:#17171a;box-shadow:0 30px 100px rgba(0,0,0,.6)}.entity-edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.entity-edit-head span{color:#fb923c;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.entity-edit-head h2{margin:6px 0 0;font-size:24px}.entity-edit-head p{margin:6px 0 0;color:#7b7b84;font-size:10px}.entity-edit-head button{width:38px;height:38px;border:1px solid #34343a;border-radius:12px;background:#222226;color:#aaa;font-size:22px;cursor:pointer}.entity-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}.entity-field,.entity-file{display:grid;gap:7px}.entity-field.is-wide{grid-column:1/-1}.entity-field>span,.entity-file>span{color:#a5a5ad;font-size:10px;font-weight:800}.entity-field input,.entity-field textarea,.entity-file input{width:100%;min-height:44px;padding:0 13px;border:1px solid #34343a;border-radius:13px;background:#111114;color:#f4f4f5;outline:none}.entity-field textarea{padding-top:12px;resize:vertical}.entity-field input:focus,.entity-field textarea:focus{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.08)}.entity-file{padding:13px;border:1px dashed #36363c;border-radius:15px;background:#131316}.entity-file input{padding:9px}.entity-file small{color:#6f6f78;font-size:9px}.entity-edit-note{margin:14px 0 0;color:#8b8b94;font-size:10px;line-height:1.55}.entity-edit-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
@media(max-width:980px){.entity-hero-content{grid-template-columns:150px minmax(0,1fr);padding:28px}.entity-avatar{width:150px;height:150px}.entity-hero-actions{grid-column:1/-1}.entity-body{grid-template-columns:1fr}.entity-side{grid-template-columns:1fr 1fr}.entity-title-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.entity-page{width:100%;padding:0 0 54px}.entity-hero{border-radius:0;border-left:0;border-right:0;min-height:0}.entity-hero-content{grid-template-columns:88px minmax(0,1fr);gap:14px;min-height:0;padding:22px 15px 20px}.entity-avatar{width:88px;height:88px;border-radius:19px}.entity-name{font-size:28px}.entity-country{margin-top:8px}.entity-hero-actions{display:grid;grid-template-columns:1fr;width:100%}.entity-body{margin:12px 10px 0}.entity-about{padding:18px}.entity-side{grid-template-columns:1fr}.entity-stats{grid-template-columns:repeat(3,1fr)}.entity-titles{margin:12px 10px 0;padding:16px}.entity-title-grid{display:flex;gap:11px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px;scrollbar-width:none}.entity-title-grid::-webkit-scrollbar{display:none}.entity-title-card{flex:0 0 132px;scroll-snap-align:start}.entity-edit-card{padding:18px;border-radius:21px}.entity-edit-grid{grid-template-columns:1fr}.entity-field.is-wide{grid-column:auto}.entity-edit-actions{display:grid;grid-template-columns:1fr}.entity-edit-actions .entity-button{width:100%}}

/* Fukurou 5.24.5 — standalone entity editor links */
.entity-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.entity-button.is-disabled{pointer-events:none;opacity:.52}
.entity-identity{min-width:0}

/* Fukurou 5.24.5 — refined work cards and mobile profile hero */
.entity-title-grid{
  grid-template-columns:repeat(auto-fill,minmax(176px,210px));
  justify-content:flex-start;
  gap:16px;
}
.entity-title-card{
  display:block;
  overflow:hidden;
  min-width:0;
  border:1px solid #2b2b31;
  border-radius:20px;
  background:linear-gradient(180deg,#1b1b1f 0%,#151518 100%);
  box-shadow:0 12px 34px rgba(0,0,0,.16);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.entity-title-card:hover{
  transform:translateY(-4px);
  border-color:rgba(249,115,22,.38);
  box-shadow:0 20px 48px rgba(0,0,0,.32),0 0 0 1px rgba(249,115,22,.08);
}
.entity-title-cover{
  display:block;
  aspect-ratio:2/3;
  border-radius:0;
}
.entity-title-cover::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.04);
  border-radius:inherit;
  pointer-events:none;
}
.entity-title-cover img{
  display:block;
}
.entity-title-cover-shade{
  position:absolute;
  inset:auto 0 0;
  height:42%;
  background:linear-gradient(180deg,transparent,rgba(8,8,10,.82));
  pointer-events:none;
}
.entity-title-rating,
.entity-title-type{
  position:absolute;
  top:10px;
  display:inline-flex;
  min-height:26px;
  align-items:center;
  gap:5px;
  padding:0 8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:rgba(10,10,12,.8);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-size:9px;
  font-weight:850;
  line-height:1;
}
.entity-title-rating{
  left:10px;
  color:#fbbf24;
}
.entity-title-rating svg{
  width:12px;
  height:12px;
  fill:currentColor;
}
.entity-title-type{
  right:10px;
  color:#f4f4f5;
  text-transform:capitalize;
}
.entity-title-open{
  position:absolute;
  right:12px;
  bottom:12px;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(18,18,21,.78);
  color:#fff;
  opacity:0;
  transform:translateX(-4px);
  transition:.2s ease;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.entity-title-open svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.entity-title-card:hover .entity-title-open{
  opacity:1;
  transform:none;
}
.entity-title-info{
  display:block;
  padding:13px 13px 14px;
}
.entity-title-card strong{
  min-height:40px;
  margin:0;
  font-size:12px;
  line-height:1.45;
}
.entity-title-meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-top:9px;
  color:#74747d;
}
.entity-title-meta small{
  display:block;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#8a8a93;
  font-size:9px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.entity-title-meta>span{
  flex:0 0 auto;
  font-size:8px;
  white-space:nowrap;
}

@media(max-width:640px){
  .entity-hero-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:0;
    padding:28px 16px 22px;
    text-align:center;
  }
  .entity-avatar{
    width:112px;
    height:112px;
    margin:0 auto;
    border-radius:24px;
    box-shadow:0 18px 48px rgba(0,0,0,.38);
  }
  .entity-identity{
    width:100%;
    margin-top:16px;
  }
  .entity-kicker{
    justify-content:center;
    font-size:9px;
  }
  .entity-name{
    margin-top:9px;
    font-size:30px;
    line-height:1.05;
    text-align:center;
  }
  .entity-country{
    text-align:center;
  }
  .entity-hero-actions{
    display:flex;
    width:auto;
    margin-top:14px;
    justify-content:center;
  }
  .entity-hero-actions .entity-button{
    min-height:36px;
    width:auto;
    padding:0 12px;
    border-radius:11px;
    font-size:9px;
  }
  .entity-hero-actions .entity-button svg{
    width:14px;
    height:14px;
  }
  .entity-title-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:1px 1px 7px;
    scrollbar-width:none;
  }
  .entity-title-grid::-webkit-scrollbar{display:none}
  .entity-title-card{
    flex:0 0 148px;
    scroll-snap-align:start;
    border-radius:18px;
  }
  .entity-title-info{
    padding:11px 11px 12px;
  }
  .entity-title-card strong{
    min-height:37px;
    font-size:11px;
  }
  .entity-title-rating,
  .entity-title-type{
    top:8px;
    min-height:24px;
    padding:0 7px;
    font-size:8px;
  }
  .entity-title-rating{left:8px}
  .entity-title-type{right:8px}
  .entity-title-open{display:none}
  .entity-title-meta>span{display:none}
}

/* Fukurou 5.24.5 — compact mobile edit action */
@media(max-width:640px){
  .entity-hero{position:relative}
  .entity-hero-actions{
    position:absolute;
    top:18px;
    right:16px;
    z-index:4;
    width:auto;
    margin:0;
  }
  .entity-hero-actions .entity-button{
    width:40px;
    min-width:40px;
    height:40px;
    min-height:40px;
    padding:0;
    border-radius:13px;
    box-shadow:0 12px 30px rgba(0,0,0,.34);
  }
  .entity-hero-actions .entity-button span{display:none}
  .entity-hero-actions .entity-button svg{width:17px;height:17px}
}

