:root {
  --bg: #04050a;
  --bg-2: #070811;
  --panel: rgba(10, 12, 20, 0.94);
  --panel-2: rgba(15, 18, 29, 0.94);
  --panel-3: rgba(22, 26, 37, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: #9497a8;
  --muted-2: #686d80;
  --pink: #ff0a7a;
  --pink-soft: #ff4fa3;
  --maroon: #4d001f;
  --green: #1ed760;
  --card-radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at left top, rgba(120, 0, 49, 0.7), transparent 28%),
    linear-gradient(90deg, #18000d 0%, #08090f 18%, #03040a 100%);
}

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

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: 0 16px 16px;
}

.app-frame {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 26px;
  max-width: 1600px;
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 100vh;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-lockup {
  padding: 8px 10px 18px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: flex-start;
  color: #fff;
}

.brand-line {
  white-space: pre-line;
  font-size: 54px;
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 6px 28px rgba(255, 10, 122, 0.18);
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: #f0f2f7;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.side-link:hover,
.side-link.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.05);
}

.side-link.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 10, 122, 0.11));
}

.side-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.8);
}

.side-link-icon svg {
  width: 18px;
  height: 18px;
}

.side-link-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d15cff, #ff0a7a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.side-link:nth-child(6) .side-badge {
  background: linear-gradient(135deg, #01ce73, #63ff9f);
  color: #06180d;
}

.side-divider {
  height: 1px;
  margin: 26px 4px 22px;
  background: rgba(255, 255, 255, 0.06);
}

.side-section {
  min-height: 0;
}

.side-section-title {
  margin-bottom: 14px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.side-category-list {
  display: grid;
  gap: 4px;
  max-height: 300px;
  padding-right: 4px;
  overflow: auto;
}

.side-category-list::-webkit-scrollbar {
  width: 4px;
}

.side-category-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.side-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.side-category-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.side-category-item span:last-child {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.telegram-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.telegram-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #2ea7ff, #4cd4ff);
}

.telegram-icon svg,
.telegram-arrow {
  width: 18px;
  height: 18px;
}

.telegram-card strong {
  display: block;
  font-size: 14px;
}

.telegram-card span {
  display: block;
  margin-top: 4px;
  color: #7fff9e;
  font-size: 13px;
}

.side-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
}

.side-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.main-shell {
  min-width: 0;
  padding-top: 22px;
}

.top-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.global-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 22px;
  border-radius: 14px;
  background: rgba(22, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.global-search input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 20px 0 56px;
  border: 0;
  background: transparent;
  color: #fff;
  caret-color: #fff;
  outline: none;
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.search-icon svg {
  width: 18px;
  height: 18px;
}

.search-copy {
  padding-left: 2px;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.search-copy span,
.search-copy strong {
  display: block;
}

.search-copy span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
}

.search-copy strong {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
}

.global-search:focus-within .search-copy {
  opacity: 0.16;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-dot,
.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lang-dot {
  min-width: 46px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.lang-dot.is-active {
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.auth-button.ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.auth-profile-button {
  gap: 10px;
  max-width: 220px;
}

.auth-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 28px;
}

.auth-profile-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-button.solid {
  border-color: rgba(255, 10, 122, 0.28);
  background: linear-gradient(135deg, #ff0084, #ff2c93);
  color: #fff;
}

.lang-dot:hover,
.auth-button:hover {
  transform: translateY(-1px);
}

.mobile-tabs {
  display: none;
}

.content-shell {
  padding-top: 26px;
}

.flash-banner {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #eaf7ee;
  background: rgba(27, 91, 44, 0.55);
  border: 1px solid rgba(63, 198, 99, 0.2);
}

.screen-stack {
  display: grid;
  gap: 20px;
}

.home-module-stack {
  display: grid;
  gap: 18px;
}

.headline-block h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.headline-block.is-short h1 {
  font-size: clamp(22px, 3vw, 30px);
  max-width: 760px;
}

.headline-block p {
  margin: 10px 0 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.story-strip {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.story-strip::-webkit-scrollbar {
  height: 6px;
}

.story-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.story-card {
  flex: 0 0 102px;
}

.story-card img {
  width: 102px;
  height: 138px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 48, 149, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.filter-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select-wrap {
  position: relative;
}

.filter-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
  pointer-events: none;
}

.filter-select {
  min-width: 132px;
  height: 38px;
  padding: 0 40px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f1f8;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  appearance: none;
  color-scheme: dark;
}

.filter-select option,
.filter-select optgroup {
  color: #f4f6fb;
  background: #0c1019;
}

.filter-select:focus {
  border-color: rgba(255, 48, 149, 0.34);
  box-shadow: 0 0 0 4px rgba(255, 48, 149, 0.1);
}

.filter-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #f0f1f8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
}

.filter-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg) translateY(-1px);
}

.chip-button {
  background: rgba(255, 255, 255, 0.02);
}

.catalog-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.video-card {
  display: block;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #11141d;
  aspect-ratio: 16 / 9;
}

.video-thumb.is-short {
  aspect-ratio: 3 / 4.4;
  border-radius: 24px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-badge,
.quality-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(8, 8, 12, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
}

.quality-badge {
  left: 8px;
  right: auto;
}

.video-card-title {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.video-card-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.video-card-meta span {
  color: #bfc3d0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.watch-panel {
  background: transparent;
}

.watch-player {
  overflow: hidden;
  border-radius: 10px;
  background: #090a0f;
}

.watch-player,
.watch-player iframe,
.watch-player video,
.watch-player img {
  width: 100%;
}

.playerjs-shell,
.playerjs-target,
.playerjs-target > div,
.playerjs-target iframe,
.playerjs-target video {
  width: 100%;
}

.watch-player iframe,
.watch-player video,
.watch-player img {
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}

.playerjs-shell,
.playerjs-target {
  aspect-ratio: 16 / 9;
  background: #05070d;
}

.playerjs-shell {
  border-radius: 10px;
  overflow: hidden;
}

.watch-title {
  margin: 16px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.watch-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.channel-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
}

.channel-meta strong,
.channel-meta span {
  display: block;
}

.channel-meta strong {
  font-size: 15px;
}

.channel-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.action-pill.is-active,
.action-pill.is-primary {
  border-color: rgba(255, 10, 122, 0.28);
  background: linear-gradient(135deg, rgba(255, 10, 122, 0.2), rgba(255, 76, 165, 0.18));
}

.watch-info-card,
.comment-card,
.shorts-side-card,
.auth-page-panel,
.page-panel,
.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
}

.watch-info-card {
  padding: 18px 20px;
  margin-top:18px;
}

.watch-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5e1;
  font-size: 16px;
  font-weight: 700;
}

.watch-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.watch-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f4fb;
  font-size: 14px;
  font-weight: 700;
}

.comment-wrap {
  margin-top: 18px;
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.comment-top h3 {
  margin: 0;
  font-size: 18px;
}

.comment-sort {
  color: var(--muted);
  font-size: 14px;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-input-row textarea {
  flex: 1;
  height: 52px;
  padding: 12px 2px;
  border: 0;
  background: transparent;
  color: #fff;
  resize: none;
  outline: none;
  overflow-y: hidden;
  scrollbar-width: none;
}

.comment-input-row textarea::-webkit-scrollbar {
  display: none;
}

.comment-submit {
  min-width: 120px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0084, #ff2c93);
  color: white;
  font-weight: 800;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-card {
  padding: 16px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-head strong {
  font-size: 14px;
}

.comment-card p {
  margin: 10px 0 0;
  color: #d5d9e4;
  line-height: 1.65;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.comment-reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef1f7;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.comment-reaction:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.comment-reaction.is-active {
  border-color: rgba(255, 10, 122, 0.28);
  background: linear-gradient(135deg, rgba(255, 10, 122, 0.18), rgba(255, 76, 165, 0.14));
}

.comment-reaction.is-dislike.is-active {
  border-color: rgba(120, 147, 255, 0.34);
  background: linear-gradient(135deg, rgba(73, 109, 255, 0.2), rgba(106, 132, 255, 0.12));
}

.comment-reaction-icon {
  font-size: 14px;
  line-height: 1;
}

.comment-reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
}

.empty-comment {
  padding: 34px 0 12px;
  color: var(--muted);
  text-align: center;
}

.shorts-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 360px;
  gap: 22px;
}

.shorts-player-wrap {
  position: sticky;
  top: 22px;
  display: flex;
  justify-content: center;
}

.shorts-player {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  border-radius: 24px;
  background: #090a0f;
}

.shorts-player iframe,
.shorts-player video,
.shorts-player img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  object-fit: cover;
}

.shorts-overlay-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.shorts-overlay-group {
  display: flex;
  gap: 10px;
}

.shorts-overlay-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: auto;
}

.shorts-overlay-button svg {
  width: 18px;
  height: 18px;
}

.shorts-tag-track {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
}

.shorts-progress {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff00a0, #f8d7e9);
}

.shorts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.shorts-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #f7f8fb;
  font-size: 14px;
  font-weight: 700;
}

.shorts-side {
  display: grid;
  gap: 18px;
}

.shorts-side h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
}

.shorts-side .video-card-meta {
  margin-top: 10px;
}

.shorts-side-card {
  padding: 18px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 90;
}

.auth-modal.is-visible {
  display: block;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(64, 0, 24, 0.78);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 32px));
  margin: 120px auto 0;
  padding: 28px 30px 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(58, 0, 24, 0.95), rgba(18, 3, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
}

.report-dialog {
  width: min(520px, calc(100vw - 32px));
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.auth-close svg {
  width: 18px;
  height: 18px;
}

.modal-brand {
  font-size: 42px;
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: -0.08em;
  white-space: pre-line;
}

.auth-heading h3 {
  margin: 22px 0 0;
  font-size: 20px;
}

.auth-heading p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.auth-tab-row {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab {
  min-width: 86px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.modal-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.modal-textarea {
  width: 100%;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  resize: vertical;
  outline: none;
}

.modal-textarea:focus {
  border-color: rgba(255, 10, 122, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 10, 122, 0.08);
}

.modal-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 10px;
}

.field-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.modal-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.modal-submit {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff0084, #ff2c93);
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.age-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  background: rgba(0, 0, 0, 0.84);
}

.age-gate.is-visible {
  display: flex;
}

.age-gate-card {
  width: min(580px, 100%);
  padding: 32px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 14, 25, 0.96), rgba(12, 9, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.age-gate-card h2 {
  margin: 18px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.age-gate-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.age-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 110;
}

.toast-item {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 18, 29, 0.94);
  box-shadow: var(--shadow);
}

.toast-item.is-success {
  border-color: rgba(30, 215, 96, 0.26);
}

.toast-item.is-error {
  border-color: rgba(255, 68, 68, 0.28);
}

.auth-shell,
.page-shell {
  max-width: 1100px;
}

.auth-page-panel,
.page-panel,
.profile-panel {
  padding: 24px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .home-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-radius: 0 0 26px 26px;
  }

  .side-section,
  .telegram-card,
  .side-footer {
    display: none;
  }

  .mobile-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 18px;
  }

  .mobile-tab {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
  }

  .mobile-tab.is-active {
    color: white;
    background: rgba(255, 10, 122, 0.2);
  }

  .shorts-layout {
    grid-template-columns: 1fr;
  }

  .shorts-player-wrap {
    position: static;
  }
}

@media (max-width: 920px) {
  .app-shell {
    padding: 0 10px 14px;
  }

  .top-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .watch-channel-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .brand-line {
    font-size: 42px;
  }

  .home-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    flex-basis: 88px;
  }

  .story-card img {
    width: 88px;
    height: 124px;
  }

  .age-gate-actions,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-button,
  .lang-dot {
    width: 100%;
  }

  .modal-action-row {
    grid-template-columns: 1fr;
  }
}

body.page-shorts-feed {
  overflow: hidden;
}

.brand-line {
  white-space: normal;
  font-size: 58px;
  line-height: 0.9;
}

.mobile-toggle,
.icon-button,
.locale-select-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle,
.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mobile-toggle {
  display: none;
}

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

.locale-select-wrap {
  position: relative;
  min-width: 86px;
}

.locale-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid rgba(255, 255, 255, 0.58);
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  transform: rotate(45deg);
  pointer-events: none;
}

.locale-select {
  min-width: 86px;
  height: 46px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  appearance: none;
  outline: none;
  color-scheme: dark;
}

.locale-select option {
  color: #f4f6fb;
  background: #0c1019;
}

.notification-wrap {
  position: relative;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0084, #ff4b9f);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 800;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 28px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 19, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  display: none;
}

.notification-panel.is-open {
  display: block;
}

.notification-title-row,
.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-title-row {
  margin-bottom: 12px;
}

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

.notification-item,
.notification-empty {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item strong {
  font-size: 14px;
}

.notification-item span,
.notification-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notification-item.is-unread {
  border: 1px solid rgba(255, 10, 122, 0.2);
}

.story-card {
  position: relative;
}

.story-title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.headline-block.is-compact h1 {
  font-size: clamp(22px, 3vw, 36px);
}

.video-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.video-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.star-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}

.star-card,
.category-card {
  display: block;
}

.star-card-media,
.category-card-media {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.star-card-media {
  aspect-ratio: 3 / 3;
}

.channel-card .star-card-media {
  aspect-ratio: 16 / 10;
}

.category-card-media {
  aspect-ratio: 16 / 10;
}

.star-card-media img,
.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-card-body,
.category-card-body {
  padding-top: 12px;
}

.star-card-body strong,
.category-card-body strong,
.star-card-body span,
.category-card-body span {
  display: block;
}

.star-card-body strong,
.category-card-body strong {
  font-size: 18px;
  font-weight: 800;
}

.star-card-body span,
.category-card-body span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.star-hero {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.star-hero-cover {
  aspect-ratio: 16 / 5.6;
}

.star-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 24px 24px;
  margin-top: -52px;
}

.star-hero-avatar {
  width: 108px;
  height: 108px;
  overflow: hidden;
  border-radius: 50%;
  border: 5px solid #10121a;
  background: #10121a;
}

.star-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-hero-copy h1,
.section-head h2 {
  margin: 0;
}

.star-hero-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-hero-avatar {
  border-radius: 24px;
}

.star-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  color: #d8dcea;
  font-weight: 700;
}

.follow-button {
  min-width: 138px;
  height: 48px;
  padding: 0 20px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0084, #ff2c93);
  color: #fff;
  font-weight: 800;
}

.follow-button.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.follow-button.is-compact {
  min-width: auto;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pagination-link:hover,
.pagination-link.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 10, 122, 0.24);
  background: linear-gradient(135deg, rgba(255, 10, 122, 0.16), rgba(255, 76, 165, 0.16));
}

.entity-link {
  color: #fff;
}

.pill-icon {
  font-size: 16px;
  line-height: 1;
}

.prose-block {
  margin-top: 18px;
  color: #d8dcea;
  line-height: 1.7;
}

.prose-block a {
  color: var(--pink-soft);
}

.comment-form-shell {
  margin-bottom: 18px;
}

.comment-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.comment-body .comment-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.shorts-feed {
  height: calc(100vh - 102px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.shorts-slide {
  min-height: calc(100vh - 102px);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.shorts-stage {
  position: relative;
  width: min(100%, 520px);
  height: calc(100vh - 124px);
  overflow: hidden;
  border-radius: 28px;
  background: #07090f;
}

.shorts-stage-media,
.shorts-stage-media iframe,
.shorts-stage-media video,
.shorts-stage-media img {
  width: 100%;
  height: 100%;
}

.shorts-stage-media iframe,
.shorts-stage-media video,
.shorts-stage-media img {
  border: 0;
  object-fit: cover;
}

.shorts-hud {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shorts-back,
.shorts-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
}

.shorts-circle.is-active {
  background: rgba(255, 10, 122, 0.82);
}

.shorts-rail-actions {
  display: grid;
  gap: 10px;
}

.shorts-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.shorts-meta-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.shorts-meta h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.24;
}

.shorts-meta span,
.shorts-meta a {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.shorts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shorts-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(6px);
}

.mobile-drawer-backdrop.is-visible {
  display: block;
}

@media (max-width: 1400px) {
  .star-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: min(320px, calc(100vw - 36px));
    height: 100vh;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    background: rgba(8, 9, 16, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.is-mobile-nav-open .side-rail {
    transform: translateX(0);
  }

  .main-shell {
    padding-top: 14px;
  }

  .top-search-bar {
    gap: 12px;
  }

  .global-search {
    min-height: 64px;
  }

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

  .shorts-feed {
    height: calc(100vh - 86px);
  }

  .shorts-slide {
    min-height: calc(100vh - 86px);
  }

  .shorts-stage {
    width: min(100%, 460px);
    height: calc(100vh - 110px);
  }
}

@media (max-width: 920px) {
  .top-search-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .global-search {
    grid-column: 1 / -1;
    order: 2;
  }

  .top-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .catalog-grid,
  .home-grid,
  .star-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .star-hero-body {
    flex-wrap: wrap;
    margin-top: -42px;
  }

  .follow-button {
    margin-left: 0;
  }

  .watch-channel-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 0 10px 12px;
  }

  .brand-line {
    font-size: 44px;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .locale-select-wrap,
  .auth-button.ghost,
  .auth-button.solid {
    flex: 1 1 auto;
  }

  .catalog-grid,
  .home-grid,
  .star-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    flex-basis: 84px;
  }

  .story-card img {
    width: 84px;
    height: 120px;
  }

  .shorts-stage {
    width: 100%;
    height: calc(100vh - 92px);
    border-radius: 20px;
  }

  .comment-input-row {
    flex-wrap: wrap;
    border-radius: 20px;
  }

    .comment-submit {
      width: 100%;
    }
}

.shorts-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}

.short-card {
  display: block;
}

.short-card .video-thumb {
  border-radius: 22px;
}

.short-card-body {
  padding-top: 10px;
}

.profile-shell {
  gap: 24px;
}

.profile-hero,
.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
}

.profile-hero {
  padding: 24px;
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-display,
.shorts-author-avatar {
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.profile-avatar-display {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
}

.profile-avatar-display img,
.shorts-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
}

.profile-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.profile-hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.profile-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
}

.profile-side,
.profile-main {
  display: grid;
  gap: 22px;
}

.profile-form-grid {
  gap: 12px;
}

.profile-textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

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

.avatar-option {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.avatar-option.is-active {
  border-color: rgba(255, 10, 122, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 10, 122, 0.12);
}

.avatar-option img {
  width: 100%;
  border-radius: 14px;
}

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

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

.shorts-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 420px;
  gap: 26px;
  min-height: calc(100vh - 112px);
  align-items: stretch;
}

.shorts-detail-shell.is-feed {
  min-height: calc(100vh - 104px);
}

.shorts-detail-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 18px;
  min-height: 0;
}

.shorts-detail-player {
  position: relative;
  height: calc(100vh - 132px);
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.shorts-detail-player iframe,
.shorts-detail-player video,
.shorts-detail-player img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.shorts-detail-tags {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shorts-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.shorts-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.shorts-nav-button:hover:not([disabled]) {
  transform: translateY(-1px);
  border-color: rgba(255, 10, 122, 0.28);
  background: linear-gradient(180deg, rgba(255, 10, 122, 0.18), rgba(255, 255, 255, 0.08));
}

.shorts-nav-button[disabled] {
  opacity: 0.28;
  cursor: not-allowed;
  box-shadow: none;
}

.shorts-nav-button svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shorts-detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.shorts-author {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.shorts-author-avatar {
  width: 58px;
  height: 58px;
}

.shorts-author-copy strong,
.shorts-author-copy span {
  display: block;
}

.shorts-author-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

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

.watch-actions.is-short .action-pill {
  justify-content: center;
}

.short-comment-wrap {
  margin-top: 0;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 330px);
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.short-comment-wrap::-webkit-scrollbar {
  width: 8px;
}

.short-comment-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.short-comment-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 10, 122, 0.22));
  background-clip: padding-box;
}

.comment-card.is-short {
  grid-template-columns: 42px minmax(0, 1fr);
}

@media (max-width: 1400px) {
  .shorts-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .profile-layout,
  .shorts-detail-shell {
    grid-template-columns: 1fr;
  }

  .shorts-detail-stage {
    grid-template-columns: 1fr;
  }

  .shorts-nav {
    flex-direction: row;
    justify-content: center;
  }

  .shorts-detail-player {
    height: calc(100vh - 230px);
  }

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

@media (max-width: 920px) {
  .shorts-catalog-grid,
  .profile-card-grid,
  .profile-star-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .profile-hero-main,
  .shorts-author {
    grid-template-columns: 1fr;
    display: grid;
  }

  .shorts-detail-player {
    height: calc(100vh - 180px);
    border-radius: 20px;
  }

  .shorts-catalog-grid,
  .profile-card-grid,
  .profile-star-grid,
  .avatar-grid {
    grid-template-columns: 1fr;
  }

  .pagination-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .top-search-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "toggle actions"
      "search search";
    align-items: center;
    gap: 10px;
  }

  .mobile-toggle {
    grid-area: toggle;
  }

  .global-search {
    grid-area: search;
    min-height: 56px;
    padding: 0 16px;
  }

  .global-search input {
    padding: 0 16px 0 48px;
    font-size: 14px;
  }

  .top-actions {
    grid-area: actions;
    justify-self: end;
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-actions .locale-select-wrap,
  .top-actions .auth-button {
    width: auto;
    flex: 0 0 auto;
  }

  .locale-select-wrap {
    min-width: 74px;
  }

  .locale-select,
  .icon-button,
  .mobile-toggle,
  .auth-button {
    height: 40px;
  }

  .locale-select,
  .auth-button {
    padding-left: 14px;
    padding-right: 14px;
  }

  .icon-button,
  .mobile-toggle {
    width: 40px;
    border-radius: 12px;
  }

  .auth-button {
    font-size: 13px;
  }

  .auth-profile-button {
    max-width: 148px;
  }
}

@media (max-width: 560px) {
  .top-actions {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: end;
  }

  .auth-profile-button {
    min-width: 0;
    max-width: 100%;
  }

  .top-actions .auth-button,
  .top-actions .locale-select-wrap {
    width: auto;
  }

  .auth-profile-text {
    display: none;
  }

  .auth-profile-button,
  .auth-button.solid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-button.solid {
    min-width: 88px;
  }

  .icon-button {
    width: 40px;
    min-width: 40px;
  }
}

@media (max-width: 430px) {
  .top-search-bar {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .top-actions {
    grid-template-columns: repeat(4, auto);
    gap: 6px;
  }

  .locale-select-wrap {
    min-width: 62px;
  }

  .locale-select {
    min-width: 62px;
    padding-left: 10px;
    padding-right: 26px;
    font-size: 12px;
  }

  .locale-select-wrap::after {
    right: 12px;
  }

  .auth-button.solid {
    min-width: 78px;
    font-size: 12px;
  }
}

.empty-state-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 10, 20, 0.92), rgba(10, 8, 16, 0.98));
  padding: 26px 28px;
  color: rgba(244, 228, 237, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.empty-state-card strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.empty-state-card p {
  margin: 0;
  color: rgba(226, 207, 218, 0.82);
  line-height: 1.7;
}

.top-search-bar .global-search {
  min-height: 46px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
}

.top-search-bar .global-search input {
  height: 46px;
  padding: 0 18px 0 52px;
  font-size: 15px;
}

.top-search-bar .search-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .top-search-bar .global-search {
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
  }

  .top-search-bar .global-search input {
    height: 40px;
    padding: 0 14px 0 44px;
    font-size: 14px;
  }
}

.notification-wrap {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 12, 22, 0.98), rgba(9, 10, 17, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  display: none;
}

.notification-panel.is-open {
  display: block;
}

.notification-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-title-row strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.notification-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(226, 214, 223, 0.68);
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: min(440px, 65vh);
  overflow-y: auto;
  padding-right: 4px;
}

.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-item,
.notification-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.notification-item.is-unread {
  border-color: rgba(255, 52, 136, 0.28);
  background: linear-gradient(180deg, rgba(255, 27, 121, 0.09), rgba(255, 255, 255, 0.04));
}

.notification-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 46, 150, 0.18), rgba(116, 82, 255, 0.18));
  color: #fff;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.notification-item--comment_reaction .notification-item-icon {
  background: linear-gradient(135deg, rgba(255, 46, 150, 0.22), rgba(255, 129, 95, 0.18));
}

.notification-item--star_content .notification-item-icon {
  background: linear-gradient(135deg, rgba(178, 80, 255, 0.22), rgba(255, 46, 150, 0.18));
}

.notification-item--channel_content .notification-item-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.18));
}

.notification-item-icon svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.notification-item-content {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-self: center;
}

.notification-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-item-head strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  color: #fff;
}

.notification-item-head time {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(219, 210, 218, 0.6);
  white-space: nowrap;
}

.notification-item-body,
.notification-empty {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(225, 214, 223, 0.72);
}

.notification-empty {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding: 24px 18px;
}

@media (max-width: 640px) {
  .notification-panel {
    position: fixed;
    top: 74px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    padding: 12px;
    border-radius: 18px;
  }

  .notification-item,
  .notification-empty {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .notification-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .notification-item-icon svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .notification-item-head {
    display: grid;
  }
}
