* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 100vh;
  overflow: hidden;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100vh;
}

.editor-panel {
  background: #111;
  color: white;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
}

.editor-panel h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 24px;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.screen-tabs button {
  background: #1f1f1f;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.screen-tabs button:hover {
  background: #00cd3c;
  color: black;
}

.editor-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-group label {
  font-size: 12px;
  opacity: 0.8;
}

.editor-group input {
  padding: 11px 12px;
  border-radius: 10px;
  border: none;
  background: #1d1d1d;
  color: white;
  font-size: 13px;
}

.mockup-area {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eceef1;
}

.phone-frame {
  width: 390px;
  height: 844px;
  background: white;
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 0 0 8px #111;
  position: relative;
}

.screen {
  width: 100%;
  height: 100%;
  display: none;
  overflow-y: auto;
  background: white;
}

.screen.active {
  display: block;
}

.melon-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #f1f1f1;
}

.melon-logo {
  font-size: 28px;
  font-weight: 800;
  color: #00cd3c;
  letter-spacing: -1px;
}
.top-banner {
  padding: 20px 20px 14px;
}

.top-banner p {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.top-banner h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.featured-track {
  margin: 0 20px 18px;
  background: #f7f8f9;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-left img {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
}

.featured-center {
  flex: 1;
}

.featured-label {
  font-size: 11px;
  color: #00cd3c;
  font-weight: 700;
}

.featured-center h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.3px;
}

.featured-center p {
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}

.mix-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00cd3c;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-card img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-rank {
  font-size: 12px;
  color: #00cd3c;
  font-weight: 700;
}

.track-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.track-info p {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.latest-section {
  margin-top: 24px;
  padding-left: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  padding-right: 20px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 800;
}

.section-title span {
  font-size: 13px;
  color: #777;
}

.album-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.album-row::-webkit-scrollbar {
  display: none;
}

.album-card {
  min-width: 110px;
}

.album-card img {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
}

.album-card p {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.album-card span {
  font-size: 11px;
  color: #666;
}

.mini-player {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: white;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-player strong {
  font-size: 13px;
}

.mini-player p {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.player-controls {
  display: flex;
  gap: 14px;
  font-size: 14px;
}
.search-box {
  padding: 18px 20px 14px;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: none;
  background: #f4f5f6;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}

.search-tabs {
  display: flex;
  gap: 18px;
  padding: 0 20px 16px;
  border-bottom: 1px solid #f2f2f2;
}

.search-tabs span {
  font-size: 13px;
  color: #777;
  padding-bottom: 10px;
  cursor: pointer;
}

.active-tab {
  color: black !important;
  font-weight: 700;
  border-bottom: 2px solid #00cd3c;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}

.search-result-card img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.search-result-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.search-result-info p {
  font-size: 12px;
  color: #666;
}

.artist-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f3f3f3;
}

.artist-result img {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  object-fit: cover;
}

.artist-meta h2 {
  font-size: 20px;
  font-weight: 800;
}

.artist-meta p {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.result-track-list {
  padding: 10px 20px;
}

.result-track {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

.result-track span:first-child {
  font-size: 13px;
  color: #00cd3c;
  font-weight: 700;
}

.result-track h3 {
  font-size: 14px;
  font-weight: 700;
}

.result-track p {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.result-track span:last-child {
  font-size: 12px;
  color: #888;
}
.library-title {
  padding: 20px 20px 16px;
}

.library-title h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}

.library-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.library-item {
  height: 54px;
  background: #f7f8f9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.library-item span {
  font-size: 14px;
  font-weight: 600;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 20px 0;
  padding: 12px;
  background: #fafafa;
  border-radius: 18px;
}

.playlist-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.playlist-info h3 {
  font-size: 15px;
  font-weight: 700;
}

.playlist-info p {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.chart-header h2 {
  font-size: 24px;
  font-weight: 800;
}

.chart-header span {
  font-size: 13px;
  color: #777;
}

.chart-list {
  padding: 0 20px;
}

.chart-row {
  display: grid;
  grid-template-columns: 22px 60px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f4f4f4;
}

.chart-row span {
  font-size: 13px;
  color: #00cd3c;
  font-weight: 700;
}

.chart-row img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
}

.chart-row h3 {
  font-size: 14px;
  font-weight: 700;
}

.chart-row p {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}
.album-cover-large {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.album-cover-large img {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  object-fit: cover;
}

.album-meta {
  text-align: center;
  margin-top: 18px;
}

.album-type {
  font-size: 12px;
  color: #00cd3c;
  font-weight: 700;
}

.album-meta h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
}

.album-meta p {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.album-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.album-actions button {
  border: none;
  background: #f5f6f7;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.track-table {
  margin-top: 26px;
  padding: 0 20px;
}

.track-line {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f4f4f4;
}

.track-line span:first-child {
  font-size: 13px;
  color: #00cd3c;
  font-weight: 700;
}

.track-line h3 {
  font-size: 14px;
  font-weight: 700;
}

.track-line p {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.track-line span:last-child {
  font-size: 12px;
  color: #888;
}
.player-cover {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.player-cover img {
  width: 250px;
  height: 250px;
  border-radius: 28px;
  object-fit: cover;
}

.player-song-info {
  text-align: center;
  margin-top: 28px;
}

.player-song-info h2 {
  font-size: 26px;
  font-weight: 800;
}

.player-song-info p {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

.player-progress {
  width: calc(100% - 40px);
  height: 4px;
  background: #e8e8e8;
  border-radius: 999px;
  margin: 28px auto 0;
  overflow: hidden;
}

.progress-line {
  width: 34%;
  height: 100%;
  background: #00cd3c;
}

.player-times {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px 0;
}

.player-times span {
  font-size: 11px;
  color: #777;
}

.player-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 38px;
  font-size: 24px;
}

.player-buttons span {
  cursor: pointer;
}
.phone-frame::-webkit-scrollbar,
.screen::-webkit-scrollbar,
.album-row::-webkit-scrollbar {
  display: none;
}

.screen {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

button,
input {
  font-family: inherit;
}

img {
  display: block;
}

input[type="file"] {
  padding: 8px;
  background: #1d1d1d;
  color: white;
}

button:focus,
input:focus {
  outline: none;
}

.track-card,
.chart-row,
.result-track,
.track-line,
.search-result-card,
.playlist-card {
  transition: all 0.2s ease;
}

.track-card:hover,
.chart-row:hover,
.result-track:hover,
.track-line:hover,
.search-result-card:hover,
.playlist-card:hover {
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mockup-area {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .phone-frame {
    width: 100%;
    max-width: 390px;
    height: 844px;
  }

  .screen-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .screen-tabs::-webkit-scrollbar {
    display: none;
  }
}
.active-editor {
  background: #00cd3c !important;
  color: black !important;
}

