/* Vinland Saga Peace Arc - Wheat & Golden Theme */
/* Global layout & theme */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #3a3428;
  background: #f5ead8;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text selection styling */
::selection {
  background-color: rgba(218, 185, 146, 0.5);
  color: #3a3428;
}

::-moz-selection {
  background-color: rgba(218, 185, 146, 0.5);
  color: #3a3428;
}

body.profile-page.theme-vinland {
  background: #f5ead8;
  background-image: url('QJrqRiinbD.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.profile-page.theme-tokyo-ghoul {
  background: #050509;
  background-image: url('TGwallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #f5f5f7;
}

body.profile-page.theme-k-on {
  background: #f8f4ff;
  background-image: url('K-ON.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #1b1530;
}

body.profile-page.theme-chainsawman {
  background: #050505;
  background-image: url('csm.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fdf6e3;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 234, 216, 0);
  z-index: 0;
  pointer-events: none;
}

/* Top bar - Wheat Theme */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: rgba(58, 52, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 111, 71, 0.3);
  z-index: 20;
  font-size: 14px;
}

.top-bar::before {
  display: none;
}

.top-bar-spacer {
  flex: 1;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  background: rgba(58, 52, 40, 0.7);
  cursor: pointer;
  padding: 8px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.start-button:focus-visible {
  outline: 2px solid rgba(139, 111, 71, 0.6);
  outline-offset: 2px;
}

.start-button:hover {
  border-color: rgba(139, 111, 71, 0.6);
  background: rgba(58, 52, 40, 0.85);
  transform: translateY(-1px);
}

.start-button:active {
  transform: translateY(0);
  background: rgba(58, 52, 40, 0.8);
}

.win-logo {
  position: relative;
  width: 16px;
  height: 16px;
  display: grid;
  grid-template-columns: 7px 7px;
  grid-template-rows: 7px 7px;
  gap: 2px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.win-logo .pane {
  background: #8b6f47;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 2px;
  opacity: 0.7;
}

.top-bar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  font-size: 11px;
}

.user-info-main {
  color: #e8e0d0;
  font-weight: 600;
}

.user-info-main.hidden {
  display: none;
}

.auth-buttons-main {
  display: flex;
  gap: 6px;
}

.login-button-main,
.signup-button-main {
  padding: 10px 20px;
  background: rgba(58, 52, 40, 0.8);
  border: 1px solid rgba(139, 111, 71, 0.4);
  color: #e8e0d0;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.login-button-main:hover,
.signup-button-main:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.6);
  color: #f5ead8;
  transform: translateY(-1px);
}

/* Theme-specific auth button colors */
body.profile-page.theme-tokyo-ghoul .login-button-main,
body.profile-page.theme-tokyo-ghoul .signup-button-main {
  background: rgba(10, 10, 18, 0.96);
  border-color: rgba(230, 230, 230, 0.55);
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .login-button-main:hover,
body.profile-page.theme-tokyo-ghoul .signup-button-main:hover {
  background: rgba(16, 16, 28, 0.98);
  border-color: rgba(245, 245, 245, 0.9);
  color: #ffffff;
}

body.profile-page.theme-k-on .login-button-main,
body.profile-page.theme-k-on .signup-button-main {
  background: rgba(76, 70, 135, 0.96);
  border-color: rgba(255, 230, 246, 0.95);
  color: #ffeefe;
}

body.profile-page.theme-k-on .login-button-main:hover,
body.profile-page.theme-k-on .signup-button-main:hover {
  background: rgba(88, 80, 150, 0.98);
  border-color: rgba(255, 238, 254, 1);
  color: #ffffff;
}

body.profile-page.theme-chainsawman .login-button-main,
body.profile-page.theme-chainsawman .signup-button-main {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .login-button-main:hover,
body.profile-page.theme-chainsawman .signup-button-main:hover {
  background: rgba(12, 15, 12, 0.98);
  border-color: rgba(244, 193, 92, 1);
  color: #fdf6e3;
}

.top-bar-clock {
  min-width: 96px;
  text-align: right;
  font-size: 13px;
  color: #e8e0d0;
  font-weight: 500;
}

/* Theme-specific clock colors */
body.profile-page.theme-tokyo-ghoul .top-bar-clock {
  color: #f5f5f7;
}

body.profile-page.theme-k-on .top-bar-clock {
  color: #ffe7f5;
}

body.profile-page.theme-chainsawman .top-bar-clock {
  color: #fdf6e3;
}

/* Start menu panel */
.start-menu {
  position: fixed;
  top: 60px;
  left: 20px;
  width: 280px;
  max-width: calc(100% - 40px);
  background: rgba(58, 52, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform-origin: top left;
  transform: scale(0.96) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 25;
}

.start-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.start-menu-inner {
  padding: 8px 0;
}

.start-menu-section {
  margin-bottom: 8px;
}

.start-menu-title {
  display: none;
}


.start-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #e8e0d0;
  background: transparent;
  border: 1px solid rgba(139, 111, 71, 0.4);
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
  border-radius: 8px;
  margin: 4px 12px;
}

.start-menu-item.theme-item {
  text-align: left;
}

.start-menu-item.theme-item.active-theme {
  background: rgba(218, 185, 146, 0.2);
  color: #f5ead8;
  border: 1px solid rgba(218, 185, 146, 0.5);
}

.start-menu-item:hover {
  background: rgba(139, 111, 71, 0.2);
  color: #f5ead8;
  border-color: rgba(139, 111, 71, 0.7);
}

/* Theme-specific start menu buttons (Profile / Chatroom / Themes) */
body.profile-page.theme-tokyo-ghoul .start-menu-item {
  background: transparent;
  border-color: rgba(230, 230, 230, 0.35);
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .start-menu-item:hover {
  background: rgba(16, 16, 28, 0.98);
  border-color: rgba(245, 245, 245, 0.9);
  color: #ffffff;
}

body.profile-page.theme-k-on .start-menu-item {
  background: transparent;
  border-color: rgba(255, 230, 246, 0.8);
  color: #fdf7ff;
}

body.profile-page.theme-k-on .start-menu-item:hover {
  background: rgba(64, 55, 125, 0.98);
  border-color: rgba(255, 238, 254, 1);
  color: #ffffff;
}

body.profile-page.theme-chainsawman .start-menu-item {
  background: transparent;
  border-color: rgba(244, 193, 92, 0.85);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .start-menu-item:hover {
  background: rgba(12, 15, 12, 0.98);
  border-color: rgba(244, 193, 92, 1);
  color: #fdf6e3;
}

.start-menu-item.hidden {
  display: none;
}

.start-menu-label {
  flex: 1;
}

/* Profile page - Wheat Theme */
.profile-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 240px;
}

.profile-card {
  width: 100%;
  max-width: 540px;
  background: rgba(58, 52, 40, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 32px;
  position: relative;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(218, 185, 146, 0.5);
  flex-shrink: 0;
  background: rgba(255, 248, 235, 0.8);
  box-shadow: 0 4px 12px rgba(58, 52, 40, 0.1);
}

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

.profile-text-main {
  flex: 1;
}

.profile-username {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e8e0d0;
  letter-spacing: -0.02em;
}

.profile-handle {
  font-size: 0.95rem;
  color: #c4b8a8;
  font-family: inherit;
  margin-top: 2px;
}

.profile-tagline {
  font-size: 0.9rem;
  color: #a8957d;
  margin-top: 6px;
  font-style: italic;
}

.profile-divider {
  height: 1px;
  background: rgba(218, 185, 146, 0.4);
  margin: 20px 0 16px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 14px 16px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.7);
  color: #e8e0d0;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
  border-radius: 10px;
}

.profile-link:hover {
  background: rgba(58, 52, 40, 0.85);
  border-color: rgba(139, 111, 71, 0.5);
  color: #f5ead8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(58, 52, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 111, 71, 0.3);
  opacity: 0.7;
}

.profile-link-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0.6) contrast(0.8);
}

.profile-link-label-main {
  font-weight: 500;
  color: #e8e0d0;
}

.profile-link-label-sub {
  display: none;
  font-size: 0.8rem;
  color: #6b5d47;
  font-family: inherit;
}

.profile-link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-link-like {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(139, 111, 71, 0.3);
  padding: 6px 12px;
  cursor: pointer;
  color: #a8957d;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
  font-family: inherit;
  font-size: 11px;
  border-radius: 6px;
}

.profile-link-like:hover {
  color: #c4b8a8;
  background: rgba(139, 111, 71, 0.2);
  border-color: rgba(139, 111, 71, 0.5);
}

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

.profile-link-like.liked {
  color: #c4b8a8;
  border-color: rgba(139, 111, 71, 0.5);
  background: rgba(139, 111, 71, 0.15);
}

.profile-link-like.liked .like-icon {
  fill: #c4b8a8;
  stroke: #c4b8a8;
}

.profile-link-like:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.like-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  transition: fill 0.1s ease-out, stroke 0.1s ease-out;
}

.like-count {
  font-size: 9px;
  font-weight: bold;
  color: currentColor;
  min-width: 12px;
  text-align: center;
}

/* Custom Modal Styles - Wheat Theme */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.custom-modal.hidden {
  display: none;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.custom-modal-content {
  position: relative;
  background: rgba(58, 52, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 480px;
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.3s ease-out;
  z-index: 1001;
}

.custom-modal.active .custom-modal-content {
  transform: scale(1) translateY(0);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(218, 185, 146, 0.4);
}

.custom-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e8e0d0;
  margin: 0;
  letter-spacing: -0.01em;
}

.custom-modal-close {
  background: transparent;
  border: 1px solid rgba(139, 111, 71, 0.3);
  padding: 6px;
  cursor: pointer;
  color: #a8957d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
}

.custom-modal-close:hover {
  color: #e8e0d0;
  background: rgba(139, 111, 71, 0.2);
  border-color: rgba(139, 111, 71, 0.5);
}

/* Theme-specific window close button (top-right X) */
body.profile-page.theme-tokyo-ghoul .custom-modal-close {
  border-color: rgba(230, 230, 230, 0.5);
  color: #d9d9e0;
}

body.profile-page.theme-tokyo-ghoul .custom-modal-close:hover {
  background: rgba(245, 245, 245, 0.12);
  border-color: rgba(245, 245, 245, 0.9);
  color: #ffffff;
}

body.profile-page.theme-k-on .custom-modal-close {
  border-color: rgba(255, 214, 235, 0.9);
  color: #ffe7f5;
}

body.profile-page.theme-k-on .custom-modal-close:hover {
  background: rgba(255, 214, 235, 0.22);
  border-color: rgba(255, 214, 235, 1);
  color: #ffffff;
}

body.profile-page.theme-chainsawman .custom-modal-close {
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .custom-modal-close:hover {
  background: rgba(244, 193, 92, 0.25);
  border-color: rgba(244, 193, 92, 1);
  color: #fdf6e3;
}

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

.custom-modal-body {
  padding: 24px 28px;
}

.custom-modal-message {
  font-size: 0.95rem;
  color: #e8e0d0;
  margin: 0;
  line-height: 1.6;
  font-family: inherit;
}

.custom-modal-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(218, 185, 146, 0.4);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-modal-button {
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  background: rgba(58, 52, 40, 0.8);
  color: #e8e0d0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.custom-modal-button:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.6);
  color: #f5ead8;
  transform: translateY(-1px);
}

.custom-modal-button:active {
  transform: translateY(0);
}

.cancel-btn-main {
  background: transparent;
  border-color: rgba(139, 111, 71, 0.3);
  color: #a8957d;
}

.cancel-btn-main:hover {
  border-color: rgba(139, 111, 71, 0.5);
  background: rgba(139, 111, 71, 0.15);
  color: #e8e0d0;
}

.auth-form-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-main label {
  font-size: 0.9rem;
  color: #e8e0d0;
  font-weight: 500;
}

.form-group-main input[type="text"],
.form-group-main input[type="password"],
.chatroom-textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.7);
  color: #e8e0d0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group-main input[type="text"]:focus,
.form-group-main input[type="password"]:focus,
.chatroom-textarea:focus {
  outline: none;
  border-color: rgba(139, 111, 71, 0.5);
  background: rgba(58, 52, 40, 0.85);
  color: #f5ead8;
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.checkbox-group-main {
  margin: 4px 0;
}

.checkbox-label-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #e8e0d0;
}

.checkbox-label-main input[type="checkbox"] {
  display: none;
}

.checkbox-custom-main {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 6px;
  background: rgba(58, 52, 40, 0.7);
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label-main input[type="checkbox"]:checked + .checkbox-custom-main {
  background: rgba(139, 111, 71, 0.3);
  border-color: rgba(139, 111, 71, 0.6);
}

.checkbox-label-main input[type="checkbox"]:checked + .checkbox-custom-main::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-error-main {
  padding: 12px 16px;
  background: rgba(200, 120, 100, 0.2);
  border: 1px solid rgba(200, 120, 100, 0.5);
  border-radius: 10px;
  color: #8b5a4a;
  font-size: 0.9rem;
  font-family: inherit;
}

.auth-error-main.hidden {
  display: none;
}

/* Music Player - Wheat Theme */
.music-player {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 640px;
  min-height: 140px;
  background: rgba(58, 52, 40, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  overflow: hidden;
}

/* Theme menu overlay */
.theme-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
}

.theme-menu.open {
  display: flex;
}

.theme-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-menu-content {
  position: relative;
  z-index: 41;
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  border-radius: 16px;
  padding: 20px 22px 22px;
  background: rgba(58, 52, 40, 0.96);
  border: 1px solid rgba(139, 111, 71, 0.6);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

.theme-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.theme-menu-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8e0d0;
}

.theme-menu-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(139, 111, 71, 0.6);
  background: rgba(58, 52, 40, 0.9);
  color: #e8e0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-menu-close:hover {
  background: rgba(139, 111, 71, 0.3);
}

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

.theme-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  padding: 14px 14px 16px;
  background: rgba(58, 52, 40, 0.85);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  border-color: rgba(218, 185, 146, 0.8);
}

/* Theme-specific theme selector styling */
body.profile-page.theme-tokyo-ghoul .theme-menu-content {
  background: rgba(5, 5, 12, 0.98);
  border-color: rgba(230, 230, 230, 0.55);
}

body.profile-page.theme-tokyo-ghoul .theme-card {
  background: rgba(10, 10, 20, 0.95);
  border-color: rgba(230, 230, 230, 0.45);
}

body.profile-page.theme-tokyo-ghoul .theme-card:hover {
  border-color: rgba(245, 245, 245, 0.95);
}

body.profile-page.theme-k-on .theme-menu-content {
  background: rgba(10, 8, 24, 0.98);
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .theme-card {
  background: rgba(15, 13, 32, 0.96);
  border-color: rgba(199, 145, 208, 0.8);
}

body.profile-page.theme-k-on .theme-card:hover {
  border-color: rgba(219, 173, 235, 1);
}

body.profile-page.theme-chainsawman .theme-menu-content {
  background: rgba(5, 6, 5, 0.98);
  border-color: rgba(244, 193, 92, 0.95);
}

body.profile-page.theme-chainsawman .theme-card {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.85);
}

body.profile-page.theme-chainsawman .theme-card:hover {
  border-color: rgba(244, 193, 92, 1);
}

.theme-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f5ead8;
}

.theme-card-subtitle {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #c4b8a8;
}

.theme-card.theme-item.active-theme {
  border-color: rgba(218, 185, 146, 1);
  box-shadow: 0 0 0 1px rgba(218, 185, 146, 0.4), 0 14px 34px rgba(0, 0, 0, 0.7);
}

@media (max-width: 480px) {
  .theme-menu-content {
    margin: 0 12px;
    padding: 18px 16px 18px;
  }

  .theme-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Tokyo Ghoul Theme Overrides */
body.profile-page.theme-tokyo-ghoul .top-bar {
  background: rgba(5, 5, 7, 0.94);
  border-bottom-color: rgba(230, 230, 230, 0.6);
}

body.profile-page.theme-tokyo-ghoul .start-button {
  background: rgba(12, 12, 18, 0.96);
  border-color: rgba(230, 230, 230, 0.55);
}

body.profile-page.theme-tokyo-ghoul .win-logo .pane {
  background: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .start-menu {
  background: rgba(3, 3, 6, 0.98);
  border-color: rgba(230, 230, 230, 0.5);
}

body.profile-page.theme-tokyo-ghoul .start-menu-item.theme-item.active-theme {
  background: rgba(240, 240, 240, 0.12);
  border-color: rgba(240, 240, 240, 0.9);
}

body.profile-page.theme-tokyo-ghoul .profile-card {
  background: rgba(3, 3, 6, 0.96);
  border-color: rgba(230, 230, 230, 0.5);
}

body.profile-page.theme-tokyo-ghoul .profile-username {
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .profile-handle {
  color: #bcbcc8;
}

body.profile-page.theme-tokyo-ghoul .profile-tagline {
  color: #e5e5e5;
}

body.profile-page.theme-tokyo-ghoul .profile-divider {
  background: rgba(230, 230, 230, 0.6);
}

body.profile-page.theme-tokyo-ghoul .profile-link {
  background: rgba(10, 10, 18, 0.9);
  border-color: rgba(230, 230, 230, 0.35);
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .profile-link:hover {
  background: rgba(16, 16, 28, 0.98);
  border-color: rgba(245, 245, 245, 0.9);
}

/* Social link icon container + icon */
body.profile-page.theme-tokyo-ghoul .profile-link-icon {
  background: rgba(5, 5, 10, 0.9);
  border-color: rgba(230, 230, 230, 0.5);
  opacity: 0.9;
}

body.profile-page.theme-tokyo-ghoul .profile-link-icon img {
  opacity: 0.9;
  filter: none;
}

body.profile-page.theme-tokyo-ghoul .profile-link-like {
  border-color: rgba(230, 230, 230, 0.55);
  color: #d9d9e0;
}

body.profile-page.theme-tokyo-ghoul .profile-link-like.liked {
  background: rgba(245, 245, 245, 0.1);
  color: #ffffff;
}

body.profile-page.theme-tokyo-ghoul .music-player {
  background: rgba(5, 5, 10, 0.95);
  border-color: rgba(230, 230, 230, 0.55);
}

body.profile-page.theme-tokyo-ghoul .music-player-progress-bar {
  background: rgba(245, 245, 245, 0.2);
}

body.profile-page.theme-tokyo-ghoul .music-player-progress-fill {
  background: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .music-player-btn {
  background: rgba(10, 10, 18, 0.9);
  border-color: rgba(230, 230, 230, 0.5);
}

body.profile-page.theme-tokyo-ghoul .music-player-volume-btn {
  background: rgba(10, 10, 18, 0.9);
  border-color: rgba(230, 230, 230, 0.5);
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .music-player-volume-slider {
  background: rgba(245, 245, 245, 0.25);
}

body.profile-page.theme-tokyo-ghoul .play-pause-btn {
  background: rgba(245, 245, 245, 0.2);
}

body.profile-page.theme-tokyo-ghoul .custom-modal-content,
body.profile-page.theme-tokyo-ghoul .chatroom-sidebar,
body.profile-page.theme-tokyo-ghoul .chatroom-messages,
body.profile-page.theme-tokyo-ghoul .chatroom-input-container,
body.profile-page.theme-tokyo-ghoul .custom-notification-content {
  background: rgba(5, 5, 12, 0.96);
  border-color: rgba(230, 230, 230, 0.5);
}

body.profile-page.theme-tokyo-ghoul .chatroom-message {
  background: rgba(10, 10, 20, 0.9);
  border-color: rgba(230, 230, 230, 0.5);
}

body.profile-page.theme-tokyo-ghoul .chatroom-message.own-message {
  background: rgba(245, 245, 245, 0.12);
}

body.profile-page.theme-tokyo-ghoul .chatroom-send-btn,
body.profile-page.theme-tokyo-ghoul .custom-modal-button {
  background: rgba(10, 10, 20, 0.95);
  border-color: rgba(230, 230, 230, 0.55);
  color: #f5f5f7;
}

body.profile-page.theme-tokyo-ghoul .chatroom-input,
body.profile-page.theme-tokyo-ghoul .form-group-main input[type="text"],
body.profile-page.theme-tokyo-ghoul .form-group-main input[type="password"] {
  background: rgba(5, 5, 14, 0.9);
  border-color: rgba(230, 230, 230, 0.55);
  color: #f5f5f7;
}

/* K-ON Theme Overrides */
body.profile-page.theme-k-on .top-bar {
  background: rgba(7, 6, 15, 0.97);
  border-bottom-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .start-button {
  background: rgba(24, 20, 48, 0.96);
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .win-logo .pane {
  background: #e2b0f0;
}

body.profile-page.theme-k-on .start-menu {
  background: rgba(10, 8, 24, 0.97);
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .start-menu-item.theme-item.active-theme {
  background: rgba(232, 193, 246, 0.3);
  border-color: rgba(255, 255, 255, 0.9);
}

body.profile-page.theme-k-on .profile-card {
  background: radial-gradient(circle at top left, rgba(40, 30, 70, 0.96), rgba(5, 4, 15, 0.98));
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .profile-username {
  color: #fff9ff;
}

body.profile-page.theme-k-on .profile-handle {
  color: #e3ddff;
}

body.profile-page.theme-k-on .profile-tagline {
  color: #ffd6eb;
}

body.profile-page.theme-k-on .profile-divider {
  background: linear-gradient(90deg, rgba(255, 214, 235, 0.9), rgba(199, 145, 208, 0.9));
}

body.profile-page.theme-k-on .profile-link {
  background: rgba(15, 13, 32, 0.96);
  border-color: rgba(199, 145, 208, 0.85);
  color: #fdf7ff;
}

body.profile-page.theme-k-on .profile-link:hover {
  background: rgba(24, 21, 48, 0.98);
  border-color: rgba(219, 173, 235, 1);
}

/* Social link icon container + icon */
body.profile-page.theme-k-on .profile-link-icon {
  background: rgba(24, 21, 48, 0.96);
  border-color: rgba(199, 145, 208, 0.9);
  opacity: 0.95;
}

body.profile-page.theme-k-on .profile-link-icon img {
  opacity: 0.95;
  filter: none;
}

body.profile-page.theme-k-on .profile-link-like {
  border-color: rgba(255, 230, 246, 0.95);
  color: #ffeefe;
}

body.profile-page.theme-k-on .profile-link-like.liked {
  background: rgba(255, 214, 235, 0.24);
  color: #ffffff;
}

body.profile-page.theme-k-on .music-player {
  background: rgba(10, 8, 24, 0.98);
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .music-player-progress-bar {
  background: rgba(255, 230, 246, 0.4);
}

body.profile-page.theme-k-on .music-player-progress-fill {
  background: linear-gradient(90deg, #ffe6f7, #e2b0f0);
}

body.profile-page.theme-k-on .music-player-btn {
  background: rgba(24, 21, 48, 0.96);
  border-color: rgba(199, 145, 208, 0.9);
}

body.profile-page.theme-k-on .music-player-volume-btn {
  background: rgba(24, 21, 48, 0.96);
  border-color: rgba(199, 145, 208, 0.9);
  color: #fdf7ff;
}

body.profile-page.theme-k-on .music-player-volume-slider {
  background: rgba(255, 230, 246, 0.3);
}

body.profile-page.theme-k-on .play-pause-btn {
  background: radial-gradient(circle at 30% 30%, #ffeefe, #e2b0f0);
  border-color: rgba(219, 173, 235, 1);
  color: #130e26;
}

body.profile-page.theme-k-on .custom-modal-content,
body.profile-page.theme-k-on .chatroom-sidebar,
body.profile-page.theme-k-on .chatroom-messages,
body.profile-page.theme-k-on .chatroom-input-container,
body.profile-page.theme-k-on .custom-notification-content {
  background: rgba(36, 32, 80, 0.97);
  border-color: rgba(255, 214, 235, 0.9);
}

body.profile-page.theme-k-on .chatroom-message {
  background: rgba(42, 37, 92, 0.97);
  border-color: rgba(255, 214, 235, 0.9);
}

body.profile-page.theme-k-on .chatroom-message.own-message {
  background: rgba(255, 214, 235, 0.24);
}

body.profile-page.theme-k-on .chatroom-send-btn,
body.profile-page.theme-k-on .custom-modal-button {
  background: rgba(48, 45, 90, 0.98);
  border-color: rgba(255, 214, 235, 0.9);
  color: #fdf7ff;
}

body.profile-page.theme-k-on .chatroom-input,
body.profile-page.theme-k-on .form-group-main input[type="text"],
body.profile-page.theme-k-on .form-group-main input[type="password"] {
  background: rgba(36, 32, 80, 0.96);
  border-color: rgba(255, 214, 235, 0.9);
  color: #fdf7ff;
}

/* Chainsaw Man Theme Overrides */
body.profile-page.theme-chainsawman .top-bar {
  background: rgba(10, 10, 12, 0.94);
  border-bottom-color: rgba(244, 193, 92, 0.9);
}

body.profile-page.theme-chainsawman .start-button {
  background: rgba(18, 18, 20, 0.95);
  border-color: rgba(244, 193, 92, 0.85);
}

body.profile-page.theme-chainsawman .win-logo .pane {
  background: #f4c15c;
}

body.profile-page.theme-chainsawman .start-menu {
  background: rgba(5, 6, 5, 0.97);
  border-color: rgba(244, 193, 92, 0.9);
}

body.profile-page.theme-chainsawman .start-menu-item.theme-item.active-theme {
  background: rgba(244, 193, 92, 0.25);
  border-color: rgba(244, 193, 92, 1);
}

body.profile-page.theme-chainsawman .profile-card {
  background: radial-gradient(circle at 10% 0, rgba(244, 193, 92, 0.35), rgba(5, 6, 5, 0.97));
  border-color: rgba(244, 193, 92, 0.95);
}

body.profile-page.theme-chainsawman .profile-username {
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .profile-handle {
  color: #ffbb7a;
}

body.profile-page.theme-chainsawman .profile-tagline {
  color: #ffd38a;
}

body.profile-page.theme-chainsawman .profile-divider {
  background: linear-gradient(90deg, rgba(244, 193, 92, 0.9), rgba(244, 193, 92, 0.2));
}

body.profile-page.theme-chainsawman .profile-link {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.85);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .profile-link:hover {
  background: rgba(12, 15, 12, 0.98);
  border-color: rgba(244, 193, 92, 1);
}

/* Social link icon container + icon */
body.profile-page.theme-chainsawman .profile-link-icon {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
  opacity: 0.95;
}

body.profile-page.theme-chainsawman .profile-link-icon img {
  opacity: 0.95;
  filter: none;
}

body.profile-page.theme-chainsawman .profile-link-like {
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .profile-link-like.liked {
  background: rgba(244, 193, 92, 0.24);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .music-player {
  background: rgba(5, 6, 5, 0.97);
  border-color: rgba(244, 193, 92, 0.95);
}

body.profile-page.theme-chainsawman .music-player-progress-bar {
  background: rgba(244, 193, 92, 0.35);
}

body.profile-page.theme-chainsawman .music-player-progress-fill {
  background: #f4c15c;
}

body.profile-page.theme-chainsawman .music-player-btn {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
}

body.profile-page.theme-chainsawman .music-player-volume-btn {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .music-player-volume-slider {
  background: rgba(244, 193, 92, 0.35);
}

body.profile-page.theme-chainsawman .play-pause-btn {
  background: radial-gradient(circle at 30% 30%, #fff3d4, #f4c15c);
  border-color: rgba(244, 193, 92, 1);
  color: #211303;
}

body.profile-page.theme-chainsawman .custom-modal-content,
body.profile-page.theme-chainsawman .chatroom-sidebar,
body.profile-page.theme-chainsawman .chatroom-messages,
body.profile-page.theme-chainsawman .chatroom-input-container,
body.profile-page.theme-chainsawman .custom-notification-content {
  background: rgba(5, 6, 5, 0.97);
  border-color: rgba(244, 193, 92, 0.95);
}

body.profile-page.theme-chainsawman .chatroom-message {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
}

body.profile-page.theme-chainsawman .chatroom-message.own-message {
  background: rgba(244, 193, 92, 0.25);
}

body.profile-page.theme-chainsawman .chatroom-send-btn,
body.profile-page.theme-chainsawman .custom-modal-button {
  background: rgba(8, 10, 8, 0.98);
  border-color: rgba(244, 193, 92, 0.95);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .chatroom-input,
body.profile-page.theme-chainsawman .form-group-main input[type="text"],
body.profile-page.theme-chainsawman .form-group-main input[type="password"] {
  background: rgba(8, 10, 8, 0.96);
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

.music-player::before {
  display: none;
}

.music-player-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.music-player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.music-player-title-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.music-player-title {
  font-size: 1rem;
  font-weight: 500;
  color: #e8e0d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding-right: 60px;
  padding-left: 60px;
}

.music-player-like {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(218, 185, 146, 0.4);
  padding: 6px 12px;
  cursor: pointer;
  color: #8b7a63;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  border-radius: 6px;
}

.music-player-like:hover {
  color: #6b5d47;
  background: rgba(218, 185, 146, 0.2);
  border-color: rgba(218, 185, 146, 0.6);
}

.music-player-like:active {
  transform: scale(0.95);
}

.music-player-like.liked {
  color: #6b5d47;
  border-color: rgba(218, 185, 146, 0.6);
  background: rgba(218, 185, 146, 0.15);
}

.music-player-like.liked .like-icon {
  fill: #6b5d47;
  stroke: #6b5d47;
}

.music-player-like:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.music-player-like .like-icon {
  width: 12px;
  height: 12px;
}

.music-player-like .like-count {
  font-size: 9px;
  font-weight: bold;
}

.music-player-artist {
  font-size: 10px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-player-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.music-player-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(218, 185, 146, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.music-player-progress-fill {
  height: 100%;
  background: #d4a582;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.music-player-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a8957d;
  font-family: inherit;
}

/* Theme-specific music player text and like button colors */
body.profile-page.theme-tokyo-ghoul .music-player-title {
  color: #f5f5f7;
}

body.profile-page.theme-k-on .music-player-title {
  color: #fdf7ff;
}

body.profile-page.theme-chainsawman .music-player-title {
  color: #fdf6e3;
}

body.profile-page.theme-tokyo-ghoul .music-player-like {
  border-color: rgba(245, 245, 245, 0.5);
  color: #d9d9e0;
}

body.profile-page.theme-tokyo-ghoul .music-player-like.liked {
  background: rgba(245, 245, 245, 0.1);
  color: #ffffff;
}

body.profile-page.theme-k-on .music-player-like {
  border-color: rgba(255, 214, 235, 0.9);
  color: #ffe7f5;
}

body.profile-page.theme-k-on .music-player-like.liked {
  background: rgba(255, 214, 235, 0.24);
  color: #ffffff;
}

body.profile-page.theme-chainsawman .music-player-like {
  border-color: rgba(244, 193, 92, 0.9);
  color: #fdf6e3;
}

body.profile-page.theme-chainsawman .music-player-like.liked {
  background: rgba(244, 193, 92, 0.24);
  color: #fdf6e3;
}

body.profile-page.theme-tokyo-ghoul .music-player-time {
  color: #bcbcc8;
}

body.profile-page.theme-k-on .music-player-time {
  color: #ffe7f5;
}

body.profile-page.theme-chainsawman .music-player-time {
  color: #ffbb7a;
}

.music-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  position: relative;
}

.music-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 0;
}

.music-player-volume-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.8);
  color: #e8e0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.music-player-volume-btn:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.5);
}

.music-player-volume-btn .volume-icon {
  width: 18px;
  height: 18px;
}

.music-player-volume-btn .hidden {
  display: none;
}

.music-player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(218, 185, 146, 0.35);
  outline: none;
  cursor: pointer;
}

.music-player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4a582;
  box-shadow: 0 0 0 2px rgba(58, 52, 40, 0.9);
}

.music-player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4a582;
  border: 0;
}

/* Theme-specific volume slider thumb colors */
body.profile-page.theme-tokyo-ghoul .music-player-volume-slider::-webkit-slider-thumb {
  background: #f5f5f7;
  box-shadow: 0 0 0 2px rgba(5, 5, 12, 0.9);
}

body.profile-page.theme-tokyo-ghoul .music-player-volume-slider::-moz-range-thumb {
  background: #f5f5f7;
}

body.profile-page.theme-k-on .music-player-volume-slider::-webkit-slider-thumb {
  background: #ffd6eb;
  box-shadow: 0 0 0 2px rgba(36, 32, 80, 0.96);
}

body.profile-page.theme-k-on .music-player-volume-slider::-moz-range-thumb {
  background: #ffd6eb;
}

body.profile-page.theme-chainsawman .music-player-volume-slider::-webkit-slider-thumb {
  background: #f4c15c;
  box-shadow: 0 0 0 2px rgba(5, 6, 5, 0.97);
}

body.profile-page.theme-chainsawman .music-player-volume-slider::-moz-range-thumb {
  background: #f4c15c;
}

.music-player-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(58, 52, 40, 0.8);
  border: 1px solid rgba(139, 111, 71, 0.3);
  color: #e8e0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.music-player-btn:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.5);
  color: #f5ead8;
  transform: scale(1.05);
}

.music-player-btn:active {
  transform: scale(0.95);
}

.play-pause-btn {
  width: 60px;
  height: 60px;
  background: rgba(139, 111, 71, 0.2);
  border-color: rgba(139, 111, 71, 0.5);
}

.play-pause-btn:hover {
  background: rgba(139, 111, 71, 0.3);
}

.music-player-btn svg {
  width: 20px;
  height: 20px;
}

.play-pause-btn svg {
  width: 20px;
  height: 20px;
}

.music-player-btn .hidden {
  display: none;
}

.music-player-iframe-container {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Chatroom Styles - Peace Arc */
.chatroom-modal-content {
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.chatroom-container {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chatroom-sidebar {
  width: 180px;
  background: rgba(58, 52, 40, 0.85);
  border-right: 1px solid rgba(139, 111, 71, 0.3);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 0 0 0 16px;
}

.chatroom-channels {
  padding: 8px;
}

.chatroom-channel-header {
  font-size: 10px;
  font-weight: 600;
  color: #a8957d;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(139, 111, 71, 0.3);
}

.chatroom-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #a8957d;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  border: 1px solid transparent;
  font-family: inherit;
}

.chatroom-channel-item::before {
  content: '# ';
  color: #c4b8a8;
}

.chatroom-channel-item:hover {
  background: rgba(139, 111, 71, 0.2);
  color: #e8e0d0;
  border-color: rgba(139, 111, 71, 0.3);
}

.chatroom-channel-item.active {
  background: rgba(139, 111, 71, 0.25);
  color: #e8e0d0;
  border-color: rgba(139, 111, 71, 0.5);
  font-weight: 600;
}

.chatroom-channel-icon {
  display: none;
}

.chatroom-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0 0 16px 0;
}

.chatroom-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.chatroom-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 500px;
  background: rgba(58, 52, 40, 0.5);
}

.chatroom-message {
  padding: 12px 16px;
  background: rgba(58, 52, 40, 0.8);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
}

.chatroom-message.own-message {
  background: rgba(139, 111, 71, 0.2);
  border-color: rgba(139, 111, 71, 0.4);
  align-self: flex-end;
  max-width: 80%;
}

.chatroom-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chatroom-username {
  font-weight: 600;
  font-size: 12px;
  color: #2a2418;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.chatroom-username::before {
  content: '';
  display: none;
}

.chatroom-username::after {
  content: '';
  display: none;
}

.chatroom-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a582 0%, #8b6f47 100%);
  border: 1px solid rgba(212, 165, 130, 0.6);
  color: #2a2418;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: 4px;
  position: relative;
}

.chatroom-verified-badge::after {
  content: '★';
  display: block;
  line-height: 1;
  text-align: center;
}

.chatroom-verified-badge:hover {
  background: linear-gradient(135deg, #e8c5a0 0%, #a0825f 100%);
  transform: scale(1.1);
}

/* Theme-specific verified badge accents */
body.profile-page.theme-tokyo-ghoul .chatroom-verified-badge {
  background: linear-gradient(135deg, #f5f5f7 0%, #bcbcc8 100%);
  border-color: rgba(245, 245, 245, 0.7);
  color: #050509;
}

body.profile-page.theme-tokyo-ghoul .chatroom-verified-badge:hover {
  background: linear-gradient(135deg, #ffffff 0%, #d0d0e0 100%);
}

body.profile-page.theme-k-on .chatroom-verified-badge {
  background: linear-gradient(135deg, #ffd6eb 0%, #c791d0 100%);
  border-color: rgba(255, 214, 235, 0.9);
  color: #241e46;
}

body.profile-page.theme-k-on .chatroom-verified-badge:hover {
  background: linear-gradient(135deg, #ffe7f5 0%, #d8a4e0 100%);
}

body.profile-page.theme-chainsawman .chatroom-verified-badge {
  background: linear-gradient(135deg, #f4c15c 0%, #ff8c42 100%);
  border-color: rgba(244, 193, 92, 0.9);
  color: #120b02;
}

body.profile-page.theme-chainsawman .chatroom-verified-badge:hover {
  background: linear-gradient(135deg, #ffe6a8 0%, #ffb05f 100%);
}

.chatroom-time {
  font-size: 9px;
  color: #888888;
  font-family: inherit;
}

.chatroom-message-text {
  font-size: 13px;
  color: #e8e0d0;
  line-height: 1.6;
  word-wrap: break-word;
  font-family: inherit;
}

.chatroom-input-container {
  padding: 16px;
  border-top: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.85);
  position: relative;
  border-radius: 0 0 16px 0;
}

.chatroom-cooldown {
  position: absolute;
  top: -28px;
  left: 12px;
  right: 12px;
  padding: 4px 8px;
  background: rgba(200, 80, 80, 0.2);
  border: 1px solid rgba(200, 80, 80, 0.5);
  border-radius: 8px;
  color: #ff9999;
  font-size: 10px;
  text-align: center;
  font-family: inherit;
}

.chatroom-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatroom-upload-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.7);
  color: #a8957d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.chatroom-upload-btn:hover:not(:disabled) {
  background: rgba(58, 52, 40, 0.85);
  border-color: rgba(139, 111, 71, 0.5);
  color: #e8e0d0;
}

.chatroom-upload-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chatroom-upload-btn svg {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

.chatroom-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.3);
  background: rgba(58, 52, 40, 0.7);
  color: #e8e0d0;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.chatroom-input::placeholder {
  color: #a8957d;
}

.chatroom-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(58, 52, 40, 0.5);
}

.chatroom-input:focus {
  outline: none;
  border-color: rgba(139, 111, 71, 0.5);
  background: rgba(58, 52, 40, 0.85);
  color: #f5ead8;
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.chatroom-send-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  background: rgba(58, 52, 40, 0.8);
  color: #e8e0d0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  text-transform: none;
}

.chatroom-send-btn:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.6);
  color: #f5ead8;
  transform: translateY(-1px);
}

.chatroom-send-btn:active {
  transform: scale(0.95);
}

.chatroom-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chatroom-error {
  padding: 12px;
  text-align: center;
  color: #ff0000;
  font-size: 11px;
  font-family: inherit;
}

.chatroom-media-container {
  position: relative;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  display: inline-block;
  border: 1px solid rgba(139, 111, 71, 0.3);
}

.chatroom-image {
  max-width: 100%;
  max-height: 400px;
  display: block;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  filter: grayscale(30%) contrast(1.05);
}

.chatroom-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 12px;
}

.chatroom-media-container:hover .chatroom-image-overlay {
  opacity: 1;
}

.chatroom-download-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(58, 52, 40, 0.8);
  border: 1px solid rgba(139, 111, 71, 0.3);
  color: #a8957d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.chatroom-download-btn:hover {
  background: rgba(58, 52, 40, 0.95);
  border-color: rgba(139, 111, 71, 0.5);
  color: #e8e0d0;
}

.chatroom-download-btn svg {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

.chatroom-message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.chatroom-message:hover .chatroom-message-actions {
  opacity: 1;
}

.chatroom-message-action {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(58, 52, 40, 0.7);
  border: 1px solid rgba(139, 111, 71, 0.3);
  color: #a8957d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  font-size: 10px;
}

.chatroom-message-action:hover {
  background: rgba(58, 52, 40, 0.85);
  border-color: rgba(139, 111, 71, 0.5);
  color: #e8e0d0;
}

.chatroom-message-action svg {
  display: none;
}

.chatroom-message-action::after {
  content: '[?]';
  color: inherit;
}

.chatroom-report-btn::after {
  content: '[!]';
}

.chatroom-delete-btn::after {
  content: '[X]';
}

.chatroom-textarea {
  width: 100%;
  padding: 8px;
  border-radius: 0;
  border: 1px solid #666666;
  background: #000000;
  color: #666666;
  font-size: 11px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.1s ease-out;
}

.chatroom-textarea::placeholder {
  color: #444444;
}

/* Custom Notification Toast - Peace Arc */
.custom-notification {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 10000;
  min-width: 300px;
  max-width: 480px;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  pointer-events: none;
}

.custom-notification.hidden {
  display: none;
}

.custom-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.custom-notification-content {
  background: rgba(58, 52, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.custom-notification-content::before {
  content: '';
  display: none;
}

.custom-notification-message {
  flex: 1;
  color: #e8e0d0;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
}

.custom-notification-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(139, 111, 71, 0.3);
  color: #a8957d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.custom-notification-close::after {
  content: '×';
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.custom-notification-close:hover {
  background: rgba(139, 111, 71, 0.2);
  border-color: rgba(139, 111, 71, 0.5);
  color: #e8e0d0;
}

.custom-notification-close svg {
  display: none;
}

/* NSFW Warning Modal - No close button, must accept */
#nsfw-warning-modal .custom-modal-close {
  display: none;
}

#nsfw-warning-modal .custom-modal-overlay {
  pointer-events: none;
}

/* Mobile Responsive - Dark Theme */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .top-bar {
    height: 60px;
    padding: 0 16px;
    font-size: 14px;
  }

  .start-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .login-button-main,
  .signup-button-main {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
  }

  .top-bar-auth {
    gap: 8px;
  }

  .top-bar-clock {
    font-size: 13px;
    min-width: 75px;
  }

  .profile-root {
    padding: 90px 16px 220px;
  }

  .profile-card {
    padding: 28px 20px;
    border-radius: 16px;
    max-width: 100%;
    margin: 0 auto;
  }

  .profile-header {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    margin-bottom: 24px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .profile-text-main {
    flex: 1;
    min-width: 0;
  }

  .profile-username {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .profile-handle {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .profile-tagline {
    font-size: 0.9rem;
  }

  .profile-divider {
    margin: 24px 0 20px;
  }

  .profile-links {
    gap: 12px;
    padding: 0;
  }

  .profile-link {
    padding: 16px;
    flex-wrap: nowrap;
    min-height: 64px;
    align-items: center;
  }

  .profile-link-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .profile-link-text {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
  }

  .profile-link-label-main {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .profile-link-label-sub {
    font-size: 0.85rem;
  }

  .profile-link-like {
    margin-left: auto;
    margin-top: 0;
    width: auto;
    flex-shrink: 0;
    padding: 8px 12px;
    min-height: 36px;
  }

  .music-player {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    padding: 18px 20px;
    border-radius: 16px;
    min-height: 130px;
    max-width: none;
  }

  .music-player-container {
    gap: 14px;
  }

  .music-player-title {
    font-size: 0.95rem;
    padding-left: 0;
    padding-right: 50px;
  }

  .music-player-controls {
    gap: 10px;
  }

  .music-player-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .play-pause-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }

  .start-menu {
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    border-radius: 12px;
  }

  .start-menu-item {
    padding: 14px 16px;
    margin: 2px 12px;
    min-height: 48px;
  }

  .custom-modal-content {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 16px;
    border-radius: 16px;
  }

  .custom-modal-header {
    padding: 24px 20px 18px;
  }

  .custom-modal-title {
    font-size: 1.2rem;
  }

  .custom-modal-body {
    padding: 20px;
  }

  .custom-modal-footer {
    padding: 18px 20px 24px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .custom-modal-button {
    flex: 1;
    min-width: 120px;
    min-height: 44px;
    padding: 12px 20px;
  }

  .form-group-main input[type="text"],
  .form-group-main input[type="password"],
  .chatroom-textarea {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .chatroom-modal-content {
    width: calc(100% - 32px);
    max-width: none;
    max-height: 90vh;
    margin: 0 16px;
  }

  .chatroom-sidebar {
    width: 140px;
  }

  .chatroom-messages {
    padding: 16px 12px;
    gap: 10px;
  }

  .chatroom-message {
    padding: 14px 16px;
  }

  .chatroom-input-container {
    padding: 16px 12px;
  }

  .chatroom-input {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .chatroom-send-btn {
    padding: 14px 20px;
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 0 12px;
    height: 56px;
  }

  .top-bar-auth {
    gap: 6px;
  }

  .login-button-main,
  .signup-button-main {
    padding: 10px 14px;
    font-size: 12px;
    min-height: 44px;
  }

  .top-bar-clock {
    font-size: 12px;
    min-width: 65px;
  }

  .profile-root {
    padding: 80px 12px 200px;
  }

  .profile-card {
    padding: 24px 16px;
  }

  .profile-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-username {
    font-size: 1.3rem;
  }

  .profile-handle {
    font-size: 0.9rem;
  }

  .profile-tagline {
    font-size: 0.85rem;
  }

  .profile-divider {
    margin: 20px 0 16px;
  }

  .profile-links {
    gap: 10px;
  }

  .profile-link {
    padding: 14px;
    min-height: 60px;
  }

  .profile-link-icon {
    width: 28px;
    height: 28px;
  }

  .profile-link-label-main {
    font-size: 14px;
  }

  .profile-link-label-sub {
    font-size: 0.8rem;
  }

  .profile-link-like {
    padding: 6px 10px;
    min-height: 32px;
  }

  .music-player {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px 18px;
    min-height: 120px;
  }

  .music-player-title {
    font-size: 0.9rem;
  }

  .music-player-controls {
    gap: 8px;
  }

  .music-player-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .play-pause-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .start-menu {
    left: 12px;
    right: 12px;
    top: 60px;
  }

  .custom-modal-content {
    width: calc(100% - 24px);
    margin: 0 12px;
  }

  .custom-modal-header {
    padding: 20px 18px 16px;
  }

  .custom-modal-body {
    padding: 18px;
  }

  .custom-modal-footer {
    padding: 16px 18px 20px;
  }

  .custom-modal-button {
    min-width: 100%;
    margin-bottom: 8px;
  }

  .custom-modal-button:last-child {
    margin-bottom: 0;
  }

  .chatroom-modal-content {
    width: calc(100% - 24px);
    margin: 0 12px;
    max-height: 92vh;
  }

  .chatroom-sidebar {
    display: none;
  }

  .chatroom-main {
    width: 100%;
  }

  .chatroom-messages {
    padding: 12px;
  }

  .chatroom-input-container {
    padding: 12px;
  }
}

/* Scrollbar styling - Wheat Theme */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 248, 235, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(218, 185, 146, 0.5);
  border-radius: 5px;
  border: 2px solid rgba(255, 248, 235, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 130, 0.7);
}

/* Remove rounded corners from images in profile links */
.profile-link-icon img {
  border-radius: 0;
}
