/* Isekai Zero: values copied from the live app's computed styles at 1440x900 (React Native Web). */
@import url("/skins/fonts.css");

.skin-isekaizero { background: #090027; color: #fff; font: 400 14px/1.3 Roboto, -apple-system, system-ui, "Segoe UI", sans-serif; }
.skin-isekaizero svg { width: 100%; height: 100%; }
.iz-grad-text, .iz-hero h1, .iz-section-head h2, .iz-detail-h2, .iz-side-item.is-active span { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sidebar: 240px, vertical gradient; 215x48 items with a soft active pill; Poppins labels. */
.iz-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 240px; padding: 23px 12px; background: linear-gradient(#11123c, #09194d); }
.iz-logo { display: block; margin: 0 0 22px 8px; font: 700 22px/27px "Poppins", sans-serif; letter-spacing: 0.5px;
  background: linear-gradient(to right, #a7b9ff, #ffa8a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iz-side-item { height: 48px; margin-bottom: 4px; padding: 0 16px; display: flex; align-items: center; gap: 14px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.6); font: 500 15px/23px "Poppins", sans-serif; }
.iz-side-item svg { width: 24px; height: 24px; }
.iz-side-item.is-active { background: rgba(167, 185, 255, 0.12); color: #fff; }
.iz-side-item.is-active span { font-family: Roboto, sans-serif; font-weight: 700; background-image: linear-gradient(to right, #a7b9ff, #ffa8a8); }

/* Content: #11123c area; hero title 22/700 gradient, fanned cards, then gradient-titled rows. */
.iz-main { margin-left: 240px; min-height: 100vh; padding: 30px 15px 40px; background: #11123c; }
.iz-hero { position: relative; height: 282px; text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.06) 40%, rgba(0, 0, 0, 0)); }
.iz-hero h1 { font: 700 22px/25px Roboto, sans-serif; background-image: linear-gradient(to right, #a7b9ff, #ffa8a8); }
.iz-hero p { margin-top: 0; color: #dfdfdf; font-size: 14px; font-weight: 300; line-height: 17px; }
.iz-fan { position: relative; height: 200px; margin-top: 20px; }
.iz-fan-card { --abs: max(var(--i), calc(var(--i) * -1)); position: absolute; left: 50%; top: calc(20px + var(--abs) * 8px);
  width: calc(120px - var(--abs) * 10px); height: calc(165px - var(--abs) * 15px); padding: 6px; border-radius: 12px;
  transform: translateX(calc(-50% + var(--i) * 82px)); z-index: calc(10 - var(--abs));
  background: linear-gradient(rgba(118, 118, 118, 0.2), rgba(255, 255, 255, 0.2), rgba(118, 118, 118, 0.2)); }
.iz-fan-card img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; object-position: 50% 15%; background: rgba(200, 200, 220, 0.12); }
/* Offsets are classes because the CSP forbids inline style attributes. */
.iz-fan-card.is-center { --i: 0; }
.iz-fan-card.is-left-1 { --i: -1; }
.iz-fan-card.is-left-2 { --i: -2; }
.iz-fan-card.is-left-3 { --i: -3; }
.iz-fan-card.is-right-1 { --i: 1; }
.iz-fan-card.is-right-2 { --i: 2; }
.iz-fan-card.is-right-3 { --i: 3; }

.iz-section { margin-top: 20px; }
.iz-section-head { height: 28px; margin: 0 0 12px; padding: 0 4px; display: flex; align-items: center; gap: 4px; }
.iz-section-icon { width: 25px; height: 25px; }
.iz-section-icon.is-gold { color: #ffd700; } .iz-section-icon.is-blue { color: #a7b9ff; } .iz-section-icon.is-pink { color: #ff5722; }
.iz-section-icon.is-cyan { color: #8b5cf6; } .iz-section-icon.is-red { color: #ff6b6b; } .iz-section-icon.is-green { color: #4caf50; }
.iz-section-head h2 { flex: 1; font: 600 20px/24px Roboto, sans-serif; }
.iz-section-head h2.is-gold { background-image: linear-gradient(#ffd700, #ffa500); }
.iz-section-head h2.is-blue { background-image: linear-gradient(#a7b9ff, #f3f4ff); }
.iz-section-head h2.is-pink { background-image: linear-gradient(#a7b9ff, #ffa8a8); }
.iz-section-head h2.is-cyan { background-image: linear-gradient(#00bcd4, #7dd3fc); }
.iz-section-head h2.is-red { background-image: linear-gradient(#ff6b6b, #ff8e8e); }
.iz-section-head h2.is-green { background-image: linear-gradient(#4caf50, #81c784); }
.iz-section-more { width: 12px; height: 26px; color: #fff; }
.iz-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 4px; }
.iz-row > .iz-card { flex: 0 0 170px; min-width: 0; }
.iz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 8px; padding: 0 4px; }

/* Card: 170x283 with a 2px gradient hairline (16px radius); art fades to black from 30% to 80%. */
.iz-card { display: block; height: 283px; padding: 2px; border-radius: 16px; background: linear-gradient(149deg, rgba(153, 153, 153, 0.3) 10%, #284bcf 90%); }
.iz-card-inner { position: relative; height: 100%; overflow: hidden; border-radius: 16px; background: #202224; }
.iz-card-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.iz-card-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 30%, #000 80%, #000 100%); }
.iz-card-badges { position: absolute; top: 10px; left: 8px; z-index: 1; display: flex; gap: 3px; }
.iz-card-badges span { width: 18px; height: 18px; padding: 3px; display: flex; border-radius: 4px; color: #fff; }
.iz-b-pink { background: #e040fb; } .iz-b-gold { background: #daa520; } .iz-b-violet { background: rgba(138, 43, 226, 0.8); }
.iz-card-text { position: absolute; inset: auto 10px 10px; z-index: 1; }
.iz-card-text h3 { font: 700 14px/18px Roboto, sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.iz-card-text p { margin-top: 3px; height: 45px; color: #e0e0e0; font-size: 12px; line-height: 15px; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden; }
.iz-card-meta { margin-top: 7px; display: flex; justify-content: space-between; font-size: 11px; }
.iz-card-meta > span:first-child { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iz-card-count { display: flex; align-items: center; gap: 2px; }
.iz-card-count svg { width: 12px; height: 12px; }

/* Detail: 61px gradient top bar; 400px art + bar on the left, 640px info column on the right. */
.iz-topnav { position: sticky; top: 0; z-index: 10; height: 61px; padding: 0 16px; display: flex; align-items: center; gap: 30px;
  background: linear-gradient(#11123c, #09194d); }
.iz-topnav .iz-logo { margin: 0; font-size: 20px; }
.iz-topnav nav { flex: 1; display: flex; gap: 60px; }
.iz-topnav nav a { color: rgba(255, 255, 255, 0.6); font: 500 14px/21px "Poppins", sans-serif; }
.iz-search { width: 300px; height: 40px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }
.iz-search svg { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.6); }
.iz-detail { width: 1056px; max-width: 100%; margin: 19px auto 0; display: flex; gap: 16px; }
.iz-detail-left { flex: 0 0 400px; }
.iz-art { position: relative; height: 531px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: rgba(200, 200, 220, 0.15); }
.iz-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.iz-art-back, .iz-art-more { position: absolute; top: 12px; width: 38px; height: 38px; padding: 8px; border-radius: 20px; color: #fff; }
.iz-art-back { left: 12px; background: rgba(0, 0, 0, 0.3); transform: scaleX(-1); }
.iz-art-more { right: 12px; }
.iz-art-bar { height: 57px; padding: 12px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 0;
  border-radius: 0 0 16px 16px; background: rgba(11, 15, 42, 0.6); }
.iz-public { height: 23px; padding: 0 8px; display: flex; align-items: center; gap: 4px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 600; }
.iz-public svg { width: 14px; height: 14px; color: #e040fb; }
.iz-sq { width: 22px; height: 22px; padding: 4px; border-radius: 6px; }
.iz-sq.is-blue { background: rgba(52, 152, 219, 0.8); } .iz-sq.is-gold { background: #daa520; } .iz-sq.is-violet { background: rgba(138, 43, 226, 0.8); }
.iz-detail-right { flex: 0 0 640px; min-width: 0; }
.iz-title-card { padding: 12px; border-radius: 12px; background: rgba(11, 15, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(167, 185, 255, 0.3), inset 0 0 0 1px rgba(255, 168, 168, 0.2); }
.iz-title-card h1 { font-size: 28px; font-weight: 700; line-height: 33px; color: #f0f5ff; }
.iz-title-card p { margin-top: 10px; font-size: 14px; line-height: 19px; color: #f0f5ff; }
.iz-title-card span { display: block; margin-top: 8px; color: #8a92b0; font-size: 12px; }
.iz-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.iz-tag { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; border-radius: 20px;
  background: linear-gradient(rgba(146, 146, 146, 0.4), rgba(100, 111, 153, 0.4)); font: 500 12px/14px Roboto, sans-serif; }
.iz-tag.is-primary { background: #2563eb; }
.iz-tag svg { width: 12px; height: 13px; }
.iz-stats { margin-top: 13px; height: 49px; display: flex; justify-content: space-evenly; align-items: center; border: 2px solid rgba(167, 185, 255, 0.2); border-radius: 12px; }
.iz-stats span { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.iz-stats svg { width: 20px; height: 20px; }
.iz-creator { margin-top: 12px; height: 60px; padding: 8px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.iz-creator-avatar { flex: 0 0 44px; height: 44px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px rgba(167, 185, 255, 0.35); }
.iz-creator-avatar svg { display: block; width: 100%; height: 100%; }
.iz-creator div { flex: 1; min-width: 0; }
.iz-creator b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.iz-creator i { width: 16px; height: 16px; color: #4a9eff; }
.iz-creator small { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.iz-follow { height: 32px; padding: 0 20px; display: flex; align-items: center; border-radius: 20px; background: #667eea; font-size: 13px; font-weight: 600; }
.iz-detail-h2 { margin-top: 20px; font: 600 16px/19px Roboto, sans-serif; background-image: linear-gradient(to right, #fff, #ff9898); width: fit-content; }
.iz-detail-body { margin-top: 12px; padding: 16px; border-radius: 6px; background: #000; color: #f0f5ff; font-size: 14px; line-height: 19px; white-space: pre-line; }
.iz-opening { margin-top: 12px; color: #b8c0d8; font-style: italic; }
.iz-cta { margin-top: 16px; height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 12px;
  background: rgba(11, 15, 42, 0.92); font-size: 16px; font-weight: 700; }
.iz-related { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }

.iz-footer { margin-left: 240px; padding: 24px 20px 48px; background: #11123c; color: #8a92b0; font-size: 12px; line-height: 18px; }
.iz-detail ~ .iz-footer { margin-left: 0; background: transparent; }

@media (max-width: 899px) {
  .iz-sidebar, .iz-topnav nav, .iz-search { display: none; }
  .iz-main, .iz-footer { margin-left: 0; }
  .iz-fan-card { transform: translateX(calc(-50% + var(--i) * 50px)); }
  .iz-detail { flex-direction: column; padding: 0 12px; }
  .iz-detail-left, .iz-detail-right { flex-basis: auto; }
  .iz-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
