* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fluid-gutter: clamp(12px, 2.8vw, 32px);
  --fluid-max: 1360px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 96, 110, 0.65) #0c0d11;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 120px;
  font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(140, 140, 140, 0.14) 0%, rgba(140, 140, 140, 0) 56%),
    radial-gradient(120% 140% at 100% 100%, rgba(70, 70, 70, 0.16) 0%, rgba(70, 70, 70, 0) 60%),
    linear-gradient(145deg, #121212 0%, #0f0f0f 46%, #090909 100%),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 9px
    );
  background-attachment: fixed;
  background-size: cover;
  transition: all 0.4s ease;
  overflow-x: hidden;
  position: relative;
  color: #fff;
}

body.watch-page {
  padding-top: 92px;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body.profile-page {
  background-color: #08080a;
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(140, 140, 140, 0.08) 0%, rgba(140, 140, 140, 0) 56%),
    radial-gradient(120% 140% at 100% 100%, rgba(70, 70, 70, 0.08) 0%, rgba(70, 70, 70, 0) 60%),
    linear-gradient(145deg, rgba(14, 14, 16, 0.9) 0%, rgba(10, 10, 12, 0.92) 46%, rgba(7, 7, 8, 0.96) 100%);
}

body::-webkit-scrollbar {
  width: 9px;
}

body::-webkit-scrollbar-track {
  background: #0c0d11;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #505866, #3f4754);
  border-radius: 999px;
  border: 2px solid #0c0d11;
  transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #636d7d, #4a5362);
}

a {
  color: inherit;
}

button,
.btn,
.profile-primary-btn,
.profile-secondary-btn,
.profile-edit-chip,
.profile-danger-btn,
.auth-header-icon,
.watch-btn,
.watch-link-btn,
.mobile-menu-toggle,
.search-button {
  transition:
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    opacity 0.22s ease,
    filter 0.22s ease;
  will-change: transform;
}

button:hover:not(:disabled),
.btn:hover,
.profile-primary-btn:hover:not(:disabled),
.profile-secondary-btn:hover:not(:disabled),
.profile-edit-chip:hover:not(:disabled),
.profile-danger-btn:hover:not(:disabled),
.auth-header-icon:hover,
.watch-btn:hover,
.watch-link-btn:hover,
.mobile-menu-toggle:hover,
.search-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

button:active:not(:disabled),
.btn:active,
.profile-primary-btn:active:not(:disabled),
.profile-secondary-btn:active:not(:disabled),
.profile-edit-chip:active:not(:disabled),
.profile-danger-btn:active:not(:disabled),
.auth-header-icon:active,
.watch-btn:active,
.watch-link-btn:active,
.mobile-menu-toggle:active,
.search-button:active {
  transform: translateY(0) scale(0.98);
}

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

.topbar {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(20px, 4vw, 52px);
  padding-right: clamp(20px, 4vw, 52px);
  gap: clamp(8px, 1.5vw, 20px);
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  background: transparent;
  border-bottom: 1px solid transparent;
  overflow: visible;
  isolation: isolate;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.watch-page .topbar {
  top: 6px;
  height: 92px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-12px);
  justify-content: flex-start;
  transition:
    top 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.topbar::before,
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 1px;
  width: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18));
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: transform 0.72s cubic-bezier(0.2, 0.82, 0.24, 1), opacity 0.3s ease, box-shadow 0.5s ease;
}

.topbar::before {
  left: 0;
  transform: translateX(-100%);
}

.topbar::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18));
  transform: translateX(100%);
}

.topbar.scrolled {
  height: 72px;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.topbar.scrolled .logo img {
  height: 182px;
  margin-top: -48px !important;
  transform: translateX(-30px);
}

body.watch-page .topbar.scrolled .logo img {
  height: 135px !important;
  margin-top: -63px !important;
  transform: translateY(23px) !important;
}

body.watch-page .topbar.scrolled {
  top: 0;
  height: 92px;
  align-items: center;
  padding-top: 0;
  transform: translateY(0);
}

.topbar.scrolled::before,
.topbar.scrolled::after {
  opacity: 1;
  transform: translateX(0);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16), 0 0 18px rgba(255, 255, 255, 0.08);
}

.topbar:not(.scrolled) {
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.topbar:not(.scrolled)::before,
.topbar:not(.scrolled)::after {
  opacity: 0 !important;
  box-shadow: none !important;
}

.topbar:not(.scrolled) .right .btn {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.topbar:not(.scrolled) .logo img {
  height: 182px;
  margin-top: -48px !important;
  transform: none;
}

body.watch-page .topbar:not(.scrolled) .logo img {
  height: 135px !important;
  margin-top: -63px !important;
  transform: translateY(18px) !important;
}

.topbar:not(.scrolled) .right .register {
  background: rgba(255, 59, 59, 0.12);
  border-color: rgba(255, 98, 98, 0.18);
}

.topbar:not(.scrolled) .mobile-menu-toggle {
  background: transparent;
  box-shadow: none;
}

body.watch-page.search-open .topbar {
  top: 6px;
  height: 92px !important;
  transform: translateY(-12px);
}

body.watch-page.search-open .topbar::before,
body.watch-page.search-open .topbar::after {
  opacity: 0 !important;
  box-shadow: none !important;
  transform: translateX(0);
}

body.watch-page.search-open .topbar .logo img,
body.watch-page.search-open .topbar.scrolled .logo img,
body.watch-page.search-open .topbar:not(.scrolled) .logo img {
  height: 135px !important;
  margin-top: -63px !important;
  transform: translateY(18px) !important;
}

body.watch-page.search-open .topbar .right .btn {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.watch-page.search-open .topbar .right .register {
  background: rgba(255, 59, 59, 0.12);
  border-color: rgba(255, 98, 98, 0.18);
}

.logo {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.4));
}

.logo:active {
  transform: scale(0.96);
}

.left .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.left .logo:hover {
  transform: translateY(-2px);
}

.logo img {
  height: 186px;
  margin-left: 2px;
  margin-top: -46px !important;
  display: block;
  transition:
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar .logo img {
  width: 210px;
  height: 82px !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center 40%;
}

body.watch-page .logo img {
  width: 210px;
  height: 82px !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center 40%;
}

body.watch-page .topbar .logo img {
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.logo:hover .logo-text {
  color: #ff3b3b;
  text-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
}

.logo-text span {
  font-size: 14px;
  font-weight: 600;
  color: #bdbdbd;
  transition: color 0.3s ease;
}

.logo:hover .logo-text span {
  color: #fff;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover .logo {
  transform: scale(1.05);
}

.logo-link:active .logo {
  transform: scale(0.95);
}

.left,
.center,
.right {
  min-width: 0;
}

body.watch-page .topbar > .left {
  flex: 0 0 auto;
}

.center {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 30px;
}

body.watch-page .topbar > .center {
  flex: 0 1 auto;
  padding-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  position: relative;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

body.watch-page .topbar .nav-item {
  top: -2px;
  transform: none;
}

.nav-item::after {
  display: none;
}

.nav-item:hover::after {
  display: none;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-item .icon {
  height: 20px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-item:hover .icon {
  opacity: 0.8;
  transform: none;
}

.nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-more-toggle {
  cursor: pointer;
  min-width: 34px;
  justify-content: center;
  padding: 8px 4px;
}

.nav-dots-toggle::after {
  display: none;
}

.nav-dots {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 20px;
  height: 10px;
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.nav-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e9eef8;
  opacity: 0.9;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.nav-more.open .nav-dots span {
  background: #ffffff;
  opacity: 1;
}

.nav-more.open .nav-dots {
  transform: rotate(0deg);
}

.nav-more-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 280px;
  padding: 14px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1120;
}

.nav-more-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 12, 18, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

.nav-more.open .nav-more-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-more-panel > * {
  position: relative;
  z-index: 1;
}

.nav-more-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #dce1ea;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.24s ease, color 0.2s ease, opacity 0.22s ease;
}

.nav-more.open .nav-more-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-more.open .nav-more-link:nth-child(1) { transition-delay: 0.02s; }
.nav-more.open .nav-more-link:nth-child(2) { transition-delay: 0.05s; }
.nav-more.open .nav-more-link:nth-child(3) { transition-delay: 0.08s; }

.nav-more-link .icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
  filter: brightness(1.8) grayscale(1);
}

.nav-more-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.nav-more-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

body.watch-page .topbar > .right {
  flex: 0 0 auto;
  padding-top: 0;
}

.right .search-toggle {
  flex: 0 0 auto;
}

.right .btn {
  font-weight: 700;
}

.btn {
  background: #1b1b1e;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 17px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: #2a2a2d;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

.btn .icon {
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover .icon {
  transform: scale(1.2);
}

.login,
.register {
  background: #2a2d31;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login:hover,
.register:hover {
  background: linear-gradient(135deg, #3b3f45, #919191);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(255, 59, 59, 0.2);
}

.right .btn {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: rgba(244, 244, 244, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 14px rgba(0, 0, 0, 0.24);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.right .btn::before {
  display: none;
}

.right .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.right .btn .icon {
  height: 16px;
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
  transform: none !important;
}

.right .login {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.right .register {
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.2), rgba(255, 59, 59, 0.1));
  border-color: rgba(255, 98, 98, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 210, 210, 0.12), 0 8px 16px rgba(130, 0, 0, 0.26);
}

.right .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.right .btn:hover::after {
  transform: translateX(130%);
}

.right .login:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.28);
}

.right .register:hover {
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.26), rgba(255, 59, 59, 0.14));
  border-color: rgba(255, 126, 126, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 218, 218, 0.16), 0 12px 20px rgba(140, 0, 0, 0.32);
}

.right .btn:hover .icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 59, 59, 0.32));
}

.right .btn:active {
  transform: translateY(0) scale(0.98);
}

.auth-header-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-header-admin {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 92, 92, 0.4);
  border-radius: 10px;
  background: rgba(255, 75, 75, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-header-admin:hover,
.auth-header-admin:focus-visible {
  background: rgba(255, 75, 75, 0.22);
  border-color: rgba(255, 112, 112, 0.74);
  box-shadow: 0 0 18px rgba(255, 75, 75, 0.2);
}

.auth-header-admin-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(2) grayscale(1);
}

.auth-header-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 18px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-header-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-header-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.auth-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.auth-profile-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.76);
  border-bottom: 2px solid rgba(255,255,255,0.76);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.9;
}

.auth-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.34);
  outline: 2px solid rgba(255, 114, 182, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.34), transparent 32%),
    linear-gradient(135deg, #5f294e, #2c203d 54%, #16171f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.auth-profile-avatar.has-image {
  padding: 0;
  overflow: hidden;
  background: #17181e;
  color: transparent;
}

.auth-profile-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-profile-pill:hover .auth-profile-avatar {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.34);
  outline-color: rgba(255, 114, 182, 0.55);
}

.auth-profile-pill:hover .auth-profile-arrow {
  opacity: 1;
}

/* Watch header keeps its position while hover/focus feedback is shown. */
body.watch-page .topbar .logo-link:hover .logo,
body.watch-page .topbar .logo-link:focus-visible .logo,
body.watch-page .topbar .logo-link:active .logo {
  transform: none !important;
}

body.watch-page .topbar .nav-item,
body.watch-page .topbar .nav-item:hover,
body.watch-page .topbar .nav-item:focus-visible,
body.watch-page .topbar .nav-item:active {
  top: -2px;
  transform: none !important;
}

body.watch-page .topbar .right .btn:hover,
body.watch-page .topbar .right .btn:focus-visible,
body.watch-page .topbar .right .btn:active,
body.watch-page .topbar .auth-header-admin:hover,
body.watch-page .topbar .auth-header-admin:focus-visible,
body.watch-page .topbar .auth-header-admin:active,
body.watch-page .topbar .auth-header-icon:hover,
body.watch-page .topbar .auth-header-icon:focus-visible,
body.watch-page .topbar .auth-header-icon:active,
body.watch-page .topbar .mobile-menu-toggle:hover,
body.watch-page .topbar .mobile-menu-toggle:focus-visible,
body.watch-page .topbar .mobile-menu-toggle:active,
body.watch-page .topbar .nav-more-link:hover,
body.watch-page .topbar .nav-more-link:focus-visible,
body.watch-page .topbar .nav-more-link:active {
  transform: none !important;
}

body.watch-page .topbar .auth-profile-pill:hover .auth-profile-avatar,
body.watch-page .topbar .auth-profile-pill:focus-visible .auth-profile-avatar,
body.watch-page .topbar .auth-profile-pill:active .auth-profile-avatar {
  transform: none !important;
}

.profile-page {
  padding-top: 96px;
}

.profile-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.profile-summary-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,9,14,0.2), rgba(8,9,14,0.88)),
    radial-gradient(circle at top right, rgba(255, 92, 187, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(91, 124, 250, 0.18), transparent 30%),
    linear-gradient(145deg, #171920, #0f1016 56%, #0b0c12);
  background-size: cover;
  background-position: center;
}

.profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: -78px 22px 0;
  padding: 24px 28px 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17,19,28,0.88), rgba(11,12,18,0.96)),
    rgba(10,11,16,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.profile-header-avatar {
  flex: 0 0 auto;
}

.profile-header-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
}

.profile-kicker {
  margin: 0 0 10px;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}

.profile-hero-copy h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
}

.profile-identity-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 0;
}

.profile-status {
  margin: 14px 0 0;
  max-width: 620px;
  color: rgba(233,236,240,0.86);
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 22px;
}

.profile-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(13,14,19,0.92);
  box-shadow: 0 16px 42px rgba(0,0,0,0.22);
}

.profile-summary {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.profile-banner-shell {
  position: relative;
  min-height: 320px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 18% 22%, rgba(120,130,255,0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255,92,187,0.2), transparent 26%),
    linear-gradient(135deg, rgba(17,19,28,0.98), rgba(12,14,22,0.94) 48%, rgba(38,16,34,0.94));
  box-shadow: 0 22px 54px rgba(0,0,0,0.28);
}

.profile-banner-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,16,0.16), rgba(8,10,16,0.54)),
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 46%);
  background-size: cover;
  background-position: center;
}

.profile-banner-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,16,0.22), rgba(8,10,16,0.56)),
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 46%);
  pointer-events: none;
}

.profile-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-banner-backdrop.has-image {
  background: linear-gradient(135deg, rgba(17,19,28,0.98), rgba(12,14,22,0.94) 48%, rgba(38,16,34,0.94));
}

.profile-banner-content {
  position: relative;
  z-index: 1;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  padding: 24px 26px;
}

.profile-banner-shell {
  cursor: pointer;
}

.profile-banner-pen-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.profile-banner-pen-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.88;
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(8, 9, 14, 0.56);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-banner-shell:hover .profile-banner-overlay,
.profile-banner-shell:focus-within .profile-banner-overlay {
  opacity: 1;
}

.profile-summary-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-avatar-upload {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.profile-avatar-upload-hero {
  width: clamp(124px, 16vw, 156px);
  height: clamp(124px, 16vw, 156px);
  border-radius: 50%;
  overflow: visible;
  box-shadow:
    0 0 60px rgba(130, 90, 255, 0.25),
    0 22px 48px rgba(0,0,0,0.34);
}

.profile-avatar {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.28), transparent 30%),
    linear-gradient(135deg, #6f3159, #2d2141 55%, #12131a);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 36px rgba(0,0,0,0.24);
}

.profile-avatar-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  flex-basis: auto;
  border-radius: 50%;
  font-size: clamp(42px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.24), transparent 30%),
    linear-gradient(135deg, #6f3159, #2d2141 55%, #12131a);
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 10px rgba(255,255,255,0.03);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  object-position: center;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.has-image {
  background: #11131a;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: inherit;
  background: rgba(8, 9, 14, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.2s ease;
}

.profile-avatar-decoration {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 132%;
  height: 132%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.36));
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2,.8,.2,1);
}

.profile-avatar-decoration.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: profile-decoration-alive 4.8s ease-in-out infinite;
}

@keyframes profile-decoration-alive {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(-0.35deg);
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.36)) brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025) rotate(0.55deg);
    filter: drop-shadow(0 14px 25px rgba(239,51,79,0.2)) brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-avatar-decoration.is-visible {
    animation: none;
  }
}

.profile-avatar-upload:hover .profile-avatar-overlay,
.profile-avatar-upload:focus-within .profile-avatar-overlay {
  opacity: 1;
}

body.is-readonly-profile .profile-avatar-overlay,
body.is-readonly-profile .profile-banner-overlay {
  opacity: 0 !important;
}

body.is-readonly-profile .profile-avatar-upload,
body.is-readonly-profile .profile-banner-shell {
  cursor: default;
  pointer-events: none;
}

.profile-summary-label {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.54);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.profile-summary h2 {
  margin: 0;
  font-size: 26px;
}

.profile-summary-bio {
  margin: 0;
  color: rgba(231,234,239,0.8);
  line-height: 1.7;
  max-width: 540px;
}

.profile-meta-list {
  display: grid;
  gap: 12px;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.profile-meta-key {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-card-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.profile-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(87, 213, 145, 0.12);
  border: 1px solid rgba(87, 213, 145, 0.18);
  color: #baf7d4;
  font-size: 12px;
  font-weight: 700;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 600;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: rgba(167, 139, 250, 0.56);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.09);
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.profile-primary-btn,
.profile-secondary-btn {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-primary-btn {
  background: linear-gradient(135deg, #ff5cbb, #7c5cff);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 92, 255, 0.2);
}

.profile-secondary-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.profile-primary-btn:hover,
.profile-secondary-btn:hover {
  transform: translateY(-2px);
}

.profile-primary-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-banner-content,
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-header {
    margin: -56px 18px 0;
    padding: 22px 22px 26px;
  }
}

@media (max-width: 640px) {
  .profile-shell {
    width: min(100% - 20px, 100%);
    padding-top: 38px;
  }

  .profile-card,
  .profile-banner-shell,
  .profile-header {
    border-radius: 22px;
  }

  .profile-banner-content,
  .profile-header {
    padding: 20px;
  }

  .profile-header {
    margin: -44px 14px 0;
    border-radius: 24px;
  }

  .profile-avatar-upload-hero {
    width: 116px;
    height: 116px;
  }

  .profile-stats-hero {
    padding-left: 0;
    margin-top: 46px;
  }

  .profile-summary-top {
    align-items: flex-start;
  }

  .profile-meta-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
}

/* Profile controls stay visually stationary on hover and press. */
body.profile-page button:not(.profile-row-nav):not(.close-search),
body.profile-page a.btn,
body.profile-page [role="button"]:not(.profile-row-nav) {
  animation: none !important;
  transition-property: background-color, border-color, color, box-shadow, opacity, filter !important;
}

body.profile-page button:not(.profile-row-nav):not(.close-search):hover,
body.profile-page button:not(.profile-row-nav):not(.close-search):focus-visible,
body.profile-page button:not(.profile-row-nav):not(.close-search):active,
body.profile-page a.btn:hover,
body.profile-page a.btn:focus-visible,
body.profile-page a.btn:active,
body.profile-page [role="button"]:not(.profile-row-nav):hover,
body.profile-page [role="button"]:not(.profile-row-nav):focus-visible,
body.profile-page [role="button"]:not(.profile-row-nav):active {
  transform: none !important;
  animation: none !important;
}

body.profile-page .profile-row-nav,
body.profile-page .profile-row-nav:hover,
body.profile-page .profile-row-nav:focus-visible,
body.profile-page .profile-row-nav:active {
  transform: translateY(-50%) !important;
  animation: none !important;
}

@keyframes watchPageReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
    filter: blur(5px);
  }
  58% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body.watch-page:not(.is-watch-ready) .watch-main > .watch-player,
body.watch-page:not(.is-watch-ready) .watch-fansub-picker,
body.watch-page:not(.is-watch-ready) .watch-player-meta,
body.watch-page:not(.is-watch-ready) .watch-layout > .watch-episodes-block,
body.watch-page:not(.is-watch-ready) .watch-bottom > .watch-card,
body.watch-page:not(.is-watch-ready) > .footer {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  filter: blur(5px);
}

body.watch-page.is-watch-ready .watch-main > .watch-player,
body.watch-page.is-watch-ready .watch-fansub-picker,
body.watch-page.is-watch-ready .watch-player-meta,
body.watch-page.is-watch-ready .watch-layout > .watch-episodes-block,
body.watch-page.is-watch-ready .watch-bottom > .watch-card,
body.watch-page.is-watch-ready > .footer {
  animation: watchPageReveal 0.66s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

body.watch-page.is-watch-ready .watch-main > .watch-player {
  animation-delay: 0.02s;
}

body.watch-page.is-watch-ready .watch-layout > .watch-episodes-block {
  animation-delay: 0.09s;
}

body.watch-page.is-watch-ready .watch-fansub-picker {
  animation-delay: 0.13s;
}

body.watch-page.is-watch-ready .watch-player-meta {
  animation-delay: 0.18s;
}

body.watch-page.is-watch-ready .watch-bottom > .watch-card:nth-child(1) {
  animation-delay: 0.24s;
}

body.watch-page.is-watch-ready .watch-bottom > .watch-card:nth-child(2) {
  animation-delay: 0.3s;
}

body.watch-page.is-watch-ready > .footer {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  body.watch-page:not(.is-watch-ready) .watch-main > .watch-player,
  body.watch-page:not(.is-watch-ready) .watch-fansub-picker,
  body.watch-page:not(.is-watch-ready) .watch-player-meta,
  body.watch-page:not(.is-watch-ready) .watch-layout > .watch-episodes-block,
  body.watch-page:not(.is-watch-ready) .watch-bottom > .watch-card,
  body.watch-page:not(.is-watch-ready) > .footer {
    opacity: 1;
    transform: none;
    filter: none;
  }

  body.watch-page.is-watch-ready .watch-main > .watch-player,
  body.watch-page.is-watch-ready .watch-fansub-picker,
  body.watch-page.is-watch-ready .watch-player-meta,
  body.watch-page.is-watch-ready .watch-layout > .watch-episodes-block,
  body.watch-page.is-watch-ready .watch-bottom > .watch-card,
  body.watch-page.is-watch-ready > .footer {
    animation: none;
  }
}

/* Profile page override */
.profile-overview {
  display: block;
}

.profile-summary-main {
  min-width: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.profile-stats-hero {
  margin-top: 34px;
  margin-bottom: 0;
  padding-left: clamp(210px, 23vw, 300px);
  max-width: 1080px;
}

.profile-stats-standalone {
  margin-top: 18px;
}

.profile-stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(16,18,27,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-stat-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}

.profile-stat-icon-image {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
  opacity: 0.92;
}

.profile-stat-box-anime .profile-stat-icon {
  background: rgba(255, 95, 109, 0.14);
  border-color: rgba(255, 95, 109, 0.28);
}

.profile-stat-box-episode .profile-stat-icon {
  background: rgba(41, 121, 255, 0.14);
  border-color: rgba(41, 121, 255, 0.28);
}

.profile-stat-box-hours .profile-stat-icon {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.28);
}

.profile-stat-box-anime .profile-stat-icon {
  color: #ff6b7d;
}

.profile-stat-box-episode .profile-stat-icon {
  color: #2d8cff;
}

.profile-stat-box-hours .profile-stat-icon {
  color: #3dd9c5;
}

.profile-stat-copy {
  display: grid;
  gap: 4px;
}

.profile-stat-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
}

.profile-stat-box strong {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
}

.profile-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-hero-inline {
    margin: -20px -20px 18px;
    padding: 20px;
    border-radius: 0 0 22px 22px;
  }
}

/* Profile redesign */
.profile-page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(30px) saturate(1.02);
  transform: scale(1.08);
  transition:
    opacity 0.36s ease,
    background-image 0.36s ease;
  contain: paint;
  backface-visibility: hidden;
}

.profile-page-backdrop-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateZ(0) scale(1.01);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 0.28s ease;
}

.profile-page-backdrop-video.is-ready {
  opacity: 1;
}

.profile-page-backdrop-video[hidden],
.profile-banner-video[hidden] {
  display: none;
}

.profile-page-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(22, 16, 26, 0.08) 0%, rgba(11, 9, 14, 0.3) 58%, rgba(7, 7, 9, 0.52) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.34), rgba(8, 8, 10, 0.58));
}

.profile-page-backdrop.has-image {
  opacity: 0.58;
}

.profile-page-backdrop.has-image.is-custom-background {
  opacity: 0.72;
  filter: none;
  transform: scale(1.01);
}

.profile-page-backdrop.is-custom-background::before {
  background:
    radial-gradient(circle at center, rgba(11, 9, 14, 0.04) 0%, rgba(7, 7, 9, 0.2) 66%, rgba(7, 7, 9, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.18), rgba(8, 8, 10, 0.42));
}

/* Keep full-screen motion on one compositor surface. Group opacity, scaling
   and live backdrop blur force the browser to repaint the video every frame. */
body.profile-page.has-profile-motion-background .profile-page-backdrop.has-image.is-custom-background {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

body.profile-page.has-profile-motion-background .profile-page-backdrop-video {
  transform: translateZ(0);
  contain: strict;
}

body.profile-page.has-profile-motion-background .profile-page-backdrop::before {
  background: linear-gradient(180deg, rgba(8,8,11,0.3), rgba(8,8,11,0.56));
}

body.profile-page.has-profile-motion-background .topbar.scrolled,
body.profile-page.has-profile-motion-background .profile-stat-box,
body.profile-page.has-profile-motion-background .profile-presence,
body.profile-page.has-profile-motion-background .mobile-bottom-nav {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.profile-page.has-profile-motion-background .topbar.scrolled {
  background: rgba(15,15,17,0.94);
}

.profile-shell,
.footer {
  position: relative;
  z-index: 1;
}

.profile-overview {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.profile-summary-banner {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.profile-banner-shell {
  display: block;
  width: 100%;
  height: clamp(270px, 24vw, 320px);
  min-height: 0;
  z-index: 1;
  isolation: isolate;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 60px rgba(0,0,0,0.22);
}

.profile-banner-backdrop {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(255,255,255,0.95) 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 18% 58%, rgba(255,255,255,0.75) 0 1.1px, transparent 1.4px),
    radial-gradient(circle at 28% 34%, rgba(255,255,255,0.8) 0 1.4px, transparent 1.7px),
    radial-gradient(circle at 40% 22%, rgba(255,255,255,0.85) 0 1.2px, transparent 1.5px),
    radial-gradient(circle at 52% 62%, rgba(255,255,255,0.72) 0 1px, transparent 1.3px),
    radial-gradient(circle at 66% 18%, rgba(255,255,255,0.82) 0 1.5px, transparent 1.8px),
    radial-gradient(circle at 78% 46%, rgba(255,255,255,0.7) 0 1px, transparent 1.3px),
    radial-gradient(circle at 88% 26%, rgba(255,255,255,0.92) 0 1.3px, transparent 1.6px),
    linear-gradient(90deg, #2d0d57 0%, #5b2395 100%);
}

.profile-banner-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, rgba(13,8,28,0.08), rgba(13,8,28,0.16));
}

.profile-banner-backdrop.has-image {
  background: transparent;
}

.profile-banner-backdrop.has-image::after {
  background: linear-gradient(180deg, rgba(7,7,10,0.1), rgba(7,7,10,0.18));
}

.profile-banner-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.profile-banner-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 0.22s ease;
}

.profile-banner-video.is-ready {
  opacity: 1;
}

.profile-banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 24px 30px;
}

.profile-banner-content::before {
  content: none;
  position: absolute;
  top: 20px;
  right: 74px;
  color: rgba(255,255,255,0.46);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.profile-banner-pen-wrap {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(18,18,22,0.82);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0;
}

.profile-banner-pen-wrap::before {
  content: "...";
  font-size: 17px;
  line-height: 1;
  transform: translateY(-4px);
}

.profile-banner-pen-icon {
  display: none;
}

.profile-header {
  position: relative;
  z-index: 4;
  width: calc(100% - 72px);
  margin: -54px 0 0 36px;
  padding: 0;
  gap: 22px;
  align-items: flex-start;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-header-avatar {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-presence {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(15,16,22,0.82);
  color: rgba(218,221,230,0.68);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.045em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.profile-presence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #6c727e;
  box-shadow: 0 0 0 3px rgba(108,114,126,0.12);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.profile-presence.is-online {
  border-color: rgba(74,222,128,0.2);
  background: rgba(20,65,39,0.74);
  color: #a5f3bd;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22), 0 0 18px rgba(74,222,128,0.08);
}

.profile-presence.is-online .profile-presence-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.13), 0 0 11px rgba(74,222,128,0.72);
  animation: profile-presence-pulse 2.2s ease-in-out infinite;
}

@keyframes profile-presence-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.72; }
}

.profile-avatar-upload-hero {
  width: 142px;
  height: 142px;
  box-shadow: 0 20px 42px rgba(0,0,0,0.32);
}

.profile-avatar-hero {
  border: 8px solid #090a0d;
  background: linear-gradient(180deg, #6d31db, #3e1475);
  box-shadow: 0 14px 28px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.05);
}

.profile-avatar-fallback {
  position: relative;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 9px rgba(0,0,0,0.22);
}

.profile-avatar-fallback::before {
  display: none;
}

.profile-avatar-fallback::after {
  display: none;
}

.profile-header-copy {
  max-width: none;
  padding-top: 70px;
  flex: 1 1 auto;
}

.profile-identity-inline {
  gap: 14px;
}

.profile-main-meta {
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

.profile-submeta-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-name-row h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  color: #f6f8ff;
  text-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.role-uploader {
  color: #8fb2ff;
  text-shadow:
    0 0 10px rgba(143, 178, 255, 0.18),
    0 0 20px rgba(95, 130, 239, 0.1),
    0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.role-fansub,
.profile-name-row h1.role-team {
  color: #ffb38f;
  text-shadow:
    0 0 10px rgba(255, 179, 143, 0.18),
    0 0 20px rgba(255, 136, 92, 0.1),
    0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.role-admin {
  color: #ffca8c;
  text-shadow:
    0 0 10px rgba(255, 202, 140, 0.18),
    0 0 20px rgba(244, 165, 77, 0.1),
    0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.role-superadmin {
  color: #ff7ea8;
  text-shadow:
    0 0 12px rgba(255, 126, 168, 0.24),
    0 0 26px rgba(255, 111, 150, 0.16),
    0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.is-banned {
  color: #ff9e9e;
  text-shadow:
    0 0 10px rgba(255, 158, 158, 0.16),
    0 0 20px rgba(255, 117, 117, 0.1),
    0 10px 24px rgba(0,0,0,0.28);
}

.profile-name-row h1.has-premium-name-style {
  position: relative;
  color: var(--premium-name-color, #f4f6fb);
  transform-origin: left center;
}

.profile-name-row h1.has-premium-name-style[data-name-style="bold"] {
  font-weight: 950;
}

.profile-name-row h1.has-premium-name-style[data-name-style="italic"] {
  font-style: italic;
  font-weight: 800;
}

.profile-name-row h1.has-premium-name-style[data-name-style="spaced"] {
  font-weight: 850;
  letter-spacing: 0.12em;
}

.profile-name-row h1.has-premium-name-style[data-name-effect="glow"] {
  animation: profilePremiumNameGlow 2s ease-in-out infinite;
}

.profile-name-row h1.has-premium-name-style[data-name-effect="shimmer"] {
  color: transparent;
  background: linear-gradient(105deg, var(--premium-name-color) 15%, var(--premium-name-alt) 38%, #fff 50%, var(--premium-name-alt) 62%, var(--premium-name-color) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 220% 100%;
  animation: profilePremiumNameShimmer 2.7s linear infinite;
}

.profile-name-row h1.has-premium-name-style[data-name-effect="pulse"] {
  animation: profilePremiumNamePulse 1.8s ease-in-out infinite;
}

@keyframes profilePremiumNameGlow {
  0%, 100% { text-shadow: 0 0 8px color-mix(in srgb, var(--premium-name-color) 42%, transparent), 0 0 20px color-mix(in srgb, var(--premium-name-color) 18%, transparent); }
  50% { text-shadow: 0 0 13px color-mix(in srgb, var(--premium-name-color) 78%, transparent), 0 0 30px color-mix(in srgb, var(--premium-name-color) 38%, transparent); }
}

@keyframes profilePremiumNameShimmer {
  0% { background-position: 120% 50%; }
  100% { background-position: -120% 50%; }
}

@keyframes profilePremiumNamePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-name-row h1.has-premium-name-style { animation: none !important; }
}

.profile-edit-chip {
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  color: transparent;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: 4px;
  overflow: visible;
}

.profile-edit-chip img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  opacity: 0.66;
  filter: brightness(0.9) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.profile-edit-chip:hover:not(:disabled),
.profile-edit-chip:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 18px rgba(255, 255, 255, 0.1);
  filter: none;
}

.profile-edit-chip:hover:not(:disabled) img,
.profile-edit-chip:focus-visible img {
  opacity: 1;
  filter: brightness(1.28) drop-shadow(0 0 6px rgba(255, 255, 255, 0.72));
}

.profile-handle,
.profile-member-since {
  margin: 0;
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  line-height: 1.2;
}

.profile-member-since {
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}

.profile-role-tags {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -1px;
}

.profile-role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #eef2ff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  vertical-align: middle;
}

.profile-role-tag::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.profile-role-tag.role-uploader {
  background: linear-gradient(180deg, rgba(83, 118, 215, 0.22), rgba(83, 118, 215, 0.1));
  border-color: rgba(120, 152, 255, 0.22);
  color: #eef4ff;
}

.profile-role-tag.role-uploader::before {
  background-image: url("/RoleTools/Uploader.png");
}

.profile-role-tag.role-fansub,
.profile-role-tag.role-team {
  background: linear-gradient(180deg, rgba(255, 136, 92, 0.18), rgba(255, 136, 92, 0.08));
  border-color: rgba(255, 166, 120, 0.24);
  color: #ffeede;
}

.profile-role-tag.role-fansub::before {
  content: "\f32a";
  display: inline-grid;
  width: 12px;
  height: 12px;
  place-items: center;
  background: none;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  color: currentColor;
  font-family: "uicons-solid-rounded";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.profile-role-tag.role-team::before {
  width: 20px;
  height: 20px;
  background: #ffffff;
  background-image: none;
  -webkit-mask-image: url("/RoleTools/Fansub.png");
  mask-image: url("/RoleTools/Fansub.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.profile-role-tag.role-admin {
  background: linear-gradient(180deg, rgba(122, 89, 56, 0.46), rgba(122, 89, 56, 0.22));
  border-color: rgba(255, 171, 87, 0.34);
  color: #ffe9cf;
}

.profile-role-tag.role-admin::before {
  background-image: url("/RoleTools/Admin.png");
}

.profile-role-tag.role-superadmin {
  background: linear-gradient(180deg, rgba(255, 111, 150, 0.24), rgba(255, 111, 150, 0.1));
  border-color: rgba(255, 142, 177, 0.34);
  color: #fff1f7;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 14px rgba(255, 111, 150, 0.14);
}

.profile-role-tag.role-superadmin::before {
  background-image: url("/RoleTools/SuperAdmin.png");
}

.profile-role-tag.role-premium {
  color: #fff2b7;
  border-color: rgba(246, 194, 76, 0.38);
  background: linear-gradient(180deg, rgba(246, 194, 76, 0.24), rgba(194, 126, 28, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 18px rgba(246, 194, 76, 0.14);
}

.profile-role-tag.role-premium::before {
  content: "✦";
  width: auto;
  height: auto;
  color: #ffd86b;
  background: none;
  font-size: 12px;
  line-height: 1;
}

.profile-role-tag.role-uploader::before,
.profile-role-tag.role-fansub::before,
.profile-role-tag.role-admin::before,
.profile-role-tag.role-superadmin::before,
.profile-role-tag.role-team::before {
  display: inline-grid;
  width: 12px;
  height: 12px;
  place-items: center;
  background: none;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  color: currentColor;
  filter: none;
  font-family: "uicons-solid-rounded";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.profile-role-tag.role-uploader::before { content: "\f4e9"; }
.profile-role-tag.role-fansub::before { content: "\f32a"; }
.profile-role-tag.role-admin::before { content: "\f53f"; }
.profile-role-tag.role-superadmin::before { content: "\e5f1"; }
.profile-role-tag.role-team::before { content: "\f555"; }

.profile-role-tag.is-banned {
  background: linear-gradient(180deg, rgba(136, 61, 61, 0.42), rgba(136, 61, 61, 0.18));
  border-color: rgba(255, 138, 138, 0.28);
  color: #fff0f0;
}

.profile-role-tag.is-banned::before {
  content: none;
}

.profile-summary-bio {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: rgba(255,245,227,0.88);
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.profile-bio-block {
  width: 100%;
  max-width: 100%;
}

.profile-status {
  margin-top: 10px;
}

.profile-stats-standalone {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-overview .profile-section-tabs {
  --profile-tab-indicator-x: 0%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: flex-end;
  gap: 0;
  margin-top: 18px;
  padding: 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 89, 89, 0.14);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-overview .profile-section-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  z-index: 3;
  width: 25%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7474, #ff3434);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.32), 0 0 20px rgba(255, 59, 59, 0.16);
  transform: translateX(var(--profile-tab-indicator-x));
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
  pointer-events: none;
}

.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(1).is-active) { --profile-tab-indicator-x: 0%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(2).is-active) { --profile-tab-indicator-x: 100%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(3).is-active) { --profile-tab-indicator-x: 200%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(4).is-active) { --profile-tab-indicator-x: 300%; }

.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(1):is(:hover, :focus-visible)) { --profile-tab-indicator-x: 0%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(2):is(:hover, :focus-visible)) { --profile-tab-indicator-x: 100%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(3):is(:hover, :focus-visible)) { --profile-tab-indicator-x: 200%; }
.profile-overview .profile-section-tabs:has(.profile-section-tab:nth-child(4):is(:hover, :focus-visible)) { --profile-tab-indicator-x: 300%; }

.profile-overview .profile-section-tabs::-webkit-scrollbar {
  display: none;
}

.profile-overview .profile-section-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  color: rgba(255,255,255,0.52);
  min-height: 56px;
  padding: 0 28px 14px;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  letter-spacing: 0.045em;
  text-transform: none;
  text-rendering: geometricPrecision;
  font-kerning: normal;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, text-shadow 0.22s ease !important;
}

.profile-overview .profile-section-tab::after {
  display: none;
}

.profile-overview .profile-section-tab.is-active {
  color: #ffffff;
}

.profile-overview .profile-section-tab:hover,
.profile-overview .profile-section-tab:focus-visible {
  color: #ffffff;
  background: transparent !important;
  box-shadow: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.46), 0 0 16px rgba(255, 255, 255, 0.2);
}

.profile-overview .profile-section-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.88;
}

.profile-overview .profile-section-tab-icon-image {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
  opacity: 0.92;
}

.profile-overview .profile-section-tab-text {
  white-space: nowrap;
  display: inline-block;
  transform: translateY(-0.01em);
}

.profile-overview .profile-section-tab.is-active .profile-section-tab-icon-image {
  opacity: 1;
}

.profile-overview .profile-section-tab:hover .profile-section-tab-icon-image,
.profile-overview .profile-section-tab:focus-visible .profile-section-tab-icon-image {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.profile-overview .profile-section-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.profile-panel {
  margin-top: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-tab-panel[hidden] {
  display: none !important;
}

.profile-tab-panel.is-active {
  display: block;
}

.profile-tab-panel.is-active[data-profile-panel="general"] {
  animation: profileGeneralSectionIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-tab-panel.is-active[data-profile-panel="lists"] {
  animation: profileListsSectionIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-tab-panel.is-active[data-profile-panel="stats"] {
  animation: profileStatsSectionIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-tab-panel.is-active[data-profile-panel="reviews"] {
  animation: profileReviewsSectionIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes profileGeneralSectionIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profileListsSectionIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes profileStatsSectionIn {
  from {
    opacity: 0;
    transform: scale(0.965);
    filter: blur(6px);
  }
  65% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes profileReviewsSectionIn {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-tab-panel.is-active[data-profile-panel] {
    animation: none;
  }
}

.profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-panel-kicker {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-panel-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  font-kerning: normal;
}

.profile-recent-row-wrap {
  position: relative;
  padding: 0 34px;
}

.profile-recent-grid {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.profile-recent-grid::-webkit-scrollbar {
  display: none;
}

.profile-row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,12,14,0.74);
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease !important;
}

.profile-row-nav:hover,
.profile-row-nav:active {
  transform: translateY(-50%) !important;
}

.profile-row-nav:hover {
  background: rgba(18,18,22,0.9);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  filter: brightness(1.08);
}

.profile-row-nav.prev {
  left: 12px;
}

.profile-row-nav.next {
  right: 12px;
}

.profile-row-nav::before {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.profile-row-nav.prev::before {
  content: "‹";
}

.profile-row-nav.next::before {
  content: "›";
}

.profile-recent-card {
  display: grid;
  flex: 0 0 calc(50% - 8px);
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 138px;
  scroll-snap-align: start;
}

.profile-recent-card:hover,
.profile-recent-card:active {
  transform: none;
}

.profile-recent-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 18px 34px rgba(0,0,0,0.2);
  filter: brightness(1.03);
}

.profile-recent-poster-wrap {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.profile-recent-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.profile-recent-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, rgba(125, 65, 255, 0.78), rgba(31, 158, 255, 0.48));
}

.profile-recent-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.profile-recent-copy strong {
  font-size: 19px;
  line-height: 1.2;
}

.profile-recent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.54);
  font-size: 13px;
  font-weight: 600;
}

.profile-recent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(45, 214, 255, 0.14);
  border: 1px solid rgba(65, 221, 255, 0.2);
  color: #bff6ff;
}

.profile-recent-sub {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
}

.profile-empty-panel {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  width: 100%;
  padding: 24px;
  text-align: center;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,0.7);
  background: transparent;
}

.profile-empty-panel p,
.profile-empty-panel strong {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.profile-recent-grid > .profile-empty-panel,
.profile-favorite-grid > .profile-empty-panel {
  flex: 0 0 100%;
}

.profile-favorite-grid {
  display: flex;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.profile-favorite-grid .profile-empty-panel {
  width: 100%;
}

.profile-favorite-card {
  flex: 0 0 160px;
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-favorite-link {
  display: block;
  text-decoration: none;
}

.profile-favorite-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 250px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.profile-favorite-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(255, 59, 59, 0.1) 100%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-favorite-card:hover .profile-favorite-media::after {
  opacity: 1;
}

.profile-favorite-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-favorite-card:hover .profile-favorite-image {
  transform: scale(1.08) rotateX(2deg);
}

.profile-favorite-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, rgba(125, 65, 255, 0.78), rgba(31, 158, 255, 0.48));
}

.profile-favorite-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.76);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(5px);
  opacity: 0.9;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.profile-favorite-card:hover .profile-favorite-badge {
  transform: translateY(0);
  opacity: 1;
  background: rgba(12, 14, 22, 0.82);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

.profile-favorite-name {
  margin: 10px 4px 0;
  color: #e8ebf1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-favorite-card:hover .profile-favorite-name {
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
}

.profile-list-block + .profile-list-block {
  margin-top: 30px;
}

.profile-list-subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-list-subhead h3 {
  margin: 0;
  color: #f4f6fb;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.profile-list-add-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-list-add-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.profile-list-add-btn-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.profile-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  padding: 0 34px;
}

.profile-list-grid > .profile-empty-panel {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 180px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
}

.profile-list-card {
  min-width: 0;
}

.profile-list-link {
  display: block;
  text-decoration: none;
}

.profile-list-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.profile-list-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-list-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
  background: linear-gradient(135deg, rgba(31, 158, 255, 0.66), rgba(255, 87, 132, 0.58));
}

.profile-list-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile-list-copy {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.profile-list-copy strong {
  color: #eef2f8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-list-copy span {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.3;
}

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

.profile-stats-chart-card,
.profile-stats-donut-card {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    radial-gradient(circle at top right, rgba(72, 157, 255, 0.08), transparent 28%);
  box-shadow: 0 22px 48px rgba(0,0,0,0.2);
}

.profile-stats-donut-card {
  grid-column: 1 / -1;
}

.profile-stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-stats-card-head h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  color: #f8fbff;
}

.profile-stats-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 700;
}

.profile-stats-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-stats-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.profile-stats-legend .is-blue {
  background: #42a5ff;
}

.profile-stats-legend .is-green {
  background: #66d072;
}

.profile-line-chart {
  min-height: 300px;
}

.profile-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-chart-grid-line {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}

.profile-chart-axis-label {
  fill: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 700;
}

.profile-chart-path-blue {
  fill: none;
  stroke: #42a5ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-chart-path-green {
  fill: none;
  stroke: #66d072;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-chart-area-blue {
  fill: rgba(66, 165, 255, 0.12);
}

.profile-chart-area-green {
  fill: rgba(102, 208, 114, 0.12);
}

.profile-chart-dot-blue {
  fill: #42a5ff;
}

.profile-chart-dot-green {
  fill: #66d072;
}

.profile-donut-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.profile-genre-donut {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.profile-genre-donut::after {
  content: none;
}

.profile-genre-donut-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}

.profile-genre-donut-track,
.profile-genre-segment {
  fill: none;
  stroke-width: 34;
}

.profile-genre-donut-track {
  stroke: rgba(255,255,255,0.07);
}

.profile-genre-segment {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.profile-genre-segment.is-dimmed {
  opacity: 0.36;
}

.profile-genre-segment.is-active {
  stroke-width: 39;
  filter: brightness(1.14) drop-shadow(0 0 8px color-mix(in srgb, currentColor 42%, transparent));
}

.profile-genre-donut-center {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #121318;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055), 0 10px 25px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: -1;
}

.profile-genre-donut-center strong {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.profile-genre-donut-center span {
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.profile-genre-tooltip {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  min-width: 164px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border: 1px solid rgba(108,53,255,0.52);
  border-radius: 9px;
  background: rgba(11,11,19,0.96);
  box-shadow: 0 12px 28px rgba(0,0,0,0.34);
  transform: translateX(-50%);
  pointer-events: none;
}

.profile-genre-tooltip[hidden] {
  display: none;
}

.profile-genre-tooltip strong,
.profile-genre-tooltip span {
  display: flex;
  align-items: center;
}

.profile-genre-tooltip strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 12px;
}

.profile-genre-tooltip span {
  gap: 7px;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
}

.profile-genre-tooltip span i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 2px;
}

.profile-genre-tooltip span b {
  color: inherit;
  font-weight: 600;
}

.profile-genre-legend {
  display: grid;
  gap: 12px;
}

.profile-genre-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profile-genre-legend-item:hover,
.profile-genre-legend-item:focus-visible,
.profile-genre-legend-item.is-active {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.12);
  transform: translateX(3px);
}

.profile-genre-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef3fb;
  font-weight: 700;
}

.profile-genre-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.profile-genre-legend-value {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .profile-genre-donut {
    width: min(100%, 292px);
  }

  .profile-genre-donut-center strong {
    font-size: 32px;
  }

  .profile-genre-legend-item {
    padding: 10px 12px;
  }

  .profile-genre-legend-value {
    font-size: 11px;
  }
}

.profile-reviews-list {
  display: grid;
  gap: 16px;
}

.profile-reviews-headline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-reviews-average {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dcefff;
  font-size: 13px;
  font-weight: 800;
}

.profile-review-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.profile-review-title {
  display: block;
  color: #f5f8fd;
  font-size: 18px;
  line-height: 1.25;
}

.profile-review-text {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.6;
}

.profile-review-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.54);
  font-size: 13px;
  font-weight: 700;
}

.profile-review-meta-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dbeeff;
}

.profile-review-meta-star {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.profile-stat-box {
  min-height: 120px;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-stat-copy {
  justify-items: center;
}

@media (max-width: 980px) {
  .profile-stats-standalone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-overview .profile-section-tabs {
    gap: 0;
  }

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

  .profile-recent-card {
    flex-basis: calc(50% - 6px);
  }

  .profile-favorite-grid {
    gap: 14px;
  }

  .profile-favorite-card {
    flex-basis: clamp(145px, 22vw, 180px);
  }

  .profile-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
    padding: 0 26px;
  }

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

  .profile-stats-donut-card {
    grid-column: auto;
  }

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

@media (min-width: 641px) and (max-width: 980px) {
  .profile-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .profile-banner-shell {
    height: 220px;
    min-height: 220px;
    border-radius: 22px;
  }

  .profile-banner-content {
    min-height: 220px;
    padding: 16px;
  }

  .profile-banner-content::before {
    right: 60px;
    top: 18px;
    font-size: 10px;
  }

  .profile-header {
    width: calc(100% - 24px);
    margin: -18px 0 0 12px;
    padding: 0;
    border-radius: 24px;
  }

  .profile-header-avatar {
    margin-top: 8px;
    padding-left: 12px;
  }

  .profile-presence {
    min-width: 68px;
    margin-top: 7px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .profile-avatar-upload-hero {
    width: 88px;
    height: 88px;
  }

  .profile-name-row {
    align-items: flex-start;
    gap: 8px;
  }

  .profile-submeta-row {
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-edit-chip {
    width: auto;
  }

  .profile-summary-bio {
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  .profile-header-copy {
    padding: 34px 14px 4px;
    max-width: 100%;
  }

  .profile-main-meta {
    padding: 0;
    gap: 6px;
  }

  .profile-name-row h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .profile-handle,
  .profile-member-since {
    font-size: 13px;
  }

  .profile-edit-chip {
    width: 38px;
    height: 38px;
  }

  .profile-edit-chip img {
    width: 16px;
    height: 16px;
  }

  .profile-stats-standalone {
    margin-top: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-overview .profile-section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    padding-right: 0;
    gap: 0;
    overflow: hidden;
  }

  .profile-overview .profile-section-tab {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    padding: 0 8px 12px;
    font-size: 11px;
    gap: 6px;
    letter-spacing: 0.01em;
  }

  .profile-overview .profile-section-tab-icon,
  .profile-overview .profile-section-tab-icon-image {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .profile-panel {
    padding: 0;
    border-radius: 0;
  }

  .profile-recent-card {
    flex-basis: calc(100% - 2px);
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 118px;
    padding: 12px;
  }

  .profile-recent-row-wrap {
    padding: 0 20px;
  }

  .profile-row-nav {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .profile-recent-copy strong {
    font-size: 17px;
  }

  .profile-favorite-grid {
    gap: 14px;
    justify-content: flex-start;
  }

  .profile-favorite-card {
    flex: 0 0 calc(50% - 7px);
    min-width: 0;
  }

  .profile-favorite-media {
    width: 100%;
    height: clamp(170px, 48vw, 220px);
  }

  .profile-favorite-name {
    margin-left: 0;
    margin-right: 0;
  }

  .profile-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    gap: 16px;
  }

  .profile-list-media {
    height: clamp(170px, 48vw, 220px);
  }

  .profile-stats-chart-card,
  .profile-stats-donut-card {
    padding: 18px;
    border-radius: 20px;
  }

  .profile-review-card {
    padding: 16px;
    border-radius: 18px;
  }

  .profile-line-chart {
    min-height: 240px;
  }

  .profile-stat-box {
    padding: clamp(14px, 3.8vw, 16px) clamp(12px, 3.6vw, 14px);
    min-height: clamp(84px, 24vw, 96px);
    gap: clamp(10px, 3vw, 14px);
  }

  .profile-stat-icon {
    width: clamp(42px, 11vw, 48px);
    height: clamp(42px, 11vw, 48px);
    flex-basis: clamp(42px, 11vw, 48px);
  }

  .profile-stat-box strong {
    font-size: clamp(16px, 4.8vw, 18px);
  }

  .profile-stat-label {
    font-size: clamp(11px, 3.1vw, 12px);
  }
}

@media (max-width: 420px) {
  .profile-stats-standalone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-stat-box {
    min-height: 76px;
    padding: 12px 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .profile-stat-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .profile-stat-icon::after {
    transform: scale(0.88);
    transform-origin: center;
  }

  .profile-stat-box strong {
    font-size: 15px;
  }

  .profile-stat-label {
    font-size: 10.5px;
  }

  .profile-overview .profile-section-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-overview .profile-section-tab {
    min-height: 46px;
    padding: 0 4px 11px;
    font-size: clamp(9.5px, 2.75vw, 11px);
    gap: 4px;
    letter-spacing: 0;
  }

  .profile-overview .profile-section-tab-text {
    min-width: 0;
  }

  .profile-overview .profile-section-tab-icon,
  .profile-overview .profile-section-tab-icon-image {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

.profile-edit-modal[hidden] {
  display: none;
}

.profile-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.profile-edit-modal.is-open {
  opacity: 1;
}

.profile-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.profile-edit-modal.is-open .profile-edit-backdrop {
  opacity: 1;
}

.profile-edit-dialog {
  position: relative;
  width: min(860px, calc(100% - 28px));
  max-height: min(88vh, 920px);
  margin: 28px auto;
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1b1b20;
  box-shadow: 0 24px 64px rgba(0,0,0,0.42);
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.24s ease;
}

.profile-edit-modal.is-open .profile-edit-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-edit-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.profile-edit-title-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 6px 10px 6px 10px;
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  transform: rotate(-38deg);
}

.profile-edit-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 28px;
}

.profile-edit-close-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.profile-edit-form {
  padding: 26px 28px 28px;
}

.profile-edit-section-title {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 800;
}

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

.profile-edit-field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-edit-field span {
  color: rgba(255,255,255,0.46);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-field input,
.profile-edit-field select,
.profile-edit-field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f1014;
  color: #fff;
  padding: 18px 20px;
  font: inherit;
}

.profile-edit-field select {
  appearance: none;
}

.profile-edit-field input[type="file"] {
  padding: 14px 16px;
}

.profile-edit-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-edit-field textarea {
  resize: none;
  min-height: 132px;
  max-height: 132px;
  line-height: 1.55;
}

.profile-edit-counter {
  color: rgba(255,255,255,0.42);
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
}

.profile-edit-field input:focus,
.profile-edit-field select:focus,
.profile-edit-field textarea:focus {
  outline: none;
  border-color: rgba(255, 59, 59, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.12);
}

.profile-edit-status {
  margin-bottom: 18px;
  color: #b6ffd4;
}

.profile-edit-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.profile-danger-btn {
  min-height: 48px;
  border: 1px solid rgba(255, 120, 120, 0.18);
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.14), rgba(255, 59, 59, 0.08));
  color: #ffc6c6;
  border-radius: 16px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(27,27,32,0.72), #232329 18%);
  padding-bottom: 8px;
}

.profile-edit-actions .profile-secondary-btn,
.profile-edit-actions .profile-primary-btn {
  min-width: 132px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
}

.profile-edit-actions .profile-secondary-btn {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.profile-edit-actions .profile-primary-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b) !important;
  border-color: rgba(255, 59, 59, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(255, 59, 59, 0.24) !important;
}

.profile-edit-form .profile-edit-actions .profile-primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7a7a, #ff4b4b) !important;
  box-shadow: 0 16px 34px rgba(255, 59, 59, 0.28) !important;
}

.profile-edit-form .profile-edit-actions .profile-secondary-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08) !important;
}

@media (max-width: 640px) {
  .profile-edit-dialog {
    width: min(100% - 16px, 100%);
    margin: 8px auto;
    border-radius: 20px;
  }

  .profile-edit-head,
  .profile-edit-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-actions {
    flex-direction: column;
  }

  .profile-edit-actions .profile-primary-btn,
  .profile-edit-actions .profile-secondary-btn,
  .profile-danger-btn {
    width: 100%;
  }
}

/* Live-preview profile editor */
.profile-edit-dialog--profile {
  width: min(1120px, calc(100% - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 0 0, rgba(255, 76, 102, 0.08), transparent 30%),
    linear-gradient(145deg, #18191e, #111216 58%, #0d0e12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.profile-edit-dialog--profile .profile-edit-head {
  min-height: 82px;
  padding: 16px 22px 16px 28px;
  background: rgba(18, 19, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-edit-dialog--profile .profile-edit-head h2 {
  order: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.025em;
}

.profile-editor-save-state {
  order: 1;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.profile-editor-save-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.profile-edit-modal.is-dirty .profile-editor-save-state {
  border-color: rgba(255, 158, 98, 0.2);
  color: #ffd5b8;
  background: rgba(255, 126, 72, 0.07);
}

.profile-edit-modal.is-dirty .profile-editor-save-state::before {
  background: #ff945f;
  box-shadow: 0 0 0 4px rgba(255, 126, 72, 0.09), 0 0 12px rgba(255, 126, 72, 0.3);
}

.profile-edit-dialog--profile .profile-edit-close {
  order: 2;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-edit-dialog--profile .profile-edit-form {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto auto;
  overflow: hidden;
}

.profile-editor-layout {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(420px, 1.16fr);
  gap: 24px;
  align-items: start;
  padding: 24px 26px;
}

.profile-editor-layout::-webkit-scrollbar {
  width: 6px;
}

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

.profile-editor-preview {
  position: sticky;
  top: 0;
  align-self: start;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #101116;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.profile-editor-preview-banner {
  position: relative;
  height: 190px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    linear-gradient(120deg, #30105b, #66289d);
}

.profile-editor-preview-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.04), rgba(8, 8, 12, 0.38));
  pointer-events: none;
}

.profile-editor-preview-banner > img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-editor-preview-avatar {
  position: absolute;
  left: 22px;
  bottom: -38px;
  z-index: 2;
  width: 82px;
  height: 82px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #121319;
  background: linear-gradient(180deg, #7040db, #39136b);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.profile-editor-preview-avatar img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-editor-preview-avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
}

.profile-editor-preview-copy {
  display: grid;
  gap: 6px;
  padding: 52px 22px 18px;
}

.profile-editor-preview-kicker {
  color: #ff8585;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-editor-preview-copy strong {
  overflow: hidden;
  color: #f7f8fb;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-editor-preview-copy small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 650;
}

.profile-editor-preview-copy p {
  min-height: 52px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-editor-preview-note {
  margin: 0 18px 18px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.profile-editor-fields {
  min-width: 0;
  padding: 4px 2px 0;
}

.profile-edit-dialog--profile .profile-edit-section-title {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16em;
}

.profile-edit-dialog--profile .profile-edit-grid {
  gap: 14px;
}

.profile-edit-dialog--profile .profile-edit-field {
  gap: 8px;
  margin-bottom: 14px;
}

.profile-edit-dialog--profile .profile-edit-field input,
.profile-edit-dialog--profile .profile-edit-field textarea {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(7, 8, 11, 0.72);
  padding: 15px 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-dialog--profile .profile-edit-field textarea {
  min-height: 118px;
  max-height: 180px;
  resize: vertical;
}

.profile-editor-appearance-title {
  margin-top: 8px !important;
}

.profile-editor-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-editor-media-btn {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-align: left;
}

.profile-editor-media-btn:hover,
.profile-editor-media-btn:focus-visible {
  border-color: rgba(255, 118, 118, 0.24);
  background: rgba(255, 92, 92, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.035);
}

.profile-editor-media-btn--premium {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-color: rgba(246, 196, 83, 0.16);
  background: linear-gradient(115deg, rgba(246, 196, 83, 0.07), rgba(255, 255, 255, 0.025) 62%);
}

.profile-editor-media-btn--premium::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -30%;
  width: 34%;
  transform: rotate(15deg);
  background: linear-gradient(90deg, transparent, rgba(255, 230, 155, 0.1), transparent);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.profile-editor-media-btn--premium:hover::after {
  transform: translateX(430%) rotate(15deg);
}

.profile-editor-media-btn--premium.is-locked {
  opacity: 0.72;
}

.profile-editor-media-btn--premium.is-locked:hover {
  border-color: rgba(246, 196, 83, 0.26);
  background: rgba(246, 196, 83, 0.055);
}

.profile-editor-media-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 118, 118, 0.14);
}

.profile-editor-media-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.profile-editor-media-icon--premium {
  color: #f5cd68;
  background: rgba(246, 196, 83, 0.1);
  border-color: rgba(246, 196, 83, 0.2);
  font-size: 17px;
}

.profile-editor-media-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-editor-media-copy strong {
  font-size: 13px;
}

.profile-premium-mini {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 3px 5px;
  border: 1px solid rgba(246, 196, 83, 0.2);
  border-radius: 5px;
  color: #f5d477;
  background: rgba(246, 196, 83, 0.08);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.profile-premium-media-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(246, 196, 83, 0.12);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(246, 196, 83, 0.035);
  font-size: 10px;
  line-height: 1.45;
}

.profile-premium-media-note > i {
  color: #f5d477;
  font-size: 13px;
}

.profile-premium-media-note span {
  flex: 1;
}

.profile-premium-media-note a {
  flex: 0 0 auto;
  color: #f6d67c;
  font-weight: 850;
  text-decoration: none;
}

.profile-edit-modal.is-premium-user .profile-premium-media-note a {
  display: none;
}

/* Keep the profile hero visibly below the fixed desktop header. */
body.profile-page .profile-overview {
  margin-top: 56px !important;
}

@media (max-width: 768px) {
  body.profile-page .profile-overview {
    margin-top: 22px !important;
  }
}

.profile-editor-media-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-dialog--profile .profile-edit-status {
  margin: 0 26px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.profile-editor-danger-copy {
  margin: 14px 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 104, 104, 0.1);
  border-radius: 14px 14px 0 0;
  background: rgba(255, 76, 76, 0.035);
}

.profile-editor-danger-copy > div {
  display: grid;
  gap: 3px;
}

.profile-editor-danger-copy strong {
  color: rgba(255, 224, 224, 0.86);
  font-size: 12px;
}

.profile-editor-danger-copy small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.profile-editor-danger-copy > img {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(50%) saturate(1618%) hue-rotate(310deg) brightness(103%);
  opacity: 0.72;
}

.profile-edit-dialog--profile .profile-edit-tools {
  margin: 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 104, 104, 0.1);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(8, 9, 12, 0.42);
}

#profile-remove-background {
  grid-column: auto;
}

.profile-edit-dialog--profile .profile-danger-btn {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profile-edit-dialog--profile .profile-danger-btn img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) saturate(100%) invert(72%) sepia(19%) saturate(1120%) hue-rotate(309deg) brightness(104%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-edit-dialog--profile .profile-danger-btn:hover:not(:disabled),
.profile-edit-dialog--profile .profile-danger-btn:focus-visible {
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 70, 70, 0.085);
  color: #ffc6c6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  outline: none;
}

.profile-edit-dialog--profile .profile-danger-btn:hover:not(:disabled) img,
.profile-edit-dialog--profile .profile-danger-btn:focus-visible img {
  opacity: 0.95;
  transform: scale(1.06);
}

.profile-edit-dialog--profile .profile-edit-actions {
  position: static;
  margin: 14px 0 0;
  padding: 14px 26px 18px;
  border-top-color: rgba(255, 255, 255, 0.07);
  background: rgba(18, 19, 24, 0.96);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.18);
}

.profile-edit-dialog--profile .profile-edit-actions .profile-secondary-btn,
.profile-edit-dialog--profile .profile-edit-actions .profile-primary-btn {
  min-width: 124px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.profile-edit-dialog--profile .profile-edit-actions .profile-secondary-btn {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.profile-edit-dialog--profile .profile-edit-actions .profile-primary-btn {
  border-color: rgba(255, 82, 82, 0.32) !important;
  background: linear-gradient(135deg, #ff5757, #e93645) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(223, 44, 61, 0.24) !important;
}

.profile-edit-dialog--profile .profile-edit-actions .profile-primary-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none !important;
  filter: saturate(0.68);
}

@media (max-width: 900px) {
  .profile-edit-dialog--profile {
    width: min(760px, calc(100% - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 12px auto;
  }

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

  .profile-editor-preview {
    position: relative;
  }

  .profile-editor-preview-banner {
    height: 170px;
  }

  .profile-editor-preview-copy p {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .profile-edit-dialog--profile {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .profile-edit-dialog--profile .profile-edit-head {
    min-height: 68px;
    padding: 12px 14px 12px 18px;
  }

  .profile-edit-dialog--profile .profile-edit-head h2 {
    font-size: 21px;
  }

  .profile-edit-dialog--profile .profile-edit-title-icon,
  .profile-editor-save-state {
    display: none;
  }

  .profile-editor-layout {
    gap: 20px;
    padding: 16px;
  }

  .profile-editor-preview-banner {
    height: 145px;
  }

  .profile-editor-preview-avatar {
    width: 72px;
    height: 72px;
    bottom: -34px;
  }

  .profile-editor-preview-copy {
    padding: 46px 17px 14px;
  }

  .profile-editor-preview-note {
    display: none;
  }

  .profile-edit-dialog--profile .profile-edit-grid,
  .profile-editor-media-grid {
    grid-template-columns: 1fr;
  }

  .profile-editor-media-btn {
    min-height: 66px;
  }

  .profile-editor-danger-copy,
  .profile-edit-dialog--profile .profile-edit-tools,
  .profile-edit-dialog--profile .profile-edit-status {
    margin-left: 16px;
    margin-right: 16px;
  }

  .profile-editor-danger-copy small {
    display: none;
  }

  .profile-edit-dialog--profile .profile-edit-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profile-remove-background {
    grid-column: 1 / -1;
  }

  .profile-edit-dialog--profile .profile-danger-btn {
    width: 100%;
    padding: 0 8px;
    font-size: 10px;
  }

  .profile-edit-dialog--profile .profile-edit-actions {
    flex-direction: row;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }

  .profile-edit-dialog--profile .profile-edit-actions .profile-secondary-btn,
  .profile-edit-dialog--profile .profile-edit-actions .profile-primary-btn {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    min-height: 46px;
    padding: 0 12px;
  }
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
  box-shadow: none;
  outline: none;
}

.mobile-menu-toggle:hover {
  background: transparent;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f3f6ff;
  transition: transform 0.24s ease, opacity 0.24s ease, width 0.24s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-toggle span:nth-child(2) {
  width: 14px;
}

.mobile-menu-toggle:hover span {
  background: #ff9f9f;
  box-shadow: 0 0 10px rgba(255, 104, 104, 0.45);
}

body.drawer-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.drawer-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.drawer-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.watch-page .search-panel {
  position: fixed;
  top: 94px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px) scale(0.93);
  width: clamp(320px, 38vw, 460px);
  max-width: 92vw;
  max-height: 76vh;
  min-height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 102, 102, 0.26);
  background: rgba(9, 12, 20, 0.62);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 96, 96, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
  z-index: 1205;
  overflow: hidden;
  transform-origin: top center;
  transition: transform 0.32s ease, opacity 0.28s ease, width 0.28s ease;
}

body.watch-page .search-panel.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(0.97);
}

body.watch-page .search-panel.active.is-expanded {
  transform: translateX(-50%) translateY(0) scale(1);
}

body.watch-page .search-box {
  position: relative;
  padding: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

body.watch-page .search-input {
  width: 100%;
  padding: 10px 42px 10px 12px;
  font-size: 14px;
  background: rgba(8, 12, 22, 0.4);
  border: 1px solid rgba(255, 118, 118, 0.22);
  border-radius: 10px;
  color: #ffe8e8;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.watch-page .search-input:focus {
  background: rgba(8, 12, 22, 0.55);
  border-color: rgba(255, 110, 110, 0.78);
  box-shadow: 0 0 0 2px rgba(255, 110, 110, 0.18), 0 0 20px rgba(255, 98, 98, 0.18);
}

body.watch-page .search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.watch-page .search-button,
body.watch-page .close-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

body.watch-page .search-button {
  right: 54px;
  width: 28px;
  height: 28px;
}

body.watch-page .close-search {
  right: 20px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 116, 116, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.watch-page .close-search:hover {
  background: rgba(255, 99, 99, 0.16);
  border-color: rgba(255, 99, 99, 0.42);
  color: #ffdddd;
  transform: translateY(-50%);
}

body.watch-page .search-results {
  max-height: 0;
  opacity: 0;
  overflow-y: auto;
  padding: 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 122, 0.3) transparent;
  transition: max-height 0.36s ease, opacity 0.22s ease, padding 0.22s ease;
}

body.watch-page .search-panel.has-results .search-results {
  max-height: var(--search-results-h, 180px);
  opacity: 1;
  padding: 10px;
}

.search-result-item {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 120, 0.13);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}

.search-result-item.result-enter {
  animation: searchResultEnter 0.34s ease forwards;
}

@keyframes searchResultEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result-item:hover {
  background: rgba(255, 104, 104, 0.09);
  border-color: rgba(255, 104, 104, 0.58);
}

body.watch-page .search-result-item a {
  text-decoration: none;
}

.search-result-link,
.mobile-drawer-result {
  text-decoration: none;
  color: inherit;
}

body.watch-page .search-result-link {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
}

body.watch-page .search-result-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.search-result-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.search-result-item:hover img {
  transform: scale(1.05);
}

body.watch-page .search-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: center;
}

body.watch-page .search-result-title {
  margin: 0;
  color: #f3f6ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.watch-page .search-result-episode {
  display: none;
}

@media (max-width: 768px) {
  body.watch-page .search-panel {
    width: 92%;
    max-width: 360px;
    max-height: 66vh;
    top: 76px;
  }

  body.watch-page .search-results {
    height: calc(66vh - 72px);
  }

  body.watch-page .search-result-link {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  body.watch-page .search-result-title {
    font-size: 11px;
  }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  background:
    radial-gradient(120% 90% at 110% 100%, rgba(70, 40, 40, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(14, 15, 22, 0.98), rgba(8, 8, 12, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.58);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1101;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 6px;
}

.mobile-drawer-title {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer-search {
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-search-input {
  width: 100%;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  color: #e9edf4;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-drawer-search-input::placeholder {
  color: rgba(233, 237, 244, 0.55);
}

.mobile-drawer-search-input:focus {
  border-color: rgba(255, 59, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}

.mobile-drawer-search-results {
  display: none;
  max-height: 44vh;
  overflow-y: auto;
  padding: 8px 2px 2px;
  margin-top: -2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-search-results.active {
  display: grid;
  gap: 6px;
}

.mobile-drawer-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 4px;
  text-decoration: none;
  border-radius: 10px;
  color: #e7ebf1;
  transition: background 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: drawerResultIn 0.42s ease forwards;
  animation-delay: calc(var(--result-index, 0) * 80ms);
}

.mobile-drawer-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-drawer-result img {
  width: 38px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111;
}

.mobile-drawer-result span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #e1e6ef;
}

@keyframes drawerResultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-drawer-nav {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.mobile-drawer-nav .nav-item {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 10px;
  background: transparent;
  color: #d7dde7;
}

.mobile-drawer-nav .nav-item::after {
  display: none;
}

.mobile-drawer-nav .nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
  filter: brightness(1.9) grayscale(1);
}

.mobile-drawer-actions {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.mobile-drawer-profile-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-drawer-profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 6px;
  text-decoration: none;
  color: #f2f4f8;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-drawer-profile-link.has-banner {
  display: block;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  padding: 0;
  text-align: left;
  min-height: auto;
  z-index: 2;
}

.mobile-drawer-profile-banner {
  width: 100%;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  margin-bottom: 0;
}

.mobile-drawer-profile-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.mobile-drawer-profile-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6f3159, #2d2141 55%, #12131a);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.mobile-drawer-profile-avatar.has-image {
  background: rgba(255,255,255,0.06);
}

.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-avatar,
.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-copy {
  position: absolute;
  z-index: 2;
}

.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-avatar {
  left: 12px;
  bottom: 8px;
}

.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-copy {
  left: 64px;
  bottom: 18px;
}

.mobile-drawer-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-drawer-profile-copy {
  font-size: 16px;
  font-weight: 800;
  color: #f3f4f7;
}

.mobile-drawer-profile-action {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: #d9dde6;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.mobile-drawer-profile-action:hover {
  transform: none;
  filter: none;
}

.mobile-drawer-profile-action.is-logout {
  color: #ff6d6d;
}

.mobile-drawer-profile-action.is-admin {
  color: #ffd4d4;
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 75, 75, 0.08);
  text-decoration: none;
}

.mobile-drawer-profile-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

.mobile-drawer-profile-action.is-logout .mobile-drawer-profile-action-icon {
  filter: brightness(0) saturate(100%) invert(61%) sepia(67%) saturate(3022%) hue-rotate(326deg) brightness(102%) contrast(102%);
}

.mobile-drawer-profile-action.is-notify .mobile-drawer-profile-action-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

.mobile-drawer-profile-action-chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
}

.mobile-drawer-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.mobile-drawer-actions .btn.login {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-drawer-actions .btn.register {
  background: #a61b1b;
  border: 1px solid rgba(255, 72, 72, 0.4);
}

.mobile-drawer-actions .btn:hover {
  transform: none;
  box-shadow: none;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.drawer-open {
  overflow: hidden;
}

.footer {
  width: 100%;
  margin: clamp(24px, 3.2vw, 38px) 0 0;
  padding: clamp(14px, 1.8vw, 22px) var(--fluid-gutter) clamp(10px, 1.2vw, 12px);
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.12), transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.footer-content {
  width: min(calc(100% - (var(--fluid-gutter) * 2)), var(--fluid-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(240px, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  justify-content: start;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-side {
  justify-self: end;
  width: 100%;
  max-width: clamp(360px, 38vw, 500px);
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(170px, 1fr);
  gap: clamp(10px, 1.1vw, 14px);
  align-items: flex-start;
}

.footer-brand {
  display: grid;
  gap: clamp(5px, 0.8vw, 8px);
  max-width: clamp(320px, 42vw, 430px);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: clamp(188px, 16.5vw, 220px);
  height: clamp(76px, 6.8vw, 90px);
  overflow: hidden;
  text-decoration: none;
  margin-top: -10px;
}

.footer-logo {
  width: clamp(180px, 17vw, 235px);
  height: clamp(72px, 7vw, 92px);
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: translateX(-12.5%);
  transform-origin: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.footer-text {
  color: rgba(230, 237, 247, 0.82);
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.5;
  max-width: 430px;
}

.footer-text-strong {
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 400;
  color: rgba(230, 237, 247, 0.82);
  margin-top: -12px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(7px, 1vw, 10px);
  margin-top: 1px;
}

.footer-badges span {
  position: relative;
  padding: 0 0 0 14px;
  border-radius: 0;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  color: rgba(255, 214, 214, 0.92);
  background: transparent;
  border: none;
  line-height: 1.3;
}

.footer-badges span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7b7b, #ff6e6e);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255, 110, 110, 0.45);
}

.footer-side h4 {
  font-size: clamp(14px, 1.25vw, 18px);
  color: rgba(255, 228, 228, 0.9);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: left;
  width: auto;
  margin-left: 0;
  margin-top: 0;
}

.footer-socials {
  display: flex;
  justify-content: flex-start;
  gap: clamp(8px, 0.9vw, 12px);
  margin-bottom: 0;
  width: auto;
  margin-left: 0;
}

.footer-social-link {
  width: clamp(42px, 3.1vw, 50px);
  height: clamp(42px, 3.1vw, 50px);
  border-radius: clamp(11px, 0.9vw, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: rgba(168, 168, 168, 0.95);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 120, 120, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  animation: footerSocialIn 0.45s ease forwards;
  animation-delay: calc(var(--stagger, 0) * 0.07s + 0.04s);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 110, 110, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.footer-social-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(120, 120, 120, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  color: #d8d8d8;
}

.footer-social-link[aria-label="Instagram"]:hover {
  color: #e1306c;
}

.footer-social-link[aria-label="TikTok"]:hover {
  color: #25f4ee;
}

.footer-social-link[aria-label="Discord"]:hover {
  color: #5865f2;
}

.footer-social-link:hover::before {
  opacity: 1;
}

.footer-social-link:active {
  transform: translateY(-1px) scale(0.95);
}

.footer-social-svg {
  width: clamp(19px, 1.45vw, 23px);
  height: clamp(19px, 1.45vw, 23px);
  display: block;
  fill: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease, color 0.22s ease;
}

.footer-social-link:hover .footer-social-svg {
  transform: scale(1.08);
}

.footer-social-link[aria-label="Instagram"]:hover .footer-social-svg {
  filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.35));
}

.footer-social-link[aria-label="TikTok"]:hover .footer-social-svg {
  filter: drop-shadow(0 0 5px rgba(37, 244, 238, 0.35));
}

.footer-social-link[aria-label="Discord"]:hover .footer-social-svg {
  filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.35));
}

@keyframes footerSocialIn {
  from {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px 8px;
  margin-left: 0;
}

.footer-follow {
  justify-self: start;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 170px;
}

.footer-follow h4 {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.footer-col {
  text-align: left;
}

.footer-col h5 {
  text-align: left;
  font-size: clamp(12px, 0.9vw, 13px);
  color: rgba(230, 237, 247, 0.92);
  margin: 0 0 4px;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  text-align: left;
  text-decoration: none;
  color: rgba(220, 228, 239, 0.76);
  font-size: clamp(11px, 0.85vw, 12px);
  margin: 3px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ff8686;
}

.footer-bottom {
  width: min(calc(100% - (var(--fluid-gutter) * 2)), var(--fluid-max));
  margin-left: auto;
  margin-right: auto;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(216, 225, 236, 0.72);
  font-size: clamp(11px, 0.85vw, 12px);
}

.footer-bottom .footer-disclaimer {
  margin-left: auto;
  color: rgba(216, 225, 236, 0.34);
  font-size: clamp(10px, 0.74vw, 11px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: right;
}

.footer-mobile-links {
  display: none;
}

.footer-mobile-links a {
  text-decoration: none;
  color: rgba(176, 176, 176, 0.9);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-mobile-links a:hover {
  color: #ffffff;
}

.watch-page {
  --w-panel: rgba(11, 15, 24, 0.72);
  --w-line: rgba(255, 255, 255, 0.13);
  --w-soft: rgba(255, 255, 255, 0.06);
  --w-text: #e9f0ff;
  --w-muted: #b5c1d8;
  --w-accent: #7ea9ff;
  --w-accent-2: #ff3b3b;
  color: var(--w-text);
  padding-top: 88px;
}

.watch-page a,
.watch-page button,
.watch-page [role="button"],
.watch-page .watch-episode-item,
.watch-page .watch-sub-item,
.watch-page .watch-video-item,
.watch-page .watch-comment-action,
.watch-page .watch-comment-submit,
.watch-page .watch-comment-sort-btn {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.watch-shell {
  width: calc(100% - clamp(24px, 3vw, 56px));
  max-width: 100%;
  margin: 0 auto 38px;
  display: grid;
  gap: 24px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 20vw, 420px);
  align-items: start;
  gap: 18px;
  min-width: 0;
}

.watch-main {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.watch-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--w-line);
  border-radius: 16px;
  background: var(--w-panel);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.watch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-title {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.08;
}

.watch-now {
  margin: 4px 0 0;
  color: var(--w-muted);
  font-size: 13px;
}

.watch-select,
.watch-btn,
.watch-link-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--w-text);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
}

.watch-select {
  min-width: 170px;
}

.watch-btn {
  cursor: pointer;
}

.watch-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.mobile-drawer-profile-link:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.mobile-drawer-profile-link:active {
  transform: scale(0.97);
  filter: brightness(1.04);
}

.watch-controls {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

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

.watch-sub-card {
  margin-top: 10px;
  padding: 12px;
  display: grid;
  gap: 0;
}

.watch-video-card {
  padding: 16px 18px;
  display: grid;
  gap: 0;
}

.watch-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(11, 14, 21, 0.82);
}

.watch-source-grid .watch-source-group {
  min-width: 0;
  min-height: 142px;
  margin: 0;
  padding: 16px 18px 18px;
  display: grid;
  align-content: start;
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.watch-source-grid .watch-source-group + .watch-source-group {
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.watch-source-grid .watch-sub-list,
.watch-source-grid .watch-video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 280px));
  gap: 10px;
  align-items: start;
  justify-content: start;
}

.watch-source-grid .watch-sub-item,
.watch-source-grid .watch-video-item {
  width: 100%;
  max-width: 280px;
}

.watch-episodes-block {
  height: min(82vh, 45vw, 1080px);
  min-height: 560px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(11, 15, 24, 0.72);
}

.watch-layout > .watch-episodes-block .watch-episode-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 118, 118, 0.42) rgba(255, 255, 255, 0.04);
  transition:
    opacity 0.16s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease;
  will-change: opacity, transform;
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-leaving {
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-forward.is-page-leaving {
  transform: translateX(-12px);
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-backward.is-page-leaving {
  transform: translateX(12px);
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-entering {
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  transition: none;
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-forward.is-page-entering {
  transform: translateX(12px);
}

.watch-layout > .watch-episodes-block .watch-episode-list.is-page-backward.is-page-entering {
  transform: translateX(-12px);
}

.watch-episode-pagination.is-page-changing {
  pointer-events: none;
}

.watch-layout > .watch-episodes-block .watch-episode-list::-webkit-scrollbar {
  width: 5px;
}

.watch-layout > .watch-episodes-block .watch-episode-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.watch-layout > .watch-episodes-block .watch-episode-list::-webkit-scrollbar-thumb {
  background: rgba(255, 118, 118, 0.42);
  border-radius: 999px;
}

.watch-layout > .watch-episodes-block .watch-episode-item {
  flex: 0 0 auto;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 68px;
  padding: 0 22px 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
  gap: 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  align-items: start;
  transition: opacity 0.2s ease;
}

.watch-layout > .watch-episodes-block .watch-episode-thumb-wrap {
  width: 112px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  clip-path: none;
}

.watch-layout > .watch-episodes-block .watch-episode-thumb {
  opacity: 1;
  filter: none;
  transition: transform 0.38s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.25s ease;
}

.watch-layout > .watch-episodes-block .watch-episode-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.48));
  opacity: 0.55;
}

.watch-layout > .watch-episodes-block .watch-episode-body {
  position: static;
  display: block;
  min-width: 0;
  padding-right: 0;
  opacity: 1;
  transform: none;
}

.watch-episode-compact-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

.watch-episode-compact-meta strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-episode-compact-meta span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.32);
}

.watch-layout > .watch-episodes-block .watch-episode-title {
  display: -webkit-box;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.watch-episode-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.watch-episode-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(4, 5, 9, 0.58);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
  backdrop-filter: blur(7px);
}

.watch-episode-pending {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(7, 8, 11, 0.72);
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.watch-episode-watched-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.watch-layout > .watch-episodes-block .watch-episode-item.is-watched .watch-episode-watched-dot {
  border-color: #32d491;
  background: #32d491;
  box-shadow: 0 0 0 4px rgba(50, 212, 145, 0.12);
}

.watch-layout > .watch-episodes-block .watch-episode-item.is-watched .watch-episode-thumb-wrap {
  box-shadow: inset 0 0 0 2px rgba(50, 212, 145, 0.52);
}

.watch-layout > .watch-episodes-block .watch-episode-item.is-active .watch-episode-thumb-wrap {
  box-shadow: inset 0 0 0 2px rgba(255, 107, 143, 0.7), 0 0 0 1px rgba(255, 107, 143, 0.3);
}

.watch-layout > .watch-episodes-block .watch-episode-item:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.watch-layout > .watch-episodes-block .watch-episode-item:not(.is-disabled):hover .watch-episode-thumb {
  transform: scale(1.045);
  filter: brightness(0.72);
}

.watch-layout > .watch-episodes-block .watch-episode-item:not(.is-disabled):hover .watch-episode-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.watch-layout > .watch-episodes-block .watch-episode-item.is-disabled {
  cursor: default;
  opacity: 1;
}

.watch-layout > .watch-episodes-block .watch-episode-item.is-disabled .watch-episode-thumb {
  filter: brightness(0.68);
}

.watch-layout > .watch-episodes-block .watch-episode-item:hover .watch-episode-thumb-wrap,
.watch-layout > .watch-episodes-block .watch-episode-item.is-active .watch-episode-thumb-wrap {
  clip-path: none;
  border-radius: 8px;
}

.watch-layout > .watch-episodes-block .watch-episode-pagination {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
  padding: 9px;
}

.watch-layout > .watch-episodes-block .watch-episode-page-actions {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.watch-layout > .watch-episodes-block .watch-episode-page-btn {
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  flex: 0 0 30px;
}

.watch-layout > .watch-episodes-block .watch-episode-page-ellipsis {
  min-width: 18px;
  height: 30px;
}

.watch-current-episode-card {
  display: block;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(17, 18, 21, 0.94);
}

.watch-bottom .watch-current-episode-card .watch-current-episode-media {
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
}

.watch-bottom .watch-current-episode-card .watch-current-episode-cover {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 116px !important;
  min-height: 116px !important;
  max-height: 116px !important;
}

.watch-bottom .watch-current-episode-card .watch-current-episode-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.watch-bottom .watch-current-episode-card,
.watch-bottom .watch-current-episode-card * {
  box-sizing: border-box;
}

.watch-current-episode-media {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.watch-current-episode-cover {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.watch-current-episode-cover img,
.watch-current-episode-cover-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.watch-current-episode-cover img {
  object-fit: cover;
  object-position: center;
  max-width: none;
  padding: 0;
}

.watch-current-episode-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #f4f7ff;
  background: linear-gradient(135deg, rgba(126, 169, 255, 0.6), rgba(255, 107, 143, 0.55));
}

.watch-current-episode-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.watch-current-episode-kicker {
  margin: 0;
  color: rgba(210, 221, 238, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.watch-current-episode-title {
  margin: 0;
  color: #f6f8ff;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.12;
}

.watch-current-episode-label {
  margin: 0;
  color: rgba(223, 231, 242, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.watch-current-episode-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: stretch;
}

.watch-current-episode-action {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #eff4ff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.watch-current-episode-action:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.watch-current-episode-action,
.watch-current-episode-action:hover,
.watch-current-episode-action:focus,
.watch-current-episode-action:active {
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

.watch-current-episode-action.is-active {
  border-color: rgba(255, 118, 118, 0.38);
  background: linear-gradient(135deg, rgba(255, 107, 143, 0.16), rgba(126, 169, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 118, 118, 0.08);
}

.watch-current-episode-action-icon,
.watch-current-episode-action-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: 0 0 auto;
}

.watch-current-episode-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-current-episode-action-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.86;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

#watch-current-episode-like.is-active .watch-current-episode-action-icon {
  background: rgba(255, 74, 110, 0.14);
  border-color: rgba(255, 74, 110, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 74, 110, 0.08);
}

#watch-current-episode-like.is-active .watch-current-episode-action-icon img {
  opacity: 1;
  filter: none;
}

.watch-current-episode-action-dot {
  position: relative;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-current-episode-action-dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.watch-current-episode-action.is-active .watch-current-episode-action-dot::after {
  background: linear-gradient(135deg, #76ffb3, #4ecf87);
  box-shadow: 0 0 12px rgba(118, 255, 179, 0.45);
}

.watch-current-episode-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.watch-current-episode-action-copy b {
  font-size: 12.5px;
  line-height: 1.15;
}

.watch-current-episode-action-copy small {
  color: rgba(209, 220, 237, 0.68);
  font-size: 10px;
  line-height: 1.3;
}

.watch-nav-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.watch-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.watch-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.watch-uploader-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 50%;
  text-decoration: none;
}

.watch-uploader-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 46px;
}

.watch-uploader-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #f5f7fb;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.7), rgba(120, 82, 217, 0.7));
}

.watch-uploader-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.watch-uploader-name {
  font-size: 14px;
  font-weight: 800;
  color: #f3f6ff;
  line-height: 1.1;
}

.watch-uploader-name-link {
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.watch-uploader-avatar-link:hover .watch-uploader-avatar,
.watch-uploader-avatar-link:focus-visible .watch-uploader-avatar,
.watch-uploader-name-link:hover,
.watch-uploader-name-link:focus-visible {
  color: #ffffff;
  filter: brightness(1.08);
}

.watch-uploader-avatar-link:focus-visible,
.watch-uploader-name-link:focus-visible {
  outline: 2px solid rgba(255, 118, 118, 0.62);
  outline-offset: 3px;
}

.watch-uploader-note {
  font-size: 12px;
  font-weight: 500;
  color: rgba(205, 214, 228, 0.76);
  line-height: 1.1;
}

.watch-translation-bio {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 116, 170, 0.42);
  box-shadow: none;
}

.watch-translation-bio[hidden] {
  display: none !important;
}

.watch-translation-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.watch-translation-name {
  min-width: 0;
  color: rgba(247, 248, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.watch-translation-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: rgba(211, 217, 227, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.watch-translation-meta[hidden] {
  display: none !important;
}

.watch-translation-meta b {
  color: rgba(206, 214, 228, 0.54);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.watch-translation-meta em {
  color: rgba(241, 244, 250, 0.82);
  font-style: normal;
  font-weight: 700;
}

.watch-translation-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.watch-translation-meta a {
  color: #168dff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.watch-translation-meta a:hover {
  color: #55aaff;
}

.watch-translation-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.watch-translation-actions[hidden] {
  display: none !important;
}

.watch-translation-action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(235, 239, 246, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.watch-translation-action:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.watch-translation-action-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 15px;
  filter: invert(1) opacity(0.76);
}

.watch-nav-row .watch-btn {
  min-width: 0;
}

.watch-ep-nav {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  width: clamp(132px, 15vw, 156px);
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.085);
  background: linear-gradient(135deg, rgba(38, 39, 42, 0.96), rgba(27, 28, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 6px 16px rgba(0, 0, 0, 0.12);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.watch-ep-nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(102, 35, 45, 0.96), rgba(72, 29, 42, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.watch-ep-nav > * {
  position: relative;
  z-index: 1;
}

.watch-ep-nav-icon-wrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.watch-ep-nav-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  transform: none !important;
}

.watch-nav-row .watch-comment-jump {
  width: 48px;
  min-width: 48px;
  flex: 0 0 48px;
  padding: 0;
}

.watch-comment-jump .watch-ep-nav-icon {
  width: 20px;
  height: 20px;
}

#watch-comments {
  scroll-margin-top: 96px;
}

.watch-ep-nav-text {
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
  color: #f4f7ff;
}

#watch-prev .watch-ep-nav-icon-wrap {
  order: 0;
}

#watch-prev .watch-ep-nav-text {
  order: 1;
}

#watch-next .watch-ep-nav-text {
  order: 0;
}

#watch-next .watch-ep-nav-icon-wrap {
  order: 1;
}

.watch-ep-nav,
.watch-ep-nav *,
button.watch-ep-nav:hover:not(:disabled),
button.watch-ep-nav:hover:not(:disabled) *,
button.watch-ep-nav:focus-visible,
button.watch-ep-nav:focus-visible *,
button.watch-ep-nav:active:not(:disabled),
button.watch-ep-nav:active:not(:disabled) * {
  transform: none !important;
}

button.watch-ep-nav:hover:not(:disabled),
button.watch-ep-nav:focus-visible {
  transform: none !important;
  filter: none !important;
  border-color: rgba(255, 104, 104, 0.32) !important;
  background: linear-gradient(135deg, rgba(38, 39, 42, 0.96), rgba(27, 28, 31, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 25px rgba(163, 32, 48, 0.16) !important;
}

button.watch-ep-nav:hover:not(:disabled)::before,
button.watch-ep-nav:focus-visible::before {
  opacity: 1;
}

button.watch-ep-nav:active:not(:disabled) {
  transform: none !important;
  filter: none !important;
  background: linear-gradient(135deg, rgba(38, 39, 42, 0.96), rgba(27, 28, 31, 0.98)) !important;
}

button.watch-ep-nav:active:not(:disabled)::before {
  opacity: 0.88;
}

.watch-sub-head {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.watch-sub-head-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  opacity: 0.95;
}

.watch-sub-card::after,
.watch-video-card::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 2px 0 16px;
  order: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 107, 107, 0.18), rgba(255, 92, 187, 0.12), rgba(255, 255, 255, 0.04));
}

.watch-sub-head {
  order: 1;
}

.watch-sub-list,
.watch-video-list {
  order: 3;
}

.watch-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
}

.watch-sub-item {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 68px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(42, 34, 38, 0.88), rgba(28, 25, 33, 0.92));
  color: #e7f0ff;
  padding: 11px 14px;
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.watch-sub-item.is-active {
  border-color: rgba(255, 118, 118, 0.78);
  background: linear-gradient(135deg, rgba(92, 39, 49, 0.92), rgba(61, 30, 46, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 118, 118, 0.12), 0 10px 22px rgba(255, 92, 187, 0.08);
}

.watch-sub-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 118, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.watch-sub-icon-wrap,
.watch-sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watch-sub-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.watch-sub-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.92;
}

.watch-sub-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.watch-sub-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  color: #f4f7ff;
}

.watch-sub-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(206, 214, 228, 0.7);
}

.watch-sub-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 214, 92, 0.95);
}

.watch-sub-rating-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  flex: 0 0 10px;
  transform: translateY(-2px);
}

.watch-sub-lang {
  color: rgba(255, 182, 205, 0.9);
  letter-spacing: 0.04em;
}

.watch-sub-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.watch-sub-item::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.watch-sub-item.is-active::after {
  background: #ff6b8f;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 107, 143, 0.16), 0 0 10px rgba(255, 107, 143, 0.5);
  animation: watchSubPulse 1.35s ease-in-out infinite;
}

@keyframes watchSubPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.42;
  }
}

.watch-video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

.watch-video-item {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  padding: 11px 14px;
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.watch-video-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 118, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.watch-video-item.is-active {
  border-color: rgba(255, 118, 118, 0.72);
  background: linear-gradient(135deg, rgba(88, 42, 54, 0.9), rgba(29, 20, 28, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 118, 118, 0.18);
}

.watch-video-icon,
.watch-video-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watch-video-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #ff8fa8;
  font-size: 15px;
}

.watch-video-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.watch-video-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.watch-side {
  padding: 14px;
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
  position: static;
}

.watch-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.watch-side-head b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.watch-side-head-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  opacity: 0.96;
}

.watch-side-head span {
  color: rgba(210, 221, 238, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.watch-episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 290px));
  gap: 18px;
  justify-content: start;
}

.watch-episode-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.watch-episode-pagination[hidden] {
  display: none;
}

.watch-episode-page-summary {
  color: rgba(218, 227, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.watch-episode-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.watch-episode-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 18, 24, 0.86);
  color: rgba(237, 243, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.watch-episode-page-edge {
  min-width: 38px;
  width: 38px;
  padding: 0;
}

.watch-episode-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
}

.watch-episode-page-arrow img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

.watch-episode-page-ellipsis {
  min-width: 28px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(218, 227, 240, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.watch-episode-page-btn:hover:not(:disabled),
.watch-episode-page-btn:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 118, 118, 0.28);
  background: rgba(255, 118, 118, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transform: none;
  outline: none;
}

.watch-episode-page-btn,
.watch-episode-page-btn:hover:not(:disabled),
.watch-episode-page-btn:focus-visible,
.watch-episode-page-btn:active:not(:disabled) {
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

.watch-episode-page-btn.is-active {
  color: #ffffff;
  border-color: rgba(255, 118, 118, 0.5);
  background: linear-gradient(135deg, rgba(255, 107, 143, 0.88), rgba(255, 118, 118, 0.72));
  box-shadow: 0 12px 24px rgba(255, 107, 143, 0.16);
}

.watch-episode-page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.watch-episode-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  aspect-ratio: auto;
  min-height: 164px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(34, 34, 38, 0.88), rgba(22, 25, 32, 0.9));
  color: #edf4ff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.watch-episode-item.is-page-hidden,
.watch-episode-item[hidden] {
  display: none !important;
}

.watch-episode-item.is-active {
  border-color: rgba(255, 118, 118, 0.5);
  background: linear-gradient(135deg, rgba(35, 21, 29, 0.96), rgba(24, 19, 26, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 118, 118, 0.1), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.watch-episode-item.is-watched:not(.is-active) {
  border-color: rgba(118, 255, 179, 0.16);
}

.watch-episode-item.is-liked:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 143, 0.08);
}

.watch-episode-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 118, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.watch-episode-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 122px;
  border-radius: 14px;
  overflow: hidden;
  background: #090c12;
  align-self: center;
  clip-path: inset(0 0 0 0 round 14px);
  transition: clip-path 0.32s ease, border-radius 0.32s ease;
}

.watch-episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(0.2px) saturate(0.8);
}

.watch-episode-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.7));
}

.watch-episode-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.32s ease, color 0.22s ease;
}

.watch-episode-item.is-active .watch-episode-number {
  color: #ff6b8f;
}

.watch-episode-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-rows: auto;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.watch-episode-info {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(210, 220, 233, 0.64);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.watch-episode-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(239, 243, 251, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: end;
}

.watch-episode-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.watch-episode-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(212, 220, 232, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.watch-episode-stat-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.58;
}

.watch-episode-meta > .watch-episode-stat:nth-child(2) {
  margin-right: auto;
}

.watch-episode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(214, 221, 232, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.watch-episode-badge-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  opacity: 0.72;
}

.watch-episode-item:hover .watch-episode-thumb-wrap,
.watch-episode-item.is-active .watch-episode-thumb-wrap {
  clip-path: inset(0 0 52% 0 round 12px);
  border-radius: 12px;
}

.watch-episode-item:hover .watch-episode-number,
.watch-episode-item.is-active .watch-episode-number {
  transform: translateY(-27px);
}

.watch-episode-item:hover .watch-episode-body,
.watch-episode-item.is-active .watch-episode-body {
  opacity: 1;
  transform: translateY(0);
}

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

.watch-comments {
  padding: 20px;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)), rgba(18,18,20,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
}

.watch-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.watch-headline h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #f7f8fb;
}

.watch-comments-compose-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.watch-comment-form {
  display: block;
}

.watch-comment-form-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(7,7,9,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.watch-comment-form-shell::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 92, 92, 0), rgba(255, 92, 92, 0.8), rgba(255, 255, 255, 0.78), rgba(255, 92, 92, 0.8), rgba(255, 92, 92, 0));
  background-size: 220% 220%;
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity 0.28s ease;
}

.watch-comment-form-shell:hover,
.watch-comment-form-shell:focus-within {
  border-color: rgba(255, 120, 120, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(255, 110, 110, 0.06), 0 12px 30px rgba(255, 72, 72, 0.08);
}

.watch-comment-form-shell:hover::after,
.watch-comment-form-shell:focus-within::after {
  opacity: 1;
  animation: watchCommentBorderFlow 2.2s linear infinite;
}

@keyframes watchCommentBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.watch-comment-form-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.82), rgba(120, 82, 217, 0.82));
  border: 1px solid rgba(255,255,255,0.12);
}

.watch-comment-form-avatar.has-image {
  background: rgba(255,255,255,0.08);
}

.watch-comment-form-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-comment-input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #eef4ff;
  padding: 12px 0;
  outline: none;
  font: inherit;
  line-height: 24px;
  align-self: center;
  overflow-y: auto;
  position: relative;
  top: 3px;
}

.watch-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.watch-comment-input:focus {
  box-shadow: none;
}

.watch-comment-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.watch-comment-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(236,239,244,0.82);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.watch-comment-file-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.92;
}

.watch-comment-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(220,226,236,0.78);
  font-size: 13px;
  font-weight: 700;
}

.watch-comment-submit {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 123, 123, 0.24);
  background: linear-gradient(135deg, #ff7b7b, #ff5757);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 87, 87, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.38s ease, box-shadow 0.38s ease, filter 0.38s ease, color 0.38s ease;
}

.watch-comment-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff9f8f, #ff6f91);
  opacity: 0;
  transition: opacity 0.38s ease;
  z-index: 0;
}

.watch-comment-submit > * {
  position: relative;
  z-index: 2;
}

.watch-comment-submit span,
.watch-comment-submit-icon {
  position: relative;
  z-index: 2;
}

.watch-comment-submit span {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

button.watch-comment-submit:hover:not(:disabled),
button.watch-comment-submit:focus-visible {
  transform: none;
  border-color: rgba(255, 165, 165, 0.46);
  box-shadow: 0 12px 28px rgba(255, 111, 145, 0.22);
  filter: brightness(1.01);
}

button.watch-comment-submit:hover:not(:disabled)::before,
button.watch-comment-submit:focus-visible::before {
  opacity: 1;
}

button.watch-comment-submit:active:not(:disabled) {
  transform: none;
}

button.watch-comment-submit:active:not(:disabled)::before {
  opacity: 0.88;
  background: linear-gradient(135deg, #ff887f, #ff617f);
}

.watch-comment-submit-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.watch-comments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.watch-comment-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.watch-comment-sort-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(228,232,240,0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.watch-comment-sort-btn,
.watch-comment-sort-btn:hover,
.watch-comment-sort-btn:focus,
.watch-comment-sort-btn:active {
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

.watch-comment-sort-btn:hover:not(:disabled),
.watch-comment-sort-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 7px 18px rgba(255, 255, 255, 0.035);
  filter: brightness(1.08);
}

.watch-comment-sort-btn.is-active {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

.watch-comment-list {
  display: grid;
  gap: 12px;
}

.watch-comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
}

.watch-comment-item.is-entering {
  animation: watchCommentEnter 0.46s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes watchCommentEnter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.watch-comment-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.8), rgba(120, 82, 217, 0.8));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 28px;
}

.watch-comment-avatar.has-image {
  background: rgba(255,255,255,0.08);
}

.watch-comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #f3f6ff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-comment-author-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.watch-comment-time {
  margin-left: auto;
  color: rgba(205, 214, 228, 0.7);
  font-size: 12px;
}

.watch-comment-text {
  margin: 0;
  line-height: 1.6;
  color: #e5edf9;
  overflow-wrap: anywhere;
}

.watch-comment-mention {
  color: #eef2ff !important;
  font-weight: 800;
  text-shadow: none;
}

.watch-comment-author.role-admin .watch-comment-mention {
  color: #ffb15a !important;
}

.watch-comment-author.role-superadmin .watch-comment-mention {
  color: #ff9ec4 !important;
}

.watch-comment-author .watch-comment-author-link .watch-comment-mention.watch-comment-premium-name {
  position: relative;
  top: -1px;
  display: inline-block;
  line-height: 1;
  color: var(--premium-name-color, #f4f6fb) !important;
  transform-origin: left center;
}

.watch-comment-author .watch-comment-premium-name[data-name-style="bold"] { font-weight: 950; }
.watch-comment-author .watch-comment-premium-name[data-name-style="italic"] { font-style: italic; font-weight: 800; }
.watch-comment-author .watch-comment-premium-name[data-name-style="spaced"] { font-weight: 850; letter-spacing: 0.1em; }
.watch-comment-author .watch-comment-premium-name[data-name-effect="glow"] { animation: watchCommentPremiumNameGlow 2s ease-in-out infinite; }
.watch-comment-author .watch-comment-author-link .watch-comment-premium-name[data-name-effect="shimmer"] {
  color: transparent !important;
  background: linear-gradient(105deg, var(--premium-name-color) 15%, var(--premium-name-alt) 38%, #fff 50%, var(--premium-name-alt) 62%, var(--premium-name-color) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 220% 100%;
  animation: watchCommentPremiumNameShimmer 2.7s linear infinite;
}
.watch-comment-author .watch-comment-premium-name[data-name-effect="pulse"] { animation: watchCommentPremiumNamePulse 1.8s ease-in-out infinite; }
@keyframes watchCommentPremiumNameGlow { 0%,100%{text-shadow:0 0 7px color-mix(in srgb,var(--premium-name-color) 44%,transparent),0 0 17px color-mix(in srgb,var(--premium-name-color) 20%,transparent)}50%{text-shadow:0 0 12px color-mix(in srgb,var(--premium-name-color) 80%,transparent),0 0 26px color-mix(in srgb,var(--premium-name-color) 40%,transparent)} }
@keyframes watchCommentPremiumNameShimmer { 0%{background-position:120% 50%}100%{background-position:-120% 50%} }
@keyframes watchCommentPremiumNamePulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.72;transform:scale(.96)} }
@media (prefers-reduced-motion: reduce) { .watch-comment-author .watch-comment-premium-name { animation:none!important; } }

.watch-comment-author.role-moderator .watch-comment-mention {
  color: #9fc0ff !important;
}

.watch-comment-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #eef2ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.watch-comment-role::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.watch-comment-role.role-admin {
  background: linear-gradient(180deg, rgba(122, 89, 56, 0.46), rgba(122, 89, 56, 0.22));
  border-color: rgba(255, 171, 87, 0.34);
  color: #ffe9cf;
}

.watch-comment-role.role-admin::before {
  background-image: url("/RoleTools/Admin.png");
}

.watch-comment-role.role-superadmin {
  background: linear-gradient(180deg, rgba(255, 111, 150, 0.24), rgba(255, 111, 150, 0.1));
  border-color: rgba(255, 142, 177, 0.34);
  color: #fff1f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 14px rgba(255, 111, 150, 0.14);
}

.watch-comment-role.role-superadmin::before {
  background-image: url("/RoleTools/SuperAdmin.png");
}

.watch-comment-role.role-uploader,
.watch-comment-role.role-moderator {
  background: linear-gradient(180deg, rgba(83, 118, 215, 0.22), rgba(83, 118, 215, 0.1));
  border-color: rgba(120, 152, 255, 0.22);
  color: #eef4ff;
}

.watch-comment-role.role-uploader::before,
.watch-comment-role.role-moderator::before {
  background-image: url("/RoleTools/Uploader.png");
}

.watch-comment-role.role-fansub,
.watch-comment-role.role-team,
.watch-comment-role.role-vip {
  background: linear-gradient(180deg, rgba(255, 136, 92, 0.18), rgba(255, 136, 92, 0.08));
  border-color: rgba(255, 166, 120, 0.24);
  color: #ffeede;
}

.watch-comment-role.role-fansub::before {
  content: "\f32a";
  display: inline-grid;
  width: 10px;
  height: 10px;
  place-items: center;
  background: none;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  color: currentColor;
  font-family: "uicons-solid-rounded";
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.watch-comment-role.role-team::before {
  width: 14px;
  height: 14px;
  background: #ffffff;
  background-image: none;
  -webkit-mask-image: url("/RoleTools/Fansub.png");
  mask-image: url("/RoleTools/Fansub.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.watch-comment-role.role-vip::before {
  background-image: url("/RoleTools/Fansubber.png");
}

.watch-comment-role.role-uploader::before,
.watch-comment-role.role-moderator::before,
.watch-comment-role.role-fansub::before,
.watch-comment-role.role-admin::before,
.watch-comment-role.role-superadmin::before,
.watch-comment-role.role-team::before {
  display: inline-grid;
  width: 11px;
  height: 11px;
  place-items: center;
  background: none;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  color: currentColor;
  filter: none;
  font-family: "uicons-solid-rounded";
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.watch-comment-role.role-uploader::before,
.watch-comment-role.role-moderator::before { content: "\f4e9"; }
.watch-comment-role.role-fansub::before { content: "\f32a"; }
.watch-comment-role.role-admin::before { content: "\f53f"; }
.watch-comment-role.role-superadmin::before { content: "\e5f1"; }
.watch-comment-role.role-team::before { content: "\f555"; }

.watch-comment-text.is-spoiler {
  filter: blur(4px);
  cursor: pointer;
  user-select: none;
}

.watch-comment-text.is-spoiler.is-open {
  filter: blur(0);
}

.watch-comment-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 160px));
  gap: 10px;
}

.watch-comment-image {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.watch-comment-image-img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.watch-comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-comment-action {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(233,238,247,0.84);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease, color 0.32s ease;
}

.watch-comment-action::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.32s ease;
  z-index: 0;
}

.watch-comment-action > * {
  position: relative;
  z-index: 1;
}

button.watch-comment-action:hover:not(:disabled),
button.watch-comment-action:focus-visible {
  transform: none;
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(255,255,255,0.06);
}

button.watch-comment-action:hover:not(:disabled)::before,
button.watch-comment-action:focus-visible::before {
  opacity: 1;
}

.watch-comment-action[data-comment-like]::before {
  background: linear-gradient(135deg, rgba(255, 128, 145, 0.28), rgba(255, 94, 122, 0.2));
}

.watch-comment-action[data-comment-reply]::before {
  background: linear-gradient(135deg, rgba(126, 170, 255, 0.24), rgba(124, 112, 255, 0.18));
}

.watch-comment-action-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.watch-comment-action-count {
  min-width: 8px;
  line-height: 1;
}

.watch-comment-action.is-active {
  border-color: rgba(255, 84, 84, 0.32);
  background: rgba(255, 84, 84, 0.12);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 84, 84, 0.1);
}

.watch-comment-action.is-danger {
  color: rgba(255, 161, 161, 0.95);
  padding: 0;
}

.watch-comment-action.is-danger::before {
  background: linear-gradient(135deg, rgba(255, 120, 120, 0.24), rgba(255, 84, 84, 0.16));
}

button.watch-comment-action.is-danger:hover:not(:disabled),
button.watch-comment-action.is-danger:focus-visible {
  border-color: rgba(255, 84, 84, 0.2);
  box-shadow: 0 10px 22px rgba(255, 84, 84, 0.12);
}

.watch-comment-reply-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  animation: watchReplyBoxEnter 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.watch-comment-reply-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 11, 15, 0.72);
  color: #eef4ff;
  font: inherit;
  outline: none;
}

.watch-comment-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.watch-comment-reply-send,
.watch-comment-reply-cancel {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease, color 0.32s ease;
}

.watch-comment-reply-send::before,
.watch-comment-reply-cancel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.32s ease;
  z-index: 0;
}

.watch-comment-reply-send > *,
.watch-comment-reply-cancel > * {
  position: relative;
  z-index: 1;
}

.watch-comment-reply-send {
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  border-color: rgba(255, 77, 77, 0.22);
  color: #fff;
}

.watch-comment-reply-cancel {
  background: rgba(255,255,255,0.04);
  color: rgba(233,238,247,0.84);
}

.watch-comment-reply-send::before {
  background: linear-gradient(135deg, #ff9f8f, #ff6f91);
}

.watch-comment-reply-cancel::before {
  background: linear-gradient(135deg, rgba(132, 146, 170, 0.24), rgba(93, 104, 124, 0.18));
}

button.watch-comment-reply-send:hover:not(:disabled),
button.watch-comment-reply-send:focus-visible,
button.watch-comment-reply-cancel:hover:not(:disabled),
button.watch-comment-reply-cancel:focus-visible {
  transform: none;
  box-shadow: 0 10px 22px rgba(255,255,255,0.08);
}

button.watch-comment-reply-send:hover:not(:disabled)::before,
button.watch-comment-reply-send:focus-visible::before,
button.watch-comment-reply-cancel:hover:not(:disabled)::before,
button.watch-comment-reply-cancel:focus-visible::before {
  opacity: 1;
}

.watch-comment-reply-spoiler {
  margin-right: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(233,238,247,0.84);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.watch-comment-reply-spoiler input {
  margin: 0;
}

.watch-comment-reply-text.is-spoiler {
  color: transparent;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
}

.watch-comment-reply-text.is-spoiler.is-open {
  color: #eef4ff;
  background: transparent;
  padding: 0;
}

@keyframes watchReplyBoxEnter {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.watch-comment-replies {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.watch-comment-reply-item {
  display: grid;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.watch-comment-reply-tools {
  display: flex;
  justify-content: flex-end;
}

.watch-comment-reply-tools.is-inline {
  justify-content: flex-start;
  gap: 6px;
}

.watch-comment-reply-tool {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

button.watch-comment-reply-tool:hover:not(:disabled),
button.watch-comment-reply-tool:focus-visible {
  transform: none;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 8px 18px rgba(255,255,255,0.06);
}

.watch-comment-reply-tool-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.watch-comment-reply-tool-count {
  font-size: 11px;
  line-height: 1;
  min-width: 8px;
  text-align: center;
  color: #eef4ff;
}

.watch-comment-reply-tools.is-inline .watch-comment-reply-tool {
  width: auto;
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.watch-comment-reply-tools.is-inline .watch-comment-reply-tool-icon {
  width: 13px;
  height: 13px;
}

.watch-comment-reply-tools.is-inline .watch-comment-reply-tool.is-active {
  border-color: rgba(255, 84, 84, 0.24);
  background: rgba(255, 84, 84, 0.1);
}

.watch-comment-reply-tool.is-danger {
  color: rgba(255, 161, 161, 0.95);
}

.watch-comment-top.is-reply {
  gap: 6px;
}

.watch-comment-reply-edit-box {
  display: grid;
  gap: 10px;
  animation: watchReplyBoxEnter 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.watch-comment-top.is-reply .watch-comment-avatar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.watch-comment-reply-text {
  margin: 0;
  color: #e5edf9;
  line-height: 1.55;
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .watch-comments {
    padding: 16px 12px;
  }

  .watch-comment-form-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .watch-comment-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .watch-comments-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch-comment-sort {
    width: 100%;
  }

  .watch-comment-sort-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .watch-comment-top {
    align-items: flex-start;
  }

  .watch-comment-time {
    width: 100%;
    margin-left: 36px;
    font-size: 11px;
  }

  .watch-comment-actions {
    gap: 8px;
  }

  .watch-comment-action {
    min-height: 34px;
    padding: 0 12px;
  }

  .watch-comment-replies {
    padding-left: 12px;
  }
}

.watch-similar {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.watch-similar-list {
  display: grid;
  gap: 10px;
}

.watch-similar-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.watch-similar-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.watch-similar-body {
  display: grid;
  align-content: center;
  gap: 4px;
}

.watch-similar-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.watch-similar-meta {
  margin: 0;
  font-size: 12px;
  color: #c7d3e3;
}

.watch-empty {
  color: rgba(225, 234, 244, 0.72);
  padding: 12px;
}

.watch-comment-debug {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 180, 255, 0.28);
  background: rgba(7, 17, 29, 0.86);
  color: #9dd5ff;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.watch-rating-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.watch-rating-modal[hidden] {
  display: none !important;
}

.watch-rating-dialog {
  width: min(100%, 420px);
  position: relative;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.96), rgba(11, 15, 24, 0.96));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 12px;
}

.watch-rating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.watch-rating-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8dbbff;
}

.watch-rating-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #f4f7ff;
}

.watch-rating-copy {
  margin: 0;
  color: rgba(212, 220, 233, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.watch-rating-value {
  margin: -2px 0 2px;
  color: #dbe7ff;
  font-size: 13px;
  font-weight: 700;
}

.watch-rating-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.watch-rating-star {
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.watch-rating-star.is-active {
  color: #ffd24a;
  border-color: rgba(255, 210, 74, 0.48);
  background: rgba(255, 210, 74, 0.12);
}

.watch-rating-star:hover {
  transform: translateY(-1px);
}

.watch-rating-star-icon {
  font-size: 20px;
  line-height: 1;
}

.watch-rating-star-number {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.watch-rating-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .watch-source-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-source-grid .watch-source-group {
    min-height: 0;
  }

  .watch-source-grid .watch-source-group + .watch-source-group {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .watch-source-grid .watch-sub-list,
  .watch-source-grid .watch-video-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .watch-source-grid .watch-sub-item,
  .watch-source-grid .watch-video-item {
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-episodes-block {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .watch-layout > .watch-episodes-block .watch-episode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 1100px) {
  body {
    padding-top: 90px;
  }

  .watch-page {
    padding-top: 78px;
  }

  .topbar {
    top: 0;
    height: 78px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar.scrolled {
    height: 72px;
  }

  .logo img {
    height: 128px;
    margin-top: -58px !important;
    transform: translateY(16px);
  }

  .topbar.scrolled .logo img {
    transform: translateY(20px);
  }

  .topbar > .center,
  .topbar > .right {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-more-panel {
    display: none !important;
  }

  .footer {
    padding: 18px var(--fluid-gutter) 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-side {
    max-width: none;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-socials {
    justify-content: flex-start;
    width: auto;
    margin-left: 0;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .footer-follow {
    justify-self: start;
    align-self: start;
    align-items: flex-start;
    min-width: 0;
  }

  .footer-follow h4 {
    font-size: 16px;
  }

  .footer-logo-link {
    width: 194px;
    height: 82px;
    margin-top: -6px;
  }

  .footer-logo {
    width: 198px;
    transform: translateX(-30px);
  }

  .watch-shell {
    width: min(100%, calc(100% - 24px));
  }

  .watch-layout,
  .watch-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-main {
    gap: 16px;
  }

  .watch-bottom {
    margin-top: 18px;
  }

  .watch-current-episode-card {
    padding: 12px 14px;
  }

  .watch-current-episode-actions {
    gap: 8px;
  }

  .watch-current-episode-action {
    flex: 0 1 auto;
  }

  .watch-player-meta,
  .watch-nav-row {
    flex-wrap: wrap;
  }

  .watch-player-meta {
    align-items: flex-start;
    gap: 14px;
  }

  .watch-translation-bio {
    align-items: flex-start;
    gap: 12px;
  }

  .watch-nav-row {
    width: 100%;
    justify-content: stretch;
    gap: 12px;
  }

  .watch-nav-row .watch-btn,
  .watch-ep-nav {
    flex: 1 1 0;
    min-width: 0;
  }

  .watch-nav-row .watch-comment-jump {
    width: 48px;
    min-width: 48px;
    flex: 0 0 48px;
  }

  .watch-side {
    position: static;
    max-height: none;
  }

  .watch-frame {
    min-height: auto;
  }

  .watch-video-list {
    grid-template-columns: 1fr;
  }

  .watch-sub-list {
    grid-template-columns: 1fr;
  }

  .watch-sub-item {
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .watch-sub-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .watch-sub-icon {
    width: 16px;
    height: 16px;
  }

  .watch-episode-list {
    grid-template-columns: 1fr;
  }

  .watch-episode-pagination {
    justify-content: center;
    text-align: center;
  }

  .watch-episode-page-summary,
  .watch-episode-page-actions {
    width: 100%;
    justify-content: center;
  }

  .watch-episode-page-edge {
    min-width: 38px;
    width: 38px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 82px;
  }

  .watch-page {
    padding-top: 72px;
  }

  .topbar {
    height: 72px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar.scrolled {
    height: 68px;
  }

  .logo img {
    height: 104px;
    margin-top: -42px !important;
    transform: translateY(12px);
  }

  .topbar.scrolled .logo img {
    transform: translateY(14px);
  }

  .search-panel {
    top: 70px;
    width: calc(100% - 16px) !important;
  }

  .watch-shell {
    width: calc(100% - 16px);
    margin-bottom: 24px;
    gap: 16px;
  }

  .watch-main {
    gap: 14px;
  }

  .watch-card {
    border-radius: 14px;
  }

  .watch-current-episode-card {
    padding: 12px 10px;
  }

  .watch-bottom .watch-current-episode-card .watch-current-episode-media {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    justify-items: stretch;
    text-align: left;
  }

  .watch-bottom .watch-current-episode-card .watch-current-episode-cover {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 102px !important;
    min-height: 102px !important;
    max-height: 102px !important;
    border-radius: 10px;
  }

  .watch-current-episode-copy {
    justify-items: stretch;
    text-align: left;
    gap: 4px;
  }

  .watch-current-episode-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .watch-current-episode-title {
    font-size: 15px;
    line-height: 1.16;
  }

  .watch-current-episode-label {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .watch-current-episode-actions {
    width: 100%;
    display: flex;
    gap: 6px;
    margin-top: 4px;
  }

  .watch-current-episode-action {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
    padding: 7px 8px;
    border-radius: 10px;
    gap: 7px;
  }

  .watch-current-episode-action-icon,
  .watch-current-episode-action-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .watch-current-episode-action-dot::after {
    inset: 7px;
  }

  .watch-current-episode-action-copy {
    gap: 1px;
    text-align: left;
  }

  .watch-current-episode-action-copy b {
    font-size: 11px;
  }

  .watch-current-episode-action-copy small {
    font-size: 10px;
  }

  .watch-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

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

  .watch-translation-bio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    padding: 11px 12px;
    gap: 9px;
  }

  .watch-translation-name {
    font-size: 14px;
  }

  .watch-translation-meta {
    font-size: 12px;
    gap: 5px;
  }

  .watch-translation-actions {
    justify-content: flex-start;
  }

  .watch-uploader {
    gap: 10px;
  }

  .watch-uploader-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .watch-uploader-name {
    font-size: 13px;
  }

  .watch-uploader-note {
    font-size: 11px;
  }

  .watch-nav-row {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
  }

  #watch-comments-jump {
    order: 0;
  }

  #watch-prev {
    order: 1;
  }

  #watch-next {
    order: 2;
  }

  .watch-nav-row .watch-btn,
  .watch-ep-nav {
    width: clamp(118px, 31vw, 132px);
    flex: 0 1 clamp(118px, 31vw, 132px);
    min-width: 0;
    height: 46px;
    padding: 0 8px;
    gap: 6px;
  }

  .watch-nav-row .watch-comment-jump {
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .watch-ep-nav-text {
    font-size: 11px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .watch-sub-card,
  .watch-video-card,
  .watch-side {
    padding: 12px;
  }

  .watch-sub-card::after,
  .watch-video-card::after {
    margin-bottom: 12px;
  }

  .watch-sub-head,
  .watch-side-head b {
    gap: 8px;
    font-size: 13px;
  }

  .watch-sub-list,
  .watch-video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .watch-episode-list,
  .watch-layout > .watch-episodes-block .watch-episode-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .watch-sub-item,
  .watch-video-item {
    width: fit-content;
    max-width: 100%;
    min-height: 62px;
    border-radius: 14px;
  }

  .footer {
    margin-top: 26px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .footer-content {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .footer-brand {
    justify-items: start;
    text-align: left;
    max-width: 320px;
    gap: 8px;
  }

  .footer-logo-link {
    width: 210px;
    height: 86px;
    margin-top: 0;
    justify-content: flex-start;
  }

  .footer-logo {
    width: 205px;
    transform: translateX(-30px);
  }

  .footer-text {
    max-width: 300px;
    text-align: left;
    line-height: 1.55;
  }

  .footer-text-strong {
    margin-top: -6px;
  }

  .footer-badges {
    display: none;
  }

  .footer-side {
    width: 100%;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-links-wrap {
    display: none;
  }

  .footer-follow {
    justify-self: center;
    align-items: center;
    min-width: 0;
  }

  .footer-follow h4 {
    margin-bottom: 10px;
    letter-spacing: 1px;
  }

  .footer-socials {
    justify-content: center;
    gap: 12px;
  }

  .footer-bottom {
    width: min(100%, 360px);
    margin-top: 14px;
    padding-top: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .footer-bottom p {
    text-align: center;
  }

  .footer-bottom .footer-disclaimer {
    max-width: 320px;
    margin-left: 0;
    line-height: 1.55;
    text-align: center;
  }

  .footer-mobile-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .watch-video-card {
    padding: 14px 12px;
  }

  .watch-video-item {
    min-height: 60px;
    padding: 10px 12px;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .watch-video-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .watch-episode-item {
    min-height: 0;
    padding: 7px;
    gap: 7px;
    border-radius: 14px;
  }

  .watch-episode-thumb-wrap {
    height: 74px;
    clip-path: inset(0 0 0 0 round 10px);
    border-radius: 10px;
  }

  .watch-episode-number {
    font-size: 18px;
    transform: none !important;
  }

  .watch-episode-body {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 8px;
  }

  .watch-episode-meta {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .watch-episode-stat {
    font-size: 9px;
    gap: 3px;
  }

  .watch-episode-stat-icon {
    width: 11px;
    height: 11px;
  }

  .watch-episode-meta > .watch-episode-stat:nth-child(2) {
    margin-right: 0;
  }

  .watch-episode-badge {
    min-width: 44px;
    height: 20px;
    padding: 0 6px;
    font-size: 9px;
    gap: 4px;
    border-radius: 6px;
  }

  .watch-episode-badge-icon {
    width: 11px;
    height: 11px;
  }

  .watch-episode-item:hover .watch-episode-thumb-wrap,
  .watch-episode-item.is-active .watch-episode-thumb-wrap {
    clip-path: inset(0 0 0 0 round 12px);
    border-radius: 12px;
  }

  .watch-episode-item:hover .watch-episode-number,
  .watch-episode-item.is-active .watch-episode-number {
    transform: none;
  }

  .watch-episode-item:hover .watch-episode-body,
  .watch-episode-item.is-active .watch-episode-body {
    opacity: 1;
    transform: none;
  }

  .watch-comments {
    padding: 14px 10px;
    gap: 14px;
  }

  .watch-comments-compose-head h3,
  .watch-headline h3 {
    font-size: 15px;
  }

  .watch-comment-form-shell {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }

  .watch-comment-form-avatar {
    width: 40px;
    height: 40px;
    grid-column: 1;
    grid-row: 1;
  }

  .watch-comment-input {
    grid-column: 2;
    grid-row: 1;
    height: 44px;
    min-height: 44px;
    max-height: 140px;
    padding: 9px 0 6px;
    top: 0;
  }

  .watch-comment-tools {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  .watch-comment-file {
    flex: 1 1 100%;
    justify-content: center;
  }

  .watch-comment-check {
    flex: 1 1 auto;
    min-height: 38px;
    justify-content: center;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
  }

  .watch-comment-submit {
    flex: 1 1 140px;
    min-height: 38px;
  }

  .watch-comments-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .watch-headline {
    width: 100%;
    justify-content: flex-start;
  }

  .watch-comment-sort {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .watch-comment-sort-btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .watch-comment-top {
    align-items: flex-start;
  }

  .watch-comment-time {
    width: 100%;
    margin-left: 36px;
    font-size: 11px;
  }

  .watch-comment-actions {
    gap: 8px;
  }

  .watch-comment-action {
    min-height: 34px;
    padding: 0 9px;
    gap: 6px;
    font-size: 11px;
  }

  .watch-comment-replies {
    padding-left: 10px;
  }

  .watch-comment-reply-actions {
    justify-content: stretch;
  }

  .watch-comment-reply-spoiler,
  .watch-comment-reply-send,
  .watch-comment-reply-cancel {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Watch footer: use the available viewport width without double gutters. */
body.watch-page > .footer {
  --watch-footer-gutter: clamp(16px, 3.2vw, 64px);
  padding-left: var(--watch-footer-gutter);
  padding-right: var(--watch-footer-gutter);
}

body.watch-page > .footer .footer-content,
body.watch-page > .footer .footer-bottom {
  width: 100%;
  max-width: none;
}

body.watch-page > .footer .footer-content {
  grid-template-columns: minmax(270px, 0.75fr) minmax(650px, 1.65fr);
  gap: clamp(35px, 5vw, 75px);
}

body.watch-page > .footer .footer-brand {
  width: 100%;
  max-width: 430px;
}

body.watch-page > .footer .footer-text {
  max-width: 430px;
}

body.watch-page > .footer .footer-side {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  grid-template-columns: minmax(500px, 1fr) 190px;
  gap: clamp(35px, 4vw, 65px);
}

@media (max-width: 980px) {
  body.watch-page > .footer {
    --watch-footer-gutter: clamp(16px, 4vw, 32px);
  }

  body.watch-page > .footer .footer-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body.watch-page > .footer .footer-side {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    justify-self: stretch;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body.watch-page > .footer {
    --watch-footer-gutter: clamp(12px, 4vw, 18px);
  }

  body.watch-page > .footer .footer-content,
  body.watch-page > .footer .footer-bottom {
    width: 100%;
    max-width: none;
  }

  body.watch-page > .footer .footer-content {
    justify-items: center;
  }

  body.watch-page > .footer .footer-brand {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    justify-items: center;
    text-align: center;
  }

  body.watch-page > .footer .footer-logo-link {
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    justify-content: center;
  }

  body.watch-page > .footer .footer-logo {
    transform: translateX(-12.5%);
  }

  body.watch-page > .footer .footer-text {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body.watch-page > .footer .footer-side,
  body.watch-page > .footer .footer-follow {
    justify-self: center;
    justify-items: center;
    align-items: center;
    text-align: center;
  }

  body.watch-page > .footer .footer-socials {
    justify-content: center;
  }
}

/* Mobile app-style bottom navigation (watch page) */
.mobile-bottom-nav{display:none}
.mobile-header-search{display:none}
@media(max-width:1100px){.mobile-menu-toggle,.mobile-drawer,.mobile-drawer-backdrop{display:none!important}body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.mobile-bottom-nav{position:fixed;left:10px;right:10px;bottom:8px;z-index:1200;height:64px;padding:5px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;border:1px solid rgba(255,255,255,.11);border-radius:19px;background:rgba(12,12,16,.9);box-shadow:0 15px 45px rgba(0,0,0,.55);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.mobile-bottom-link{position:relative;min-width:0;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;color:#767780;text-decoration:none;font-size:9px;font-weight:700}.mobile-bottom-icon{height:23px;display:grid;place-items:center;color:#a5a6ad;font-size:21px;line-height:1}.mobile-bottom-link.is-active{color:#fff;background:rgba(255,62,83,.1)}.mobile-bottom-link.is-active .mobile-bottom-icon{color:#ff4057;filter:drop-shadow(0 0 7px rgba(255,64,87,.55))}.mobile-bottom-link.is-active:after{content:"";position:absolute;bottom:2px;width:16px;height:2px;border-radius:4px;background:#ff4057;box-shadow:0 0 9px #ff4057}.mobile-bottom-link:active{transform:scale(.92)}}
@media(max-width:1100px){.topbar .mobile-header-search{margin-left:auto;width:42px;height:42px;display:grid!important;place-items:center;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(18,18,22,.62);color:#fff;cursor:pointer}.mobile-header-search img{width:18px;height:18px;object-fit:contain;filter:grayscale(1) brightness(2)}.mobile-header-search span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.mobile-header-search:active{transform:scale(.92)}}
@media(max-width:1100px){.topbar .mobile-header-search{width:46px;height:46px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.topbar .mobile-header-search img{width:27px!important;height:27px!important}.topbar .mobile-header-search:active{background:transparent!important}}

/* Private profile statistics */
@media(max-width:1100px){.mobile-menu-toggle{display:none!important}.mobile-drawer,.mobile-drawer-backdrop{display:block!important}.mobile-drawer{top:auto!important;left:8px!important;right:8px!important;bottom:0!important;width:auto!important;height:auto!important;max-height:min(78vh,640px);padding:38px 20px calc(20px + env(safe-area-inset-bottom))!important;border:1px solid rgba(255,255,255,.11)!important;border-bottom:0!important;border-radius:28px 28px 0 0!important;background:linear-gradient(180deg,rgba(16,16,20,.99),rgba(8,8,11,.995))!important;box-shadow:0 -22px 60px rgba(0,0,0,.62)!important;transform:translateY(110%)!important;transition:transform .42s cubic-bezier(.2,.82,.2,1)!important;overflow-y:auto}body.drawer-open .mobile-drawer{transform:translateY(0)!important}.mobile-drawer:before{content:"";position:absolute;top:11px;left:50%;width:44px;height:4px;border-radius:10px;background:rgba(255,255,255,.22);transform:translateX(-50%)}.mobile-drawer-head,.mobile-drawer-search,.mobile-drawer-search-results{display:none!important}.mobile-drawer-nav{margin:0!important;display:grid!important;gap:4px!important}.mobile-drawer-nav .nav-item{min-height:48px!important;padding:12px 8px!important;border-radius:12px!important;color:#d9d9df!important;font-size:14px!important}.mobile-drawer-nav .nav-item .icon{width:18px!important;height:18px!important;object-fit:contain;filter:grayscale(1) brightness(2)!important}.mobile-drawer-actions{margin-top:25px!important;gap:8px!important}.mobile-drawer-actions>.btn{min-height:46px;border-radius:11px!important;justify-content:center!important}.mobile-drawer-backdrop{background:rgba(0,0,0,.62)!important;backdrop-filter:blur(3px)!important}}
@media(max-width:1100px){.mobile-drawer{transform:translateY(var(--drawer-drag-y,110%))!important}.mobile-drawer.is-dragging{transition:none!important;user-select:none;touch-action:none}body.drawer-open .mobile-drawer{--drawer-drag-y:0px}.mobile-drawer:before{touch-action:none;cursor:grab}.mobile-drawer.is-dragging:before{cursor:grabbing;background:rgba(255,255,255,.38)}}
@media(max-width:1100px){.mobile-drawer{padding-top:62px!important}.mobile-drawer-drag-zone{position:absolute;z-index:3;top:0;left:0;right:0;height:62px;cursor:grab;touch-action:none}.mobile-drawer.is-dragging .mobile-drawer-drag-zone{cursor:grabbing}}
@media(max-width:1100px){.mobile-drawer-actions{width:100%;min-width:0}.mobile-drawer-profile-card,.mobile-drawer-profile-link{width:100%;min-width:0}.mobile-drawer-profile-link.has-banner{height:72px!important;min-height:72px!important;max-height:72px!important;padding:0!important;overflow:hidden!important}.mobile-drawer-profile-banner{width:100%!important;height:72px!important;max-height:72px!important;overflow:hidden!important}.mobile-drawer-profile-banner>img,.mobile-drawer-profile-banner-img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:72px!important;object-fit:cover!important;object-position:center!important}.mobile-drawer-profile-avatar>img,.mobile-drawer-profile-avatar-img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}}
@media(max-width:1100px){.mobile-drawer-profile-link.has-banner:after{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.16) 75%),linear-gradient(0deg,rgba(0,0,0,.45),transparent 70%)!important;pointer-events:none!important}.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-avatar{display:flex!important;position:absolute!important;left:10px!important;bottom:10px!important;z-index:4!important;width:42px!important;height:42px!important;border:2px solid rgba(255,255,255,.78)!important}.mobile-drawer-profile-link.has-banner .mobile-drawer-profile-copy{display:block!important;position:absolute!important;left:62px!important;right:12px!important;bottom:23px!important;z-index:4!important;color:#fff!important;font-size:14px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 2px 8px #000!important}}

/* Private profile statistics */
@media(max-width:1100px){.mobile-bottom-icon img{width:20px;height:20px;display:block;object-fit:contain;opacity:.68;filter:grayscale(1) brightness(1.7)}.mobile-bottom-link.is-active .mobile-bottom-icon{filter:none}.mobile-bottom-link.is-active .mobile-bottom-icon img{opacity:1;filter:brightness(0) saturate(100%) invert(35%) sepia(99%) saturate(2486%) hue-rotate(331deg) brightness(104%) contrast(101%) drop-shadow(0 0 6px rgba(255,64,87,.65))}}
@media(max-width:1100px){.mobile-bottom-icon img.mobile-bottom-avatar{width:24px!important;height:24px!important;border-radius:50%!important;object-fit:cover!important;opacity:1!important;filter:none!important;border:1.5px solid rgba(255,255,255,.6)!important;box-shadow:0 3px 9px rgba(0,0,0,.4)!important}.mobile-bottom-link.is-active .mobile-bottom-avatar{border-color:#ff4057!important;box-shadow:0 0 8px rgba(255,64,87,.58)!important}}
@media(max-width:1100px){.mobile-bottom-avatar-fallback{display:grid;width:24px;height:24px;place-items:center;border:1.5px solid rgba(255,255,255,.62);border-radius:50%;color:#fff;font-size:10px;font-weight:900;line-height:1;box-shadow:0 3px 9px rgba(0,0,0,.4)}.mobile-bottom-link.is-active .mobile-bottom-avatar-fallback{border-color:#ff9ba8;box-shadow:0 0 8px rgba(255,64,87,.58)}}
@media(max-width:1100px){.mobile-bottom-icon i{display:block;font-size:20px;line-height:1;color:#aaa}.mobile-bottom-link.is-active .mobile-bottom-icon i{color:#ff4057;filter:drop-shadow(0 0 6px rgba(255,64,87,.65))}}
@media(max-width:1100px){.mobile-bottom-link[href="#mobile-menu"] .mobile-bottom-icon i{transition:transform .42s cubic-bezier(.2,.85,.2,1),color .22s ease,filter .22s ease;transform-origin:center}body.drawer-open .mobile-bottom-link[href="#mobile-menu"] .mobile-bottom-icon i{transform:rotate(180deg);color:#ff4057;filter:drop-shadow(0 0 6px rgba(255,64,87,.5))}body.drawer-open .mobile-bottom-link[href="#mobile-menu"]{color:#fff;background:rgba(255,62,83,.1)}}
@media(max-width:1100px){.mobile-bottom-link.is-active:after{display:none!important}}

/* Keep mobile bottom navigation taps reliable across touch browsers. */
@media(max-width:1100px){
 .mobile-bottom-nav{isolation:isolate;pointer-events:auto!important;touch-action:manipulation}
 .mobile-bottom-link{z-index:1;pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:pointer}
 .mobile-bottom-link>*{pointer-events:none!important}
 .mobile-bottom-link.is-pressed{transform:scale(.92)!important;filter:brightness(1.2)}
}

/* Private profile statistics */
.profile-tab-panel.is-privacy-hidden > .profile-panel{display:none!important}.profile-private-notice{min-height:310px;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:42px 24px;margin-top:24px}.profile-private-notice[hidden]{display:none!important}.profile-private-notice-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;margin-bottom:18px;background:rgba(255,92,110,.11);border:1px solid rgba(255,92,110,.2);color:#ff6678;font-size:27px}.profile-private-notice h2{margin:0 0 8px;color:#f5f3f6;font-size:22px}.profile-private-notice p{margin:0;color:#9e98a1;font-size:14px}

/* Larger shared header navigation */
/* Canonical mobile bottom sheet — index is the shared source of truth. */
@media(max-width:1100px){.mobile-drawer{top:auto!important;left:8px!important;right:8px!important;bottom:78px!important;width:auto!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 96px)!important;margin:0!important;padding:48px 16px 16px!important;display:block!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(16,16,21,.985),rgba(8,8,12,.99))!important;box-shadow:0 -14px 50px rgba(0,0,0,.58)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;transform:translateY(calc(100% + 94px))!important}.mobile-drawer.active,body.drawer-open .mobile-drawer{transform:translateY(0)!important}.mobile-drawer.is-dragging{transition:none!important;overflow:hidden!important}.mobile-drawer-drag-zone{height:48px!important}.mobile-drawer:before{top:11px!important;width:42px!important;height:4px!important}.mobile-drawer-nav{display:grid!important;gap:2px!important;margin:0!important;padding:0!important}.mobile-drawer-nav .nav-item{width:100%!important;min-height:43px!important;padding:10px 7px!important;margin:0!important;display:flex!important;align-items:center!important;gap:12px!important;border:0!important;border-radius:10px!important;background:transparent!important;font-size:13px!important}.mobile-drawer-nav .nav-item .icon{width:17px!important;height:17px!important;flex:0 0 17px!important}.mobile-drawer-actions{position:static!important;width:100%!important;margin:14px 0 0!important;padding:14px 0 0!important;display:grid!important;gap:8px!important;border-top:1px solid rgba(255,255,255,.075)!important;transform:none!important}.mobile-drawer-actions>.btn{width:100%!important;min-height:43px!important;margin:0!important;padding:10px 14px!important}.mobile-drawer-profile-card{width:100%!important;margin:0!important;padding:0!important;display:grid!important;gap:8px!important;border:0!important}.mobile-drawer-profile-link.has-banner{width:100%!important;height:72px!important;margin:0!important}.mobile-drawer-profile-action{min-height:40px!important;margin:0!important;padding:9px 11px!important;border-radius:10px!important}.mobile-drawer-backdrop{z-index:1190!important}.mobile-drawer{z-index:1195!important}.mobile-bottom-nav{z-index:1200!important}}

/* Larger shared header navigation */
@media(max-width:768px){.search-panel:before{content:"";position:absolute;top:4px;left:14px;width:120px;height:40px;background:url('../pictures/logo.png?v=2') center/contain no-repeat;z-index:3}}
@media(max-width:768px){.search-panel:before{display:none!important;content:none!important}}
@media(max-width:768px){.search-panel.has-results .search-results{padding:5px 3px!important;background:#08090b!important;border-radius:12px!important}.search-result-item{min-height:58px!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important}.search-result-item:hover,.search-result-item:active{background:rgba(255,255,255,.045)!important}.search-result-link{min-height:58px!important;grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important;padding:4px 5px!important}.search-result-thumb{width:38px!important;height:50px!important;aspect-ratio:auto!important;border-radius:7px!important}.search-result-title{font-size:12.5px!important;line-height:1.3!important;font-weight:700!important;color:#e8e8ec!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important}.search-result-episode{display:none!important}.search-results::-webkit-scrollbar{width:3px!important}.search-results::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18)!important}}
@media(max-width:768px){.close-search i{display:block;font-size:16px;line-height:1}.topbar .mobile-header-search,.close-search{transition:transform .14s cubic-bezier(.2,.8,.2,1),filter .14s ease,box-shadow .14s ease!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.topbar .mobile-header-search:active{transform:scale(.82)!important;filter:brightness(1.35)!important}.topbar .mobile-header-search:active img{transform:scale(.9)}.close-search:active{transform:translateY(-50%) scale(.82)!important;filter:brightness(1.3)!important;box-shadow:inset 0 2px 7px rgba(0,0,0,.5),0 1px 4px rgba(0,0,0,.3)!important}}

/* Larger shared header navigation */
/* Compact mobile search header */
@media(max-width:768px){body:has(.search-panel.active) .mobile-header-search{opacity:0!important;pointer-events:none!important}.search-panel,.search-panel.active,.search-panel.active.is-expanded,.search-panel.has-results{top:0!important;left:0!important;right:0!important;width:100%!important;max-height:100dvh!important;padding:49px 12px 10px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0 0 18px 18px!important;background:rgba(12,13,17,.98)!important;box-shadow:0 16px 36px rgba(0,0,0,.34)!important;box-sizing:border-box!important}.search-box{height:45px!important;padding:0 14px 0 42px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:11px!important;background:#08090c!important}.search-box:before{left:14px!important;width:17px!important;height:17px!important;opacity:.5!important}.search-input{height:43px!important;font-size:13px!important;font-weight:600!important}.close-search{top:-42px!important;right:0!important;width:38px!important;height:38px!important;border-radius:12px!important;background:#24262d!important;color:#f0f1f4!important;box-shadow:0 5px 15px rgba(0,0,0,.28)!important;z-index:4}.search-results{margin-top:7px!important;max-height:min(var(--search-results-h,0px),calc(100dvh - 112px))!important}}

/* Larger shared header navigation */
/* Keep the mobile search anchored while its result list expands. */
@media(max-width:768px){.search-panel,.search-panel.active,.search-panel.active.is-expanded,.search-panel.has-results{left:12px!important;right:12px!important;width:auto!important;transform:none!important;transform-origin:top center!important}.search-panel.active{animation:mobileSearchReveal .42s cubic-bezier(.2,.8,.2,1) both!important}.search-panel.has-results,.search-panel.active.is-expanded{animation:none!important;opacity:1!important;visibility:visible!important}@keyframes mobileSearchReveal{0%{opacity:0;clip-path:inset(0 10% 88% 10% round 20px);filter:blur(7px)}100%{opacity:1;clip-path:inset(0 0 0 0 round 20px);filter:blur(0)}}.search-panel.active.is-closing{pointer-events:none!important;animation:mobileSearchHide .32s cubic-bezier(.4,0,1,1) both!important}@keyframes mobileSearchHide{0%{opacity:1;clip-path:inset(0 0 0 0 round 20px);filter:blur(0)}100%{opacity:0;clip-path:inset(0 8% 88% 8% round 20px);filter:blur(6px)}}}

/* Larger shared header navigation */
/* Refined mobile search */
@media(max-width:768px){.search-panel{top:68px!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 92px)!important;transform:translateY(-12px) scale(.97)!important;border:0!important;border-radius:20px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;opacity:0!important;visibility:hidden!important}.search-panel.active{transform:translateY(0) scale(1)!important;opacity:1!important;visibility:visible!important}.search-box{height:58px!important;padding:0 54px 0 50px!important;display:flex!important;align-items:center!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:18px!important;background:rgba(14,14,19,.94)!important;box-shadow:0 18px 44px rgba(0,0,0,.46)!important;backdrop-filter:blur(24px)!important}.search-box:before{content:"";position:absolute;left:19px;top:50%;width:20px;height:20px;transform:translateY(-50%);background:url('../pictures/search.png') center/contain no-repeat;filter:grayscale(1) brightness(2);opacity:.78}.search-input{height:56px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:16px!important;font-weight:600!important;caret-color:#ff4057}.search-input::placeholder{color:#777983!important}.search-input:focus{border:0!important;background:transparent!important;box-shadow:none!important}.search-button{display:none!important}.close-search{right:12px!important;top:50%!important;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;transform:translateY(-50%)!important;border:0!important;border-radius:11px!important;background:rgba(255,255,255,.07)!important;color:#c8c9cf!important;font-size:22px!important}.search-results{margin-top:8px!important;max-height:calc(100dvh - 166px)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:18px!important;background:rgba(12,12,17,.96)!important;box-shadow:0 22px 52px rgba(0,0,0,.52)!important;overflow-y:auto!important}.search-panel:not(.has-results) .search-results{border:0!important;background:transparent!important;box-shadow:none!important}}
@media(max-width:768px){.search-panel{padding:6px!important;border:1px solid rgba(255,255,255,.11)!important;background:linear-gradient(145deg,rgba(20,20,27,.94),rgba(10,10,15,.96))!important;box-shadow:0 24px 65px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.045)!important;backdrop-filter:blur(28px)!important;transition:opacity .3s ease,transform .42s cubic-bezier(.16,1,.3,1)!important}.search-panel.active{animation:mobileSearchPanelIn .48s cubic-bezier(.16,1,.3,1) both}.search-box{border:0!important;background:rgba(255,255,255,.035)!important;box-shadow:none!important}.search-results{margin-top:5px!important;max-height:min(var(--search-results-h,0px),calc(100dvh - 176px))!important;border:0!important;border-radius:15px!important;background:transparent!important;box-shadow:none!important;transition:max-height .48s cubic-bezier(.16,1,.3,1),opacity .28s ease,padding .35s ease!important}.search-panel.has-results .search-results{border-top:1px solid rgba(255,255,255,.075)!important;background:rgba(255,255,255,.018)!important}@keyframes mobileSearchPanelIn{0%{opacity:0;transform:translateY(-18px) scale(.94);filter:blur(7px)}100%{opacity:1;transform:translateY(0) scale(1);filter:none}}}

/* Larger shared header navigation */
@media(max-width:1100px){.mobile-bottom-nav .mobile-bottom-link,.mobile-bottom-nav .mobile-bottom-link:hover,.mobile-bottom-nav .mobile-bottom-link:focus,.mobile-bottom-nav .mobile-bottom-link:visited{text-decoration:none!important;border-bottom:0!important}.mobile-bottom-nav .mobile-bottom-link:before,.mobile-bottom-nav .mobile-bottom-link:after,.mobile-bottom-nav .mobile-bottom-link span:before,.mobile-bottom-nav .mobile-bottom-link span:after{content:none!important;display:none!important;border:0!important;text-decoration:none!important}}

/* Larger shared header navigation */
.topbar>.center{gap:clamp(25px,2.5vw,42px)}.topbar>.center>.nav-item,.topbar>.center>.nav-more>.nav-item{position:relative;font-size:17px;font-weight:700;letter-spacing:-.01em}.topbar>.center>.nav-item .icon{width:19px;height:19px}.topbar>.center>.nav-item.is-active:after,.topbar>.center>.nav-item.is-current-page:after{content:"";position:absolute;left:50%;bottom:-11px;width:6px;height:6px;border-radius:50%;background:#ff4057;box-shadow:0 0 12px #ff4057;transform:translateX(-50%)}

/* Shared centered footer navigation */
.footer-content{grid-template-columns:minmax(270px,.75fr) minmax(650px,1.65fr);gap:clamp(35px,5vw,75px);max-width:none}.footer-side{justify-self:stretch;max-width:none;grid-template-columns:minmax(500px,1fr) 190px;gap:clamp(35px,4vw,65px);align-items:start}.info-footer-links{display:grid;grid-template-columns:minmax(330px,2fr) minmax(150px,1fr);gap:54px;align-items:start;margin:0}.info-footer-links .footer-col{min-width:0}.info-footer-links h5{letter-spacing:.16em}.footer-genre-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px 35px}.footer-genre-columns>div{display:flex;flex-direction:column;gap:10px}.info-footer-links a{position:relative;padding-left:12px;transition:color .25s ease,transform .25s ease}.info-footer-links a:before{content:"›";position:absolute;left:0;color:#5c535e}.info-footer-links a:hover{color:#fff;transform:translateX(3px)}.info-footer-links a:hover:before{color:#ff6075}.footer-shortcuts{display:flex;flex-direction:column;gap:10px}.footer-follow{justify-self:center;align-self:start;min-width:190px}.footer-follow h4{text-align:center;width:100%;white-space:nowrap}.footer-socials{justify-content:center;width:100%}@media(max-width:1080px){.footer-content{grid-template-columns:1fr;justify-items:center}.footer-brand{justify-items:center;text-align:center;max-width:520px}.footer-logo-link{justify-self:center}.footer-badges{justify-content:center}.footer-side{width:min(100%,760px);grid-template-columns:minmax(480px,1fr) 190px;justify-self:center}.info-footer-links{grid-template-columns:minmax(330px,2fr) minmax(140px,1fr);gap:40px}}@media(max-width:760px){.footer-side{grid-template-columns:1fr;gap:38px;width:min(100%,560px)}.info-footer-links{grid-template-columns:minmax(280px,2fr) minmax(120px,1fr);gap:25px}}@media(max-width:520px){.info-footer-links{grid-template-columns:1fr;justify-items:center;text-align:center}.info-footer-links .footer-col,.info-footer-links h5{text-align:center}.footer-genre-columns{width:min(100%,340px);text-align:left}.footer-shortcuts{align-items:center}}

@media(max-width:760px){footer.footer .info-footer-links,footer.footer .footer-genres,footer.footer .footer-shortcuts{display:none!important}footer.footer .footer-side{gap:0}}

/* Extended Premium display-name styles */
.profile-name-row h1.has-premium-name-style[data-name-style="rounded"],.watch-comment-author .watch-comment-premium-name[data-name-style="rounded"]{font-family:"Arial Rounded MT Bold","Trebuchet MS",sans-serif;font-weight:900}
.profile-name-row h1.has-premium-name-style[data-name-style="serif"],.watch-comment-author .watch-comment-premium-name[data-name-style="serif"]{font-family:Georgia,"Times New Roman",serif;font-weight:800}
.profile-name-row h1.has-premium-name-style[data-name-style="comic"],.watch-comment-author .watch-comment-premium-name[data-name-style="comic"]{font-family:"Comic Sans MS","Segoe Print",cursive;font-weight:800}
.profile-name-row h1.has-premium-name-style[data-name-style="mono"],.watch-comment-author .watch-comment-premium-name[data-name-style="mono"]{font-family:Consolas,"Courier New",monospace;font-weight:850}
.profile-name-row h1.has-premium-name-style[data-name-effect="gradient"],.watch-comment-author .watch-comment-author-link .watch-comment-premium-name[data-name-effect="gradient"]{color:transparent!important;background:linear-gradient(90deg,var(--premium-name-color) 0%,var(--premium-name-alt) 33%,var(--premium-name-color) 66%,var(--premium-name-alt) 100%);background-clip:text;-webkit-background-clip:text;background-size:300% 100%;animation:kaiyoPremiumNameGradient 3s linear infinite}
.profile-name-row h1.has-premium-name-style[data-name-effect="neon"],.watch-comment-author .watch-comment-premium-name[data-name-effect="neon"]{color:#fff!important;text-shadow:0 0 4px #fff,0 0 10px var(--premium-name-color),0 0 24px var(--premium-name-color);animation:kaiyoPremiumNameNeon 2.2s ease-in-out infinite}
.profile-name-row h1.has-premium-name-style[data-name-effect="toon"],.watch-comment-author .watch-comment-premium-name[data-name-effect="toon"]{-webkit-text-stroke:1px color-mix(in srgb,var(--premium-name-alt) 74%,#12141a);text-shadow:2px 2px 0 var(--premium-name-alt),4px 4px 0 rgba(0,0,0,.28)}
.profile-name-row h1.has-premium-name-style[data-name-effect="pop"],.watch-comment-author .watch-comment-premium-name[data-name-effect="pop"]{text-shadow:0 3px 0 var(--premium-name-alt),0 7px 14px color-mix(in srgb,var(--premium-name-color) 28%,transparent);animation:kaiyoPremiumNamePop 1.9s cubic-bezier(.2,.8,.2,1) infinite}
@keyframes kaiyoPremiumNameNeon{0%,100%{filter:brightness(.95)}50%{filter:brightness(1.25)}}
@keyframes kaiyoPremiumNamePop{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.035)}}
@keyframes kaiyoPremiumNameGradient{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media(prefers-reduced-motion:reduce){.profile-name-row h1.has-premium-name-style,.watch-comment-author .watch-comment-premium-name{animation:none!important}}

/* Center the shared footer brand on phones. */
@media(max-width:760px){footer.footer .footer-content{justify-items:center!important}footer.footer .footer-brand{width:100%;max-width:320px;margin-inline:auto;justify-items:center!important;text-align:center!important}footer.footer .footer-logo-link{justify-self:center!important;justify-content:center!important;margin-left:auto!important;margin-right:auto!important}footer.footer .footer-logo{transform:none!important;transform-origin:center!important}footer.footer .footer-text,footer.footer .footer-text-strong{width:100%;max-width:320px;margin-left:auto!important;margin-right:auto!important;text-align:center!important}footer.footer .footer-badges{justify-content:center!important}}

/* Compact profile identity beside the avatar on phones. */
@media(max-width:640px){
  body.profile-page .profile-header{
    display:grid!important;
    grid-template-columns:104px minmax(0,1fr);
    align-items:start!important;
    column-gap:12px!important;
    row-gap:14px!important;
  }
  body.profile-page .profile-header-avatar{
    grid-column:1;
    grid-row:1;
    align-items:center;
    margin-top:6px;
    padding-left:0!important;
  }
  body.profile-page .profile-header-copy,
  body.profile-page .profile-identity-inline{
    display:contents!important;
  }
  body.profile-page .profile-main-meta{
    grid-column:2;
    grid-row:1;
    align-self:center;
    min-width:0;
    width:100%;
    padding:18px 4px 0 0!important;
  }
  body.profile-page .profile-name-row{
    width:100%;
    min-width:0;
    align-items:center;
    flex-wrap:nowrap;
    gap:7px;
  }
  body.profile-page .profile-name-row h1{
    min-width:0;
    max-width:100%;
    font-size:clamp(22px,7vw,30px);
    line-height:1.08;
    overflow-wrap:anywhere;
  }
  body.profile-page .profile-edit-chip{
    width:32px;
    height:32px;
    flex:0 0 32px;
  }
  body.profile-page .profile-edit-chip img{
    width:14px;
    height:14px;
  }
  body.profile-page .profile-submeta-row{
    width:100%;
    min-width:0;
    align-items:flex-start;
    gap:5px;
  }
  body.profile-page .profile-handle,
  body.profile-page .profile-member-since{
    max-width:100%;
    font-size:11px;
    overflow-wrap:anywhere;
  }
  body.profile-page .profile-role-tags{
    max-width:100%;
    align-items:center;
    gap:5px;
  }
  body.profile-page .profile-bio-block{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    margin-top:0;
  }
  body.profile-page .profile-status{
    grid-column:1/-1;
  }
}

/* Profil redaktoru: mobil cihazlarda məlumat və bio sahələrini aydın saxla. */
@media(max-width:640px){
  body.profile-page .profile-edit-dialog--profile .profile-editor-layout{
    gap:18px;
    grid-template-rows:max-content max-content;
    align-content:start;
  }
  body.profile-page .profile-edit-dialog--profile .profile-editor-preview{
    position:relative!important;
    top:auto!important;
    z-index:1;
    margin-bottom:0;
  }
  body.profile-page .profile-edit-dialog--profile .profile-editor-fields{
    position:relative;
    z-index:2;
    display:block;
    min-width:0;
    padding:2px 0 0;
  }
  body.profile-page .profile-edit-dialog--profile .profile-edit-section-title{
    display:block;
    margin:0 0 12px;
    color:rgba(255,255,255,.68);
  }
  body.profile-page .profile-edit-dialog--profile .profile-edit-field>span{
    display:block;
    color:rgba(255,255,255,.7);
  }
  body.profile-page .profile-edit-dialog--profile .profile-editor-fields>.profile-edit-field{
    gap:9px;
    margin:2px 0 18px;
    padding:14px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:17px;
    background:rgba(255,255,255,.025);
  }
  body.profile-page .profile-edit-dialog--profile #profile-edit-bio{
    display:block;
    width:100%;
    min-height:112px;
    height:112px;
    max-height:160px;
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:13px;
    background:#15171d;
    color:#f4f5f8;
    opacity:1;
    line-height:1.55;
    caret-color:#ff626f;
    resize:vertical;
  }
  body.profile-page .profile-edit-dialog--profile #profile-edit-bio::placeholder{
    color:rgba(255,255,255,.38);
    opacity:1;
  }
body.profile-page .profile-edit-dialog--profile #profile-edit-bio:focus{
    border-color:rgba(255,91,105,.62);
    background:#181a20;
  }
  body.profile-page .profile-edit-dialog--profile #profile-edit-bio-count{
    display:block;
    margin:0 2px 0 0;
    color:rgba(255,255,255,.58);
  }
}

/* Profile watch history: compact glass cards with visible progress. */
body.profile-page .profile-history-section{
  --profile-history-accent:#ff5c72;
  --profile-history-accent-soft:rgba(255,92,114,.18);
}
body.profile-page .profile-history-head{
  align-items:center;
  margin-bottom:18px;
}
body.profile-page .profile-history-head .profile-panel-kicker{
  margin-bottom:5px;
  color:rgba(255,116,135,.86);
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
}
body.profile-page .profile-history-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 13px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  color:rgba(255,255,255,.72);
  background:rgba(9,11,16,.48);
  font:800 11px/1 "Segoe UI",sans-serif;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body.profile-page .profile-history-toggle[hidden]{
  display:none;
}
body.profile-page .profile-history-toggle:hover,
body.profile-page .profile-history-toggle:focus-visible{
  color:#fff;
  border-color:rgba(255,92,114,.35);
  background:rgba(255,92,114,.1);
}
body.profile-page .profile-history-row-wrap{
  padding:0;
}
body.profile-page .profile-history-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  overflow:visible;
  scroll-snap-type:none;
}
body.profile-page .profile-history-grid>.profile-empty-panel{
  grid-column:1/-1;
}
body.profile-page .profile-history-grid .profile-recent-card{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:15px;
  min-height:172px;
  padding:13px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(14,16,22,.8),rgba(22,17,23,.6));
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  transition:border-color .22s ease,background-color .22s ease,box-shadow .22s ease,filter .22s ease,transform .22s ease;
}
body.profile-page .profile-history-grid .profile-recent-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:0;
  background:radial-gradient(circle at 0 0,rgba(255,92,114,.15),transparent 48%);
  transition:opacity .22s ease;
}
body.profile-page .profile-history-grid .profile-recent-card:first-child{
  border-color:rgba(255,92,114,.22);
}
body.profile-page .profile-history-grid .profile-recent-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,92,114,.34);
  background:linear-gradient(135deg,rgba(20,21,28,.88),rgba(30,20,27,.72));
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  filter:none;
}
body.profile-page .profile-history-grid .profile-recent-card:hover::before{
  opacity:1;
}
body.profile-page .profile-history-grid .profile-recent-poster-wrap{
  width:96px;
  height:144px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:13px;
  box-shadow:0 9px 24px rgba(0,0,0,.28);
}
body.profile-page .profile-history-grid .profile-recent-poster{
  min-height:0;
}
body.profile-page .profile-history-grid .profile-recent-copy{
  align-content:center;
  gap:7px;
}
body.profile-page .profile-history-grid .profile-recent-copy strong{
  display:-webkit-box;
  overflow:hidden;
  color:#fff;
  font-size:16px;
  font-weight:850;
  line-height:1.28;
  max-width:100%;
  text-transform:none;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body.profile-page .profile-history-grid .profile-recent-meta{
  gap:7px;
  font-size:11px;
}
body.profile-page .profile-history-grid .profile-recent-badge{
  min-height:21px;
  padding:0 8px;
  border-color:rgba(255,112,132,.24);
  color:#ffd4dc;
  background:rgba(255,92,114,.13);
  font-size:10px;
  font-weight:850;
}
body.profile-page .profile-history-grid .profile-recent-year{
  color:rgba(255,255,255,.48);
  font-weight:700;
}
body.profile-page .profile-recent-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:rgba(255,255,255,.56);
  font-size:11px;
  line-height:1.2;
}
body.profile-page .profile-recent-progress-meta>span{
  min-width:0;
  overflow-wrap:anywhere;
}
body.profile-page .profile-recent-progress-meta b{
  color:rgba(255,255,255,.74);
  font-size:10px;
}
body.profile-page .profile-recent-progress{
  display:block;
  width:100%;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.09);
}
body.profile-page .profile-recent-progress i{
  display:block;
  height:100%;
  min-width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff4f6d,#ff8a6b);
  box-shadow:0 0 12px rgba(255,79,109,.38);
}
body.profile-page .profile-recent-continue{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-top:2px;
  color:rgba(255,255,255,.8);
  font-size:11px;
  font-weight:800;
}
body.profile-page .profile-recent-continue b{
  color:var(--profile-history-accent);
  font-size:16px;
  line-height:1;
}
@media(max-width:760px){
  body.profile-page .profile-history-head{
    align-items:flex-end;
  }
  body.profile-page .profile-history-grid{
    grid-template-columns:minmax(0,1fr);
    gap:11px;
  }
  body.profile-page .profile-history-grid .profile-recent-card{
    grid-template-columns:84px minmax(0,1fr);
    min-height:140px;
    padding:11px;
    border-radius:16px;
  }
  body.profile-page .profile-history-grid .profile-recent-poster-wrap{
    width:84px;
    height:126px;
    border-radius:12px;
  }
  body.profile-page .profile-history-grid .profile-recent-copy strong{
    font-size:15px;
  }
}
@media(max-width:420px){
  body.profile-page .profile-history-head{
    align-items:flex-start;
  }
  body.profile-page .profile-history-toggle{
    min-height:32px;
    padding:0 10px;
    font-size:10px;
  }
  body.profile-page .profile-history-grid .profile-recent-card{
    grid-template-columns:74px minmax(0,1fr);
    gap:11px;
    min-height:127px;
  }
  body.profile-page .profile-history-grid .profile-recent-poster-wrap{
    width:74px;
    height:111px;
  }
  body.profile-page .profile-recent-continue{
    font-size:10px;
  }
}
