@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500&family=Quicksand:wght@500&display=swap");

:root {
  --red: #f51434;
  --red-dark: #cb0c29;
  --red-soft: #fff0f2;
  --orange: #ff7a00;
  --orange-soft: #fff4e8;
  --ink: #111111;
  --text: #303038;
  --muted: #73737d;
  --paper: #ffffff;
  --canvas: #f8f8fa;
  --line: #eaeaea;
  --green: #27ae60;
  --blue: #4c6ef5;
  --yellow: #f8b638;
  --shadow-sm: 0 8px 25px rgba(17, 17, 17, .07);
  --shadow: 0 16px 50px rgba(17, 17, 17, .11);
  --round-sm: 14px;
  --round: 22px;
  --round-lg: 32px;
  --container: min(100% - 32px, 1260px);
  --font: "Nunito Sans", "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-interface: "Quicksand", "Nunito Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-interface);
  font-weight: 500;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-interface);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5rem);
  letter-spacing: -.075em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  letter-spacing: -.055em;
}

h3 {
  font-size: 1.14rem;
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: -999px;
  padding: 10px 16px;
  position: fixed;
  top: 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.container {
  margin-inline: auto;
  width: var(--container);
}

.site-header {
  background:
    radial-gradient(circle at 22% -50%, rgba(255, 255, 255, .22), transparent 34%),
    linear-gradient(105deg, #c80f3b, #f5144e 52%, #ff7a00);
  box-shadow: 0 8px 24px rgba(151, 15, 45, .16);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 16px;
  height: 82px;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-link img {
  height: 38px;
  object-fit: contain;
  width: auto;
}

.desktop-nav {
  align-items: center;
  display: none;
  gap: 5px;
}

.desktop-nav a,
.mobile-nav a {
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  font-size: .78rem;
  font-weight: 500;
  padding: 9px 9px;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, .2);
  color: var(--paper);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.icon-button,
.round-button {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.icon-button:hover,
.round-button:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .48);
  box-shadow: 0 8px 20px rgba(122, 8, 34, .17);
}

.icon-button svg,
.round-button svg {
  height: 18px;
  width: 18px;
}

.notification-dot {
  background: var(--red);
  border: 2px solid var(--paper);
  border-radius: 50%;
  height: 10px;
  position: absolute;
  right: 7px;
  top: 6px;
  width: 10px;
}

.user-button {
  align-items: center;
  background: rgba(17, 17, 17, .88);
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  display: none;
  font-size: .82rem;
  font-weight: 900;
  gap: 9px;
  padding: 5px 12px 5px 5px;
}

.user-button .avatar {
  height: 32px;
  width: 32px;
}

.menu-button {
  display: inline-flex;
}

.header-auth-actions {
  align-items: center;
  display: none;
  gap: 7px;
}

.header-login,
.header-register {
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 500;
  padding: 9px 13px;
  text-transform: uppercase;
}

.header-login {
  border: 1px solid rgba(255, 255, 255, .44);
  color: var(--paper);
}

.header-register {
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--red-dark);
}

.header-search {
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 15px 26px rgba(80, 10, 27, .1);
  padding-block: 12px;
}

.header-search-form {
  align-items: center;
  display: flex;
  gap: 10px;
}

.header-search-form > svg {
  color: var(--red);
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.header-search-form input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.mobile-menu {
  background: linear-gradient(145deg, #b80c35, #ec1645 62%, #fb6e0a);
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: none;
  left: 0;
  padding: 10px 16px 18px;
  position: absolute;
  right: 0;
  top: 82px;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 2px;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 11px 12px;
}

.mobile-menu .button {
  margin-top: 12px;
  width: 100%;
}

.mobile-auth-actions {
  display: grid;
  gap: 8px;
}

.hero {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 122, 0, .2), transparent 22%),
    radial-gradient(circle at 58% 90%, rgba(245, 20, 52, .35), transparent 35%),
    linear-gradient(120deg, #171217, #2b1117 58%, #50111d);
  color: var(--paper);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: -80px;
  top: -120px;
  width: 430px;
}

.hero::after {
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  bottom: 55px;
  content: "";
  height: 150px;
  position: absolute;
  right: -35px;
  transform: rotate(-22deg);
  width: 340px;
}

.login-section {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 122, 0, .22), transparent 24%),
    radial-gradient(circle at 64% 92%, rgba(245, 20, 52, .2), transparent 32%),
    linear-gradient(125deg, #7f0c2f, #e91848 48%, #ff7a00);
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding-block: clamp(24px, 5vw, 68px);
  position: relative;
}

.login-section::before {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "";
  height: 440px;
  left: -190px;
  position: absolute;
  top: -190px;
  width: 440px;
}

.login-shell {
  align-items: center;
  display: grid;
  gap: 28px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.login-promo {
  color: var(--paper);
  min-width: 0;
}

.login-promo .eyebrow {
  color: rgba(255, 255, 255, .8);
}

.login-promo h1 {
  color: var(--paper);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  letter-spacing: -.07em;
  max-width: 770px;
}

.login-promo p {
  color: rgba(255, 255, 255, .8);
  font-size: .96rem;
  max-width: 630px;
}

.login-covers {
  display: flex;
  gap: 11px;
  margin: 25px 0 22px;
  max-width: 690px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  width: 100%;
}

.login-work-card {
  flex: 0 0 clamp(118px, 21vw, 162px);
  min-width: 0;
}

.login-work-cover {
  aspect-ratio: .72;
  background: var(--cover);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  box-shadow: 0 16px 25px rgba(77, 0, 20, .18);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 10px;
  transition: transform .2s ease;
}

.login-work-card:hover .login-work-cover {
  transform: translateY(-5px);
}

.login-work-cover small {
  font-size: .54rem;
  letter-spacing: .06em;
  opacity: .76;
  text-transform: uppercase;
}

.login-work-cover b {
  font-family: var(--font-interface);
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.08;
  margin-top: 4px;
}

.login-work-card > strong {
  color: rgba(255, 255, 255, .92);
  display: block;
  font-size: .7rem;
  font-weight: 500;
  margin-top: 6px;
}

.login-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--round-lg);
  box-shadow: 0 28px 65px rgba(83, 0, 23, .25);
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
}

.login-card h2 {
  margin-bottom: 7px;
}

.login-card > p {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 20px;
}

.login-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .77rem;
  gap: 10px;
  justify-content: space-between;
}

.login-options .check-row {
  font-size: .77rem;
}

.login-register {
  border-top: 1px solid var(--line);
  display: grid;
  font-size: .78rem;
  gap: 5px;
  margin-top: 20px;
  padding-top: 16px;
}

.login-register span {
  color: var(--muted);
}

.login-register .text-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}

.hero-inner {
  display: grid;
  gap: 28px;
  min-height: 560px;
  padding-block: 50px 42px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  font-size: .74rem;
  font-weight: 1000;
  gap: 8px;
  letter-spacing: .12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

.hero .eyebrow {
  color: #ff6f84;
}

.hero h1 {
  color: var(--paper);
  margin-bottom: 16px;
  max-width: 670px;
}

.hero h1 span {
  color: #ff536c;
}

.hero p {
  color: rgba(255, 255, 255, .77);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 590px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: .88rem;
  font-weight: 1000;
  gap: 8px;
  justify-content: center;
  padding: 12px 18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  box-shadow: 0 12px 22px rgba(245, 20, 52, .22);
  transform: translateY(-2px);
}

.button svg {
  height: 17px;
  width: 17px;
}

.button.secondary {
  background: var(--ink);
  border-color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: var(--paper);
}

.button.light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button.outline {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.button.small {
  font-size: .78rem;
  padding: 9px 13px;
}

.button.orange {
  background: var(--orange);
  border-color: var(--orange);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.hero-feature {
  align-self: end;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--round);
  padding: 18px;
}

.hero-feature .live-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.live-pulse {
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(245, 20, 52, .22);
  height: 11px;
  margin: 7px;
  width: 11px;
}

.hero-feature small {
  color: rgba(255, 255, 255, .58);
  display: block;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-feature strong {
  color: var(--paper);
  display: block;
  margin-top: 2px;
}

.hero-schedule {
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
}

.hero-schedule span {
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
}

.hero-schedule b {
  color: var(--paper);
  display: block;
  font-size: .88rem;
}

.section {
  padding-block: 58px;
}

.section.white {
  background: var(--paper);
}

.section.soft-red {
  background: linear-gradient(135deg, #fff9f9, #fff0f3);
}

.section.dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 20, 52, .25), transparent 32%),
    #161316;
  color: var(--paper);
}

.section.dark h2,
.section.dark h3 {
  color: var(--paper);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: .94rem;
  margin-top: 5px;
  max-width: 590px;
}

.text-link {
  color: var(--red);
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 1000;
}

.text-link:hover {
  text-decoration: underline;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid.works {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.news {
  grid-template-columns: 1fr;
}

.cards-grid.people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  min-width: 0;
}

.work-cover {
  aspect-ratio: .72;
  background: var(--cover, linear-gradient(145deg, #3d0d15, #f51434));
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.work-cover:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.work-cover::before,
.work-cover::after {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.work-cover::before {
  height: 150px;
  right: -80px;
  top: -35px;
  width: 150px;
}

.work-cover::after {
  bottom: -32px;
  height: 90px;
  left: -25px;
  width: 90px;
}

.cover-mark,
.cover-status,
.cover-title {
  position: relative;
  z-index: 1;
}

.cover-mark {
  font-size: .61rem;
  font-weight: 1000;
  letter-spacing: .18em;
  opacity: .82;
  text-transform: uppercase;
}

.cover-status {
  align-self: start;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
}

.cover-title small {
  display: block;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .7;
  text-transform: uppercase;
}

.cover-title b {
  display: block;
  font-size: clamp(.98rem, 4vw, 1.35rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-top: 5px;
}

.work-meta {
  padding: 11px 4px 0;
}

.work-meta h3 {
  font-size: .98rem;
  margin-bottom: 2px;
}

.work-meta p {
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 0;
}

.tag,
.pill {
  align-items: center;
  background: var(--red-soft);
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: .69rem;
  font-weight: 900;
  gap: 5px;
  padding: 5px 8px;
}

.pill.neutral {
  background: #f2f2f4;
  color: #676771;
}

.pill.orange {
  background: var(--orange-soft);
  color: #be5700;
}

.pill.green {
  background: #eaf8f0;
  color: #188c49;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.news-art {
  aspect-ratio: 1.75;
  background: var(--art, linear-gradient(135deg, #24151c, #f51434));
  overflow: hidden;
  position: relative;
}

.news-art::after {
  background: rgba(255, 255, 255, .11);
  border-radius: 48% 52% 70% 30%;
  content: "";
  height: 130px;
  position: absolute;
  right: -24px;
  top: -22px;
  width: 150px;
}

.news-content {
  padding: 16px;
}

.news-content h3 {
  font-size: 1.04rem;
  margin: 8px 0 6px;
}

.news-content p {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 0;
}

.feature-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.feature-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  display: flex;
  gap: 13px;
  padding: 15px;
}

.feature-icon {
  align-items: center;
  background: var(--red-soft);
  border-radius: 14px;
  color: var(--red);
  display: flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.feature-icon svg {
  height: 21px;
  width: 21px;
}

.feature-item strong {
  color: var(--ink);
  display: block;
  font-size: .88rem;
}

.feature-item span {
  color: var(--muted);
  display: block;
  font-size: .76rem;
}

.community-preview {
  display: grid;
  gap: 18px;
}

.post-card,
.panel-card,
.surface-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: 0 5px 20px rgba(17, 17, 17, .035);
}

.post-card {
  padding: 17px;
}

.post-author {
  align-items: center;
  display: flex;
  gap: 10px;
}

.avatar {
  align-items: center;
  background: var(--avatar, linear-gradient(145deg, #ffc5ce, #f51434));
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  text-transform: uppercase;
  width: 42px;
}

.post-author strong {
  color: var(--ink);
  display: block;
  font-size: .88rem;
}

.post-author span {
  color: var(--muted);
  display: block;
  font-size: .7rem;
}

.verified {
  color: var(--blue);
  font-size: .78rem;
}

.post-card p {
  color: #53535d;
  font-size: .91rem;
  margin: 14px 0;
}

.post-actions {
  display: flex;
  gap: 16px;
}

.action-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: .77rem;
  font-weight: 900;
  gap: 5px;
  padding: 0;
}

.action-button:hover,
.action-button.active {
  color: var(--red);
}

.action-button svg {
  height: 16px;
  width: 16px;
}

.person-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  display: flex;
  gap: 11px;
  padding: 12px;
}

.person-card .avatar {
  height: 46px;
  width: 46px;
}

.person-card strong {
  display: block;
  font-size: .84rem;
}

.person-card span {
  color: var(--muted);
  display: block;
  font-size: .7rem;
}

.plus-card {
  background:
    radial-gradient(circle at 100% 0, rgba(245, 20, 52, .55), transparent 28%),
    linear-gradient(135deg, #171217, #25151c);
  border-radius: var(--round-lg);
  color: var(--paper);
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.plus-card h2,
.plus-card h3 {
  color: var(--paper);
}

.plus-card p {
  color: rgba(255, 255, 255, .68);
}

.plus-card img {
  height: auto;
  max-width: 230px;
  width: 100%;
}

.plus-list {
  display: grid;
  gap: 9px;
}

.plus-list span {
  align-items: center;
  color: rgba(255, 255, 255, .83);
  display: flex;
  font-size: .86rem;
  gap: 8px;
}

.plus-list span::before {
  background: var(--red);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.plus-page-logo {
  height: auto;
  margin-bottom: 25px;
  max-width: clamp(235px, 40vw, 470px);
  transform: translateX(-5.3125%);
  width: 100%;
}

.page-hero {
  background:
    radial-gradient(circle at 85% -10%, rgba(245, 20, 52, .12), transparent 32%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 44px;
}

.page-hero.compact {
  padding-block: 30px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 700px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #63636d;
  font-size: .76rem;
  font-weight: 900;
  padding: 9px 12px;
}

.filter-button:hover,
.filter-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.catalog-layout,
.community-layout,
.dashboard-layout,
.work-layout {
  display: grid;
  gap: 20px;
}

.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: 17px;
}

.side-card h3 {
  font-size: .97rem;
  margin-bottom: 13px;
}

.side-links {
  display: grid;
  gap: 4px;
}

.side-links a,
.side-links button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #64646e;
  display: flex;
  font-size: .82rem;
  font-weight: 800;
  gap: 9px;
  padding: 9px;
  text-align: left;
}

.side-links a:hover,
.side-links a.active,
.side-links button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.side-links svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.catalog-layout > .side-card {
  display: none;
}

.composer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  margin-bottom: 14px;
  padding: 14px;
}

.composer-top {
  align-items: center;
  display: flex;
  gap: 10px;
}

.composer textarea {
  border: 0;
  min-height: 54px;
  outline: 0;
  padding: 8px;
  resize: vertical;
  width: 100%;
}

.composer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 5px;
  justify-content: space-between;
  padding-top: 11px;
}

.composer-tools {
  display: flex;
  gap: 3px;
}

.composer-tool {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.composer-tool:hover {
  background: var(--red-soft);
  color: var(--red);
}

.chat-list {
  display: grid;
  gap: 11px;
}

.chat-row {
  align-items: center;
  display: flex;
  gap: 9px;
}

.chat-row .avatar {
  height: 36px;
  width: 36px;
}

.chat-row strong,
.chat-row span {
  display: block;
}

.chat-row strong {
  font-size: .8rem;
}

.chat-row span {
  color: var(--muted);
  font-size: .68rem;
}

.online {
  background: var(--green);
  border: 2px solid var(--paper);
  border-radius: 50%;
  height: 10px;
  margin-left: -17px;
  margin-right: 7px;
  margin-top: 22px;
  width: 10px;
}

.work-profile {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .15), transparent 22%),
    var(--work-gradient, linear-gradient(135deg, #32141d, #f51434));
  color: var(--paper);
  padding-block: 34px;
}

.work-profile-inner {
  display: grid;
  gap: 22px;
}

.work-profile .work-cover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, .22);
  max-width: 230px;
}

.work-profile h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  margin: 10px 0;
}

.work-profile p {
  color: rgba(255, 255, 255, .78);
  max-width: 680px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row .pill {
  background: rgba(255, 255, 255, .15);
  color: var(--paper);
}

.technical-list {
  display: grid;
  gap: 0;
}

.technical-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: .82rem;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.technical-row:last-child {
  border-bottom: 0;
}

.technical-row span {
  color: var(--muted);
}

.technical-row b {
  color: var(--ink);
  text-align: right;
}

.content-list {
  display: grid;
  gap: 8px;
}

.content-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 11px;
  padding: 13px;
}

.content-number {
  align-items: center;
  background: var(--red-soft);
  border-radius: 10px;
  color: var(--red);
  display: flex;
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.content-number svg {
  height: 17px;
  width: 17px;
}

.content-item strong {
  display: block;
  font-size: .86rem;
}

.content-item span {
  color: var(--muted);
  display: block;
  font-size: .72rem;
}

.content-item .text-link {
  margin-left: auto;
}

.reader-progress {
  background: var(--line);
  height: 4px;
  left: 0;
  position: fixed;
  right: 0;
  top: 82px;
  z-index: 35;
}

.reader-progress span {
  background: var(--red);
  display: block;
  height: 100%;
  transition: width .1s linear;
  width: 0;
}

.reader-wrap {
  margin-inline: auto;
  max-width: 780px;
  padding: 38px 16px 70px;
}

.reader-top {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 18px;
}

.reader-top h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.reader-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .79rem;
  gap: 10px;
}

.reader-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  color: #41414a;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.86;
  padding: clamp(22px, 5vw, 52px);
}

.reader-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-block: 18px;
}

.reader-nav {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.reader-nav a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  padding: 13px;
}

.reader-nav a span {
  color: var(--muted);
  display: block;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-nav a b {
  color: var(--ink);
  display: block;
  font-size: .85rem;
  margin-top: 3px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-title {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 1000;
}

.field input,
.field select,
.field textarea {
  background: var(--paper);
  border: 1px solid #dddddf;
  border-radius: 12px;
  color: var(--text);
  outline: 0;
  padding: 12px;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245, 20, 52, .11);
}

.field input[readonly] {
  background: #f4f4f6;
  color: #5b5b64;
  cursor: not-allowed;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-note {
  color: var(--muted);
  font-size: .72rem;
}

.success-note {
  color: var(--green);
}

.collaborator-selector {
  background: var(--red-soft);
  border: 1px solid #ffd4db;
  border-radius: var(--round-sm);
  margin-top: 5px;
  padding: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-block: 16px;
}

.check-row {
  align-items: start;
  display: flex;
  font-size: .8rem;
  gap: 9px;
}

.check-row input {
  accent-color: var(--red);
  margin-top: 3px;
}

.guide-grid {
  display: grid;
  gap: 10px;
}

.guide-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.guide-step b {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  font-size: .76rem;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.guide-step strong {
  color: var(--ink);
  display: block;
  font-size: .87rem;
  margin-top: 9px;
}

.guide-step span {
  color: var(--muted);
  display: block;
  font-size: .74rem;
  margin-top: 3px;
}

.tv-player {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at center, rgba(245, 20, 52, .35), transparent 34%),
    linear-gradient(135deg, #171217, #2e1118);
  border-radius: var(--round);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
}

.tv-player .brand-link img {
  height: 22px;
}

.tv-center {
  align-items: center;
  align-self: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.tv-center svg {
  height: 28px;
  width: 28px;
}

.tv-lower {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.tv-lower small,
.tv-lower strong {
  display: block;
}

.tv-lower small {
  color: rgba(255, 255, 255, .66);
  font-size: .67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-lower strong {
  color: var(--paper);
  font-size: .92rem;
}

.audio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.audio-card:hover {
  border-color: rgba(245, 20, 52, .3);
  box-shadow: 0 16px 28px rgba(26, 18, 22, .09);
  transform: translateY(-3px);
}

.audio-cover {
  align-items: center;
  aspect-ratio: 1;
  background: var(--cover, linear-gradient(145deg, #1f1115, #f51434));
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, .92);
  display: flex;
  justify-content: center;
  margin-bottom: 11px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.audio-play-icon {
  align-items: center;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .33);
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
  width: 48px;
}

.audio-card:hover .audio-play-icon {
  background: rgba(255, 255, 255, .3);
  transform: scale(1.08);
}

.audio-play-icon svg {
  height: 29px;
  width: 29px;
}

.audio-cover-badge {
  background: rgba(14, 13, 17, .35);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  color: #fff;
  font-size: .59rem;
  font-weight: 800;
  left: 9px;
  padding: 5px 7px;
  position: absolute;
  top: 9px;
}

.audio-card-copy {
  padding: 2px 3px 6px;
}

.audio-card strong {
  color: var(--ink);
  display: block;
  font-size: .84rem;
}

.audio-card-copy span,
.audio-card-copy small {
  color: var(--muted);
  display: block;
  font-size: .7rem;
}

.audio-card-copy small {
  color: #87838a;
  margin-top: 4px;
}

.audio-card-action {
  align-items: center;
  background: rgba(245, 20, 52, .07);
  border: 0;
  border-radius: 10px;
  color: var(--accent);
  display: flex;
  font-size: .7rem;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  padding: 9px;
  width: 100%;
}

.audio-card-action svg {
  height: 13px;
  width: 13px;
}

.audio-library {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: 14px;
}

.audio-library-tools {
  align-items: center;
  display: grid;
  gap: 10px;
}

.audio-library-tools p,
.audio-library-group-heading p,
.audio-library-note {
  color: var(--muted);
  font-size: .76rem;
  margin: 0;
}

.audio-library-search {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  gap: 9px;
  padding: 0 13px;
}

.audio-library-search:focus-within {
  border-color: rgba(245, 20, 52, .48);
  box-shadow: 0 0 0 4px rgba(245, 20, 52, .08);
}

.audio-library-search svg {
  color: var(--accent);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.audio-library-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  padding: 14px 0;
  width: 100%;
}

.audio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.audio-library-group {
  margin-top: 26px;
}

.audio-library-group-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.audio-library-group-heading h3 {
  font-size: 1.42rem;
  margin-top: 3px;
}

.audio-library-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audio-library-empty {
  margin-top: 20px;
}

.audio-library-note {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 12px;
}

body.audio-player-open {
  padding-bottom: 152px;
}

.global-audio-player {
  background: rgba(24, 17, 21, .97);
  border-top: 1px solid rgba(255, 255, 255, .12);
  bottom: 0;
  box-shadow: 0 -15px 35px rgba(20, 12, 15, .18);
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 80;
}

.audio-player-inner {
  align-items: center;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1320px;
  padding: 11px 15px;
}

.audio-player-thumb {
  align-items: center;
  background: var(--cover);
  border-radius: 11px;
  display: flex;
  height: 47px;
  justify-content: center;
  width: 47px;
}

.audio-player-thumb svg {
  height: 21px;
  width: 21px;
}

.audio-player-copy {
  min-width: 0;
}

.audio-player-copy small,
.audio-player-copy strong,
.audio-player-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-player-copy small {
  color: rgba(255, 255, 255, .58);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.audio-player-copy strong {
  color: #fff;
  font-size: .82rem;
  margin-top: 2px;
}

.audio-player-copy span {
  color: rgba(255, 255, 255, .62);
  font-size: .66rem;
}

.audio-player-main-controls,
.audio-player-side-controls {
  align-items: center;
  display: flex;
  gap: 3px;
}

.audio-player-main-controls {
  grid-column: 1 / -1;
  justify-content: center;
  order: 4;
}

.audio-player-main-controls button,
.audio-player-side-controls button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .88);
  display: flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.audio-player-main-controls button:hover,
.audio-player-side-controls button:hover {
  background: rgba(255, 255, 255, .11);
}

.audio-player-main-controls svg,
.audio-player-side-controls svg {
  height: 18px;
  width: 18px;
}

.audio-player-main-controls small {
  bottom: -2px;
  font-size: .45rem;
  font-weight: 900;
  position: absolute;
}

.audio-player-main-controls .audio-player-toggle {
  background: #fff;
  color: #20141a;
  height: 39px;
  margin-inline: 2px;
  width: 39px;
}

.audio-player-timeline {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.audio-player-timeline span {
  color: rgba(255, 255, 255, .64);
  font-size: .62rem;
  min-width: 31px;
}

.audio-player-timeline input {
  accent-color: var(--accent);
  width: 100%;
}

.audio-player-side-controls {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.audio-player-side-controls .audio-player-speed {
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  width: 38px;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  padding: 15px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  font-weight: 800;
}

.stat-card b {
  color: var(--ink);
  display: block;
  font-size: 1.65rem;
  letter-spacing: -.06em;
  margin-top: 5px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-banner {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .17), transparent 24%),
    linear-gradient(135deg, #db0e2c, #f51434);
  border-radius: var(--round);
  color: var(--paper);
  margin-bottom: 17px;
  padding: 21px;
}

.dashboard-banner h2 {
  color: var(--paper);
  font-size: 1.72rem;
  margin-bottom: 4px;
}

.dashboard-banner p {
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: .77rem;
  padding: 12px 9px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

td {
  color: #4d4d56;
}

.panel-card {
  margin-top: 14px;
  padding: 17px;
}

.panel-card h3 {
  margin-bottom: 14px;
}

.admin-audio-grid {
  display: grid;
  gap: 12px;
}

.admin-audio-form {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-audio-form h4 {
  margin-bottom: 0;
}

.check-list.compact {
  gap: 5px;
  margin-top: 7px;
}

.vpat-score {
  align-items: center;
  display: flex;
  gap: 14px;
}

.score-ring {
  align-items: center;
  background: conic-gradient(var(--red) calc(var(--score, 0) * 10%), var(--line) 0);
  border-radius: 50%;
  display: flex;
  height: 85px;
  justify-content: center;
  position: relative;
  width: 85px;
}

.score-ring::before {
  background: var(--paper);
  border-radius: 50%;
  content: "";
  inset: 8px;
  position: absolute;
}

.score-ring b {
  color: var(--ink);
  font-size: 1.3rem;
  position: relative;
}

.score-bar {
  background: var(--line);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.score-bar span {
  background: var(--red);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.score-row {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.score-row div:first-child {
  display: flex;
  font-size: .76rem;
  justify-content: space-between;
}

.profile-hero {
  background:
    radial-gradient(circle at 86% 0, rgba(255, 122, 0, .22), transparent 28%),
    linear-gradient(135deg, #261118, #680d1d);
  color: var(--paper);
  padding-block: 40px;
}

.profile-info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.profile-info .avatar {
  font-size: 1.35rem;
  height: 94px;
  width: 94px;
}

.profile-info h1 {
  color: var(--paper);
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  margin: 0 0 5px;
}

.profile-info p {
  color: rgba(255, 255, 255, .73);
  margin-bottom: 7px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--paper);
  font-size: .66rem;
  font-weight: 1000;
  padding: 5px 8px;
}

.institutional-hero {
  background:
    radial-gradient(circle at center, rgba(245, 20, 52, .24), transparent 24%),
    linear-gradient(135deg, #1d1417, #39121a);
  color: var(--paper);
  overflow: hidden;
  padding-block: 70px;
  text-align: center;
}

.institutional-hero img {
  margin: 0 auto 24px;
  max-width: 235px;
}

.institutional-hero h1 {
  color: var(--paper);
  margin-bottom: 11px;
}

.institutional-hero p {
  color: rgba(255, 255, 255, .7);
  margin: 0 auto;
  max-width: 650px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  padding: 16px;
}

.timeline-item b {
  color: var(--red);
  display: block;
  font-size: 1.35rem;
}

.timeline-item strong {
  color: var(--ink);
  display: block;
  font-size: .96rem;
  margin-top: 4px;
}

.timeline-item p {
  color: var(--muted);
  font-size: .82rem;
  margin: 5px 0 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(17, 17, 17, .6);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 80;
}

.modal {
  background: var(--paper);
  border-radius: var(--round);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
  max-height: min(700px, 90vh);
  max-width: 560px;
  overflow-y: auto;
  padding: 20px;
  width: 100%;
}

.modal-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.modal-close {
  background: #f2f2f4;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  height: 36px;
  width: 36px;
}

.toast-region {
  bottom: 18px;
  display: grid;
  gap: 8px;
  max-width: min(380px, calc(100% - 32px));
  position: fixed;
  right: 16px;
  z-index: 100;
}

.toast {
  background: var(--ink);
  border-radius: 13px;
  box-shadow: var(--shadow);
  color: var(--paper);
  font-size: .83rem;
  font-weight: 800;
  padding: 13px 15px;
}

.success-box {
  background: #effaf3;
  border: 1px solid #ccebd7;
  border-radius: var(--round-sm);
  color: #176d38;
  padding: 15px;
}

.success-box h3 {
  color: #176d38;
}

.footer {
  background: #171517;
  color: rgba(255, 255, 255, .63);
  padding-block: 40px 20px;
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.footer .brand-link img {
  height: 48px;
}

.footer p {
  font-size: .8rem;
  line-height: 1.72;
  margin: 13px 0 0;
  max-width: 330px;
}

.footer h3 {
  color: var(--paper);
  font-size: .85rem;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  font-size: .78rem;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .72rem;
  margin-top: 28px;
  padding-top: 16px;
}

.empty-state {
  background: var(--paper);
  border: 1px dashed #d6d6d9;
  border-radius: var(--round);
  color: var(--muted);
  padding: 30px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.editor-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  overflow: hidden;
}

.editor-toolbar {
  align-items: center;
  background: #fbfbfc;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
}

.editor-tool {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: .75rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.editor-tool:hover {
  background: var(--red-soft);
  border-color: #ffd1d8;
  color: var(--red);
}

.editor-area {
  color: #3b3b42;
  font-family: var(--font);
  font-size: 1.03rem;
  line-height: 1.8;
  min-height: 430px;
  outline: 0;
  padding: clamp(18px, 4vw, 42px);
}

.editor-area:empty::before {
  color: #a3a3aa;
  content: attr(data-placeholder);
}

.editor-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.editor-status {
  color: var(--muted);
  font-size: .72rem;
}

/* Interface typography stays intentionally medium and rounded. */
.desktop-nav a,
.mobile-nav a,
.user-button,
.button,
.text-link,
.action-button,
.filter-button,
.side-links a,
.side-links button,
.cover-title b,
.work-meta h3,
.news-content h3,
.post-author strong,
.person-card strong,
.content-item strong,
.reader-nav a b,
.technical-row b,
.field label,
.field-title,
.guide-step strong,
.audio-card strong,
.stat-card b,
.timeline-item strong,
.editor-tool,
.member-card strong,
.ranking-title,
.ranking-card strong {
  font-family: var(--font-interface);
  font-weight: 500;
}

.ranking-shell {
  background:
    radial-gradient(circle at 95% 4%, rgba(245, 20, 52, .1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 247, 248, .96)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
}

.ranking-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ranking-head h2,
.ranking-head p {
  margin-bottom: 0;
}

.ranking-head p {
  color: var(--muted);
  font-size: .84rem;
  margin-top: 5px;
}

.ranking-grid {
  display: grid;
  gap: 16px;
  grid-auto-columns: minmax(190px, 72vw);
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(245, 20, 52, .28) transparent;
  scrollbar-width: thin;
}

.ranking-grid::-webkit-scrollbar {
  height: 5px;
}

.ranking-grid::-webkit-scrollbar-thumb {
  background: rgba(245, 20, 52, .28);
  border-radius: 999px;
}

.ranking-card {
  display: block;
  min-width: 0;
  padding-left: clamp(52px, 17vw, 72px);
  position: relative;
  scroll-snap-align: start;
}

.ranking-number {
  -webkit-text-stroke: 2px rgba(245, 20, 52, .23);
  color: transparent;
  font-family: var(--font-interface);
  font-size: clamp(7.8rem, 34vw, 10.4rem);
  font-weight: 500;
  left: 0;
  letter-spacing: -.2em;
  line-height: .82;
  position: absolute;
  top: 50%;
  transform: translateY(-67%);
  z-index: 0;
}

.ranking-cover {
  aspect-ratio: .7;
  background: var(--cover);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(17, 17, 17, .13);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 12px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 1;
}

.ranking-cover::before {
  background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 16, .6));
  content: "";
  inset: 0;
  position: absolute;
}

.ranking-cover::after {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  content: "";
  height: 110px;
  position: absolute;
  right: -45px;
  top: -32px;
  width: 110px;
}

.ranking-cover small,
.ranking-cover b {
  position: relative;
  z-index: 1;
}

.ranking-cover small {
  font-size: .56rem;
  letter-spacing: .08em;
  opacity: .86;
  text-transform: uppercase;
}

.ranking-cover b {
  font-family: var(--font-interface);
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.05;
  margin-top: 4px;
}

.ranking-meta {
  display: block;
  margin-top: 9px;
}

.ranking-meta strong {
  color: var(--ink);
  display: block;
  font-size: .79rem;
  line-height: 1.15;
}

.ranking-meta small {
  color: var(--muted);
  display: block;
  font-size: .68rem;
  margin-top: 3px;
}

.ranking-card:hover .ranking-cover {
  box-shadow: 0 17px 28px rgba(17, 17, 17, .17);
  transform: translateY(-5px);
}

.ranking-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.ranking-stat {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  padding: 14px;
}

.ranking-stat b {
  color: var(--ink);
  display: block;
  font-family: var(--font-interface);
  font-size: 1.45rem;
  font-weight: 500;
}

.ranking-stat span {
  color: var(--muted);
  display: block;
  font-size: .73rem;
  margin-top: 3px;
}

.member-tools {
  align-items: end;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.member-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.member-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  display: flex;
  gap: 12px;
  padding: 14px;
}

.member-card .avatar {
  height: 52px;
  width: 52px;
}

.member-card div {
  min-width: 0;
}

.member-card strong,
.member-card span {
  display: block;
}

.member-card strong {
  color: var(--ink);
}

.member-card span {
  color: var(--muted);
  font-size: .74rem;
}

.member-card .button {
  margin-left: auto;
}

.conditional-files {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--round-sm);
  margin-top: 15px;
  padding: 15px;
}

.conditional-files h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.conditional-files .field + .field {
  margin-top: 12px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 8px;
}

@media (min-width: 580px) {
  .cards-grid.works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid.people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ranking-grid {
    grid-auto-columns: minmax(200px, 36vw);
  }

  .ranking-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-tools {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-library {
    padding: 18px;
  }

  .audio-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  }

  .cards-grid.news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .community-preview {
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr);
  }

  .plus-card {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 270px;
    padding: 38px;
  }

  .work-profile-inner {
    align-items: center;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ranking-grid {
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .footer-grid {
    grid-template-columns: minmax(240px, 1.8fr) repeat(3, 1fr);
  }

  body.audio-player-open {
    padding-bottom: 94px;
  }

  .audio-library-tools {
    grid-template-columns: minmax(280px, 1fr) minmax(220px, .72fr);
  }

  .audio-player-inner {
    gap: 10px;
    grid-template-columns: auto minmax(130px, 220px) auto minmax(140px, 1fr) auto;
    padding: 12px 20px;
  }

  .audio-player-main-controls {
    grid-column: auto;
    order: initial;
  }

  .audio-player-timeline {
    grid-column: auto;
  }

  .audio-player-side-controls {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .user-button {
    display: inline-flex;
  }

  .header-auth-actions {
    display: flex;
  }

  .cards-grid.works {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }

  .catalog-layout > .side-card {
    display: block;
  }

  .catalog-layout .cards-grid.works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-layout {
    grid-template-columns: 210px minmax(0, 1fr) 235px;
  }

  .work-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .audio-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
