
.about-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-card {
  color: #e7dde7;
  width: min(33vw, 640px);
  padding: 24px 28px;
  border-radius: 8px;
  background: rgb(73, 62, 72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  line-height: 1.6;
}

.about-card h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.about-card p + p {
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid #e7dde7;
  margin-top: 2vw;
  padding: 16px 24px;
  background: rgb(51, 43, 50);
  color: #f7ecda;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7ecda;
  color: #1e1724;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.footer-btn:hover {
  opacity: 0.85;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.8;
}

.album-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.album-edit-modal--hidden {
  display: none;
}

.album-edit-modal__inner {
  width: min(900px, 94vw);
  max-height: 90vh;
  background: #1b1b1b;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  box-sizing: border-box;
}

.album-edit-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #fff;
}

.album-edit-modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.album-edit-modal__close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.album-edit-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .album-edit-modal__grid {
    grid-template-columns: 1fr;
  }
}

/* Wide kart modal içindeyken aşırı hover efekti olmasın */
.box--modal {
  box-shadow: none;
}

.box--modal:hover {
  transform: none !important;
}

/* Form kısmı */
.album-edit-form {
  background-color: #e7dde7;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-sizing: border-box;
}

.album-edit-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(51, 43, 50);
}

.album-edit-form input[type="number"],
.album-edit-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(108, 79, 104, 0.6);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  background: #faf6fb;
}

.album-edit-form input[type="number"]:focus,
.album-edit-form textarea:focus {
  border-color: rgb(108, 79, 104);
  box-shadow: 0 0 0 2px rgba(108, 79, 104, 0.35);
}

.album-edit-form__hint {
  font-size: 0.8rem;
  color: #555;
}

.album-edit-form__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.album-edit-form__primary,
.album-edit-form__secondary {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.album-edit-form__primary {
  background-color: rgb(108, 79, 104);
  color: #fff;
}

.album-edit-form__primary:hover {
  background-color: rgb(121, 104, 119);
}

.album-edit-form__secondary {
  background-color: transparent;
  color: rgb(108, 79, 104);
  border: 1px solid rgba(108, 79, 104, 0.8);
}

.album-edit-form__secondary:hover {
  background-color: rgba(108, 79, 104, 0.08);
}
html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  background-color: rgb(51, 43, 50);
  font-family: Arial, Helvetica, sans-serif;
}



.navbar-links {
  align-items: left;
  padding: 14px 20px;
  border-bottom: 1px solid #e7dde7;
  margin-bottom: 2vw;
  display: flex;
  gap: 5rem;
}

.navbar-item {
  text-decoration: none;
  font-size: 30px;
  color: white;
  font-weight: bold;
}

.navbar-item:hover {
  opacity: 0.7;
}

.users-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-card {
  background: #1b1b1b;
  border: 1px solid #333;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-username {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.user-albums {
  font-size: 14px;
  color: #aaa;
}

.user-link {
  font-size: 14px;
  padding: 6px 10px;
  background: #444;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #555;
  transition: background 0.15s ease;
}

.user-link:hover {
  background: #666;
}


.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  background-color: #e7dde7;
  padding: 2.5rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: min(420px, 90vw);
  box-sizing: border-box;
  border-radius: 20px;
}

.auth-title {
  margin: 0 0 1.5rem 0;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: rgb(51, 43, 50);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form input {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 79, 104, 0.6);
  font-size: 0.95rem;
  outline: none;
  background: #faf6fb;
}

.auth-form input:focus {
  border-color: rgb(108, 79, 104);
  box-shadow: 0 0 0 2px rgba(108, 79, 104, 0.35);
}

.auth-button {
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgb(108, 79, 104);
  color: #fff;
  transition: transform 0.1s ease, background 0.15s ease;
}

.auth-button:hover {
  background-color: rgb(121, 104, 119);
  transform: translateY(-1px);
}

.auth-button:active {
  transform: translateY(1px);
}

.auth-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: rgb(51, 43, 50);
}

.auth-link {
  color: rgb(108, 79, 104);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.auth-link:hover {
  border-bottom-color: rgb(108, 79, 104);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.8rem 1.5rem;
  }

  .auth-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

#title {
  text-align: center;
  font-size: clamp(1.8rem, 10vw, 7rem);
  font-weight: bolder;
  margin-top: 2vw;
  margin-bottom: 2vw;
  font-family: "Limelight", serif;
  text-shadow: 5px 5px rgb(108, 79, 104);
  color: rgb(246, 246, 228);
}

.header {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5vw;
  margin-left: 2.2vw;
}

.headerItem {
  font-size: max(1.6vw, 12px);
  width: max(12vw, 90px);
  height: max(4vw, 30px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  background-color: rgb(108, 79, 104);
}

.headerItem:hover {
  background: rgb(121, 104, 119);
  ;


}

#popup {
  width: max(25vw, 200px);
  aspect-ratio: 3 / 4;
  background-color: #e7dde7;
  padding: 1.4vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 25%;
  left: 40%;
  z-index: 2;
  outline: 0.2vw solid rgb(0, 0, 0);
  cursor: grab;
  user-select: none;
}

#popup.dragging {
  cursor: grabbing;
}

#abouttitle {
  margin-top: 0.4vw;
  font-size: max(1.2vw, 10px);
  font-weight: bold;
}

#aboutcontext {
  font-size: max(0.9vw, 7px);
}

.close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 0.7vw;
  top: 0.7vw;
  height: 3.5vw;
  aspect-ratio: 1/1;
  font-size: 2.5vw;
  border-radius: 2vw;
  background-color: rgb(249, 252, 236);
  border-color: rgb(152, 154, 145);
  z-index: 3;
}

label {
  color: #fff;
  font-size: max(8px, 1.2vw);
}

option {
  font-size: max(8px, 1.2vw);
  padding: 4px 8px;
}

.set {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.select {
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: max(8px, 1.2vw);
  background: #fafafa;
}

.grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1vw;
  width: 98vw;
  margin: auto;
}

.box {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: #e7dde7;
  padding: 0.52vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;

}

.photo {
  position: relative;
  overflow: hidden ;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 0;

}


.album-edit-btn {
  position: absolute;
  
  top: -5px;
  right: -5px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: white;

  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);

  transition: opacity .15s ease, transform .15s ease;
}

.box:hover .album-edit-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}


.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color, rgba(0, 0, 0, 0.8));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.3s ease;

}

.score {
  position: absolute;
  bottom: 0.5vw;
  right: 0.5vw;
  color: white;
  font-size: max(20px, 3vw);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.box:hover .score {
  opacity: 1;
}

.box:hover {
  transform: scale(1.07);
}


.box:hover .photo::after {
  opacity: 1;
}

#avatar{
  height: 90px;
  aspect-ratio: 1/1;
}
.album {
  margin-top: 0.2rem;
  font-size: max(0.90vw, 6px);
  font-weight: bold;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist {
  font-size: max(4px, 0.63vw);
  font-weight: bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.box--wide .album-edit-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1) !important; 
  
  width: 48px;
  height: 48px;
  font-size: 22px;
  border-radius: 1vw;
  top: 8px; 
  right: 8px;
}

.grid.grid--wide {
  grid-template-columns: 1fr;
  row-gap: 1.2rem;
  justify-items: center;
  width: 100%;
}

.box.box--wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: flex-start;
  border-radius: 1vw;
  width: min(33vw, 540px);
  max-width: 100%;
  padding: 0.9rem 1rem;
  aspect-ratio: auto;
}


.box--wide .left-col {
  grid-column: 1;
}

.box--wide .photo {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

/* Wide modda hover overlay istemiyoruz */
.box--wide .photo::after {
  display: none;
}
.box--wide .score-box {
  margin-top: 0.4vw;
  grid-column: 1;
  width: 90px;
  padding: 0.5rem 0.9rem;
  box-sizing: border-box;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orta kolon: albüm adı, sanatçı, hemen altında yorum */
.box--wide .middle-col {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Albüm adı */
.box--wide .album {
  font-size: 1.2rem;
  margin: 0;
  font-weight: bold;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sanatçı adı */
.box--wide .artist {
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Yorum: sanatçı isminin hemen altında */
.box--wide .comment {
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box--wide .placeholder{
  min-width: 70px;
  color:rgba(0,0,0,0);
}

/* Skor yazısı */
.box--wide .score-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

/* Wide modda eski hover skorunu gizle */
.box--wide .score {
  display: none;
}

/* Wide kartta hover zoom istemiyoruz */
.box--wide:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Edit butonu wide modda hep görünsün ayarın kalsın */
.box--wide .album-edit-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1) !important;

  width: 48px;
  height: 48px;
  font-size: 22px;

  top: 8px;
  right: 8px;
}

/* Mobilde genişliği tam ekrana yaklaştır */
@media (max-width: 768px) {
  .box.box--wide {
    width: 92vw;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .box--wide .score-box {
    grid-column: 1 / -1;
    justify-self: flex-end;
    margin-top: 0.5rem;
  }
}

.box--empty {
  pointer-events: none;
}

.box--empty .photo {
  background: #494949;
  width: 100%;
  aspect-ratio: 1/1;
}

.box--empty img {
  display: none;
}

.box--empty .album,
.box--empty .artist {
  visibility: hidden;
}


@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 430px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.dataContainer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5vw;
}

.topAlbums {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  width: 98vw;
}

.slides {
  display: grid;
  border-radius: 1vw;
  background-color: rgb(108, 79, 104);
  grid-template-columns: repeat(2, 1fr);
  width: 98wv;
  margin: auto;
  padding: 2vw;
  column-gap: 14vw;
  row-gap: 7vw;

}


.canvastitle {
  font-size: max(2vw, 12px);
}

.slide {
  background-color: #e5d3e8;
  border-radius: 1vw;
  box-sizing: border-box;
  text-align: center;
  width: 40vw;
}

@media(max-width:425px) {
  .slides {
    grid-template-columns: repeat(1, 1fr);
  }

  .slide {
    width: 92vw;
  }
}

.toptext {
  color: #ddd;
  margin-bottom: 1vw;
  font-size: max(15px, 2vw);
  font-weight: bold;
}

.toplist {

  padding: 2vw;
  background-color: rgb(108, 79, 104);
  border-radius: 1vw;
}

.album-list {
  display: flex;
  gap: 3vw;
}

.album-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding-left: 0.5vw;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: max(270px, 30vw);
  height: max(50px, 8vw);
  overflow: hidden;
  position: relative;
}

.album-card img {
  width: max(7vw, 40px);
  height: max(7vw, 40px);
  object-fit: cover;
  border: 1px solid #aaa;
  margin-right: 1vw;
}

.album-info {
  display: flex;
  flex: 0 0 10vw;
  flex-direction: column;
}

.albumdata {
  margin-top: max(20px, 0.5vw);
  font-size: max(1vw, 9px);
  font-weight: bold;
}

.album-info p {

  font-size: max(1vw, 9px);
  color: #555;
}

.album-score {
  background-color: rgba(0, 0, 0, 0.8);
  right: 10vw;
  font-size: max(5vw, 25px);
  width: max(70px, 11vw);
  height: max(8vw, 50px);
  padding-left: max(15px, 2vw);
  padding-top: max(2vw, 20px);
  font-weight: bold;
  color: #fff;
  justify-content: center;
  align-items: center;
}

@media (max-width: 431px) {
  .album-list {
    flex-direction: column;
  }

  .album-info {
    flex: 0 0 40vw;
  }

}

@media (max-width: 320px) {
  .album-score {
    margin-left: 6vw;
  }
}
.toolbar {
  margin: 1.5vw 2.2vw 1vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.album-add-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: max(0.9rem, 1.1vw);
  font-weight: 600;
  cursor: pointer;
  background-color: rgb(108, 79, 104);
  color: #f7ecda;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.album-add-btn:hover {
  background-color: rgb(121, 104, 119);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.album-add-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.view-toggle {
  display: flex;
  gap: 8px;
}

/* Genel buton stili */
.view-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: rgb(108, 79, 104); /* sitenin mor tonu */
  color: #f7ecda;          /* ikon rengi */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.view-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.view-btn__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.view-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;  /* butonun text rengi = ikon rengi */
}

/* Aktif görünüm rengi */
.view-btn.is-active {
  
  background: #e7dde7;
  color: #1e1724;  
}
.auth-message {
  background: #ff4f4f;
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}