@charset "UTF-8";
/* Dropdown menu for comment actions */
.post-action-dropdown-menu {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  padding: 0.5rem 0;
}

.post-action-dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.post-action-dropdown-menu .dropdown-item:hover,
.post-action-dropdown-menu .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
  outline: none;
}

.post-action-dropdown-menu .dropdown-item.moderator-action {
  color: #856404;
  background-color: #fff3cd;
}

.post-action-dropdown-menu .dropdown-item.moderator-action:hover {
  background-color: #ffeeba;
  color: #533f03;
}

.post-action-dropdown-container {
  float: right;
  z-index: 10;
  margin-left: 15px;
  position: relative;
}

.post-action-menu-content {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #333;
  font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  background-color: #efebd6;
  overflow-x: hidden;
}

input,
select,
textarea {
  font-size: 100%;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.is-active {
  font-weight: bold;
}

h1.grouping-header {
  text-align: left;
  font-family: Lucinda "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif, Arial;
  font-size: 1.8rem;
  color: #333;
  background-color: #f9f6f4;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  padding-top: 5px;
  padding-bottom: 5px;
}

#latest_activities {
  background-color: #ececec;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.small-info {
  background-color: #fff;
  padding: 7px;
  margin: 6px;
  line-height: 1.5em;
  line-height: 1em;
  padding: 2px;
}

.small-info img {
  float: left;
  padding: 15px;
  clear: all;
  padding: 10px;
  max-width: 55px;
}

.action-text {
  font-family: Arial;
  font-size: 0.75em;
}

.action-time {
  color: grey;
}

/* ── Group Detail Page Layout ─────────────────────────────────── */
.group-detail-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Group Header ─────────────────────────────────────────────── */
.group-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.group-header-image {
  width: 120px;
  flex-shrink: 0;
}
.group-header-image img {
  width: 100%;
  border-radius: 8px;
}

.group-header-image-placeholder {
  width: 120px;
  height: 120px;
  background-color: #cccccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #666;
}

.group-header-info {
  flex: 1;
}
.group-header-info h1 {
  margin: 0 0 8px 0;
  font-size: 2.4rem;
  color: #333;
}

.group-description {
  margin: 0 0 8px 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 1.4rem;
  color: #666;
}

.group-member-count i {
  margin-right: 4px;
}

.group-user-role {
  font-weight: 600;
  color: #1c88bf;
}
.group-user-role.owner {
  color: #e67e22;
}

.group-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #d3e3de;
  color: rgb(71.1666666667, 111.8333333333, 99.125);
}

/* ── Group Actions ────────────────────────────────────────────── */
.group-actions {
  margin-bottom: 20px;
}

/* ── Group Nav Tabs ───────────────────────────────────────────── */
.group-nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #cccccc;
  margin-bottom: 24px;
}

.group-nav-tab {
  padding: 10px 20px;
  text-decoration: none;
  color: #666;
  font-size: 1.4rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.group-nav-tab:hover {
  color: #333;
}
.group-nav-tab.active {
  color: #1c88bf;
  border-bottom-color: #1c88bf;
}

/* ── Group Admin Section ──────────────────────────────────────── */
.group-admin-section h2 {
  margin-top: 0;
}
.group-admin-section h3 {
  font-size: 1.6rem;
  color: #333;
  margin: 0 0 16px 0;
}

.group-admin-requests {
  margin-bottom: 32px;
}

.group-admin-invite {
  max-width: 400px;
}
.group-admin-invite .form-group {
  margin-bottom: 12px;
}

/* ── Private Group Notice ─────────────────────────────────────── */
.group-private-notice {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.8rem;
  font-style: italic;
}

/* ── Group Sidebar ────────────────────────────────────────────── */
.group-sidebar-image {
  width: 175px;
  margin: 0 auto 12px;
}
.group-sidebar-image img {
  width: 100%;
  border-radius: 8px;
}

.group-sidebar-nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-sidebar-nav-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  border-radius: 6px;
  position: relative;
  transition: background-color 0.15s, color 0.15s;
}
.group-sidebar-nav-item i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  color: #888;
}
.group-sidebar-nav-item:hover {
  background-color: #f7f7f7;
  color: #1c88bf;
}
.group-sidebar-nav-item.active {
  background-color: rgb(221.5, 221.5, 221.5);
  color: #333;
  font-weight: 600;
}
.group-sidebar-nav-item.active i {
  color: inherit;
}
.group-sidebar-nav-item .group-chat-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.group-page-content-header h1 {
  margin: 0 0 8px 0;
  font-size: 2.4rem;
  color: #333;
}
.group-page-content-header .group-description {
  margin: 0 0 20px 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Group Name Heading (standalone above info box) ────────────── */
.group-name-heading {
  margin: 0 0 12px 0;
  font-size: 2.6rem;
  font-weight: 700;
  color: #333;
}

/* ── Group Info Box (sectioned description & dropdown) ────────── */
.group-info-box {
  border: 2px solid #e0e0e0;
  background-color: #fefcf8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}
.group-info-box .group-description {
  margin: 8px 0 0 0;
}

/* ── Group Content ────────────────────────────────────────────── */
.group-content {
  min-height: 200px;
}

.group-comments-section {
  max-width: 700px;
}

/* ── Group Members Table ──────────────────────────────────────── */
.group-member-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-member-avatar {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.group-member-username {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
}
.group-member-username:hover {
  color: #1c88bf;
}

.group-members-table {
  width: 100%;
  border-collapse: collapse;
}
.group-members-table th, .group-members-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #cccccc;
  vertical-align: middle;
}
.group-members-table th {
  font-size: 1rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.group-members-table td {
  font-size: 1.4rem;
}

.group-member-role {
  font-weight: 500;
}
.group-member-role.owner-badge {
  color: #e67e22;
}
.group-member-role.admin-badge {
  color: #1c88bf;
}

.group-member-action-label {
  color: #888;
  font-style: italic;
}

.group-section-header td {
  font-weight: 600;
  font-size: 1.4rem;
  color: #888;
  letter-spacing: 0.5px;
  padding: 20px 16px 4px;
  border-bottom: none;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid #e9ecef;
}

/* ── Pagination ───────────────────────────────────────────────── */
.group-pagination-bar {
  text-align: center;
  margin-top: 24px;
}

/* ── Groups Listing (Index) ───────────────────────────────────── */
.groups-avatar {
  width: 140px !important;
  height: 140px !important;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: #E8E6E6;
  color: #888;
  font-size: 1.6rem;
}
.groups-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.groups-avatar-placeholder {
  width: 140px !important;
  height: 140px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #888;
  background-color: #E8E6E6;
}

.groups-member-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2d3436;
  font-size: 14px;
  background: #f1f3f5;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.2s;
  text-decoration: none;
}
.groups-member-badge:hover {
  background: #e0e0e0;
}

.groups-item {
  cursor: pointer;
  grid-template-columns: auto 1fr;
}
.groups-item .groups-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: start;
}
.groups-item .answers-info {
  max-width: 600px;
  align-self: start;
}
.groups-item .answers-title {
  color: #000000;
}
.groups-item .answers-meta {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.groups-description {
  color: #333333;
}

.answers-list .answers-info .answers-meta.groups-description {
  color: #333333;
}

.groups-created-on {
  margin-top: 6px !important;
  color: #636e72;
}

@media (max-width: 768px) {
  .answers-item.groups-item .answers-count-badge.groups-member-badge {
    display: flex;
  }
}
/* ── Create Group Page ────────────────────────────────────────── */
.create-group-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.greeting-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 45rem) {
  .greeting-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

#greeting-box {
  background-color: #fafff3;
  border: 1px solid #acd373;
  border-radius: 8px;
  padding: 15px;
  font-size: 0.9em;
  color: #666;
  flex: 1;
}
@media (min-width: 45rem) {
  #greeting-box {
    flex: 2;
    padding: 20px;
  }
}
#greeting-box img {
  max-width: 100px;
  float: left;
  margin-right: 15px;
  margin-bottom: 10px;
}
@media (min-width: 45rem) {
  #greeting-box img {
    margin-bottom: 0;
  }
}
#greeting-box p {
  margin: 0 0 10px 0;
}
#greeting-box p:last-child {
  margin-bottom: 0;
}

.greeting-aside-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
@media (min-width: 45rem) {
  .greeting-aside-buttons {
    flex: 1;
    max-width: 250px;
    align-items: stretch;
  }
}
.greeting-aside-buttons .btn {
  width: 100%;
  margin: 0 !important;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.greeting-aside-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Home Hero Section */
.home-hero {
  display: flex;
  flex-direction: row;
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #eee;
  text-align: left;
}
@media (min-width: 45rem) {
  .home-hero {
    padding: 20px 40px;
    margin-bottom: 20px;
    gap: 30px;
  }
}
.home-hero.welcome-hero {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 24px;
}

.home-hero-text {
  flex: 1;
}
.home-hero-text .welcome-heading {
  font-size: 1.8rem;
  color: #2d3436;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 45rem) {
  .home-hero-text .welcome-heading {
    font-size: 3.2rem;
    margin-bottom: 15px;
  }
}
.home-hero-text .welcome-text {
  font-size: 1.4rem;
  color: #636e72;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 45rem) {
  .home-hero-text .welcome-text {
    font-size: 1.6rem;
  }
}

.home-hero-image {
  flex-shrink: 0;
}
.home-hero-image img {
  max-width: 110px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
@media (min-width: 45rem) {
  .home-hero-image img {
    max-width: 280px;
  }
}

/* Sidebar Specifics */
.sidebar-meta-text {
  font-size: 1.3rem;
  color: #636e72;
  margin-bottom: 15px;
}

#newest-members-content {
  background: transparent;
  border: none;
}

.newest-members-container {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.newest-members-container:last-child {
  border-bottom: none;
}

.newest-members-avatar-container {
  width: 50px;
  margin-right: 15px;
}
.newest-members-avatar-container img {
  width: 100%;
  border: 1px solid #ddd;
}

.newest-members-info p {
  margin: 0;
}

.small-info {
  padding: 10px 0;
  border-bottom: 1px solid #f9f9f9;
}
.small-info .action-text {
  font-size: 1.35rem;
  color: #2d3436;
}
.small-info .action-time {
  font-size: 1.15rem;
  color: #b2bec3;
}

/* Utilities */
.no-margin-top {
  margin-top: 0 !important;
}

.no-padding-top {
  padding-top: 0 !important;
}

/* Latest Gallery Image Card */
.latest-gallery-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.latest-gallery-image-wrapper {
  margin-bottom: 8px;
}

.latest-gallery-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #eee;
  transition: transform 0.2s ease-in-out;
}
.latest-gallery-image:hover {
  transform: scale(1.02);
}

.latest-gallery-title {
  font-size: 1.6rem;
  color: #2d3436;
  margin: 0 0 2px 0;
  font-weight: 700;
}

.latest-gallery-byline {
  font-size: 1.3rem;
  color: #666;
  margin: 0 0 4px 0;
}
.latest-gallery-byline a {
  color: #1c88bf;
  text-decoration: none;
  font-weight: 600;
}
.latest-gallery-byline a:hover {
  text-decoration: underline;
}

.latest-gallery-description {
  font-size: 1.3rem;
  color: #b2bec3;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

.latest-gallery-comments {
  font-size: 1.2rem;
  color: #636e72;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}
.latest-gallery-comments i {
  color: #acd373;
  font-size: 1.1rem;
}

/* Mobile-only: scroll to comments link */
.home-scroll-to-comments {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  padding: 10px 0 4px 0;
}
.home-scroll-to-comments:hover {
  text-decoration: underline;
}
@media (min-width: 45rem) {
  .home-scroll-to-comments {
    display: none;
  }
}

/* Spacer above comments section — adds breathing room on mobile */
.home-comments-anchor-spacer {
  display: block;
  height: 0;
}
@media (max-width: 45rem) {
  .home-comments-anchor-spacer {
    height: 24px;
  }
}

header {
  text-align: center;
  position: relative;
  width: 100%;
}

.page-heading {
  border-bottom: 1px solid black;
  border-top: 1px solid black;
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}

.container {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  background-color: #fff;
}

.container--img {
  max-width: 100%;
}

.navbar {
  max-width: 100rem;
  background-color: #fff;
  color: #888;
  margin: 0 auto;
  padding: 1rem 1rem;
  height: 4.8rem;
}

.navbar__profile {
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 10;
}
.navbar__profile .profile--pic-tiny {
  margin-right: 1.2rem;
}
.navbar__profile .navbar__profile-text {
  font-size: 1.4rem;
  color: #000;
  display: inline;
  margin-right: auto;
}
.navbar__profile .navbar__notifications, .navbar__profile .navbar__messages, .navbar__profile .navbar__settings, .navbar__profile .navbar__chat {
  position: relative;
  margin-left: 1.2rem;
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}
@media (max-width: 44.99rem) {
  .navbar__profile .navbar__notifications.navbar__settings, .navbar__profile .navbar__messages.navbar__settings, .navbar__profile .navbar__settings.navbar__settings, .navbar__profile .navbar__chat.navbar__settings {
    display: none;
  }
}
.navbar__profile .navbar__notifications:hover, .navbar__profile .navbar__messages:hover, .navbar__profile .navbar__settings:hover, .navbar__profile .navbar__chat:hover {
  color: #999;
}
.navbar__profile .navbar__notifications-icon, .navbar__profile .navbar__messages-icon, .navbar__profile .navbar__settings-icon, .navbar__profile .navbar__chat-icon {
  width: 2.4rem;
  height: 2.4rem;
}

.navbar__notifications-badge, .navbar__messages-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.6rem;
  background-color: #ff4d4d;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  line-height: 1;
  min-width: 1.6rem;
  text-align: center;
  border: 2px solid #fff;
}

.navbar__links {
  position: fixed;
  width: 100%;
  background-color: #fff;
  max-height: 100vh;
  padding: 16px;
  left: -100%;
  transition: all 0.2s;
  list-style: none;
  text-align: left;
  z-index: 1001;
  overflow-y: auto;
}
@media (min-width: 44.99rem) {
  .navbar__links {
    position: absolute;
    top: 4.8rem;
    right: 0;
    width: 200px;
    background-color: #fff;
    height: auto;
    padding: 16px;
    list-style: none;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #cccccc;
    border-radius: 0 0 5px 5px;
    z-index: 20;
  }
}

.navbar__link {
  margin-bottom: 1.2rem;
  margin-left: 1.2rem;
}
.navbar__link a,
.navbar__link a:link,
.navbar__link a:visited {
  color: #000;
  text-decoration: none;
  font-size: 1.8rem;
}
@media (min-width: 44.99rem) {
  .navbar__link a,
  .navbar__link a:link,
  .navbar__link a:visited {
    color: #000;
  }
}
.navbar__link a svg,
.navbar__link a:link svg,
.navbar__link a:visited svg {
  color: #000;
}
@media (min-width: 44.99rem) {
  .navbar__link a svg,
  .navbar__link a:link svg,
  .navbar__link a:visited svg {
    color: inherit;
  }
}
.navbar__link a:hover {
  color: #999;
}
@media (min-width: 44.99rem) {
  .navbar__link a:hover {
    color: #999;
  }
}
.navbar__link a:hover svg {
  color: #999;
}
@media (min-width: 44.99rem) {
  .navbar__link a:hover svg {
    color: inherit;
  }
}
@media (min-width: 44.99rem) {
  .navbar__link {
    margin-bottom: 16px;
    margin-right: 16px;
  }
}

.navbar__toggler {
  display: none;
}

.navbar__toggler:checked ~ .navbar__links {
  top: 4.8rem;
  max-height: calc(100vh - 4.8rem);
  left: -20%;
  padding-left: 25%;
  border-bottom: 1px solid white;
}
@media (min-width: 44.99rem) {
  .navbar__toggler:checked ~ .navbar__links {
    display: flex;
    left: auto;
    padding-left: 16px;
    max-height: none;
    border-bottom: none;
  }
}

.navbar__burger {
  position: absolute;
  font-size: 1.8rem;
  color: #000;
  top: 0;
  right: 0;
  margin-right: 16px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.navbar__burger .hamburger-icon {
  display: inline;
}
@media (min-width: 44.99rem) {
  .navbar__burger .hamburger-icon {
    display: none;
  }
}
.navbar__burger .caret-icon {
  display: none !important;
}
@media (min-width: 44.99rem) {
  .navbar__burger .caret-icon {
    display: inline !important;
    margin-top: 5px;
  }
}
.navbar__burger::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #999;
}

nav {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  padding-right: 70px;
}
@media (min-width: 44.99rem) {
  nav {
    padding-right: 90px;
  }
}

.navbar__divider {
  border-top: 1px solid #cccccc;
  margin: 1.6rem 0;
  list-style: none;
}

.profile-navbar {
  max-width: 100rem;
  background-color: #fff;
  margin: 0 auto;
  padding: 1rem 1rem;
  height: 4.8rem;
}
@media (min-width: 44.99rem) {
  .profile-navbar {
    height: 100%;
  }
}

.profile-navbar__links {
  width: 100%;
  transition: all 0.2s;
  list-style: none;
  text-align: left;
}
@media (min-width: 44.99rem) {
  .profile-navbar__links {
    all: unset;
    list-style: none;
  }
}

.profile-navbar__link {
  margin-bottom: 1.2rem;
  margin-left: 1.2rem;
}
.profile-navbar__link a {
  color: #000;
  text-decoration: none;
  font-size: 1.8rem;
}
@media (min-width: 44.99rem) {
  .profile-navbar__link a {
    color: #999;
  }
}
.profile-navbar__link a:hover {
  color: #999;
}
@media (min-width: 44.99rem) {
  .profile-navbar__link a:hover {
    color: #333;
  }
}
@media (min-width: 44.99rem) {
  .profile-navbar__link {
    margin-bottom: 0;
    margin-right: 16px;
  }
}

.form {
  display: flex;
  flex-direction: column;
}
.form > * {
  margin-bottom: 1.2rem;
}
.form .btn {
  align-self: flex-start;
}

.form__element {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.form__element label {
  width: 100%;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #333;
  font-size: 1.4rem;
}
.form__element input {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid #888;
  border-radius: 4px;
  font-size: 1.6rem;
  transition: border-color 0.2s;
  background-color: #fff;
}
.form__element input:focus {
  outline: none;
  border-color: #000;
}
.form__error {
  margin: 0 0 1.6rem 0;
  font-style: italic;
}

.form__label {
  font-size: 1.6rem;
  color: #000;
  font-weight: bold;
  padding-bottom: 0;
  margin-bottom: 0;
}

.standard-form {
  padding: 32px;
}
.standard-form .form-row {
  margin-bottom: 24px;
}
.standard-form label {
  display: block;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
  font-size: 14px;
}
.standard-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #2d3436;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.standard-form .form-control:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.standard-form .form-control.is-valid {
  border-color: #2ecc71 !important;
  box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25) !important;
}
.standard-form .form-control.is-invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

.form-control {
  font-size: 16px;
}

.form-button-row {
  display: flex;
  justify-content: flex-end;
}

.alert-success {
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
  padding: 24px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 24px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .standard-form {
    padding: 20px;
  }
}
.form-row-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.form-row-checkbox.margin-top {
  margin-top: 16px;
}
.form-row-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.form-row-checkbox label {
  font-size: 1.4rem !important;
  margin: 0 !important;
  cursor: pointer;
  font-weight: normal !important;
  color: #333;
  display: inline-block !important;
}

.big-button {
  background: #000;
  border: none;
  border-bottom: 0.6rem solid hsl(0, 0%, -10%);
  color: white;
  font-weight: bold;
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  padding: 2.4rem;
  width: 100%;
}

.big-button:disabled {
  opacity: 0.5;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  cursor: pointer;
  border: 1px solid transparent;
  width: auto;
  min-width: 160px;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: #0b5ed7;
  color: #fff;
  text-decoration: none;
}
.btn-primary:active {
  background-color: #0a58ca;
  transform: translateY(1px);
}
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.btn-secondary-outline {
  border: 1px solid #ced4da;
  background: #fff;
  color: #636e72;
  padding: 1.2rem 2.4rem;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary-outline:hover {
  background: #f8f9fa;
  border-color: #b2bec3;
  color: #2d3436;
}

.button {
  border: none;
  font-weight: 500;
  padding: 1.2rem;
}

.button--link {
  background: none;
  border: none;
  color: #f7f7f7;
  padding: 0;
}

.button--success {
  background: green;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
}

@media (min-width: 45rem) {
  .big-button {
    margin-bottom: 4.8rem;
  }
}
@media (max-width: 44.99rem) {
  .form-button-row .btn {
    min-width: unset;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
  }
}
.profile-container {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 44.99rem) {
  .profile-container {
    flex-direction: row;
  }
}

.profile-info {
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  padding: 0;
}
@media (min-width: 44.99rem) {
  .profile-info {
    width: 300px;
    padding: 20px;
  }
}

.profile-info-desktop {
  display: none;
}
@media (min-width: 44.99rem) {
  .profile-info-desktop {
    display: block;
  }
}

.mobile-profile-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}
@media (min-width: 44.99rem) {
  .mobile-profile-info {
    display: none;
  }
}

.profile--pic {
  max-width: 175px;
}

.mobile-profile--pic {
  max-width: 100px;
}

.profile--pic-tiny {
  max-height: 4.5rem;
}

.profile-image-container {
  text-align: center;
}

.profile--label {
  background: #cadbbd;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0;
  margin: 0;
}
.profile--label.full-width {
  width: 100%;
}

.profile-action-box {
  width: 100%;
}
.profile-action-box textarea {
  width: 95%;
}

.profile-friend-actions {
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.profile-friend-actions .btn {
  display: inline-flex;
  width: max-content;
}
.profile-friend-actions .btn-private-message {
  margin-top: 10px;
}

#profile-overview {
  margin-bottom: 8px;
  padding-left: 12px;
  padding-top: 6px;
  width: 370px;
  min-height: 120px;
  border: 12px solid #D3E3DE;
  background-color: #F5FAF8;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}

.profile-content-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

#now-doing-block {
  flex: 1;
  min-width: 250px;
}
#now-doing-block .now-action-item {
  margin-bottom: 8px;
}
#now-doing-block .now-action-item .now-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFFF3;
  min-height: 2.8rem;
}
#now-doing-block .now-action-item .edit-link {
  font-size: 1.2rem;
  cursor: pointer;
  padding-left: 8px;
  padding-right: 4px;
  flex-shrink: 0;
}
#now-doing-block .now-action-item .now-action-edit-input {
  flex: 1;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 1.6rem;
  min-width: 0;
}
#now-doing-block .now-action-item.editing .display-mode {
  display: none;
}
#now-doing-block .now-action-item.editing .edit-mode {
  display: block !important;
}
#now-doing-block .now-action-item .edit-mode {
  display: none;
}

.profile-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  flex: 1;
}
.profile-content .profile-actions-panel {
  border: 6px solid #D3E3DE;
  background-color: #F5FAF8;
  padding: 12px;
}
@media (min-width: 45rem) {
  .profile-content .profile-actions-panel {
    border: 12px solid #D3E3DE;
    padding: 24px;
  }
}
.profile-content .profile-actions-panel p {
  margin: 0;
}
.profile-content .desktop-profile-actions {
  display: none;
}
@media (min-width: 45rem) {
  .profile-content .desktop-profile-actions {
    display: block;
  }
}

.profile-comments-box {
  width: 100%;
}

.profile-basic {
  max-width: 90px;
  text-align: center;
  margin-top: 1.2rem;
}
.profile-basic p {
  padding: 0;
  margin: 0;
}
.profile-basic .profile--pic-small {
  max-width: 80px;
}

.profile-head {
  background-color: #f9f6f4;
  border: solid 1px #c9a798;
  border-radius: 0.5em;
  padding: 1em;
  display: flex;
}
.profile-head .profile--pic-small {
  align-self: flex-start;
  max-width: 80px;
}
.profile-head .profile-head-message {
  font-size: 1.8rem;
}
.profile-head .profile-head-secondary-message {
  font-size: 1.4rem;
  color: #666;
  flex-direction: row;
}

.profile-head-content {
  padding-left: 1em;
}

.profile--text {
  background: #fafff3;
  font-size: 1.6rem;
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
}
.profile--text.no-margin {
  margin: 0;
}

#newest-members-content {
  background-color: #f7f7f7;
  border: 1px solid #cccccc;
}

.newest-members-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0.8rem;
  border-bottom: 1px solid #cccccc;
  width: 100%;
}

.newest-members-container:last-child {
  border-bottom: none;
}

.newest-members-avatar-container {
  width: 60px;
  flex-shrink: 0;
}

.newest-members-avatar-container a {
  text-decoration: none;
  display: block;
}

.newest-members-profile-pic {
  max-width: 100%;
  padding-right: 0;
  display: block;
}

.newest-members-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 0.8rem;
  flex: 1;
}

.profile-basic-byline-top {
  font-size: 1.4rem;
  color: #333;
  font-weight: bold;
}
.profile-basic-byline-top p {
  padding: 0;
  margin: 0;
}

.profile-basic-byline-bottom {
  font-size: 1rem;
  color: #666;
}
.profile-basic-byline-bottom p {
  padding: 0;
  margin: 0;
}

.notificationCount {
  padding-left: 0.8rem;
}

.profile-username-heading {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
  color: #2d3436;
  font-size: 20px;
}

.profile-sidebar-meta {
  text-align: center;
  color: #636e72;
  font-size: 1.3rem;
}

.profile-sidebar-section {
  margin-top: 30px;
}

.profile-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.profile-actions-header h2 {
  margin: 0;
  font-size: 18px;
  color: #2d3436;
}
.profile-actions-header span {
  color: #636e72;
  font-size: 13px;
}

.profile-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-content-inner {
  padding: 0;
}
@media (min-width: 45rem) {
  .profile-content-inner {
    padding: 24px;
  }
}

.new-comment-area {
  display: none;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  margin-bottom: 24px;
}

.profile-pagination-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.no-margin {
  margin: 0 !important;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

.dropdown-btn {
  padding: 4px 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.dropdown-menu-container {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  margin-top: 5px;
}

.btn-request {
  margin: 0;
  min-width: unset;
  padding: 8px 16px;
  font-size: 14px;
}

.post-comment-btn-wrapper {
  text-align: right;
  margin-bottom: 20px;
}

.btn-post-comment {
  margin: 0;
  font-size: 14px;
  padding: 8px 16px;
  display: inline-flex;
}

.comment-label {
  font-size: 14px;
  font-weight: bold;
}

.resize-vertical {
  resize: vertical;
}

.cancel-btn {
  margin: 0 0 0 10px !important;
}

.comments-section-divider {
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.btn-update {
  margin-left: 8px !important;
  min-width: unset !important;
  padding: 4px 12px !important;
  font-size: 1.2rem !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.btn-small {
  padding: 4px 12px !important;
  font-size: 1.2rem !important;
}

.resize-vertical {
  resize: vertical !important;
}

.no-padding {
  padding: 0 !important;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.moderator-action {
  color: #a52a2a !important;
  font-weight: bold;
}
.moderator-action:hover {
  background-color: #fff5f5 !important;
  color: #8b0000 !important;
}

.remove-friend-link {
  color: #999;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  margin-left: 15px;
}
.remove-friend-link i {
  font-size: 1rem;
}
.remove-friend-link:hover {
  color: #d63031;
  text-decoration: underline;
  transform: translateX(2px);
}

.notification {
  display: flex;
  justify-content: space-between;
  height: 3.2rem;
}

.notification-text {
  width: 70%;
}

.notification-label {
  font-size: 2.4rem;
  margin-top: 1.2rem;
}

.notifications-list .notification-item {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 15px 24px;
  border-bottom: 1px solid #f1f1f1;
}

.notification-content {
  word-break: break-word;
}

.notification-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
}

.notification.htmx-swapping, #notifications-list.htmx-swapping {
  opacity: 0;
  transition: opacity 1s ease-out;
}

@media (max-width: 768px) {
  .notifications-list .notification-item {
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
  }
  .notification-content {
    grid-column: 1/-1;
  }
  .msg-date {
    grid-column: 1;
  }
  .notification-checkbox {
    grid-column: 2;
    justify-content: flex-end;
  }
}
.message-container, .message-container-reply {
  display: flex;
  margin: 1.2rem;
  padding: 1.2rem;
  background-color: #f7f7f7;
  flex-direction: column;
}

.message-container-reply {
  width: 85%;
  background-color: rgb(221.5, 221.5, 221.5);
  margin-left: auto;
}

.message-content-container, .message-content-container-reply {
  display: flex;
  flex-direction: row;
}

.message-subject {
  font-weight: 600;
}

.message-content {
  white-space: pre-wrap;
}

.message-content-container-reply {
  background-color: rgb(221.5, 221.5, 221.5);
}

.message-byline {
  font-size: 1rem;
  color: #666;
  margin-left: auto;
}

.message-profile-pic {
  max-width: 80px;
  padding-right: 1.2rem;
}

.message-button {
  margin-left: auto;
}

.post-container, .post-container-reply {
  display: flex;
  margin: 1.2rem;
  padding: 1.2rem;
  background-color: #f7f7f7;
  flex-direction: column;
}

.post-container-reply {
  width: 85%;
  background-color: rgb(221.5, 221.5, 221.5);
  margin-left: auto;
}

.post-content-container, .post-content-container-reply {
  display: block;
  position: relative;
  min-height: 100px;
}
.post-content-container::after, .post-content-container-reply::after {
  content: "";
  display: table;
  clear: both;
}

.post-content-container-reply {
  background-color: rgb(221.5, 221.5, 221.5);
}

.post-byline {
  font-size: 1rem;
  color: #666;
  clear: both;
  margin-top: 20px;
  display: block;
  text-align: right;
}

.post-actionline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  width: 100%;
  overflow: hidden;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
}
.post-action-btn:hover {
  background-color: #e8e8e8;
  color: #333;
}

.post-action-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.post-reply-form {
  display: none;
  width: 100%;
}
.post-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.post-profile-pic {
  max-width: 80px;
  padding-right: 1.2rem;
}

.comment-button {
  margin-left: auto;
}

.post-avatar-container {
  float: left;
  width: 100px;
  flex-shrink: 0;
  margin-right: 20px;
  margin-bottom: 15px;
}

.post-avatar-container a {
  text-decoration: none;
  display: block;
}

.post-profile-pic {
  max-width: 100%;
  padding-right: 0;
  display: block;
}

.post-content {
  display: block;
  padding-left: 0;
  white-space: pre-wrap;
}

.user-post-delete, .moderator-post-delete {
  font-size: 1.4rem;
  color: rgb(76.5, 76.5, 76.5);
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  margin-left: 0.5rem;
  transition: all 0.2s;
}
.user-post-delete:hover, .moderator-post-delete:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.moderator-post-delete {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.moderator-post-delete:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}
.moderator-post-delete::after {
  content: " (Mod)";
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1rem 0;
  clear: both;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embedded-image {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin: 8px 0;
  object-fit: contain;
}

.embedded-video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}

.friendship-banner-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

.friendship-banner {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.friendship-banner--received {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
}
.friendship-banner--sent {
  background: #f3e5f5;
  border: 1px solid #e1bee7;
}
.friendship-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.friendship-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.friendship-banner__icon--received {
  background: #2196f3;
}
.friendship-banner__icon--sent {
  background: #9c27b0;
}
.friendship-banner__icon svg {
  width: 20px;
  height: 20px;
}
.friendship-banner__info {
  display: flex;
  flex-direction: column;
}
.friendship-banner__title {
  font-weight: 600;
  font-size: 15px;
}
.friendship-banner__title--received {
  color: #0d47a1;
}
.friendship-banner__title--sent {
  color: #4a148c;
}
.friendship-banner__message {
  font-size: 13px;
}
.friendship-banner__message--received {
  color: #1976d2;
}
.friendship-banner__message--sent {
  color: #7b1fa2;
}
.friendship-banner__action {
  white-space: nowrap;
}
.friendship-banner__action .btn {
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
}

.friendship-filter-bar {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f1f1;
  background: #fafafa;
}

.friendship-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}
.friendship-filter-group label {
  font-weight: 600;
  color: #2d3436;
  font-size: 14px;
  margin-bottom: 0;
}
.friendship-filter-group input {
  padding: 8px 12px;
  font-size: 14px;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  padding: 20px;
}

.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  height: auto;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.friend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.friend-card__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  margin-bottom: 8px;
}
.friend-card__username {
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
  text-align: center;
  word-break: break-word;
}

.friend-request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.friend-request-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.friend-request-item__profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.friend-request-item__image {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  border: 1px solid #eee;
  object-fit: cover;
}
.friend-request-item__details {
  display: flex;
  flex-direction: column;
}
.friend-request-item__username {
  font-weight: 600;
  color: #2d3436;
}
.friend-request-item__date {
  font-size: 12px;
  color: #b2bec3;
}
.friend-request-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.friend-request-item__actions .btn {
  font-size: 13px;
  padding: 6px 15px;
}

.friendship-empty-state {
  padding: 40px;
  text-align: center;
  color: #636e72;
}

.search-query-input {
  padding: 0px 14px;
  margin-bottom: 0;
  height: 32px;
  border-radius: 15px;
  outline: none;
}

.friend-search-box {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  color: #666;
  padding: 12px;
  border: 1px solid #b7afa3;
  background-color: #efebd6;
}

.section_image {
  float: left;
}

@media (max-width: 768px) {
  .browse-title-link {
    font-size: 15px;
  }
}
.browse-back-link {
  display: inline-block;
  font-size: 14px;
  color: #1976d2;
  text-decoration: none;
  margin-bottom: 12px;
}
.browse-back-link:hover {
  text-decoration: underline;
}

.browse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.browse-table td {
  padding: 8px 12px;
}
.browse-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}
.browse-table tbody tr:nth-child(even) {
  background: #f8f8f8;
}
.browse-table tbody tr:hover {
  background: #f0f0f0;
}

.browse-title-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.browse-title-image {
  width: 65px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.browse-title-info {
  min-width: 0;
}

.browse-title-link {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
}

.browse-title-meta {
  font-size: 13px;
  color: #636e72;
  line-height: 1.4;
}
.browse-title-meta a {
  text-decoration: none;
  color: #1976d2;
}
.browse-title-meta a:hover {
  text-decoration: underline;
}

.browse-title-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.browse-pagination-desktop {
  display: none !important;
}

@media (min-width: 769px) {
  .browse-pagination-mobile {
    display: none !important;
  }
  .browse-pagination-desktop {
    display: flex !important;
  }
}
.browse-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 0 0;
}

.browse-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  background: #f0f0f0;
  color: #2d3436;
}
.browse-page-btn:hover {
  background: #e0e0e0;
}

.browse-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.browse-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  font-size: 14px;
  color: #999;
}

.message-page-layout {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
  animation: slideUp 0.4s ease-out;
}

.form-card-container, .list-card-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.form-card-header, .list-card-header {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.form-card-header h1, .list-card-header h1 {
  margin: 0;
  font-size: 20px;
  color: #2d3436;
  font-weight: 700;
}

.sender-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.sender-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-list .message-item, .notifications-list .message-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f1f1;
  gap: 20px;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.messages-list .notification-item, .notifications-list .notification-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 8px 24px;
  border-bottom: 1px solid #f1f1f1;
  gap: 20px;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.messages-list .message-item:last-child, .messages-list .notification-item:last-child, .notifications-list .message-item:last-child, .notifications-list .notification-item:last-child {
  border-bottom: none;
}
.messages-list .message-item:hover, .messages-list .notification-item:hover, .notifications-list .message-item:hover, .notifications-list .notification-item:hover {
  background-color: #fcfcfc;
}
.messages-list .message-item.unread, .messages-list .notification-item.unread, .notifications-list .message-item.unread, .notifications-list .notification-item.unread {
  background-color: #f0f7ff;
}
.messages-list .message-item.unread .subject, .messages-list .message-item.unread .msg-text, .messages-list .notification-item.unread .subject, .messages-list .notification-item.unread .msg-text, .notifications-list .message-item.unread .subject, .notifications-list .message-item.unread .msg-text, .notifications-list .notification-item.unread .subject, .notifications-list .notification-item.unread .msg-text {
  font-weight: 700;
}
.messages-list .msg-info, .messages-list .notification-content, .notifications-list .msg-info, .notifications-list .notification-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.messages-list .msg-info .sender-name, .messages-list .msg-info .subject, .messages-list .notification-content .sender-name, .messages-list .notification-content .subject, .notifications-list .msg-info .sender-name, .notifications-list .msg-info .subject, .notifications-list .notification-content .sender-name, .notifications-list .notification-content .subject {
  font-weight: 400;
  font-size: 14px;
  color: #2d3436;
}
.messages-list .msg-info .msg-text, .messages-list .notification-content .msg-text, .notifications-list .msg-info .msg-text, .notifications-list .notification-content .msg-text {
  font-size: 15px;
  color: #636e72;
}
.messages-list .msg-info .msg-text a, .messages-list .notification-content .msg-text a, .notifications-list .msg-info .msg-text a, .notifications-list .notification-content .msg-text a {
  color: #0d6efd;
  text-decoration: none;
}
.messages-list .msg-info .msg-text a:hover, .messages-list .notification-content .msg-text a:hover, .notifications-list .msg-info .msg-text a:hover, .notifications-list .notification-content .msg-text a:hover {
  text-decoration: underline;
}
.messages-list .msg-date, .notifications-list .msg-date {
  font-size: 13px;
  color: #b2bec3;
  text-align: right;
  min-width: 80px;
}
.messages-list .msg-action .btn-view, .messages-list .msg-action .btn-delete, .notifications-list .msg-action .btn-view, .notifications-list .msg-action .btn-delete {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.messages-list .msg-action .btn-view:hover, .messages-list .msg-action .btn-delete:hover, .notifications-list .msg-action .btn-view:hover, .notifications-list .msg-action .btn-delete:hover {
  text-decoration: underline;
  color: #0a58ca;
}
.messages-list .msg-action .btn-delete, .notifications-list .msg-action .btn-delete {
  color: #ff4d4d;
}
.messages-list .msg-action .btn-delete:hover, .notifications-list .msg-action .btn-delete:hover {
  color: #dc3545;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-card-header .header-actions {
  display: flex;
  gap: 12px;
}

.message-detail .detail-body {
  padding: 32px;
  line-height: 1.6;
  color: #2d3436;
  font-size: 16px;
  white-space: pre-wrap;
}
.message-detail .detail-footer {
  padding: 20px 32px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .messages-list .message-item {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .messages-list .message-item .msg-action {
    display: none;
  }
  .form-card-header {
    padding: 16px;
    gap: 12px;
  }
  .form-card-header h1 {
    font-size: 18px;
  }
  .message-detail .detail-body {
    padding: 20px;
  }
}
.quote-box {
  margin: 15px 0;
  border-left: 4px solid #ced4da;
  background-color: #f8f9fa;
  border-radius: 4px;
  overflow: hidden;
}

.quote-header {
  background-color: #e9ecef;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #495057;
  border-bottom: 1px solid #ced4da;
}

.message-quote {
  padding: 12px;
  margin: 0;
  color: #6c757d;
  font-style: italic;
  font-size: 15px;
  white-space: pre-wrap;
}

.threaded-reply-container {
  margin-top: 15px;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid #e0e0e0;
}

.threaded-reply-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.threaded-reply-header .sender-avatar {
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.threaded-reply-header .sender-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.threaded-reply-body {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.threaded-replies-list {
  margin-top: 15px;
}

/* Site Footer */
.site-footer {
  padding: 0 1.6rem;
  margin-top: 0;
  margin-left: -1.6rem;
  margin-right: -1.6rem;
  background: #f8f9fa;
  color: #888;
  font-size: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.site-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0 !important;
}
.site-footer .footer-links {
  display: flex;
  gap: 2.5rem;
}
.site-footer .footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
  font-weight: 500;
}
.site-footer .footer-links a:hover {
  color: #000;
}
.site-footer .footer-copyright {
  color: #999;
}
@media (max-width: 600px) {
  .site-footer .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2.5rem 0 !important;
  }
  .site-footer .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.gallery-page-layout {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 5px;
  animation: slideUp 0.4s ease-out;
}
@media (min-width: 45rem) {
  .gallery-page-layout {
    margin: 20px auto;
    padding: 0 15px;
  }
}
.gallery-page-layout.wide {
  max-width: 1000px;
}

.gallery-card-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.gallery-card-header {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}
.gallery-card-header.header-flex {
  justify-content: space-between;
  position: relative;
}
.gallery-card-header .header-main {
  display: flex;
  align-items: center;
  gap: 15px;
}
.gallery-card-header .header-back-link {
  padding: 6px 12px;
  margin-right: 5px;
}
.gallery-card-header .header-title-container h1 {
  margin: 0;
  font-size: 20px;
  color: #2d3436;
  font-weight: 700;
}
.gallery-card-header .header-description {
  color: #636e72;
  font-size: 14px;
  display: block;
}
.gallery-card-header .header-meta {
  font-size: 13px;
  color: #b2bec3;
  display: block;
  margin-top: 4px;
}
.gallery-card-header .header-dropdown-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
}
.gallery-card-header .header-dropdown-wrapper .post-action-btn {
  padding: 0.2rem 0.5rem;
}

.gallery-empty-state {
  padding: 40px;
  text-align: center;
  color: #636e72;
}
.gallery-empty-state p {
  margin-bottom: 20px;
}

.gallery-controls-section {
  padding: 24px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}
.gallery-controls-section h2 {
  margin-top: 0;
  font-size: 18px;
  color: #2d3436;
  margin-bottom: 20px;
}
.gallery-controls-section .standard-form {
  padding: 0;
}
.gallery-controls-section .conduct-reminder {
  font-weight: normal;
  font-size: 1.3rem;
  color: #636e72;
  margin-left: 8px;
}
.gallery-controls-section .file-upload-input {
  padding: 9px 12px;
  background: white;
}
.gallery-controls-section .form-button-row.row-end {
  justify-content: flex-end;
  align-items: center;
}

.gallery-header-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.gallery-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galleries-list .gallery-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f1f1;
  gap: 20px;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.galleries-list .gallery-item:last-child {
  border-bottom: none;
}
.galleries-list .gallery-item:hover {
  background-color: #fcfcfc;
}
.galleries-list .gallery-icon-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #0d6efd;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.galleries-list .gallery-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.galleries-list .gallery-info .gallery-name {
  font-weight: 700;
  font-size: 16px;
  color: #2d3436;
}
.galleries-list .gallery-info .gallery-desc {
  font-weight: 400;
  font-size: 14px;
  color: #636e72;
}
.galleries-list .gallery-date {
  font-size: 13px;
  color: #b2bec3;
  text-align: right;
  min-width: 80px;
}
.galleries-list .gallery-action .btn-view {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.galleries-list .gallery-action .btn-view:hover {
  text-decoration: underline;
  color: #0a58ca;
}

.gallery-controls-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gallery-controls-section .form-button-row .btn {
  margin-bottom: 0;
}

.gallery-controls-section .cancel-btn {
  min-width: auto;
}

.gallery-page-layout .form-button-row .cancel-btn,
.group-admin-invite .btn-primary {
  min-width: auto;
}

.group-admin-section td .btn-primary,
.group-admin-section td .btn-danger {
  min-width: auto;
}

.gallery-page-layout .form-button-row .btn,
.group-admin-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gallery-page-layout .form-button-row .btn {
  margin-bottom: 0;
}

.group-admin-section td .btn + .btn {
  margin-left: 8px;
}

.group-admin-section .btn-danger {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid transparent;
}

@media (max-width: 768px) {
  .galleries-list .gallery-item {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .galleries-list .gallery-item .gallery-action {
    display: none;
  }
  .gallery-card-header {
    padding: 16px;
    gap: 12px;
  }
  .gallery-card-header h1 {
    font-size: 18px;
  }
  .gallery-controls-section .btn,
  .gallery-controls-section .btn-secondary-outline {
    padding: 0.4rem 1rem;
    font-size: 1.3rem;
    min-width: auto;
  }
  .gallery-page-layout .form-button-row .btn,
  .group-admin-section .btn {
    padding: 0.4rem 1rem;
    font-size: 1.3rem;
    min-width: auto;
  }
}
.gallery-images-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-image-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-image-thumbnail {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  aspect-ratio: 1;
  position: relative;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.gallery-image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}
.gallery-image-thumbnail:hover img {
  transform: scale(1.05);
}

.gallery-image-info {
  padding: 0 4px;
}

.gallery-image-comments {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  color: #636e72;
  font-weight: 500;
}
.gallery-image-comments i {
  color: #acd373;
  font-size: 1.2rem;
}

.gallery-image-display {
  padding: 40px 20px;
  background-color: #f8f9fa;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}
.gallery-image-display img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}
.gallery-image-display img:hover {
  transform: scale(1.02);
}

.gallery-image-details {
  padding: 24px;
  font-size: 16px;
  color: #2d3436;
  line-height: 1.6;
}

.blog-list-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-card-container {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-card-header {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}
.blog-card-header.header-flex {
  justify-content: space-between;
  position: relative;
}
.blog-card-header .header-main {
  display: flex;
  align-items: center;
  gap: 15px;
}
.blog-card-header h1 {
  margin: 0;
  font-size: 20px;
  color: #2d3436;
  font-weight: 700;
}
.blog-card-header .header-description {
  color: #636e72;
  font-size: 14px;
  display: block;
}
.blog-card-header .header-meta {
  font-size: 13px;
  color: #b2bec3;
  display: block;
  margin-top: 4px;
}
.blog-card-header .header-dropdown-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
}
.blog-card-header .header-dropdown-wrapper .post-action-btn {
  padding: 0.2rem 0.5rem;
}

.blog-header-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.blog-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list .blog-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f1f1;
  gap: 20px;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-list .blog-item:last-child {
  border-bottom: none;
}
.blog-list .blog-item:hover {
  background-color: #fcfcfc;
}
.blog-list .blog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #0d6efd;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.blog-list .blog-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blog-list .blog-info .blog-title {
  font-weight: 700;
  font-size: 16px;
  color: #2d3436;
}
.blog-list .blog-info .blog-meta {
  font-weight: 400;
  font-size: 14px;
  color: #636e72;
}
.blog-list .blog-date {
  font-size: 13px;
  color: #b2bec3;
  text-align: right;
  min-width: 80px;
}
.blog-list .blog-action .btn-view {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.blog-list .blog-action .btn-view:hover {
  text-decoration: underline;
  color: #0a58ca;
}

@media (max-width: 768px) {
  .blog-list .blog-item {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .blog-list .blog-item .blog-action {
    display: none;
  }
  .blog-card-header {
    padding: 16px;
    gap: 12px;
  }
  .blog-card-header .btn,
  .blog-card-header .btn-secondary-outline {
    font-size: 1.4rem;
    padding: 0.6rem 1.2rem;
    min-width: unset;
  }
  .blog-card-header h1 {
    font-size: 18px;
  }
}
.blog-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
}
.blog-empty-state p {
  margin-bottom: 15px;
}

.blog-controls-section {
  padding: 24px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}
.blog-controls-section h2 {
  margin-top: 0;
  font-size: 18px;
  color: #2d3436;
  margin-bottom: 20px;
}
.blog-controls-section .standard-form {
  padding: 0;
}
.blog-controls-section .form-button-row.row-end {
  justify-content: flex-end;
  align-items: center;
}

/* Specific Blog Post Styles */
.blog-post-content {
  padding: 32px 40px;
  background: #ffffff;
}
.blog-post-content .blog-post-title-container {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.blog-post-content .blog-post-title-container h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #2d3436;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-post-content .blog-post-title-container .blog-post-meta {
  color: #636e72;
  font-size: 1.4rem;
  display: block;
}
.blog-post-content .blog-body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.8rem;
  line-height: 1.8;
  color: #2d3436;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .blog-post-content {
    padding: 24px 20px;
  }
  .blog-post-content .blog-post-title-container h1 {
    font-size: 2.2rem;
  }
  .blog-post-content .blog-body {
    font-size: 1.6rem;
  }
}
/* Document Styling (Privacy/Terms) */
.document-page {
  margin: 20px auto !important;
  max-width: 900px !important;
}

.document-card {
  padding: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.document-header {
  background: #f8f9fa;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.document-header h1 {
  margin: 0;
  font-size: 20px;
  color: #2d3436;
}

.document-body {
  padding: 24px 32px;
  line-height: 1.5;
  color: #333;
  font-size: 1.5rem;
  white-space: normal !important; /* Overriding pre-wrap */
}
.document-body h2 {
  font-size: 1.8rem;
  margin: 16px 0 8px 0;
  color: #2d3436;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}
.document-body p {
  margin: 0 0 12px 0;
}

.document-list {
  margin: 0 0 16px 0;
  padding-left: 24px;
}
.document-list li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .document-page {
    margin: 10px auto !important;
  }
  .document-body {
    padding: 16px 20px;
  }
}
.document-meta {
  margin: 4px 0 0 0;
  font-size: 1.3rem;
  color: #636e72;
}

.moderator-page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.moderator-header {
  margin-bottom: 24px;
}
.moderator-header h1 {
  font-size: 2.4rem;
  color: #2d3436;
  margin-bottom: 8px;
}
.moderator-header h2 {
  font-size: 1.8rem;
  color: #636e72;
  margin-bottom: 0;
  font-weight: normal;
}

.moderator-filters {
  margin-bottom: 24px;
}

.moderator-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.moderator-table-container {
  width: 100%;
  overflow-x: auto;
}

.moderator-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}
.moderator-table th, .moderator-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: top;
}
.moderator-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
  position: relative;
}
.moderator-table tbody tr {
  transition: background-color 0.15s;
}
.moderator-table tbody tr:hover {
  background-color: #fcfcfc;
}
.moderator-table tbody tr:last-child td {
  border-bottom: none;
}
.moderator-table .moderator-checkbox-column {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}

.moderator-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  background-color: #e9ecef;
  color: #495057;
  white-space: nowrap;
}

.moderator-actions {
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  text-align: right;
}

.moderator-content-preview {
  max-width: 250px;
  max-height: 80px;
  overflow-y: auto;
  word-wrap: break-word;
  font-size: 1.3rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #eee;
}

.moderator-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}
.moderator-link:hover {
  text-decoration: underline;
}

.admin-page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.admin-header {
  margin-bottom: 32px;
}
.admin-header h1 {
  font-size: 2.8rem;
  color: #2d3436;
  margin: 0 0 6px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin-header .admin-header-subtitle {
  font-size: 1.5rem;
  color: #636e72;
  margin: 0;
}

.admin-stat-section {
  margin-bottom: 32px;
}

.admin-stat-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #636e72;
  margin-bottom: 14px;
}
.admin-stat-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.admin-stat-section-label .admin-section-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.1rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #0d6efd);
  border-radius: 12px 12px 0 0;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}
.admin-stat-card .admin-stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-icon-bg, #e8f0fe);
  color: var(--card-accent, #0d6efd);
  flex-shrink: 0;
}
.admin-stat-card .admin-stat-card-icon svg {
  width: 20px;
  height: 20px;
}
.admin-stat-card .admin-stat-card-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1;
  letter-spacing: -0.03em;
}
.admin-stat-card .admin-stat-card-label {
  font-size: 1.3rem;
  color: #636e72;
  font-weight: 500;
  line-height: 1.3;
}

.admin-stat-card--users {
  --card-accent: #0d6efd;
  --card-icon-bg: #e8f0fe;
}

.admin-stat-card--comments {
  --card-accent: #00b894;
  --card-icon-bg: #e0f7f2;
}

.admin-stat-card--galleries {
  --card-accent: #6c5ce7;
  --card-icon-bg: #ede8fe;
}

.admin-stat-card--friends {
  --card-accent: #e84393;
  --card-icon-bg: #fde8f3;
}

.admin-stat-card--logins {
  --card-accent: #f39c12;
  --card-icon-bg: #fef6e0;
}

.admin-stat-card--messages {
  --card-accent: #0984e3;
  --card-icon-bg: #e1f0fc;
}

.admin-stat-card--blocks {
  --card-accent: #d63031;
  --card-icon-bg: #fde8e8;
}

.admin-section-icon--users {
  background: #0d6efd;
}

.admin-section-icon--comments {
  background: #00b894;
}

.admin-section-icon--galleries {
  background: #6c5ce7;
}

.admin-section-icon--friends {
  background: #e84393;
}

.admin-section-icon--logins {
  background: #f39c12;
}

.admin-section-icon--messages {
  background: #0984e3;
}

.admin-section-icon--blocks {
  background: #d63031;
}

.admin-summary-banner {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(45, 52, 54, 0.2);
}
.admin-summary-banner .admin-summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-summary-banner .admin-summary-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}
.admin-summary-banner .admin-summary-content {
  flex: 1;
}
.admin-summary-banner .admin-summary-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px 0;
  opacity: 0.75;
}
.admin-summary-banner .admin-summary-content .admin-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-summary-stat {
  display: flex;
  flex-direction: column;
}
.admin-summary-stat .admin-summary-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.admin-summary-stat .admin-summary-stat-label {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 2px;
}

.admin-remove-form {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.admin-remove-form p {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  color: #636e72;
}

.admin-remove-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-remove-input-row input {
  max-width: 300px;
}
.admin-remove-input-row .btn-danger {
  background: #d63031;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.admin-remove-input-row .btn-danger:hover {
  background: #b71c1c;
}

.admin-remove-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
}
.admin-remove-result i {
  margin-right: 8px;
}

.admin-remove-result--success {
  background: #e0f7f2;
  color: #00856a;
  border: 1px solid #b2dfdb;
}

.admin-remove-result--error {
  background: #fde8e8;
  color: #c62828;
  border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-summary-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-summary-counts {
    gap: 14px;
  }
}
.customize-profile-form {
  background: #fff;
}
.customize-profile-form .form-row-file {
  display: flex;
  align-items: center;
  gap: 15px;
}
.customize-profile-form .form-row-file input[type=file] {
  background: white;
}
.customize-profile-form .section-heading {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2d3436;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.customize-profile-form .color-picker-input {
  width: 100px;
  padding: 0;
  cursor: pointer;
  height: 40px;
}

.answers-list .answers-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  gap: 20px;
  margin: 0 4px 8px 4px;
  transition: background-color 0.2s;
}
.answers-list .answers-item:last-child {
  margin-bottom: 0;
}
.answers-list .answers-item:hover {
  background-color: #f8f9ff;
}
.answers-list .answers-item:hover .answers-title {
  color: #0d6efd;
}
.answers-list .answers-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
  display: block;
}
.answers-list .answers-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.answers-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
  display: block;
}
.answers-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.answers-list .answers-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.answers-list .answers-info .answers-title {
  font-weight: 700;
  font-size: 16px;
  color: #2d3436;
  transition: color 0.2s;
}
.answers-list .answers-info .answers-meta {
  font-size: 13px;
  color: #636e72;
}
.answers-list .answers-info .answers-meta a {
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}
.answers-list .answers-info .answers-meta a:hover {
  text-decoration: underline;
}
.answers-list .answers-info .answers-title-link {
  text-decoration: none;
}
.answers-list .answers-info .answers-title-link:hover .answers-title {
  color: #0d6efd;
}
.answers-list .answers-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2d3436;
  font-size: 14px;
  background: #f1f3f5;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.2s;
  text-decoration: none;
}
.answers-list .answers-count-badge:hover {
  background: #e0e0e0;
}

.answers-question-body {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #2d3436;
  white-space: pre-wrap;
  padding: 24px 40px 32px;
}

@media (max-width: 768px) {
  .answers-list .answers-item {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .answers-list .answers-item .answers-count-badge {
    display: none;
  }
  .answers-question-body {
    padding: 16px;
    font-size: 1.5rem;
  }
}
.spoiler {
  position: relative;
  cursor: pointer;
  background: #2d2d2d;
  border-radius: 4px;
  display: inline-block;
  min-width: 170px;
  padding: 2px 8px;
}
.spoiler .spoiler__text {
  color: transparent;
}
.spoiler .spoiler__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.spoiler.spoiler--revealed {
  background: transparent;
  min-width: 0;
  padding: 0;
}
.spoiler.spoiler--revealed .spoiler__text {
  color: inherit;
}
.spoiler.spoiler--revealed .spoiler__label {
  display: none;
}

.answers-header-main {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 44.99rem) {
  .answers-header-main {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

.manage-watchlist-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.manage-watchlist-page h1 {
  font-size: 24px;
  margin: 0 0 4px 0;
}
.manage-watchlist-page .subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px 0;
}

.search-box-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.search-box-inner {
  flex: 1;
  border: 1px solid #000;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box-label {
  font-weight: 600;
  font-size: 13px;
  color: #636e72;
  white-space: nowrap;
}

.search-box-form {
  display: flex;
  flex: 1;
  gap: 8px;
  margin: 0;
}
.search-box-form input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.search-box-form input:focus {
  border-color: #1976d2;
}

.search-box-btn {
  white-space: nowrap;
  padding: 6px 14px;
  font-size: 14px;
}

.search-spinner {
  visibility: hidden;
}
.search-spinner.htmx-request {
  visibility: visible;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#search-results {
  margin-bottom: 24px;
}

.already-watched-section h2 {
  font-size: 18px;
  margin: 0 0 12px 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item.on-watchlist {
  background: #f1f8e9;
  border-color: #a5d6a7;
}
.search-result-item:hover {
  background: #e3f2fd;
  border-color: #1976d2;
}
.search-result-item.on-watchlist:hover {
  background: #dcedc8;
  border-color: #66bb6a;
}
.search-result-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.search-result-image {
  flex-shrink: 0;
  width: 36px;
  height: 50px;
  border-radius: 3px;
  overflow: hidden;
}
.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
}

.search-result-meta {
  font-size: 12px;
  color: #888;
}

.search-result-arrow {
  flex-shrink: 0;
  color: #1976d2;
  font-size: 14px;
}

.search-no-results,
.search-hint {
  text-align: center;
  padding: 20px;
  color: #999;
}

.search-no-results {
  font-size: 14px;
}

.search-hint {
  font-size: 13px;
}

.watchlist-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.watchlist-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.watchlist-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.watchlist-header-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.watchlist-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watchlist-header-right {
  margin-left: auto;
}

.watchlist-stats {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.watchlist-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.watchlist-card:hover {
  border-color: #1976d2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.watchlist-card-image {
  flex-shrink: 0;
  width: 60px;
  height: 85px;
  border-radius: 4px;
  overflow: hidden;
}
.watchlist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watchlist-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.watchlist-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watchlist-card-progress {
  font-size: 13px;
  color: #1976d2;
  font-weight: 500;
}

.watchlist-card-episodes {
  font-size: 12px;
  color: #999;
}

.watchlist-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.watchlist-filter-bar label {
  font-weight: 600;
  font-size: 13px;
  color: #636e72;
  white-space: nowrap;
}
.watchlist-filter-bar input {
  max-width: 300px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.watchlist-filter-bar input:focus {
  border-color: #1976d2;
}

.watchlist-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.watchlist-empty p {
  margin: 0 0 16px 0;
  font-size: 16px;
}

@media (max-width: 768px) {
  .search-box-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box-form {
    flex: none;
    width: 100%;
    flex-direction: column;
  }
  .search-box-form input {
    width: 100%;
  }
  .search-box-btn {
    width: 100%;
  }
  .watchlist-grid {
    grid-template-columns: 1fr;
  }
  .watchlist-header {
    flex-wrap: wrap;
  }
}
.title-detail-page,
.td-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.td-back-bar {
  margin-bottom: 16px;
}

.title-header,
.td-header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.title-poster,
.td-poster {
  flex-shrink: 0;
  width: 225px;
}
.title-poster img,
.td-poster img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.title-info,
.td-info {
  flex: 1;
  min-width: 0;
}

.title-name,
.td-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.title-name-jp,
.td-name-jp {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  margin: 0 0 12px 0;
}

.title-metadata,
.td-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.title-badge,
.td-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  border-radius: 4px;
  color: #555;
}

.title-aired,
.td-aired {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.title-tags,
.td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.title-tag,
.td-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  background: #e3f2fd;
  border-radius: 12px;
  color: #1976d2;
}

.title-tag-theme,
.td-tag-theme {
  background: #fce4ec;
  color: #c62828;
}

.title-description,
.td-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.title-description p,
.td-desc p {
  margin: 0;
}

.td-flash {
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-flash-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.td-flash-error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

.td-episodes-section h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
}

.title-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0;
}

.title-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  color: #777;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-block;
}
.title-tab:hover {
  color: #333;
}
.title-tab.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
}
.title-tab i {
  margin-right: 6px;
}

.title-tab-content {
  padding: 16px 0;
}

.episodes-toolbar,
.td-episodes-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 12px;
}
.episodes-toolbar .btn,
.td-episodes-toolbar .btn {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 10px;
}
.episodes-toolbar.bottom,
.td-episodes-toolbar.bottom {
  margin-top: 12px;
  margin-bottom: 0;
}

.update-watchlist-btn {
  font-size: 12px;
  padding: 4px 10px;
  margin-left: auto;
}

.select-all-label,
.td-select-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.episodes-list,
.td-episodes-list {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.episode-row,
.td-episode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.episode-row:last-child,
.td-episode-row:last-child {
  border-bottom: none;
}
.episode-row:hover,
.td-episode-row:hover {
  background: #fafafa;
}
.episode-row.watched,
.td-episode-row.watched {
  background: #f1f8e9;
}

.episode-checkbox {
  flex-shrink: 0;
  width: 20px;
  display: none;
}

.td-episode-checkbox {
  flex-shrink: 0;
  width: 20px;
}

.episode-number,
.td-episode-number {
  flex-shrink: 0;
  width: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

.episode-title,
.td-episode-title {
  flex: 1;
  min-width: 0;
}

.episode-title-en,
.td-episode-title-en {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.episode-title-jp,
.td-episode-title-jp {
  display: block;
  font-size: 12px;
  color: #888;
}

.episode-date,
.td-episode-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.empty-state,
.td-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 15px;
}

.watch-toggle-btn {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5e9;
  border-radius: 4px;
  color: #2e7d32;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  margin-bottom: 0;
}
.watch-toggle-btn:hover {
  background: #c8e6c9;
}
.watch-toggle-btn.saved {
  background: #fff3e0;
  color: #e65100;
}

.edit-controls {
  display: none;
}

.episodes-section.editing .edit-controls {
  display: flex;
}
.episodes-section.editing .episode-checkbox {
  display: block;
}

.episodes-section:not(.editing) .episode-row.watched {
  background: transparent;
}

@media (max-width: 768px) {
  .title-header,
  .td-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    text-align: left;
    gap: 6px 24px;
    margin-bottom: 8px;
  }
  .title-poster,
  .td-poster {
    width: 160px;
  }
  .title-info,
  .td-info {
    display: contents;
  }
  .title-info-main,
  .td-info-main {
    grid-column: 2;
    grid-row: 1;
  }
  .title-rating-section {
    grid-column: 1/-1;
    margin: 0 !important;
  }
  .title-rating-section .title-rating {
    padding: 4px 0;
    margin-top: 0;
  }
  .title-rating-section .title-rating .rating-summary-display {
    gap: 4px;
  }
  .title-rating-section .title-rating .user-rating-form {
    margin-top: 4px;
  }
  .title-rating-section .title-rating .rating-form-buttons {
    margin-top: 4px;
  }
  .title-description,
  .td-desc {
    grid-column: 1/-1;
  }
  .title-metadata,
  .td-badges {
    justify-content: flex-start;
  }
  .title-tags,
  .td-tags {
    justify-content: flex-start;
    margin-bottom: 6px;
  }
}
.watchers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watcher-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.watcher-card:hover {
  background: #f5f5f5;
  border-color: #1976d2;
}

.watcher-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}
.watcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watcher-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 18px;
}

.watcher-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.watcher-username {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.watcher-joined {
  font-size: 12px;
  color: #888;
}

.members-header {
  justify-content: space-between;
}

.members-toggle-btn {
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.members-search-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 24px;
}
.members-search-bar .members-search-bar__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #636e72;
  font-style: italic;
}
.members-search-bar form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
}
.members-search-bar label {
  font-weight: 600;
  font-size: 13px;
  color: #636e72;
  white-space: nowrap;
  text-align: right;
}
.members-search-bar .form-control {
  width: 100%;
}
.members-search-bar .members-search-submit-btn {
  grid-column: 1/-1;
  justify-self: end;
  padding: 6px 14px;
  font-size: 14px;
}

@media (min-width: 769px) {
  .members-desktop-placeholder::placeholder {
    color: transparent;
  }
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  padding: 20px 24px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  height: auto;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.member-card__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.member-card__username {
  font-size: 1.3rem;
  color: #333;
  text-align: center;
  word-break: break-word;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .members-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }
  .members-search-bar form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .members-search-bar label {
    text-align: left;
    margin-bottom: -8px;
  }
  .members-search-bar .members-search-submit-btn {
    width: 100%;
    justify-self: stretch;
  }
  .members-toggle-btn {
    align-self: flex-end;
  }
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background-color 0.2s;
}
.review-card:hover {
  background-color: #f8f9ff;
}

.blog-list .review-card {
  margin: 0 4px 8px 4px;
}
.blog-list .review-card:last-child {
  margin-bottom: 0;
}

.review-card-avatar-wrap {
  flex-shrink: 0;
}

.review-card-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.review-card-avatar-anime .review-card-avatar {
  width: 45px;
  height: 64px;
}

.review-card-avatar-placeholder {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b2bec3;
  font-size: 16px;
}

.review-card-avatar-anime .review-card-avatar-placeholder {
  width: 45px;
  height: 64px;
}

.review-card-body {
  flex: 1;
  min-width: 0;
}

.review-card-title {
  font-weight: 600;
  font-size: 15px;
  color: #2d3436;
}

.review-card-subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}

.review-card-byline {
  font-size: 12px;
  color: #636e72;
  margin-top: 2px;
}

.review-card-rating {
  flex-shrink: 0;
  margin-left: auto;
}

.rating-summary {
  margin-bottom: 20px;
}

.average-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.average-rating .rating-stars {
  font-size: 20px;
}
.average-rating .rating-number {
  font-weight: 700;
  font-size: 18px;
  color: #2d3436;
}
.average-rating .rating-count {
  color: #636e72;
  font-size: 13px;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
}

.star {
  font-size: inherit;
  display: inline-block;
  position: relative;
}

.star-filled {
  color: #f1c40f;
}

.star-half {
  background: linear-gradient(90deg, #f1c40f 50%, #ddd 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ddd;
}

.star-empty {
  color: #ddd;
}

.star-rating-value {
  font-size: 13px;
  color: #636e72;
  margin-left: 6px;
  vertical-align: middle;
}

.star-rating-input {
  display: flex;
  gap: 4px;
  font-size: 28px;
  cursor: pointer;
}
.star-rating-input i {
  color: #f1c40f;
  transition: color 0.1s;
}
.star-rating-input i:hover, .star-rating-input i.hover {
  color: #f39c12;
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rating-value {
  font-size: 16px;
  font-weight: 600;
  color: #636e72;
  min-width: 40px;
}

.review-anime-header {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.review-anime-poster {
  flex-shrink: 0;
  width: 120px;
}
.review-anime-poster img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.review-anime-info {
  flex: 1;
  min-width: 0;
}

.review-anime-info-main {
  display: flex;
  flex-direction: column;
}

.review-anime-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.2;
  margin: 0 0 4px 0;
}

.review-anime-title-jp {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.review-anime-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.review-anime-aired {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.review-anime-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.review-content {
  padding: 20px;
}

.review-title-container {
  margin-bottom: 2px;
}
.review-title-container h1 {
  font-size: 24px;
  margin: 0 0 8px 0;
  color: #2d3436;
}

.review-rating-display {
  font-size: 18px;
  margin-bottom: 4px;
}

.review-meta {
  font-size: 13px;
  color: #636e72;
}

.review-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0 16px 0;
}

.review-body {
  font-size: 15px;
  line-height: 1.7;
  color: #2d3436;
}

.review-draft {
  opacity: 0.6;
}

.review-draft-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f39c12;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.review-create-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.review-create-page h1 {
  margin-bottom: 20px;
}
.review-create-page .form-row label {
  font-weight: 600;
  font-size: 15px;
  color: #2d3436;
}
.review-create-page .form-row:first-of-type {
  margin-bottom: 24px;
}
.review-create-page .rating-input {
  margin-bottom: 24px;
}
.review-create-page .rating-input label {
  font-weight: 600;
  font-size: 15px;
  color: #2d3436;
}
.review-create-page .form-button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}
.review-create-page .form-button-row .btn {
  min-width: unset;
  margin: 0;
}
.review-create-page .form-button-row .cancel-btn {
  margin: 0 !important;
  min-width: unset;
}

.search-box-wrap {
  margin-bottom: 20px;
}

.search-box-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box-label {
  font-weight: 600;
  font-size: 14px;
}

.search-box-form {
  display: flex;
  gap: 8px;
  flex: 1;
}
.search-box-form input {
  flex: 1;
}

.selected-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
}
.selected-title img {
  width: 60px;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
}

.selected-title-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selected-title-english {
  font-size: 18px;
  font-weight: 600;
}

.selected-title-japanese {
  font-size: 14px;
  color: #636e72;
}

#editor-container {
  height: 500px;
  background: white;
}

.character-counter {
  text-align: right;
  font-size: 13px;
  color: #636e72;
  margin-top: 6px;
}
.character-counter.warning {
  color: #e67e22;
}
.character-counter.danger {
  color: #e74c3c;
  font-weight: 600;
}

.search-spinner {
  visibility: hidden;
}
.search-spinner.htmx-request {
  visibility: visible;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.search-results-list {
  margin-bottom: 20px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-image {
  width: 45px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}
.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
}

.search-result-meta {
  font-size: 12px;
  color: #636e72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-arrow {
  font-size: 18px;
  color: #4a90d9;
  flex-shrink: 0;
}

.search-hint {
  font-size: 13px;
  color: #636e72;
  margin-bottom: 10px;
}

.search-no-results {
  font-size: 14px;
  color: #636e72;
  padding: 20px;
  text-align: center;
}

.title-rating {
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 12px;
}
.title-rating .rating-summary-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.title-rating .average-rating {
  margin: 0;
}
.title-rating .user-rating-form {
  margin-top: 8px;
}
.title-rating .rating-form-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.title-rating .rating-form-buttons .btn-sm {
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .title-rating .rating-form-buttons {
    flex-direction: column;
    gap: 4px;
  }
}
.title-rating .rating-input .rating-reset-btn,
.title-rating .rating-input .btn-sm {
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .search-box-form {
    flex: none;
    width: 100%;
    flex-direction: column;
  }
  .search-box-form input {
    width: 100%;
  }
  .review-title-container h1 {
    font-size: 20px;
  }
  .review-body {
    font-size: 14px;
  }
  .review-anime-header {
    padding: 12px;
    gap: 12px;
  }
  .review-anime-poster {
    width: 100px;
  }
  .review-anime-title {
    font-size: 15px;
  }
  .review-anime-title-jp {
    font-size: 13px;
  }
}

/*# sourceMappingURL=site.css.map */
