/* /styles/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050509;
    color: #f7f7ff;
}

a {
    color: #ff4d7a;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.theme-dark {
    background: radial-gradient(circle at top, #15152a 0, #050509 50%);
    min-height: 100vh;
}

/* HEADER */

.site-header {
    backdrop-filter: blur(16px);
    background: rgba(5,5,15,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #ff4d7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 12px rgba(255,77,122,0.6);
}

.logo-text {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* NAV */

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.main-nav a:hover {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
}

/* LAYOUTS */

.site-main {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
}

.index-layout {
    display: grid;
    grid-template-columns: minmax(0,2.3fr) minmax(0,1.4fr);
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .index-layout {
        grid-template-columns: 1fr;
    }
}

/* CARDS */

.radio-player-card,
.auth-card,
.info-card,
.upload-card,
.profile-header-card,
.profile-songs-card {
    background: rgba(17,17,40,0.94);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.2rem 1.3rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.info-card {
    margin-top: 1rem;
}

h1, h2, h3 {
    margin: 0 0 0.5rem;
}

/* PLAYER */

.player {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.7rem;
}

.player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.player-title {
    font-weight: 600;
    font-size: 1rem;
}

.player-submeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.time-remaining {
    font-variant-numeric: tabular-nums;
}

/* Buttons */

.btn-main {
    border-radius: 999px;
    border: none;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d7a, #ff8e3c);
    color: #fff;
    box-shadow: 0 10px 25px rgba(255,77,122,0.55);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(255,77,122,0.7);
}
.btn-main:disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-icon {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: transparent;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-full {
    width: 100%;
}

.link-button {
    border: none;
    background: transparent;
    color: #ff8e3c;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

/* Player controls */

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.4rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}
#player-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff4d7a, #ff8e3c);
}

/* Rating */

.rating-stars {
    display: inline-flex;
    gap: 0.2rem;
    cursor: pointer;
    font-size: 1rem;
}

/* PLAYLIST */

.playlist {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}
.playlist-item:hover {
    background: rgba(255,255,255,0.02);
}

.playlist-main {
    flex: 1;
}

.playlist-title {
    font-size: 0.9rem;
}
.playlist-singer {
    opacity: 0.7;
    font-size: 0.85rem;
}
.playlist-uploader {
    font-size: 0.8rem;
    opacity: 0.7;
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-like {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}
.btn-like[data-liked="1"],
.btn-like[data-liked="true"] {
    background: rgba(255,77,122,0.2);
    border-color: #ff4d7a;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.7rem;
}
.pagination-controls button {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}
.pagination-controls button.active {
    background: rgba(255,255,255,0.14);
}

/* AUTH */

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-styled {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-styled label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.form-styled input,
.form-styled select {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(5,5,20,0.8);
    color: #fff;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.7rem;
}
@media (max-width: 700px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ALERTS */

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.alert-error {
    background: rgba(255,77,122,0.1);
    border: 1px solid rgba(255,77,122,0.5);
}

.alert-success {
    background: rgba(84,230,140,0.1);
    border: 1px solid rgba(84,230,140,0.6);
}

/* MISC */

.muted {
    opacity: 0.75;
}
.small {
    font-size: 0.8rem;
}

/* CATEGORY CHECKBOXES */

.category-fieldset {
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
}
.checkbox-pill input {
    accent-color: #ff4d7a;
}

/* FILE INPUT */

.file-input-label input[type="file"] {
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem;
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: #141426;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.6rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* PROFILE */

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.toast-count {
    font-size: 0.85rem;
}

/* FOOTER */

.site-footer {
    max-width: 1100px;
    margin: 1rem auto 1.5rem;
    padding: 0 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

/* DISABLED SONGS */

.song-disabled-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 129, 129, 0.18);
    color: #ffa1a1;
    border: 1px solid rgba(255, 129, 129, 0.6);
}

/* Profile awards */

.profile-awards-section {
    margin-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.6rem;
}

.profile-awards-title {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.profile-awards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0.4rem;
}
@media (max-width: 700px) {
    .profile-awards-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}
@media (max-width: 480px) {
    .profile-awards-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

.profile-award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
}

.profile-award-image-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}
.profile-award-image-wrapper img {
    width: 64px;
    height: 64px;
    display: block;
}

.profile-award-name {
    text-align: center;
    opacity: 0.85;
}

/* Already given earlier; just ensure this is present */
.song-disabled-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 129, 129, 0.18);
    color: #ffa1a1;
    border: 1px solid rgba(255, 129, 129, 0.6);
}