/* Scope everything to avoid WP conflicts */
#webplayer {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg:   #a0b3eca3;
    --text: #111827;
    --text-muted: #6b7280;
    --border:transparent;
}

/* Container */
#webplayer .player-container {
    background: var(--bg);
    border-radius: 3px;
    border: 1px solid var(--border);
    max-width: 520px;
    width: calc( 100% - 2rem);
    padding: 1rem;
    overflow: hidden;
}

/* Header */
#webplayer .player-info {
    padding: 20px;
}

/* Title */
#webplayer .track-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

#webplayer .track-number {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Progress */
#webplayer .progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

#webplayer .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s linear;
}

/* Time */
#webplayer .time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Controls */
#webplayer button, 
html #webplayer input[type="button"], 
html #webplayer input[type="reset"], 
html #webplayer input[type="submit"] {
    padding: 0;
}

#webplayer .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

#webplayer .control-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.2s ease;
}

#webplayer .control-btn:hover {
    color: var(--primary);
}

/* Play button */
#webplayer .play-pause-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

#webplayer .play-pause-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Playlist */
#webplayer .playlist {
    border-top: 1px solid var(--border);
    max-height: 260px;
    overflow-y: auto;
}

/* Playlist items */
#webplayer .playlist-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

#webplayer .playlist-item:hover {
    background: #f9fafb;
}

/* Active track */
#webplayer .playlist-item.active {
    background: rgba(99, 102, 241, 0.08);
}

/* Track text */
#webplayer .playlist-item-title {
    font-size: 14px;
    color: var(--text);
}

#webplayer .playlist-item.active .playlist-item-title {
    color: var(--primary);
    font-weight: 500;
}

/* Scrollbar (minimal) */
#webplayer .playlist::-webkit-scrollbar {
    width: 6px;
}

#webplayer .playlist::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#webplayer .speed-control {
    margin-top: 16px;
}

#webplayer .speed-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

#webplayer #speedSlider {
    width: 100%;
    margin-bottom: 8px;
}

#webplayer .speed-presets {
    display: flex;
    gap: 6px;
    margin-top: 1rem;
}

#webplayer .speed-presets button {
    flex: 1;
    border: 1px solid var(--border);
    background: #fff;
    padding: 6px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

#webplayer .speed-presets button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#webplayer .pitch-control {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

#webplayer .pitch-control input {
    margin-right: 6px;
}

/* Icons */
#webplayer .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#webplayer .icon-large {
    width: 26px;
    height: 26px;
}

/* Fix button alignment */
#webplayer .control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play button center */
#webplayer .play-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

#webplayer .progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    cursor: pointer;
    position: relative;
}

#webplayer .progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.1s linear;
}

#webplayer .time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.hm-login-wrapper {
    max-width: 320px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hm-login-wrapper h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

/* WordPress form classes */
.hm-login-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hm-login-wrapper .login-username,
.hm-login-wrapper .login-password {
      display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hm-login-wrapper input[type="text"],
.hm-login-wrapper input[type="password"] {
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 1rem;
}

.hm-login-wrapper input[type="submit"] {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    font-size: 1.25rem;
}

.hm-login-wrapper input[type="submit"]:hover {
    background: #135e96;
}

.hm-login-wrapper label {
    font-size: 1rem;
    font-weight: 500;
}