:root {
  color-scheme: dark;
  --bg: #0b1019;
  --panel: #121b29;
  --panel-light: #192535;
  --ink: #f8f7f4;
  --muted: #aeb8c7;
  --line: #293547;
  --accent: #ff792c;
  --accent-hover: #ff954f;
  --display: Impact, "Arial Narrow", "Roboto Condensed", "Arial Black", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 96px), 1392px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 5; transform: translateY(-140%); top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--accent); color: #121212; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid #1b2533; }
.header-inner { height: 77px; display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); position: relative; }
.brand { display: block; flex: none; width: 152px; }
.brand img { width: 100%; height: auto; }
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(1.2rem, 3.25vw, 3rem); align-self: stretch; }
.main-nav a { position: relative; display: flex; align-items: center; font-weight: 650; font-size: .94rem; color: var(--muted); }
.main-nav a[aria-current], .main-nav a:hover, .text-button:hover { color: var(--ink); }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.header-actions { gap: 1rem; margin-left: auto; }
.icon-button, .text-button { cursor: pointer; border: 0; background: none; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-button:hover { background: var(--panel-light); }
.text-button { min-height: 44px; padding: 0 .15rem; font-weight: 700; white-space: nowrap; color: var(--muted); }
.menu-toggle, .main-nav .mobile-studio { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 48px; padding: .625rem 1.15rem; border: 1px solid transparent; border-radius: 7px; font-weight: 750; font-size: .94rem; line-height: 1.2; cursor: pointer; }
.button-primary { background: var(--accent); color: #18110a; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { background: #10172280; border-color: #8490a280; color: var(--ink); }
.button-outline:hover { background: var(--panel-light); border-color: var(--muted); }
.button-small { min-height: 39px; padding: .53rem .85rem; font-size: .86rem; }
.play-icon { width: 20px; height: 20px; fill: currentColor; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }

.hero { margin-top: 24px; display: grid; align-items: center; isolation: isolate; position: relative; overflow: hidden; min-height: clamp(440px, 35.8vw, 540px); border-radius: 15px; background: #142237; }
.hero-image, .hero-image img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: center 28%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #0c121dea 0%, #0c121dbd 29%, #0c121d36 58%, transparent 77%), linear-gradient(0deg, #0b101973, transparent 23%); }
.hero-content { width: min(100%, 700px); padding: 3.5rem 1.5rem 3.5rem clamp(2rem, 5.35vw, 5rem); }
.hero-label { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #f5eee7; }
.hero-label span { width: 25px; height: 2px; background: var(--accent); }
.hero h1, .page-head h1 { font: 400 clamp(4rem, 7vw, 7.15rem)/.92 var(--display); letter-spacing: -.025em; margin: 0; text-transform: uppercase; }
.hero h1 em { color: var(--accent); font-style: normal; display: block; }
.hero-copy { font-size: clamp(1rem, 1.35vw, 1.18rem); color: #e3e7ee; max-width: 440px; margin: 1.4rem 0 1.7rem; }
.hero-credit { position: absolute; bottom: 12px; right: 16px; color: #eceef2; background: #0b1019b0; padding: .12rem .4rem; border-radius: 3px; font-size: .72rem; }

.section { margin-block: 2.8rem 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.section-head h2, .creator-panel h2 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; }
.section-head p, .creator-panel p { margin: .38rem 0 0; color: var(--muted); }
.browse-link { align-self: center; color: var(--accent-hover); font-weight: 700; white-space: nowrap; }
.browse-link:hover, .footer-inner a:hover, .back:hover { text-decoration: underline; text-underline-offset: .2em; }
.filters { display: flex; flex-wrap: wrap; gap: .53rem; margin-bottom: 1.2rem; }
.filter { display: inline-flex; align-items: center; min-height: 38px; padding: .35rem .86rem; border: 1px solid var(--line); background: var(--panel); color: #d6dce5; border-radius: 7px; cursor: pointer; font-size: .88rem; font-weight: 670; }
.filter[aria-pressed="true"] { color: #ffb586; background: #32251f; border-color: #9c4a23; }
.filter:hover { border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { display: block; min-width: 0; }
.card:hover h3 { color: var(--accent-hover); }
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); border-radius: 9px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb img { filter: brightness(1.14); }
.thumb::after { content: ""; position: absolute; pointer-events: none; inset: 35% 0 0; background: linear-gradient(transparent, #080d16a0); }
.thumb-duration, .thumb-tag { position: absolute; z-index: 1; font-size: .74rem; font-weight: 750; color: white; border-radius: 4px; background: #090f1ddd; padding: .2rem .42rem; }
.thumb-duration { bottom: .55rem; right: .55rem; font-variant-numeric: tabular-nums; }
.thumb-tag { top: .55rem; left: .55rem; }
.thumb-tag.member-tag { background: #452b21; color: #ffd0b5; }
.card-meta { margin: .76rem 0 .2rem; font-size: .78rem; color: var(--accent-hover); font-weight: 700; }
.card h3 { margin: 0; font-size: 1.03rem; line-height: 1.3; overflow-wrap: anywhere; }
.card p.card-caption { color: var(--muted); font-size: .875rem; margin: .25rem 0 0; }
.stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
.story-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.story-card .thumb { border-radius: 0; }
.whistle-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: 380px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.whistle-feature-copy { align-self: center; padding: clamp(1.35rem, 3.9vw, 3.6rem); }
.whistle-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin: 0 0 .8rem; color: var(--muted); font-size: .86rem; }
.whistle-feature-meta span { color: var(--accent-hover); font-weight: 750; }
.whistle-feature h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.8rem); font-weight: 800; line-height: 1.03; letter-spacing: -.045em; overflow-wrap: anywhere; }
.whistle-feature-summary { margin: 1rem 0 0; max-width: 48ch; color: var(--muted); }
.whistle-feature-cta { margin-top: 1.25rem; }
.whistle-feature:hover .whistle-feature-cta { background: var(--accent-hover); }
.whistle-feature-media { position: relative; background: var(--panel-light); }
.whistle-feature-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.whistle-article { width: min(100%, 1020px); margin: 0 auto 3rem; }
.whistle-head { max-width: 860px; margin-inline: auto; }
.whistle-head .card-meta { margin: 1.4rem 0 .65rem; }
.whistle-head h1 { max-width: 22ch; }
.whistle-summary { max-width: 64ch; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.whistle-byline { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.whistle-cover { display: block; width: 100%; max-height: 560px; height: auto; object-fit: contain; background: var(--panel); border-radius: 10px; }
.whistle-body { max-width: 70ch; margin: clamp(1.7rem, 5vw, 3.2rem) auto; line-height: 1.75; font-size: clamp(1rem, 2vw, 1.125rem); overflow-wrap: anywhere; }
.whistle-body > * { margin: 0 0 1.3rem; }
.whistle-body :is(h2, h3, h4) { margin-top: 2.1rem; margin-bottom: .7rem; line-height: 1.25; }
.whistle-body p, .whistle-body blockquote, .whistle-body li { white-space: pre-line; }
.whistle-body blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; font-style: italic; }
.whistle-body img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 8px; }
.whistle-body figcaption { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.whistle-body a { text-decoration: underline; text-underline-offset: .2em; }
.card-body { padding: .8rem 1rem 1.05rem; }
.card-body .card-meta { margin-top: 0; }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-card { background: var(--panel); padding: 1.1rem; border: 1px solid var(--line); border-radius: 9px; }
.team-card h3 { margin: .7rem 0 .2rem; }
.team-badge { display: inline-grid; place-items: center; width: 53px; height: 53px; background: #2c241f; border: 1px solid #6d462f; border-radius: 10px; font-size: 1.05rem; font-weight: 850; color: #ffad7b; }
.team-badge img { width: 100%; height: 100%; object-fit: contain; }
.rule-top { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.contact-list { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.contact-list a { display: inline-flex; flex-direction: column; gap: .02rem; min-width: 0; padding-block: .2rem; overflow-wrap: anywhere; }
.contact-list span { color: var(--accent-hover); }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: .18em; }
.footer-contacts { margin-top: 1.2rem; }
.footer-contacts h2 { font-size: .95rem; margin: 0 0 .35rem; }
.footer-contacts .contact-list { font-size: .88rem; }
.creator-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem 2rem; border: 1px solid #60432e; border-left: 3px solid var(--accent); border-radius: 9px; background: #1c1c24; }
.creator-panel button { white-space: nowrap; }

.page-head { margin: 2.75rem 0 1.65rem; }
.page-head h1 { font-size: clamp(2.85rem, 6vw, 5.5rem); overflow-wrap: anywhere; }
.page-head p { margin: .8rem 0 0; color: var(--muted); max-width: 62ch; }
.detail-head h1 { font-family: var(--body); font-weight: 800; text-transform: none; font-size: clamp(1.85rem, 4.5vw, 3.55rem); line-height: 1.02; }
.detail-head .page-label { color: var(--accent-hover); margin: 0 0 .6rem; font-weight: 700; }
.back { display: inline-block; margin-bottom: 1.05rem; color: var(--muted); font-size: .9rem; }
.narrow { max-width: 920px; }
.video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; background: #070a0d; border-radius: 10px; }
.stream-player { position: relative; border-radius: 10px; overflow: hidden; }
.stream-player-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; background: #070a0d66; }
.stream-player-overlay[hidden] { display: none; }
.stream-status { margin: .6rem 0 0; color: var(--muted); }
.stream-status:empty { margin: 0; }
.video-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.catalog-tag { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.catalog-tag select { min-height: 38px; padding: .3rem .6rem; }
.portal-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; font-size: .92rem; color: var(--muted); }
.portal-nav a[aria-current], .portal-nav a:hover { color: var(--accent-hover); }
.service-main { min-height: 60vh; max-width: 820px; }
.portal-card { padding: 1.2rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.portal-card h2 { margin: 0; font-size: 1.2rem; }
.portal-card p { color: var(--muted); margin: .4rem 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-form { display: grid; justify-items: start; gap: .8rem; }
.portal-field { display: grid; gap: .4rem; width: min(100%, 36rem); }
.portal-field input, .portal-field textarea, .catalog-tag select { width: 100%; color: var(--ink); background: var(--bg); border: 1px solid #53627b; border-radius: 6px; font: inherit; }
.portal-field input, .portal-field textarea { padding: .6rem; }
.portal-field textarea { resize: vertical; min-height: 107px; }
.portal-check { display: flex; gap: .6rem; align-items: start; cursor: pointer; }
.portal-check input { accent-color: var(--accent); margin-top: .45rem; }
.portal-list, .portal-thread { padding: 0; list-style: none; }
.portal-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.portal-list span, .portal-thread span { color: var(--muted); font-size: .88rem; }
.portal-thread span { margin-inline-start: .75rem; }
.portal-thread p { margin-bottom: 0; }
.portal-notice, .portal-alert { padding: .75rem 1rem; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.portal-alert { color: #ffb2a9; }
.media-message { display: grid; gap: .7rem; justify-items: start; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.archive-poster { width: 100%; max-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.media-message h2, .media-message p { margin: 0; }
.media-message p, .detail-copy { color: var(--muted); }
.detail-copy { overflow-wrap: anywhere; }
.team-actions { margin-top: 1.25rem; }
.team-detail { display: flex; align-items: start; gap: 1rem; }
.team-detail .team-badge { flex: none; }
.empty { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel); }
.platform-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.platform-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; font-weight: 700; }
.platform-list span { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }

.site-footer { margin-top: 3.5rem; padding-block: 2rem; border-top: 1px solid var(--line); background: #0c121c; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; }
.footer-brand p, .copyright { margin: .68rem 0 0; color: var(--muted); font-size: .86rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: start; justify-content: end; column-gap: 1.15rem; row-gap: .55rem; font-size: .9rem; color: #d8e0ec; }
.footer-analytics:not([hidden]) { display: inline-flex; align-items: center; gap: .35rem; }
.copyright { grid-column: 1 / -1; }
.search-dialog { width: min(calc(100% - 2rem), 37rem); max-height: 80vh; margin: min(14vh, 8rem) auto auto; padding: 1.25rem; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.search-dialog::backdrop { background: #03070cba; }
.search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.search-head h2 { margin: 0; font-size: 1.35rem; }
.search-dialog input { width: 100%; border: 1px solid #53627b; border-radius: 6px; min-height: 45px; padding: .5rem .65rem; background: var(--bg); color: var(--ink); }
.search-results { margin-top: .6rem; }
.search-results a { display: block; padding: .6rem .5rem; border-bottom: 1px solid var(--line); border-radius: 4px; }
.search-results a:hover { background: var(--panel-light); }
.search-results p, .search-results small { color: var(--muted); }
.search-results small { display: block; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 64px); }
  .header-inner { gap: 2.25rem; }
  .hero-content { padding-left: 2.8rem; }
}
@media (max-width: 900px) {
  .header-inner { gap: 1.1rem; }
  .header-actions { gap: .55rem; }
  .main-nav { gap: clamp(.8rem, 1.9vw, 1.25rem); }
}
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { background: linear-gradient(90deg, #0c121de8 1%, #0c121d8a 48%, #0c121d0b 83%), linear-gradient(0deg, #0b101985, transparent 25%); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: start; }
}
@media (max-width: 780px) {
  .header-studio { display: none; }
  .menu-toggle { display: grid; }
  .main-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 3; padding: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
  .main-nav.open { display: block; }
  .main-nav a { min-height: 43px; padding: .5rem .75rem; }
  .main-nav .mobile-studio { display: flex; color: var(--accent-hover); }
  .main-nav a[aria-current]::after { left: .4rem; right: auto; bottom: auto; top: 25%; width: 2px; height: 50%; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { height: 62px; gap: .5rem; }
  .brand { width: 130px; }
  .header-actions { gap: .27rem; }
  .portal-header { height: auto; min-height: 62px; gap: .75rem; padding-block: .7rem; flex-wrap: wrap; }
  .portal-nav { min-height: 31px; align-items: center; }
  .hero { min-height: 455px; align-items: end; margin-top: 14px; border-radius: 12px; }
  .hero-content { padding: 6rem 1.25rem 2rem; }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5.25rem); }
  .hero-image img { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg, #0b1019fa 2%, #0b1019c9 43%, #0b10193b 80%), linear-gradient(90deg, #0b101970, transparent 73%); }
  .hero-copy { margin: .85rem 0 1rem; }
  .hero-label { margin-bottom: .7rem; }
  .hero-credit { bottom: .25rem; right: .45rem; font-size: .65rem; }
  .whistle-feature { grid-template-columns: 1fr; min-height: 0; }
  .whistle-feature-media { grid-row: 1; aspect-ratio: 16 / 10; }
  .section { margin-block: 2.1rem 2.65rem; }
  .section-head { gap: .6rem; }
  .section-head p { font-size: .88rem; }
  .grid { gap: .85rem; }
  .card h3 { font-size: .94rem; }
  .card p.card-caption { font-size: .79rem; }
  .team-card, .card-body { padding: .65rem; }
  .creator-panel { align-items: start; flex-direction: column; gap: 1rem; padding: 1.1rem; }
  .page-head { margin-top: 2rem; }
}
@media (max-width: 390px) {
  .hero .actions { gap: .4rem; }
  .hero .button { padding-inline: .65rem; font-size: .84rem; }
  .header-actions .icon-button { width: 34px; }
  .brand { width: 121px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
