/* Ringtone Theme - zvonochek.net - DLE 20 */

:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Light Theme Variables */
  --bg: #f4f7fa;
  --fg: #1f2937;
  --mut: #6b7280;
  --box: #ffffff;
  --box-hover: #fcfdfe;
  --border: #e5e7eb;
  --accent: #0f6af2;
  --accent-hover: #0d5ad1;
  --accent-light: #eef5ff;
  --accent-dark: #0a1f44;
  --player-track: #e5e7eb;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  
  --shadow: 0 4px 18px rgba(15, 106, 242, 0.04);
  --shadow-hover: 0 8px 30px rgba(15, 106, 242, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --max-w: 1200px;
  --gap: 20px;
}

/* Dark Theme Variables */
html[data-th="dark"] {
  --bg: #090d16;
  --fg: #f3f4f6;
  --mut: #9ca3af;
  --box: #121824;
  --box-hover: #161e2e;
  --border: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #1e293b;
  --accent-dark: #eff6ff;
  --player-track: #1e293b;
  --success: #34d399;
  --success-bg: #064e3b;
  --danger: #f87171;
  --danger-bg: #7f1d1d;
  
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Basic Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Page wrapper layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Sticky Header styling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}

html[data-th="dark"] .site-header {
  background-color: rgba(18, 24, 36, 0.85);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  height: 72px;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none !important;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(15, 106, 242, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text b {
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.logo-text small {
  font-size: 0.72rem;
  color: var(--mut);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Header Search Form */
.header-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  width: 100%;
  margin-left: 20px;
}

.search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 10px 45px 10px 18px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: var(--accent);
  background-color: var(--box);
  box-shadow: 0 0 0 3px rgba(15, 106, 242, 0.12);
}

.search-btn {
  position: absolute;
  right: 18px !important;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mut);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.search-btn:hover {
  color: var(--accent);
}

/* Header actions & Nav bar */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--box);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background-color: var(--bg);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* User profile button */
.profile-btn-wrap {
  position: relative;
}

.btn-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  border: 1px solid transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-profile:hover {
  background-color: var(--accent);
  color: #fff;
}

.btn-profile svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--box);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Page Layout grid */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap);
  padding: var(--gap) 0;
  align-items: start;
}

/* Sidebar styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.sidebar-box {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  color: var(--mut);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* Sidebar lists / chips */
.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--fg);
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.sidebar-menu a:hover,
.sidebar-menu a.cat_chip_active {
  background-color: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.sidebar-menu a .cat_name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu a .cat_ico {
  font-size: 1.1rem;
}

.sidebar-menu a .cat_count {
  font-size: 0.8rem;
  background-color: var(--bg);
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--mut);
  font-weight: 600;
}

.sidebar-menu a:hover .cat_count,
.sidebar-menu a.cat_chip_active .cat_count {
  background-color: var(--box);
  color: var(--accent);
}

/* Sub-categories indentation */
.cat_sub_chips {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 6px;
  list-style: none;
}

/* Main Content Area */
.content-area {
  min-width: 0;
}

/* Page Section headers */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero Section (Main Page) */
.hero-section {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap) 25px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--box) 60%, var(--accent-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}

.hero-section p {
  color: var(--mut);
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-bottom: 10px;
}

/* Chip filter lists */
.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-item {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  transition: all 0.15s;
}

.chip-item:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Track Listing Cards (mockup-style) */
.track-card {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.track-card:hover {
  border-color: rgba(15, 106, 242, 0.2);
  box-shadow: var(--shadow-hover);
}

/* Track thumbnail icon */
.track-icon-wrap {
  width: 52px;
  height: 52px;
  background-color: #1e293b; /* Slate dark bg from mockup */
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.40rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
}

.track-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.track-title a {
  color: var(--fg);
}

.track-title a:hover {
  color: var(--accent);
}

.track-meta {
  font-size: 0.85rem;
  color: var(--mut);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
}

.track-meta-category {
  font-weight: 600;
  color: var(--accent);
}

/* Track Player Wrapper and Category Icon container */
.track-player-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.track-player-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  min-width: 0;
}

.track-category-icon-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  overflow: hidden;
  transition: background-color 0.2s, border-color 0.2s;
}

.track-category-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-category-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Custom Audio Player Layout (mockup-style) */
.track-player-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.player-btn-play {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(15, 106, 242, 0.25);
  transition: transform 0.15s, background-color 0.15s;
}

.player-btn-play:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.player-btn-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.player-timeline-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.player-timeline {
  flex: 1;
  height: 4px;
  background-color: var(--player-track);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.player-progress {
  height: 100%;
  background-color: var(--accent);
  border-radius: 99px;
  width: 0%;
  pointer-events: none;
}

.player-slider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.player-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mut);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mut);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.player-volume-btn:hover {
  color: var(--fg);
}

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

/* Download/Details Button styling */
.track-download-wrap {
  display: flex;
  align-items: stretch;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  background-color: var(--accent-light);
  border-left: 1px solid var(--border);
  color: var(--accent);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  box-shadow: none;
  border-radius: 0;
}

.btn-download:hover {
  background-color: var(--accent);
  color: #fff !important;
  text-decoration: none;
  box-shadow: none;
}

.btn-download svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.btn-download:hover svg {
  transform: translateX(3px);
}

.track-meta-row {
  font-size: 0.8rem;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  width: 100%;
}

/* Pagination navigation styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.pagination a, 
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--box);
  color: var(--fg);
  font-weight: 600;
  transition: all 0.15s;
  padding: 0 6px;
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.pagination span.current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* DLE Category Sorting Block */
.sort-box {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: var(--gap);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: background-color 0.2s, border-color 0.2s;
}

.sort-box > span {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  display: inline-block;
}

.sort-box form {
  flex-grow: 1;
}

.sort-box ul.sort {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.sort-box ul.sort li {
  display: block;
  width: auto;
}

.sort-box ul.sort li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sort-box ul.sort li a:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Active Sorting States (DLE puts .asc or .desc class on the li) */
.sort-box ul.sort li.asc a {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.sort-box ul.sort li.asc a::after {
  content: "↑";
  font-weight: 900;
  font-size: 0.9rem;
}

.sort-box ul.sort li.desc a {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.sort-box ul.sort li.desc a::after {
  content: "↓";
  font-weight: 900;
  font-size: 0.9rem;
}

/* DLE Info Box (messages) */
.info-box {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.info-box-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.info-box-text {
  color: var(--mut);
}

/* Fullstory Layout Styling */
.full-card {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.full-header {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.full-title-wrap {
  display: flex;
  flex-direction: column;
}

.full-title-wrap h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.full-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--mut);
  font-size: 0.85rem;
  margin-top: 4px;
}

.full-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.full-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 24px;
}

.full-body p {
  margin-bottom: 14px;
}

/* Full story player & attachment block */
.attachment-section {
  margin: var(--gap) 0;
  border-top: 1px solid var(--border);
  padding-top: var(--gap);
}

.attachment-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* DLE Comments Section styling */
.comments-wrap {
  margin-top: 30px;
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* Tree Comments Nesting Structure */
.comments-tree-list,
.comments-tree-list li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.comments-tree-list .comments-tree-list {
  margin-left: 32px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-top: 12px;
}

.comment-card {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-card:hover {
  border-color: rgba(15, 106, 242, 0.2);
}

.comment-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 800;
  font-size: 1.05rem;
}

.comment-author a {
  color: var(--fg);
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--accent);
}

.comment-date {
  font-size: 0.82rem;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-online {
  color: var(--success);
  font-weight: 700;
}

.status-offline {
  color: var(--mut);
}

.badge-author {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.comment-body {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--fg);
}

.comment-signature {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--mut);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 8px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

.comment-mass-action input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-comment-action {
  cursor: pointer;
  color: var(--mut);
  transition: color 0.15s;
}

.btn-comment-action:hover {
  color: var(--accent);
}

.btn-comment-delete:hover,
.btn-comment-report:hover {
  color: var(--danger);
}

.comment-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100px;
  min-width: 100px;
  flex-shrink: 0;
}

.comment-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.comment-rating-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.comment-rate-plusminus {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comment-rate-btn svg {
  fill: currentColor;
}

.comment-rate-plus:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.comment-rate-btn-small {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.comment-rate-btn-small:hover {
  background-color: var(--border);
  color: var(--accent);
}

.comment-rating-val {
  font-variant-numeric: tabular-nums;
}

.comment-rating-val-pos {
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

.comment-rating-val-neg {
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}

/* Comment Form styling */
.add-comment-box {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

.form-input, 
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background-color: var(--bg);
  outline: none;
  font-size: 0.95rem;
  transition: all 0.15s;
}

.form-input:focus, 
.form-textarea:focus {
  border-color: var(--accent);
  background-color: var(--box);
  box-shadow: 0 0 0 3px rgba(15, 106, 242, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background-color: var(--border);
}

/* User profile popup and forms */
.profile-popup {
  position: absolute;
  right: 0;
  top: 48px;
  width: 280px;
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

.profile-popup.is-active {
  display: block;
}

.profile-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.profile-popup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg);
}

.profile-popup-info {
  display: flex;
  flex-direction: column;
}

.profile-popup-name {
  font-weight: 700;
  font-size: 1rem;
}

.profile-popup-group {
  font-size: 0.8rem;
  color: var(--mut);
}

.profile-popup-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-popup-menu a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--fg);
  font-weight: 500;
  font-size: 0.9rem;
}

.profile-popup-menu a:hover {
  background-color: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

.profile-popup-footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* Userinfo Profile Page styling */
.profile-card {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background-color: var(--bg);
}

.profile-hero-details h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-hero-meta {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--mut);
  margin-top: 4px;
}

.profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.profile-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: rgba(255,255,255,0.01);
}

.profile-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.dl-profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 0.9rem;
}

.dl-profile dt {
  color: var(--mut);
}

.dl-profile dd {
  font-weight: 600;
}

/* PM (Private Messages) Layout */
.pm-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background-color: var(--bg);
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.pm-nav {
  display: flex;
  gap: 8px;
}

.pm-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: var(--mut);
  gap: 4px;
}

.pm-progress-bar {
  width: 120px;
  height: 6px;
  background-color: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.pm-progress-bar span {
  display: block;
  height: 100%;
  background-color: var(--accent);
}

/* Attachment (Sleek mockup design for full story) */
.attach-card {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: background-color 0.2s, border-color 0.2s;
}

.attach-format-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

.attach-format-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.attach-header-player {
  width: 100%;
}

.af_ws_player {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: background-color 0.2s, border-color 0.2s;
}

.af_ws_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mut);
  width: 100%;
}

.af_ws_time {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.af_ws_controls_row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

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

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

.af_ws_wave {
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Metadata list (horizontal rows) */
.attach-meta-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  transition: background-color 0.2s, border-color 0.2s;
}

.attach-meta-row-full {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.attach-meta-row-full:last-child {
  border-bottom: none;
}

.attach-meta-label {
  font-weight: 700;
  color: var(--mut);
}

.attach-meta-value {
  font-weight: 700;
  color: var(--fg);
  text-align: right;
  word-break: break-all;
}

/* Download Row */
.attach-download-row {
  display: flex;
  width: 100%;
  gap: 12px;
}

.btn-download-premium {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background-color: var(--accent);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 106, 242, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-download-premium:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(15, 106, 242, 0.3);
  text-decoration: none;
}

.btn-qr-modal {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qr-modal:hover {
  background-color: var(--border);
  color: var(--accent);
}

/* Footer styling */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background-color: var(--box);
  padding: 24px 0;
  color: var(--mut);
  font-size: 0.88rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px;
  transition: opacity 0.2s ease;
}

.footer-logo img:hover {
  opacity: 0.85;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none; /* We will use a mobile slideout or overlay menu */
  }
  
  .sidebar.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background-color: var(--bg);
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page-wrapper, .site-header, .container, .main-layout, .content-area, .full-card, .track-card, .seo-description-box {
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 8px;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .header-search {
    display: none; /* Hide standard search input in header, will toggle mobile-search bar */
  }
  
  .header-search.mobile-search-active {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    margin-left: 0;
    padding: 10px var(--gap);
    background-color: var(--box);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  
  .nav-links {
    display: none;
  }
  
  .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }
  
  .logo-text b {
    font-size: 0.95rem !important;
  }
  
  .logo-text small {
    display: none !important;
  }
  
  .theme-toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-right .profile-btn-wrap {
    display: block !important;
  }
  
  .header-right .btn-profile {
    height: 36px !important;
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
    gap: 4px !important;
  }
  
  .header-right .btn-profile svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  .mobile-menu-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
  }

  /* Fullstory Mobile Responsive Layout Fix */
  .full-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .full-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .full-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    width: 100%;
  }

  .fullstory-rating-box,
  .fullstory-rating-box > div {
    flex-wrap: wrap !important;
    white-space: normal !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .fullstory-rating-count {
    white-space: normal;
  }
  
  /* Track Card Responsive redesign matching mobile mockup */
  .track-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  
  .track-card-body {
    padding: 14px 14px 12px 14px;
  }
  
  .track-card .btn-download {
    width: 100%;
    height: 48px;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .track-card .btn-download::before {
    content: "ПОДРОБНЕЕ";
    font-weight: 800;
    font-size: 0.85rem;
    margin-right: 6px;
  }
  
  /* Mobile responsive sorting (2 symmetrical columns filling 100% width) */
  .sort-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  
  .sort-box > span {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    font-weight: 800;
  }
  
  .sort-box ul.sort {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .sort-box ul.sort li {
    width: 100%;
  }
  
  .sort-box ul.sort li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    width: 100%;
    font-size: 0.84rem;
    box-sizing: border-box;
  }
  
  /* Mobile responsive attachments block */
  .attach-card {
    padding: 16px;
  }
  
  .attach-download-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-download-premium,
  .btn-qr-modal {
    width: 100%;
    flex: none;
  }
  
  /* Mobile responsive comments list */
  .comments-tree-list .comments-tree-list {
    margin-left: 16px;
    padding-left: 8px;
  }
  
  .comment-card {
    flex-direction: column-reverse;
    gap: 16px;
    padding: 16px;
  }
  
  .comment-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  
  .comment-avatar-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Light / Dark Mode Icon helper togglers */
.theme-icon-sun {
  display: block;
}
.theme-icon-moon {
  display: none;
}
html[data-th="dark"] .theme-icon-sun {
  display: none;
}
html[data-th="dark"] .theme-icon-moon {
  display: block;
}

/* Breadcrumbs (speedbar) */
.speedbar {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--mut);
  box-shadow: var(--shadow);
}

.speedbar a {
  color: var(--mut);
}

.speedbar a:hover {
  color: var(--accent);
}

/* DLE Category SEO Text section */
.seo-description-box {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
  color: var(--mut);
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.cat_intro {
  overflow: hidden;
}

.cat_intro br {
  display: none;
}

.cat_intro h1 {
  color: var(--fg);
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cat_intro_pic {
  float: left;
  margin-right: 20px;
  margin-bottom: 12px;
  margin-top: 4px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.cat_intro_pic img {
  display: block;
  border-radius: 4px;
}

.cat_intro p {
  margin-bottom: 12px;
  color: var(--mut);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cat_intro p:last-child {
  margin-bottom: 0;
}

/* Fullstory footer buttons and rating row */
.fullstory-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.fullstory-footer-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.fullstory-footer-buttons a {
  text-decoration: none;
}

.btn-fav, .btn-edit {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fav:hover, .btn-edit:hover {
  background-color: var(--border);
  color: var(--accent);
}

.btn-fav-del {
  color: var(--danger);
}

.btn-fav-del:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.fullstory-rating-box {
  display: flex;
  align-items: center;
  margin-right: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.rating-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mut);
  margin-right: 8px;
  display: flex;
  align-items: center;
  height: 32px;
  line-height: 1;
}

/* DLE Rating styled as musical notes */
.fullstory-rating-box .ajax-rating {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 184px !important;
  height: 32px !important;
}

.fullstory-rating-box .unit-rating {
  position: relative;
  display: inline-flex;
  width: 184px !important;
  height: 32px !important;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 32'><rect x='0' y='0' width='32' height='32' rx='6' fill='%231e293b' stroke='%23334155' stroke-width='1'/><path d='M16 9v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V13h4V9h-6z' fill='%2394a3b8'/></svg>") repeat-x !important;
  background-size: 38px 32px !important;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.fullstory-rating-box .unit-rating li {
  padding: 0;
  margin: 0;
  float: left;
}

.fullstory-rating-box .unit-rating .current-rating {
  position: absolute;
  left: 0;
  top: 0;
  height: 32px !important;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 32'><rect x='0' y='0' width='32' height='32' rx='6' fill='rgba(15,106,242,0.12)' stroke='%230f6af2' stroke-width='1.5'/><path d='M16 9v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V13h4V9h-6z' fill='%230f6af2'/></svg>") repeat-x !important;
  background-size: 38px 32px !important;
  text-indent: -9999px;
  z-index: 1 !important;
}

.fullstory-rating-box .unit-rating li a {
  position: absolute;
  top: 0;
  width: 32px !important;
  height: 32px !important;
  text-decoration: none;
  text-indent: -9999px;
  z-index: 17 !important;
  padding: 0;
}

.fullstory-rating-box .unit-rating li a:hover {
  left: 0 !important;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 32'><rect x='0' y='0' width='32' height='32' rx='6' fill='%230f6af2' stroke='%230f6af2' stroke-width='1'/><path d='M16 9v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V13h4V9h-6z' fill='%23ffffff'/></svg>") repeat-x !important;
  background-size: 38px 32px !important;
  z-index: 2 !important;
}

.fullstory-rating-box .unit-rating .r1-unit { left: 0 !important; }
.fullstory-rating-box .unit-rating .r2-unit { left: 38px !important; }
.fullstory-rating-box .unit-rating .r3-unit { left: 76px !important; }
.fullstory-rating-box .unit-rating .r4-unit { left: 114px !important; }
.fullstory-rating-box .unit-rating .r5-unit { left: 152px !important; }

.fullstory-rating-box .unit-rating .r1-unit:hover { width: 32px !important; }
.fullstory-rating-box .unit-rating .r2-unit:hover { width: 70px !important; }
.fullstory-rating-box .unit-rating .r3-unit:hover { width: 108px !important; }
.fullstory-rating-box .unit-rating .r4-unit:hover { width: 146px !important; }
.fullstory-rating-box .unit-rating .r5-unit:hover { width: 190px !important; }

@media (max-width: 768px) {
  .fullstory-footer-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .fullstory-footer-buttons {
    width: 100%;
    justify-content: center;
  }
  .fullstory-rating-box {
    width: 100%;
    justify-content: center;
  }
}

.mass_comments_action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.mass_comments_action select {
  background-color: var(--box);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--fg);
  font-weight: 700;
  outline: none;
  cursor: pointer;
  height: 38px;
  box-sizing: border-box;
}

.mass_comments_action select:focus {
  border-color: var(--accent);
}

.mass_comments_action input[type="submit"],
.mass_comments_action .btn {
  background-color: #8be1e5;
  color: #111b21 !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 20px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-sizing: border-box;
  text-decoration: none;
}

.mass_comments_action input[type="submit"]:hover,
.mass_comments_action .btn:hover {
  filter: brightness(1.1);
}

/* Fullstory Tags Styling */
.fullstory-tags {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.tags-label {
  font-weight: 800;
  color: var(--fg);
  font-size: 0.9rem;
  line-height: 28px;
  white-space: nowrap;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0; /* Hides raw HTML commas injected between <a> tags by DLE! */
}

.tags-list a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mut);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.tags-list a:hover {
  background-color: var(--accent-light);
  border-color: rgba(15, 106, 242, 0.2);
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .fullstory-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tags-label {
    line-height: 1.2;
  }
}

/* Shortstory Horizontal Rating Styling */
.track-rating-wrap,
.track-rating-wrap span,
.track-rating-wrap .rating,
.track-rating-wrap .unit-rating,
.track-rating-wrap .unit-rating li {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  float: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
  position: static !important;
  background: none !important;
  text-indent: 0 !important;
  font-size: inherit !important;
  line-height: 1 !important;
  border: none !important;
}

.track-rating-wrap {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mut);
  white-space: nowrap;
  gap: 4px;
  display: inline-flex;
  align-items: center;
}

.track-rating-wrap .unit-rating li.current-rating {
  font-weight: 800;
  color: var(--fg) !important;
  padding: 0 2px !important;
}

/* Fullstory Rating Count & Info Styling */
.fullstory-rating-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mut);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}

.fullstory-rating-count span,
.fullstory-rating-count strong {
  color: var(--fg);
  font-weight: 800;
}

/* Sidebar Title Row & Mobile Login Button Styling */
.sidebar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.sidebar-title-row h3 {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.btn-login-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: var(--accent-light);
  border: 1px solid rgba(15, 106, 242, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login-small:hover {
  background-color: var(--accent);
  color: #fff;
}
