blob: 022e19037b2bbe0010c0cd43cbd865f27dafa7ae [file] [log] [blame]
/* CreatePlaylistModal.css */
.create-playlist-modal.modal-overlay {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
padding: 16px;
}
.create-playlist-modal .modal {
background: #fff;
border-radius: 14px;
width: 420px;
max-width: 100%;
padding: 32px 40px;
box-shadow:
0 10px 15px rgba(0, 0, 0, 0.1),
0 4px 6px rgba(0, 0, 0, 0.05);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.create-playlist-modal .modal:hover {
transform: translateY(-6px);
}
.create-playlist-modal .modal h3 {
margin: 0 0 28px 0;
font-weight: 700;
font-size: 1.9rem;
color: #222;
text-align: center;
letter-spacing: 0.02em;
}
/* Label纵向排列 */
.create-playlist-modal .modal label {
display: flex !important;
flex-direction: column !important;
margin-bottom: 20px;
font-weight: 600;
color: #444;
font-size: 1.05rem;
user-select: none;
cursor: default; /* 加上避免label内容被选中时光标变形 */
}
.create-playlist-modal .modal input[type="text"],
.create-playlist-modal .modal input[type="number"],
.create-playlist-modal .modal textarea {
margin-top: 8px;
padding: 12px 16px;
border: 1.6px solid #bbb;
border-radius: 8px;
font-size: 1rem;
color: #333;
box-sizing: border-box;
resize: vertical;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
font-family: inherit;
}
.create-playlist-modal .modal input[type="text"]:focus,
.create-playlist-modal .modal input[type="number"]:focus,
.create-playlist-modal .modal textarea:focus {
outline: none;
border-color: #4a69bd;
box-shadow: 0 0 10px rgba(74, 105, 189, 0.5);
}
.create-playlist-modal .modal textarea {
min-height: 90px;
line-height: 1.5;
font-family: inherit;
}
.create-playlist-modal .modal-actions {
display: flex;
justify-content: flex-end;
gap: 16px;
margin-top: 32px;
}
.create-playlist-modal .modal-actions button {
padding: 12px 26px;
font-size: 1.15rem;
font-weight: 700;
border: none;
border-radius: 10px;
cursor: pointer;
user-select: none;
transition:
background-color 0.35s ease,
box-shadow 0.35s ease,
transform 0.2s ease;
font-family: inherit;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.create-playlist-modal .modal-actions button:first-child {
background: linear-gradient(135deg, #4a69bd 0%, #3f51b5 100%);
color: #fff;
box-shadow: 0 6px 12px rgba(63, 81, 181, 0.5);
}
.create-playlist-modal .modal-actions button:first-child:hover {
background: linear-gradient(135deg, #3f51b5 0%, #2c3e9f 100%);
box-shadow: 0 8px 18px rgba(44, 62, 159, 0.75);
transform: translateY(-2px);
}
.create-playlist-modal .modal-actions button:first-child:disabled {
background: #a0a5b8;
box-shadow: none;
cursor: not-allowed;
transform: none;
}
.create-playlist-modal .modal-actions button:last-child {
background-color: #f3f4f6;
color: #555;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
transition: background-color 0.25s ease;
}
.create-playlist-modal .modal-actions button:last-child:hover {
background-color: #d9dade;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.torrent-selector {
border: 1px solid #ccc;
padding: 8px;
max-height: 200px;
overflow-y: auto;
margin-top: 8px;
}
.torrent-list {
list-style: none;
padding: 0;
margin: 0;
}
.torrent-list li {
margin: 4px 0;
}
.selected-torrents {
margin-top: 6px;
font-size: 0.9em;
color: #555;
}