body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background-image: url('../vinyl_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.vinyl-app {
    display: flex;
    justify-content: center;
    padding: 30px 15px;
    min-height: 100vh;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.5);
}

.glass-container {
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-container.narrow {
    max-width: 700px;
}

.header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.header h1 {
    margin: 0;
    font-size: 2em;
}

.header-title {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.total {
    font-size: 1.1em;
    color: #aaa;
    font-weight: normal;
}

.add-btn, .btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.add-btn:hover, .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #f5576c;
    border: 1px solid #f5576c;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f5576c;
    color: #fff;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tabs a {
    padding: 8px 18px;
    text-decoration: none;
    color: #ddd;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.tabs a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tabs a.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.tabs .count {
    font-size: 0.8em;
    opacity: 0.7;
}

.filter-form, .record-form {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.filter-form label, .record-form .form-group label {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    color: #aaa;
    gap: 5px;
}

.filter-form input, .filter-form select,
.record-form input, .record-form select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    min-width: 100px;
}

.record-form input, .record-form select {
    width: 100%;
    box-sizing: border-box;
}

.filter-form input:focus, .filter-form select:focus,
.record-form input:focus, .record-form select:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.filter-form input::placeholder, .record-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.record-form h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #ddd;
}

.record-form + .record-form {
    margin-top: 25px;
}

.record-form .form-group {
    margin-bottom: 15px;
}

.record-form .form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.btn-filter {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.5);
}

.btn-reset {
    background: transparent;
    color: #f5576c;
    border: 1px solid #f5576c;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-reset:hover {
    background: #f5576c;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    color: #ccc;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions a, .delete-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    transition: 0.2s;
}

.actions a[href*="edit"] {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.delete-form {
    display: inline;
    margin: 0;
}

.delete-form button {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: none;
    cursor: pointer;
}

.actions a:hover, .delete-form button:hover {
    transform: scale(1.1);
}

.no-records {
    color: #aaa;
    font-size: 1.2em;
    text-align: center;
    padding: 30px;
}

.message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.message.error {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.message.success {
    background: rgba(0, 255, 128, 0.1);
    color: #6bff9e;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.hint {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 15px;
}

.results-info {
    color: #aaa;
    font-size: 0.95em;
    margin: 0 0 15px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #ddd;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.page-link:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.page-link.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-weight: bold;
    border: none;
}

.page-link.disabled {
    opacity: 0.4;
    cursor: default;
}

.page-ellipsis {
    color: #888;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs a {
        flex-grow: 1;
        text-align: center;
    }

    table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===== Discogs: обложки, карточка пластинки, трек-лист, прогресс ===== */
.cover-col { width: 56px; }

.cover-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-size: 20px;
}

.record-detail {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 22px 0;
}

.detail-cover {
    width: 240px;
    height: 240px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.detail-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}

.detail-info { flex: 1; min-width: 240px; }

.detail-artist {
    font-size: 1.7em;
    font-weight: 700;
    margin: 0 0 6px;
}

.detail-album {
    font-size: 1.25em;
    margin: 0 0 18px;
    color: #4facfe;
}

.detail-meta td { padding: 5px 0; }
.detail-meta td:first-child {
    color: rgba(255, 255, 255, 0.6);
    padding-right: 18px;
    white-space: nowrap;
}

.tracklist-title { margin: 18px 0 10px; }

.tracklist { width: 100%; }

.tracklist .t-pos { width: 54px; color: rgba(255, 255, 255, 0.55); }

.tracklist .t-dur {
    width: 70px;
    text-align: right;
    color: rgba(255, 255, 255, 0.55);
}

.discogs-credit {
    font-size: 0.8em;
    opacity: 0.6;
    margin-top: 22px;
}

.progress-wrap { margin: 14px 0; }

.progress-bar {
    height: 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #4facfe, #a855f7);
    transition: width 0.3s ease;
}
