.changelog-container {
  width: 85.5%;
  max-width: 1296px;
  margin: 18px auto;
  padding: 0 0 18px 0;
}
.changelog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 18px;
  flex-wrap: wrap;
}
.search-container {
  flex: 1;
  min-width: 200px;
}
.changelog-search {
  width: 100%;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: bold;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-size: 14px;
}
.changelog-search:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}
.changelog-search::placeholder {
  color: #ccc;
}
.changelog-switcher {
  display: flex;
  gap: 10px;
}
.changelog-lang-switcher {
  display: flex;
  gap: 8px;
}
.changelog-btn {
  padding: 9px 18px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  box-shadow: 0px 0.5px 0px 0.5px rgba(255,255,255,0.1), 0px 4px 0px 0.5px rgba(50,50,50,0.8);
  transition: all 0.1s ease;
  cursor: pointer;
}
.changelog-lang-btn {
  padding: 8px 12px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  box-shadow: 0px 0.5px 0px 0.5px rgba(255,255,255,0.1), 0px 3px 0px 0.5px rgba(50,50,50,0.8);
  transition: all 0.1s ease;
  cursor: pointer;
}
.changelog-lang-btn:active {
  transform: translateY(2px);
}
.changelog-lang-btn:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  color: #ffe066;
  box-shadow: 0px 0.5px 0px 0.5px rgba(255,255,255,0.2), 0px 3px 0px 0.5px rgba(70,70,70,0.8);
}
.changelog-lang-btn.active {
  background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
  color: #fff;
  box-shadow: 0px 0.5px 0px 0.5px rgba(255, 152, 0, 0.3), 0px 3px 0px 0.5px rgba(230, 81, 0, 0.8);
}
.changelog-btn:active {
  transform: translateY(2px);
}
.changelog-btn:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  color: #ffe066;
  box-shadow: 0px 0.5px 0px 0.5px rgba(255,255,255,0.2), 0px 4px 0px 0.5px rgba(70,70,70,0.8);
}
.changelog-btn.active {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: #fff;
  box-shadow: 0px 0.5px 0px 0.5px rgba(76, 175, 80, 0.3), 0px 4px 0px 0.5px rgba(46, 125, 50, 0.8);
}
.changelog-btn.active:active {
  box-shadow: 0px 0px 0px 0.5px rgba(76, 175, 80, 0.3), 0px 2px 0px 0.5px rgba(46, 125, 50, 0.8);
}
.changelog-btn[data-version="nightly"].active {
  background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
  color: #fff;
  box-shadow: 0px 0.5px 0px 0.5px rgba(0, 122, 255, 0.3), 0px 4px 0px 0.5px rgba(0, 86, 204, 0.8);
}
.changelog-btn[data-version="nightly"].active:active {
  box-shadow: 0px 0px 0px 0.5px rgba(0, 122, 255, 0.3), 0px 2px 0px 0.5px rgba(0, 86, 204, 0.8);
}
.changelog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.changelog-section {
  padding: 23px 27px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
}
.changelog-section:hover {
  border-color: rgba(255,255,255,0.3);
}
.changelog-section.expanded {
  grid-column: span 3;
  z-index: 10;
}
.changelog-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.changelog-version-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.changelog-section.expanded .changelog-version-text {
  font-size: 18px;
}
.changelog-date-text {
  color: #ccc;
  font-size: 13px;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.changelog-changes {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  cursor: text;
}
.changelog-section.expanded .changelog-changes {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.changes-list {
  margin: 0;
  padding-left: 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  cursor: text;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
.changes-list li {
  margin-bottom: 7px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
.changelog-loading {
  text-align: center;
  color: #ccc;
  font-style: italic;
  padding: 36px;
  font-size: 14px;
}
.changelog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  gap: 16px;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.empty-icon {
  width: 64px;
  height: 64px;
  opacity: 0.5;
  color: #fff;
  margin-bottom: 8px;
}
.empty-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.empty-desc {
  font-size: 14px;
  color: #999;
  max-width: 300px;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .changelog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }
  html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }
  button {
    box-shadow: none !important;
  }
  button:active {
    transform: none !important;
    opacity: 1 !important;
  }
  .changelog-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .changelog-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px 16px;
    background: #17212B;
    margin-bottom: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .search-container {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .changelog-search {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    box-sizing: border-box;
    background: rgba(30, 39, 50, 0.6);
    border: 1px solid rgba(51, 144, 236, 0.3);
    border-radius: 8px;
    color: #e4e4e4;
    box-shadow: none;
  }
  .changelog-search:focus {
    border-color: rgba(51, 144, 236, 0.5);
    background: rgba(51, 144, 236, 0.1);
    box-shadow: none;
  }
  .changelog-search::placeholder {
    color: #8e9297;
  }
  .changelog-switcher {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
    display: flex;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .changelog-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid rgba(51, 144, 236, 0.3);
    background: rgba(30, 39, 50, 0.6);
    border-radius: 8px;
    color: #e4e4e4;
    box-shadow: none !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  .changelog-btn.active {
    background: rgba(51, 144, 236, 0.15);
    border-color: rgba(51, 144, 236, 0.4);
    color: #3390ec;
    box-shadow: none !important;
  }
  .changelog-lang-switcher {
    width: 100%;
    display: flex;
    justify-content: stretch;
    gap: 8px;
    margin-top: 10px;
  }
  .changelog-lang-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid rgba(51, 144, 236, 0.3);
    background: rgba(30, 39, 50, 0.6);
    border-radius: 8px;
    color: #e4e4e4;
    box-shadow: none !important;
  }
  .changelog-lang-btn.active {
    background: rgba(51, 144, 236, 0.15);
    border-color: rgba(51, 144, 236, 0.4);
    color: #3390ec;
  }
  .changelog-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .changelog-section {
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .changelog-section:last-child {
    border-bottom: none;
  }
  .changelog-section.expanded {
    grid-column: span 1;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
  }
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }
  .changelog-version-text {
    font-size: 16px;
    color: #3390ec;
    font-weight: 500;
  }
  .changelog-section.expanded .changelog-version-text {
    font-size: 18px;
    color: #3390ec;
  }
  .changelog-date-text {
    font-size: 12px;
    color: #8e9297;
  }
  .changelog-changes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(51, 144, 236, 0.15);
  }
  .changes-list {
    font-size: 13px;
    padding-left: 16px;
    color: #e4e4e4;
  }
  .changes-list li {
    margin-bottom: 8px;
  }
  .changelog-loading {
    padding: 40px 20px;
    color: #8e9297;
  }
  .changelog-empty {
    padding: 40px 20px;
    color: #8e9297;
  }
}
