body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0d0f;
  color: #e5e5e5;
  margin: 0;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 28px;
  color: #ff3c3c;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.cart-btn {
  position: relative;
  background: #1a1a1d;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  color: #e5e5e5;
  font-weight: bold;
  transition: 0.2s;
}
.cart-btn:hover {
  background: #2a2a2f;
  box-shadow: 0 0 10px #ff3c3c;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3c3c;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff3c3c;
}

.cart-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #1a1a1d;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  width: 280px;
  z-index: 10;
  padding: 10px;
}
.cart-dropdown.active {
  display: block;
}
.cart-item {
  border-bottom: 1px solid #333;
  padding: 6px 0;
  font-size: 14px;
}
.cart-footer {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  color: #ff3c3c;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.controls select,
.controls input {
  padding: 6px;
  background: #1a1a1d;
  border: 1px solid #444;
  border-radius: 6px;
  color: #e5e5e5;
}
.controls input[type="range"] {
  accent-color: #ff3c3c;
}
#catalog {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
}



.card {
  width: 100%;             
  max-width: 550px;        
  background: #1a1a1d;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  box-shadow: 0 0 15px #ff3c3c;
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 6px;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.author {
  font-weight: bold;
  font-size: 14px;
  color: #8b8989;
}
.phrase {
  font-weight: bold;
  font-size: 16px;
  color: #c3c1c1;
}
.price {
  font-weight: bold;
  margin-top: 4px;
  color: #ff3c3c;
}
.small {
  font-size: 12px;
  color: #777;
}

button.add-btn {
  margin-top: 6px;
  width: 100%;
  padding: 6px;
  background: #1ca54e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
button.add-btn:hover {
  background: #e60000;
  box-shadow: 0 0 12px #ff3c3c;
}

#checkout {
  background: #ff3c3c;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
#checkout:hover {
  background: #e60000;
  box-shadow: 0 0 12px #ff3c3c;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-family: sans-serif;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e62d2d;
  background: #101014;
  color: #ff3c3c;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.play-btn:hover {
  background: #ff3c3c;
  color: #fff;
  box-shadow: 0 0 10px #c30000;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 6px;
  background: #2c2c2f;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ff3c3c;
  transition: width 0.1s linear;
}

.current-time,
.duration {
  font-size: 12px;
  color: #ccc;
}


#tiFilters .ti-btn {
  background: #1a1a1d;
  border: 2px solid #ff3c3c;
  color: #ff3c3c;
  font-weight: bold;
  padding: 6px 14px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
#tiFilters .ti-btn:hover {
  background: #ff3c3c;
  color: #1a1a1d;
}
#tiFilters .ti-btn.active {
  background: #ff3c3c;
  color: #1a1a1d;
  box-shadow: 0 0 6px rgba(255,60,60,0.6);
}



.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1a1d;
  padding: 30px;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 60, 60, 0.5);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modal-fadein 0.3s;
}

@keyframes modal-fadein {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #ff3c3c;
}

.order-summary {
  background: #0d0d0f;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 14px;
  color: #e5e5e5;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.copy-btn, .seller-link {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.copy-btn {
  background: #22c55e;
}

.copy-btn:hover {
  background: #1a9f4a;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.seller-link {
  background: #ff3c3c;
}

.seller-link:hover {
  background: #e60000;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.5);
}