/* seaofguides — layout after the approved mockup. All fonts are served from this site. */

@font-face { font-family: "Marker"; src: url(/fonts/marker/permanent-marker-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Marker"; src: url(/fonts/caveat/caveat-cyrillic-700-normal.woff2) format("woff2"); font-display: swap; size-adjust: 118%; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-cyrillic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Inter"; src: url(/fonts/inter/inter-cyrillic-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #0B1626;
  --ink-2: #111F33;
  --ink-3: #18294A;
  --panel: #101C2E;
  --line: rgba(255, 255, 255, 0.10);
  --text: #F3F6FA;
  --muted: #A3B1C4;
  --pink: #FF2D8A;
  --pink-2: #FF5FA6;
  --cyan: #6FE3FF;
  --violet: #8A63FF;
  --orange: #F5761A;
  --radius: 12px;
  --marker: "Marker", "Comic Sans MS", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--pink-2); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

.wrap { width: min(1490px, 100% - 52px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons, tags ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 24px;
  background: var(--pink); color: #fff; text-decoration: none; font: inherit; font-weight: 800;
  border: 0; border-radius: 6px; cursor: pointer; transform: skewX(-8deg);
  box-shadow: 0 8px 24px -8px rgba(255, 45, 138, 0.7); transition: background .15s, box-shadow .15s;
}
.btn > * { transform: skewX(8deg); }
.btn:hover { background: #E81E79; color: #fff; box-shadow: 0 10px 30px -6px rgba(255, 45, 138, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 5px; font-size: 13px; font-weight: 700; color: #fff; background: var(--pink); }
.tag-article, .tag-media { background: rgba(28, 38, 58, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); }

/* brush titles: marker text on a magenta stroke */
.brush-title { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 4px 22px 8px 14px; font-family: var(--marker); font-weight: 400; font-size: clamp(24px, 2.1vw, 29px); line-height: 1.1; color: #fff; isolation: isolate; transform: rotate(-2deg); white-space: nowrap; }
.brush-title .brush { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.brush path { fill: var(--pink); }

/* ---------- live ticker ---------- */

.ticker { display: block; position: relative; z-index: 31; overflow: hidden; background: var(--pink); color: #fff; text-decoration: none; height: 34px; }
.ticker:hover { color: #fff; background: #E81E79; }
.ticker-track { display: inline-flex; white-space: nowrap; height: 100%; align-items: center; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; font-weight: 700; font-size: 14px; }
.ticker-item b { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; background: #fff; color: var(--pink); border-radius: 4px; font-size: 12px; letter-spacing: .08em; transform: skewX(-8deg); }
.ticker-item b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.2s infinite; }
.ticker-item em { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 22, 38, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.top-logo { flex: none; display: block; position: relative; z-index: 3; align-self: flex-start; margin: 10px 0 -34px 30px; }
.logo-img { height: 104px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)); }
.top-menu { flex: 1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.top-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.top-nav > a, .dd-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 26px 14px; color: var(--text);
  text-decoration: none; font: inherit; font-size: 17px; font-weight: 600; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.top-nav > a:hover, .dd-btn:hover { color: var(--pink-2); }
.top-nav > a[aria-current="page"], .dd.is-current .dd-btn { color: var(--pink); }
.top-nav > a[aria-current="page"]::after, .dd.is-current .dd-btn::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 16px; height: 3px; border-radius: 2px; background: var(--pink); }
.top-nav .ic { width: 20px; height: 20px; }
.dd { position: relative; }
.dd-btn .ic { width: 20px; height: 20px; transition: transform .15s; }
.dd-menu { position: absolute; left: 0; top: calc(100% - 10px); min-width: 220px; max-width: 340px; z-index: 5; padding: 8px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); display: none; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-menu a:hover { background: rgba(255, 45, 138, 0.12); color: var(--pink-2); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd:hover .dd-btn .ic, .dd.open .dd-btn .ic { transform: rotate(180deg); }

.top-right { display: flex; align-items: center; gap: 18px; flex: none; }
.lang { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-weight: 800; font-size: 16px; }
.lang a { color: var(--text); text-decoration: none; }
.lang a:hover { color: var(--pink-2); }
.lang-on { color: var(--pink); }
.lang-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.3); }
.top-div { width: 1px; height: 36px; background: var(--line); }
.top-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.top-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--text); }
.top-social a:hover { color: var(--pink-2); background: rgba(255, 255, 255, 0.06); }
.top-social svg { width: 22px; height: 22px; fill: currentColor; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; place-items: center; }
.burger .ic { width: 24px; height: 24px; }

/* ---------- slider ---------- */

.slider { position: relative; height: clamp(300px, 21.3vw, 360px); overflow: hidden; background: var(--ink-2); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.slide.is-on .slide-bg img { transform: scale(1); }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 22, 38, 0.92) 0%, rgba(11, 22, 38, 0.65) 38%, rgba(11, 22, 38, 0) 72%), linear-gradient(0deg, rgba(11, 22, 38, 0.6) 0%, rgba(11, 22, 38, 0) 35%); }
.slide-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 46px clamp(28px, 10.7vw, 170px) 0; max-width: 860px; transform: rotate(-4deg); transform-origin: left center; }
.slide-tag { display: inline-block; padding: 3px 14px; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; transform: skewX(-10deg); }
.slide-title { margin: 0; max-width: 560px; font-size: clamp(24px, 2.35vw, 36px); line-height: 1.15; font-weight: 800; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6); }
.slide-title a { color: #fff; text-decoration: none; }
.slide-text { margin: 0; max-width: 380px; font-size: clamp(14px, 1.15vw, 17px); color: #E6ECF4; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.slide-btn { margin-top: 8px; }
.slide-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(11, 22, 38, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slide-nav:hover { background: var(--pink); border-color: var(--pink); }
.slide-nav .ic { width: 26px; height: 26px; }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }
.slide-dots { position: absolute; z-index: 2; left: calc(clamp(28px, 10.7vw, 170px) + 18px); bottom: 18px; display: flex; gap: 8px; }
.slide-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width .25s, background .25s; }
.slide-dots button[aria-current="true"] { width: 20px; background: var(--pink); }

/* brand hero when there are no posts yet */
.hero-brand { position: relative; overflow: hidden; padding: 64px 24px 120px; background: radial-gradient(ellipse 90% 80% at 25% 0%, #17406A 0%, rgba(11, 22, 38, 0) 72%), radial-gradient(ellipse 50% 60% at 90% 40%, rgba(255, 45, 138, 0.14) 0%, rgba(11, 22, 38, 0) 70%), var(--ink-2); }
.hero-brand-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-logo { width: min(560px, 80vw); height: auto; filter: drop-shadow(0 10px 40px rgba(255, 45, 138, 0.35)); animation: logo-float 7s ease-in-out infinite alternate; }
@keyframes logo-float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-8px) rotate(1deg); } }
.hero-tagline { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles span { position: absolute; bottom: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(111, 227, 255, 0.5); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(111, 227, 255, 0.05) 60%); animation: rise var(--d) linear var(--delay) infinite; opacity: 0; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(14px, -240px); } 90% { opacity: .5; } 100% { transform: translate(-8px, -500px); opacity: 0; } }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; overflow: hidden; pointer-events: none; z-index: 1; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; }
.wave.w1 { height: 90px; animation: wave 22s linear infinite; }
.wave.w1 path { fill: rgba(111, 227, 255, 0.08); }
.wave.w2 { height: 68px; animation: wave 14s linear infinite reverse; }
.wave.w2 path { fill: rgba(255, 45, 138, 0.12); }
.wave.w3 { height: 44px; animation: wave 10s linear infinite; }
.wave.w3 path { fill: var(--ink); }
@keyframes wave { to { transform: translateX(-50%); } }

/* ---------- home grid ---------- */

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 36px; margin-top: 26px; margin-bottom: 32px; }
.home-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.home-main { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 26px; padding-left: 22px; border-left: 1px solid var(--line); }
.section-head { display: flex; align-items: center; gap: 20px 56px; flex-wrap: nowrap; margin-bottom: 22px; }
.page { margin-top: 44px; margin-bottom: 56px; }

.filters { flex: 1; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; justify-content: space-between; min-width: 0; max-width: 100%; }
.section-head > * { min-width: 0; max-width: 100%; }
.chips { display: flex; flex-wrap: nowrap; gap: 14px; }
.chips a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 15px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chips a:hover { border-color: var(--pink); }
.chips a[aria-current="page"], .home-main .chips a:first-child { background: var(--pink); border-color: var(--pink); }
.search { position: relative; flex: 0 1 205px; min-width: 150px; }
.search .ic { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--muted); }
.search input { width: 100%; min-height: 38px; padding: 8px 16px 8px 42px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--pink); outline: none; }

/* feed: two columns of horizontal cards */
.feed { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.feed::before { content: ""; position: absolute; top: 0; bottom: 20px; left: 50%; width: 1px; background: var(--line); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feed > .item:nth-child(-n+2) { padding-top: 0; }
.item-cover { position: relative; display: block; aspect-ratio: 16 / 9.5; border-radius: 8px; overflow: hidden; background: var(--ink-3); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7); }
.item-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover .item-cover img { transform: scale(1.05); }
.item-cover .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.item-video .play-dot { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(11, 22, 38, 0.82); border: 2px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; z-index: 1; transition: background .2s; }
.item-video .play-dot .ic { width: 30px; height: 30px; color: #fff; margin-left: 3px; }
.item:hover .play-dot { background: var(--pink); border-color: var(--pink); }
.item-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.item-date { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.item-date .ic { width: 16px; height: 16px; }
.item-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.item-title a { color: var(--text); text-decoration: none; }
.item-title a:hover { color: var(--pink-2); }
.item-excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--pink); font-weight: 700; font-size: 15px; text-decoration: none; }
.item-more .ic { width: 16px; height: 16px; transition: transform .15s; }
.item-more:hover { color: var(--pink-2); }
.item-more:hover .ic { transform: translateX(3px); }

.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.ph-guide { background: linear-gradient(150deg, #1D3D6B, #121E36); }
.ph-news { background: linear-gradient(150deg, #4A1640, #18172F); }
.ph-article { background: linear-gradient(150deg, #2D2766, #131A33); }
.ph .brush { position: absolute; width: 70%; height: 30%; left: 15%; top: 35%; opacity: .9; transform: rotate(-6deg); }
.ph > span { position: relative; font-family: var(--marker); font-size: clamp(22px, 2.4vw, 34px); color: #fff; transform: rotate(-6deg); }

.more { margin: 28px 0 0; text-align: center; }
.empty { color: var(--muted); padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--muted); }

/* ---------- sidebar ---------- */

.side-box { display: flex; flex-direction: column; gap: 14px; padding: 0 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.side-box .brush-title { align-self: flex-start; margin: -12px 0 0 -18px; font-size: clamp(22px, 1.8vw, 27px); }
.stream-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.stream-frame #twitch-player, .stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-badge { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 13px; font-weight: 800; pointer-events: none; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF3B3B; animation: pulse 1.4s infinite; }
.stream-mute { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; border: 0; background: var(--pink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.stream-mute .ic { width: 16px; height: 16px; }
.stream-offline { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: radial-gradient(ellipse at 50% 30%, #2B2257 0%, #0E1729 70%); }
.stream-offline svg { width: 40px; height: 40px; fill: #A970FF; margin-bottom: 4px; }
.stream-offline strong { font-size: 17px; }
.stream-offline span { color: var(--muted); font-size: 14px; }
.stream-link { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; }
.stream-link > svg:first-child { width: 30px; height: 30px; fill: #A970FF; flex: none; }
.stream-link .ic { width: 16px; height: 16px; color: var(--muted); }
.stream-link:hover { color: var(--pink-2); }

.social-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.st { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #fff; transition: transform .15s, background .15s, border-color .15s; }
.st svg { width: 28px; height: 28px; fill: currentColor; }
.st:hover { transform: translateY(-2px); background: rgba(255, 45, 138, 0.12); border-color: var(--pink); color: #fff; }
.st-boosty, .st-donationalerts { color: var(--orange); }
.st-twitch:hover { color: #A970FF; }

/* ---------- stay-with-us banner ---------- */

.stay { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 102px; padding: 16px 48px 16px 300px; margin-bottom: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(90deg, #1A1238 0%, #121E36 50%, #1A1238 100%); isolation: isolate; }
.stay-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; filter: blur(2px) saturate(1.1); }
.stay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 22, 38, 0.6), rgba(11, 22, 38, 0.85) 45%, rgba(11, 22, 38, 0.6)); }
.stay-logo { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); height: 84px; width: auto; }
.stay-center { display: flex; align-items: center; gap: 24px 56px; flex-wrap: wrap; }
.stay-text { flex: 0 1 auto; }
.stay-text h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.stay-text p { margin: 0; color: #D7DEE8; }

/* ---------- article ---------- */

.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 12px rgba(255, 45, 138, 0.7); }
.post { padding: 40px 0 72px; }
.post-layout { width: min(1120px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; }
.post-layout.has-toc { grid-template-columns: minmax(0, 760px) 250px; }
.post-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.post-back { color: var(--muted); text-decoration: none; font-size: 15px; }
.post-back:hover { color: var(--text); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.post-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 800; }
.post-lead { margin: 0; font-size: 19px; color: var(--muted); }
.post-translation { align-self: flex-start; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.post-translation:hover { border-color: var(--pink); }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.toc { position: sticky; top: 110px; align-self: start; padding-left: 18px; border-left: 2px solid var(--line); max-height: calc(100vh - 150px); overflow: auto; }
.toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--pink-2); }
.toc-l3 a { padding-left: 14px; font-size: 14px; }

.prose { font-size: 18px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; line-height: 1.25; margin: 44px 0 14px; scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; scroll-margin-top: 100px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 10px; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--pink); background: rgba(255, 45, 138, 0.07); border-radius: 0 10px 10px 0; }
.prose code { background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose pre { background: #07101C; padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--ink-2); }
.about-body { max-width: 760px; }

/* ---------- videos ---------- */

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 110px; }
.vcard:target { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink); }
.vcard .video { border-radius: 0; margin: 0; }
.vcard-body { padding: 14px 18px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vcard-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.vcard-mirror { font-size: 14px; white-space: nowrap; }
.video { position: relative; margin: 28px 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: linear-gradient(150deg, #1D3D6B, #121E36); }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(11, 22, 38, 0.82); border: 2px solid #fff; border-radius: 50%; transition: background .15s; }
.video-play-icon::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.video-play:hover .video-play-icon { background: var(--pink); border-color: var(--pink); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-out { position: absolute; right: 10px; top: 10px; padding: 6px 12px; border-radius: 6px; background: rgba(11, 22, 38, 0.85); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.video-out:hover { background: var(--pink); color: #fff; }

.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 0; }
.notfound .brush-title { font-size: 72px; margin-bottom: 16px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); background: #08111E; }
.foot-row { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 28px 0 18px; }
.foot-logo .logo-img { height: 48px; }
.foot-row p { flex: 1 1 280px; margin: 0; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-bottom { padding: 0 0 24px; color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .top-row { gap: 20px; }
  .logo-img { height: 84px; }
  .top-logo { margin-left: 0; margin-bottom: -20px; }
  .section-head { flex-wrap: wrap; gap: 16px 28px; }
  .filters { flex-wrap: wrap; }
  .top-nav > a, .dd-btn { padding-inline: 10px; font-size: 16px; }
  .top-social { display: none; }
  .top-div { display: none; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .home-side { padding-left: 24px; }
}
@media (max-width: 1100px) {
  .burger { display: grid; }
  .top-row { flex-wrap: wrap; min-height: 72px; }
  .logo-img { height: 50px; }
  .top-logo { align-self: center; margin: 0; }
  .top-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 4px 0 20px; }
  .top-menu.open { display: flex; }
  .top-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .top-nav > a, .dd-btn { padding: 12px 4px; width: 100%; justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .top-nav > a[aria-current="page"]::after, .dd.is-current .dd-btn::after { display: none; }
  .dd-menu { position: static; display: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
  .top-right { justify-content: space-between; }
  .top-social, .top-div { display: flex; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { padding-left: 0; border-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
}
@media (max-width: 820px) {
  .feed { grid-template-columns: minmax(0, 1fr); }
  .feed > .item:nth-child(2) { padding-top: 22px; }
  .slider { height: 380px; }
  .slide-body { transform: none; padding: 0 24px 40px; justify-content: flex-end; }
  .slide-bg::after { background: linear-gradient(0deg, rgba(11, 22, 38, 0.95) 0%, rgba(11, 22, 38, 0.55) 55%, rgba(11, 22, 38, 0.15) 100%); }
  .slide-nav { display: none; }
  .slide-dots { left: 24px; bottom: 16px; }
  .stay { padding: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .stay-logo { position: static; transform: none; height: 64px; }
  .feed::before { display: none; }
  .post-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; min-width: 0; padding: 2px 0 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .search { flex: 1 1 auto; }
  .brush-title { white-space: normal; font-size: 26px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1440px, 100% - 28px); }
  .item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .item-cover { aspect-ratio: 1; }
  .item-cover .tag { left: 6px; top: 6px; font-size: 11px; padding: 2px 6px; }
  .item-title { font-size: 17px; }
  .item-excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .item-video .play-dot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .search { flex-basis: 100%; }
  .social-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .prose { font-size: 17px; }
  .ticker-item { padding: 0 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubbles { display: none; }
}
