.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.flex {
  display: flex !important;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 0.5rem;
}

.gap-12 {
  gap: 0.75rem;
}

.gap-16 {
  gap: 1rem;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.mb-16 {
  margin-bottom: 1rem;
}

.mb-20 {
  margin-bottom: 1.25rem;
}

.mt-8 {
  margin-top: 0.5rem;
}

.mt-15 {
  margin-top: 0.9375rem;
}

.mt-16 {
  margin-top: 1rem;
}

.cursor-pointer {
  cursor: pointer;
}

.w-full {
  width: 100%;
}

.max-w-1000 {
  max-width: 73rem;
  margin: 0 auto;
}

.content-wrapper {
  width: 100%;
  max-width: 73rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem 10rem;
  box-sizing: border-box
}

.profile-title {
  color: #fff;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-content-narrow {
  width: 20rem !important;
  max-width: 20rem !important;
  min-width: 20rem !important;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-container {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  top: -0.875rem;
  contain: layout paint;
}

.preview-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  max-width: 61.25rem;
  margin: 0 auto;
  position: relative;
  padding: 0 1.5rem;
}

.edit-title-container {
  align-self: flex-start;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #2F2F2F;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  flex: 1;
  transition: all 0.2s ease;
}

.edit-text-active {
  flex: 1;
  text-align: left;
  color: #EBEBEB;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.73125rem;
  letter-spacing: 0;
}

.edit-text-placeholder {
  flex: 1;
  text-align: left;
  color: #4d4d4d;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.73125rem;
  letter-spacing: 0;
  font-style: italic;
}

.edit-icon-wrapper {
  flex-shrink: 0;
}

.save-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #4CAF50;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.edit-desc-text {
  flex: 1;
  text-align: left;
  color: #828282;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.04em;
}

.edit-desc-placeholder {
  flex: 1;
  text-align: left;
  color: #4d4d4d;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

.file-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: #696969;
  margin-top: 0.625rem;
  align-self: flex-start;
  width: 100%;
  max-width: 60rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.5rem;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
}

.stat-text {
  line-height: 1.5rem;
}

.stat-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.5rem;
  cursor: pointer;
}

.stat-text-danger {
  line-height: 1.5rem;
  color: #ff7a7a;
  font-size: inherit;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #9aa;
}

.textarea-wrap {
  position: relative;
  display: block;
}

.textarea-wrap .char-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  margin: 0;
  pointer-events: none;
  background: rgba(24, 24, 24, 0.75);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.auth-notice {
  background: rgba(120, 157, 42, 0.1);
  border: 1px solid rgba(120, 157, 42, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.auth-notice-text {
  color: #789d2a;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.menu-icon {
  width: auto;
  height: auto;
  max-width: 1.25rem;
  max-height: 1.25rem;
}

.lock-icon {
  width: 1rem;
  height: 1rem;
}

.admin-icon {
  width: 1.5625rem;
  height: 1.5625rem;
}

.support-link {
  color: #789d2a;
  text-decoration: underline;
}

.empty-state-text {
  display: none;
}

.load-more-hidden {
  display: none;
}

.stat-value-accent {
  color: #789d2a;
}

.settings-grid {
  margin-bottom: 1.25rem;
}

.setting-desc {
  margin-top: 0.25rem;
}

.warning-text {
  color: #ff6b6b;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.loading-placeholder {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #666;
}

.session-count {
  color: #999;
  font-size: 0.9rem;
  font-weight: 600;
}

.sessions-detail {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.no-files-text {
  color: #b6c6e3;
  font-size: 1.08em;
}

.file-title-name {
  font-weight: 600;
  color: #e6e6e6;
}

.search-empty {
  padding: 0.75rem 1rem;
  color: #cfcfcf;
}

.search-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.search-audio-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.9;
}

.search-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  color: #e6e6e6;
  text-decoration: none;
}

.search-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.search-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-count-indicator {
  display: none;
  font-size: 0.875rem;
  color: #789D2A;
}

.file-count-danger {
  color: #ff6b6b;
}

.copy-helper {
  position: fixed;
  left: -9999px;
}

.banned-words-list {
  max-height: 12.5rem;
  overflow-y: auto;
  margin-top: 0.625rem;
}

.setting-desc {
  margin-top: 0.25rem;
}

.drop-sub-text {
  margin-top: 0.25rem;
  color: #999;
  font-size: 0.75rem;
}

.preview-wrapper {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  position: relative;
  contain: layout paint;
  width: 100%;
  max-width: 100%;
}

.preview-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.edit-row {
  align-self: flex-start;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  box-sizing: border-box;
}

.edit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #2F2F2F;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  flex: 1;
  transition: all 0.2s ease;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.edit-text {
  flex: 1;
  text-align: left;
  color: #EBEBEB;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.73125rem;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.edit-placeholder {
  flex: 1;
  text-align: left;
  color: #4d4d4d;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 2.73125rem;
  letter-spacing: 0;
  font-style: italic;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.edit-icon {
  flex-shrink: 0;
}

.save-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #4CAF50;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.desc-text {
  flex: 1;
  text-align: left;
  color: #828282;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.desc-placeholder {
  flex: 1;
  text-align: left;
  color: #4d4d4d;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: #696969;
  margin-top: 0.625rem;
  align-self: flex-start;
  width: 100%;
  max-width: 60rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.5rem;
}

.stat-img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
}

.stat-span {
  line-height: 1.5rem;
}

.stat-danger {
  line-height: 1.5rem;
  color: #ff7a7a;
  font-size: inherit;
}

.no-decoration {
  text-decoration: none;
}

.admin-icon {
  width: 1.5625rem;
  height: 1.5625rem;
}

.support-modal-email {
  margin-top: 1rem;
  font-size: 1rem;
  color: #999;
}

.copy-notice {
  position: fixed;
  background: #799d2a8e;
  color: #fff;
  font-family: Handjet, sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.copy-notice.fade-out {
  opacity: 0;
}

.file-count-success {
  color: #789D2A;
}

.file-count-danger {
  color: #ff6b6b;
}

.current-file-title {
  font-weight: 600;
  color: #e6e6e6;
}

.search-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0);
}

.search-dropdown {
  position: absolute;
  background: #3a3a3a;
  border-radius: 0.625rem;
  overflow: hidden;
}

.search-results-list {
  max-height: 60vh;
  overflow: auto;
  padding: 0.375rem 0;
}

.search-section-title {
  padding: 10px 18px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #4a4a4a;
}

.search-section-title:first-child {
  border-top: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #e6e6e6;
  text-decoration: none;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: #4a4a4a;
}

.search-result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-result-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.sr-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sr-audio-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.search-result-video {
  gap: 12px;
}

.sr-video-thumb {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-channel {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-user {
  gap: 10px;
}

.sr-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-username {
  font-weight: 600;
  font-size: 15px;
}

.search-empty {
  padding: 12px 16px;
  color: #cfcfcf;
}

.fallback-message {
  padding: 0.75rem 1rem;
  color: #cfcfcf;
}

.avatar-preview-uploaded {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.avatar-loading {
  transition: opacity 180ms ease-in-out;
  opacity: 0.2;
}

.seven-tv-painted {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
}

.album-counter-hidden {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.album-counter:not(.album-counter-hidden) {
  opacity: 0.95;
}

.clipboard-helper {
  position: fixed;
  left: -9999px;
}
.emote-inline {
  display: inline-block;
  height: 28px;
  max-height: 60px;
  max-width: 180px;
  vertical-align: middle;
  width: auto;
}

.emote-btn {
  align-items: center;
  background: none;
  border-radius: 0.375rem;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  padding: 0.3rem;
  transition: color 0.15s ease;
}

.emote-btn:hover {
  color: #789d2a;
}

.emote-ac {
  background: #1a1a1a;
  border-radius: 0.5rem;
  border: 1px solid #333;
  display: none;
  flex-direction: column;
  max-height: 14rem;
  overflow-y: auto;
  position: fixed;
  z-index: 9000;
}

.emote-ac-item {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.625rem;
}

.emote-ac-item span {
  color: #ccc;
  font-size: 0.9375rem;
}

.emote-ac-item img {
  height: 1.5rem;
  width: auto;
  flex-shrink: 0;
}

.emote-ac-item:hover,
.emote-ac-item.active {
  background: #2a2a2a;
}

.emote-picker {
  background: #1a1a1a;
  border-radius: 0.5rem;
  border: 1px solid #333;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 22rem;
  padding: 0.625rem;
  position: fixed;
  width: 18rem;
  z-index: 9001;
}

.emote-picker-search {
  background: #262626;
  border-radius: 0.375rem;
  border: 1px solid #333;
  box-sizing: border-box;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  padding: 0.4rem 0.625rem;
  width: 100%;
}

.emote-picker-search:focus {
  border-color: #789d2a;
}

.emote-picker-grid {
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  overflow-y: auto;
  padding: 0.125rem;
}

.emote-picker-item {
  align-items: center;
  background: none;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  padding: 0.25rem;
  transition: background 0.1s ease;
}

.emote-picker-item:hover,
.emote-picker-item.just-added {
  background: #2e2e2e;
}

.emote-picker-item.just-added {
  background: rgba(120, 157, 42, 0.25);
}

.emote-picker-item img {
  display: block;
  height: 32px;
  max-height: 32px;
  max-width: 96px;
  object-fit: contain;
  width: auto;
}

.hashtag {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.hashtag:hover {
  text-decoration: underline;
}

.tag-filter-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: rgba(120, 157, 42, 0.08);
  border: 1px solid rgba(120, 157, 42, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.95em;
}
.tag-filter-header.hidden {
  display: none;
}
.tag-filter-clear {
  cursor: pointer;
  opacity: 0.7;
  margin-left: 2px;
}
.tag-filter-clear:hover {
  opacity: 1;
}

.hashtag-ac-dropdown {
  background: var(--card-bg, #262626);
  border: 1px solid rgba(120, 157, 42, 0.35);
  border-radius: 6px;
  overflow: hidden;
}
.hashtag-ac-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.9em;
  gap: 8px;
}
.hashtag-ac-item:hover {
  background: rgba(120, 157, 42, 0.1);
}
.hashtag-ac-tag {
  color: var(--accent);
  font-weight: 500;
}
.hashtag-ac-count {
  color: #666;
  font-size: 0.82em;
}

.search-result-hashtag {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sr-hashtag-icon {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.sr-hashtag-label {
  font-size: 0.95em;
  color: var(--muted, #989898);
}
.sr-hashtag-label b {
  color: var(--accent);
  font-weight: 600;
}
