:root {
  --mm-bg-body: #121212;
  --mm-bg-card: #1e1e1e;
  --mm-bg-header: #1f1f1f;
  --mm-bg-hover: #2a2a2a;
  --mm-text-main: #ffffff;
  --mm-text-mute: #b3b3b3;
  --mm-border: #333333;
  --mm-primary: #1db954;
  --mm-header-height: 70px;
  --mm-sidebar-width: 280px;
  --mm-bg-search: #121212;
  --mm-scrollbar: #333333;
}

.mm-app-shell {
  font-family: inherit;
  background-color: var(--mm-bg-body);
  color: var(--mm-text-main);
  min-height: 100vh;
  box-sizing: border-box;
  direction: rtl;
  padding-top: var(--mm-header-height);
  overflow-x: hidden;
}

.mm-app-shell *,
.mm-app-shell *::before,
.mm-app-shell *::after {
  box-sizing: border-box;
}

.mm-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mm-header-height);
  background-color: var(--mm-bg-header);
  border-bottom: 1px solid var(--mm-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--mm-text-main);
  text-decoration: none;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo i {
  font-size: 24px;
  color: var(--mm-primary);
}

.user-nav {
  display: flex;
  align-items: center;
}

.mm-fixed-header .master-music-auth-area {
  display: flex;
  align-items: center;
}

.mm-fixed-header .master-music-auth-area .master-music-btn {
  background: transparent;
  border: 1px solid var(--mm-border);
  color: var(--mm-text-main);
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  margin: 0 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mm-fixed-header .master-music-auth-area .master-music-btn:hover {
  border-color: var(--mm-text-main);
  background-color: rgba(255, 255, 255, 0.1);
}

.mm-fixed-header .master-music-auth-area .master-music-open-auth-popup {
  background-color: var(--mm-primary);
  border-color: var(--mm-primary);
  color: #fff;
  font-weight: 600;
}

.mm-fixed-header .master-music-auth-area .master-music-open-auth-popup:hover {
  filter: brightness(1.1);
  background-color: var(--mm-primary);
}

.mm-fixed-sidebar-left,
.mm-fixed-sidebar-right {
  position: fixed;
  top: var(--mm-header-height);
  bottom: 0;
  width: var(--mm-sidebar-width);
  background-color: var(--mm-bg-card);
  z-index: 900;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: var(--mm-border);
}

.mm-fixed-sidebar-left {
  left: 0;
  border-right: 1px solid var(--mm-border);
}

.mm-fixed-sidebar-right {
  right: 0;
  border-left: 1px solid var(--mm-border);
}

.sidebar-inner {
  padding: 20px;
}

.widget {
  background-color: transparent;
  margin-bottom: 30px;
}

.widget-title {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--mm-text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.search-form {
  display: flex;
  background-color: var(--mm-bg-search);
  border-radius: 50px;
  padding: 2px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.search-form:focus-within {
  border-color: var(--mm-primary);
}

.search-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--mm-text-main);
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.search-form button {
  background: transparent;
  border: none;
  color: var(--mm-text-mute);
  padding: 0 15px;
  cursor: pointer;
  font-size: 1rem;
}

.search-form button:hover {
  color: var(--mm-text-main);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 5px;
}

.categories-list a {
  color: var(--mm-text-mute);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.categories-list a:hover {
  color: var(--mm-text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.categories-list a i {
  width: 20px;
  text-align: center;
  font-size: 1.1em;
}

.mm-social-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.2s;
  background-color: #333;
  text-decoration: none;
}

.mm-social-link:hover {
  transform: scale(1.1);
  color: #fff;
}

.mm-social-link.phone {
  background-color: #2ecc71;
}
.mm-social-link.telegram {
  background-color: #3498db;
}
.mm-social-link.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}
.mm-social-link.whatsapp {
  background-color: #25d366;
}

.main-content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
  transition: margin 0.3s ease;
}

.main-content-wrapper.has-sidebar-left {
  margin-left: var(--mm-sidebar-width);
}

.main-content-wrapper.has-sidebar-right {
  margin-right: var(--mm-sidebar-width);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--mm-text-main);
  font-weight: 700;
}

.mm-infinite-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
  width: 100%;
  color: var(--mm-text-mute);
  grid-column: 1 / -1;
}

.mm-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--mm-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: mm-spin 0.8s linear infinite;
}

@keyframes mm-spin {
  to {
    transform: rotate(360deg);
  }
}

.mm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--mm-text-main);
  font-size: 1.5rem;
  margin-right: 15px;
  cursor: pointer;
  padding: 5px;
}

.mm-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.mm-sidebar-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mm-fixed-sidebar-left::-webkit-scrollbar,
.mm-fixed-sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.mm-fixed-sidebar-left::-webkit-scrollbar-thumb,
.mm-fixed-sidebar-right::-webkit-scrollbar-thumb {
  background-color: var(--mm-scrollbar);
  border-radius: 3px;
}

.mm-fixed-sidebar-left::-webkit-scrollbar-track,
.mm-fixed-sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 992px) {
  .mm-mobile-toggle {
    display: block;
  }

  .mm-fixed-sidebar-left,
  .mm-fixed-sidebar-right {
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .mm-fixed-sidebar-left {
    transform: translateX(-100%);
    border-right: none;
  }

  .mm-fixed-sidebar-right {
    transform: translateX(100%);
    border-left: none;
  }

  .mm-fixed-sidebar-left.is-open,
  .mm-fixed-sidebar-right.is-open {
    transform: translateX(0);
  }

  .main-content-wrapper.has-sidebar-left,
  .main-content-wrapper.has-sidebar-right {
    margin-left: 0;
    margin-right: 0;
  }

  .main-content-wrapper {
    padding: 20px;
  }
}
