* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2c3e50;
}

/* Top Bar */
.top-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #764ba2;
}

.top-bar h1 {
    font-size: 24px;
    color: #2c3e50;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #764ba2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-secondary.saved {
    background: #e8f7ec;
    color: #1f6a3c;
    border: 1px solid #9fd0ae;
}

.btn-secondary:disabled {
    cursor: default;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #667eea;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.icon-btn.danger {
    color: #dc3545;
}

.icon-btn.danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

body.pool-editing .main-container {
    grid-template-columns: 1fr;
    max-width: 1700px;
}

/* Playlists Section */
.playlists-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.source-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.source-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.source-btn.active {
    background: rgba(255,255,255,0.95);
    color: #3a4b8c;
    border-color: transparent;
    font-weight: 600;
}

.playlists-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pool-sidebar {
    margin-top: 22px;
}

.pool-sidebar h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 18px;
}

.playlist-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.playlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.playlist-card.active {
    border: 2px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.playlist-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.playlist-card p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.playlist-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
}

.loading-message, .empty-message {
    text-align: center;
    padding: 18px 14px;
    color: #5a6b85;
    font-size: 13px;
    font-weight: 600;
}

/* Playlist Editor */
.playlist-editor {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.editor-title h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.editor-title p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.editor-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #95a5a6;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

/* Add Track Section */
.add-track-section {
    margin-bottom: 30px;
}

.add-track-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #95a5a6;
}

#track-search-input {
    width: 100%;
    padding: 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

#track-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* New: Player-based search results */
.search-result-item-player {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.search-result-item-player:hover {
    background: #f8f9fa;
}

.search-result-item-player:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.search-result-player {
    margin-top: 10px;
}

.search-result-player iframe {
    border-radius: 6px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.search-result-artist {
    font-size: 13px;
    color: #7f8c8d;
}

.search-result-meta {
    font-size: 12px;
    color: #95a5a6;
}

.add-track-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.add-track-btn:hover {
    background: #764ba2;
}

.add-track-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

/* Tracks Section */
.tracks-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-zone {
    border: 1px dashed #cfd9ea;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px;
    min-height: 128px;
}

.data-zone.is-empty {
    min-height: 64px;
    background: #fbfdff;
}

.data-zone .empty-message {
    padding: 10px;
}

.pool-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pool-collapsed-bars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pool-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.pool-panel-head h3 {
    margin: 0;
}

.pool-panel-toggle {
    border: 1px solid #c8d5ea;
    background: #f7faff;
    color: #2f4977;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pool-panel-toggle.inline {
    width: 28px;
    height: 28px;
    justify-content: center;
    padding: 0;
}

.pool-panel-toggle.collapsed {
    background: #eef2f9;
    color: #5d6f8a;
}

.pool-panel-toggle:hover {
    background: #edf3ff;
}

.pool-help {
    color: #6a7684;
    margin-bottom: 10px;
    font-size: 13px;
}

.pool-left,
.pool-middle,
.pool-right {
    background: #fbfcff;
    border: 1px solid #e3e8f2;
    border-radius: 12px;
    padding: 12px;
    min-height: 620px;
    position: relative;
}

.pool-box-hint {
    border: 1px dashed #9fb5e2;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    color: #476193;
    text-align: center;
    background: #f4f8ff;
    font-size: 12px;
}

.pool-filter-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 10px;
}

.pool-filter-row input,
.pool-filter-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
}

.pool-year-panel {
    background: #f4f8ff;
    border: 1px solid #d4e2ff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.pool-year-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #42506c;
    margin-bottom: 6px;
}

.pool-year-panel input[type="range"] {
    width: 100%;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.genre-tag {
    border: 1px solid #bfd0ef;
    background: #eaf1ff;
    color: #2e4a84;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: grab;
    user-select: none;
}

.genre-tag.selected {
    background: #dce9ff;
    border-color: #7fa5e6;
    color: #203f79;
}

.genre-tag-clear {
    margin-left: 8px;
    border: none;
    background: #ffffff;
    color: #2f4e8f;
    border-radius: 999px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.genre-tag.group-add {
    background: #eaf8ea;
    border-color: #9cd1a0;
    color: #235f2d;
}

.genre-tag.quick-add-tag {
    cursor: pointer;
    border-style: dashed;
    background: #eef6ff;
    color: #234a82;
}

.genre-tag.quick-add-tag[draggable="true"] {
    cursor: grab;
}

.genre-tag.quick-add-tag:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pool-left.drop-add-active {
    border-color: #6f98e7;
    box-shadow: inset 0 0 0 2px #d5e4ff;
    background: #f2f7ff;
}

.pool-left.drop-add-active::before {
    content: "Add to Playlist";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #324f86;
    background: #e6efff;
    border: 1px solid #b7c9ee;
    border-radius: 999px;
    padding: 4px 8px;
    z-index: 5;
}

.pool-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #24344f;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    z-index: 3000;
    font-size: 13px;
}

.pool-toast.error {
    background: #8f1d1d;
    border: 1px solid #e29595;
}

.pool-middle.drop-remove-active,
.pool-right.drop-remove-active {
    border-color: #8ca9df;
    box-shadow: inset 0 0 0 2px #dce8ff;
    background: #f4f8ff;
}

.pool-middle.drop-remove-active::before,
.pool-right.drop-remove-active::before {
    content: "X Remove";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #324f86;
    background: #e6efff;
    border: 1px solid #b7c9ee;
    border-radius: 999px;
    padding: 4px 8px;
    z-index: 5;
}

body.pool-dragging .pool-left.drop-add-active > *,
body.pool-dragging .pool-middle.drop-remove-active > *,
body.pool-dragging .pool-right.drop-remove-active > * {
    pointer-events: none;
}

.pool-source-header {
    margin: 10px 0 8px;
    font-weight: 600;
    color: #334;
}

.pool-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pool-track-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#pool-clear-all-btn {
    padding: 5px 10px;
    font-size: 12px;
}

.excluded-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pool-source-list {
    margin-bottom: 10px;
}

.source-filter-item {
    cursor: pointer;
}

.source-filter-item.selected {
    border: 1px solid #84a5e4;
    background: #edf3ff;
}

.pool-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.playlist-search-results {
    margin: 6px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playlist-search-title {
    font-size: 12px;
    font-weight: 700;
    color: #41516d;
}

.playlist-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.playlist-tag-line {
    margin-top: 4px;
    font-size: 11px;
    color: #52627e;
    font-weight: 600;
}

.pool-tab {
    padding: 10px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #f3f6fb;
    cursor: pointer;
    font-weight: 600;
    color: #384865;
}

.pool-tab.active {
    background: #dce9ff;
    border-color: #7fa5e6;
}

.pool-tab-panel {
    max-height: 620px;
    overflow: auto;
}

.search-status {
    margin: 6px 0 4px;
    font-size: 12px;
    color: #4a5b73;
}

.search-status.loading {
    color: #2c4b80;
}

.search-status.error {
    color: #9a281f;
}

#pool-db-search-input {
    width: 100%;
    padding: 10px 42px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px;
    padding-right: 72px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.play-track-btn {
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 16px;
}

.play-track-btn.playing {
    background: #ff5722;
}

.track-item.playing {
    background: #e8f3ff;
    border: 1px solid #b7d6ff;
}

.track-item:hover {
    background: #e9ecef;
}

.track-item.unhealthy-option {
    background: #fff6f6;
    border: 1px solid #f2c7c7;
}

.play-track-placeholder {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8dede;
    color: #a33838;
    font-size: 16px;
}

.track-position {
    font-weight: 600;
    color: #95a5a6;
    margin-right: 15px;
    min-width: 30px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.track-inspect-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid #aebacd;
    color: #5d6d80;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

.track-artist {
    font-size: 13px;
    color: #7f8c8d;
}

.track-meta {
    font-size: 12px;
    color: #95a5a6;
    margin-right: 15px;
    line-height: 1.35;
    text-align: right;
}

.song-health {
    margin-top: 4px;
    text-align: right;
}

.song-health-label {
    font-size: 10px;
    font-weight: 700;
    color: #4d5c70;
    margin-bottom: 2px;
}

.song-health-state.good {
    color: #1f7a42;
}

.song-health-state.warn {
    color: #8a5c00;
}

.song-health-state.bad,
.song-health-state.issue {
    color: #9a281f;
}

.song-health-meter {
    width: 124px;
    height: 6px;
    margin-left: auto;
    border-radius: 999px;
    background: #e5ebf3;
    overflow: hidden;
}

.song-health-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.song-health-fill.good {
    background: linear-gradient(90deg, #3fb36b, #1f7a42);
}

.song-health-fill.warn {
    background: linear-gradient(90deg, #f4cc64, #d79a16);
}

.song-health-fill.bad,
.song-health-fill.issue {
    background: linear-gradient(90deg, #e97070, #b42318);
}

.track-health {
    font-weight: 700;
}

.track-health.valid {
    color: #1f7a42;
}

.track-health.invalid {
    color: #b42318;
}

.track-health.unknown {
    color: #7a6f31;
}

.track-feedback-pill {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 2px 8px;
}

.track-feedback-pill.unreviewed {
    background: #eef1f5;
    color: #516172;
}

.track-feedback-pill.match {
    background: #daf4e2;
    color: #1e6a3a;
}

.track-feedback-pill.unsure {
    background: #fff1d6;
    color: #8a5c00;
}

.track-feedback-pill.mismatch {
    background: #fde2e1;
    color: #9a281f;
}

.track-feedback-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 10px;
}

.track-row-action {
    position: absolute;
    top: 8px;
    right: 8px;
}

.track-row-flag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    margin-right: 0;
}

.track-row-action .track-action-btn,
.track-row-flag .feedback-btn {
    margin: 0;
}

.feedback-btn {
    border: 1px solid #d7dee8;
    background: #fff;
    color: #3c4a5c;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    cursor: pointer;
}

.feedback-btn.good {
    border-color: #9fd0ae;
    color: #1f6a3c;
    background: #f1fbf4;
}

.feedback-btn.unsure {
    border-color: #e8c88b;
    color: #885c04;
    background: #fff8e8;
}

.feedback-btn.bad {
    border-color: #e4a0a0;
    color: #982820;
    background: #fff3f3;
}

.feedback-btn.issue-flag-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn.issue-flag-btn i {
    pointer-events: none;
}

.feedback-btn.reset {
    border-color: #9fd0ae;
    color: #1f6a3c;
    background: #f1fbf4;
}

.feedback-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.remove-track-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-action-btn {
    border: 1px solid #c8d5ea;
    background: #fff;
    color: #2c4b80;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    margin-left: 8px;
    cursor: pointer;
}

.track-action-btn:hover {
    background: #f3f7ff;
}

.track-action-btn.icon-only {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-track-action {
    width: 28px;
    height: 28px;
    padding: 0;
    color: #1f6a3c;
    border-color: #9fd0ae;
    background: #f1fbf4;
}

.exclude-track-action {
    color: #9a281f;
    border-color: #e2b2ad;
    background: #fff6f5;
}

.restore-track-action {
    color: #1f6a3c;
    border-color: #a8d2b8;
    background: #f1fbf4;
}

.inspect-track-action {
    color: #355d93;
    border-color: #b7c9e4;
    background: #f2f7ff;
}

.track-inspect-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(560px, calc(100vw - 40px));
    max-height: min(70vh, 680px);
    background: #ffffff;
    border: 1px solid #d3deee;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(16, 36, 64, 0.2);
    display: none;
    z-index: 1200;
    overflow: hidden;
}

.track-inspect-panel.open {
    display: block;
}

.track-inspect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e4ecf8;
    background: #f6f9ff;
}

.track-inspect-actions {
    display: inline-flex;
    gap: 8px;
}

.track-inspect-btn {
    border: 1px solid #bfd0e8;
    background: #fff;
    color: #2f4f7e;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.track-inspect-text {
    width: 100%;
    min-height: 260px;
    max-height: calc(70vh - 50px);
    border: 0;
    outline: none;
    resize: vertical;
    padding: 12px;
    font-size: 12px;
    line-height: 1.35;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    color: #1d2e45;
    background: #fbfdff;
}

.now-playing {
    margin-top: 20px;
    padding: 14px;
    background: #f4f8ff;
    border: 1px solid #d6e5ff;
    border-radius: 10px;
}

.now-playing-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334;
}

#playlist-audio-player {
    width: 100%;
}

.track-item:hover .remove-track-btn {
    opacity: 1;
}

.remove-track-btn:hover {
    color: #c82333;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.share-link-box input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.share-code-text {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.share-code-text strong {
    color: #667eea;
    font-size: 18px;
    letter-spacing: 2px;
}

.warning-text {
    color: #dc3545;
    font-weight: 600;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .playlist-editor {
        grid-column: 1;
    }

    .pool-layout {
        grid-template-columns: 1fr;
    }

    .pool-collapsed-bars {
        flex-direction: column;
    }

    .pool-filter-row {
        grid-template-columns: 1fr;
    }
}

