/* --- General & Background --- */
body {
    font-family: 'Mulish', sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 2.5rem;
    background-color: #3e3e42; /* Set a black background */
}

.background-blur {
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.85);
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

/* --- Album & Title --- */
.album-art {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    margin: 0 auto 0.25rem auto; /* Center the image and maintain bottom margin */
    display: block;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.85rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- Links --- */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align content to the left */
    height: 60px; /* Set a fixed height */
    padding: 0 1rem; /* Adjust padding */
    background-color: #ffffff; /* White background */
    text-decoration: none;
    border-radius: 12px;
    border: none;
    transition: transform 0.2s;
}

.link-button:hover {
    transform: scale(1.03);
}

.link-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
     /* Adjust logo size */
    height: 39px;
    border-radius: 6px;
}

.platform-name {
   display: none; /* Hide platform name */
}

.fa-chevron-right {
   display: inline-block;
   color: #000000;
   font-size: 1rem;
}

/* --- Footer --- */
.footer {
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffffff;
}

/* --- Fallback for older browsers --- */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .link-button {
        background-color: #2c2c2c;
    }
}

/* --- Homepage Specific Styles --- */
body.home-page {
    background-color: #3e3e42;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.home-page .container {
    background-color: #1e1e1e;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 100%;
    max-width: 420px;
    border: 1px solid #333;
}

.home-page h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.home-page .subtitle {
    color: #b3b3b3;
    margin-bottom: 2rem;
}

.home-page form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-page input[type="url"],
.home-page input[type="text"] {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Mulish', sans-serif;
}

.home-page input::placeholder {
    color: #888;
}

.home-page button[type="submit"] {
    padding: 1rem;
    border: none;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.1s ease-in-out;
    font-family: 'Mulish', sans-serif;
}

.home-page button[type="submit"]:hover {
    transform: scale(1.02);
}

.home-page .message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.home-page .message.error {
    background-color: #5c1a1a;
    color: #ffcccc;
}

.home-page .message.success a {
    color: #b3ffb3;
    font-weight: bold;
    text-decoration: none;
}

.home-page .link-button .platform-name {
    display: inline-block;
    margin-left: 1rem;
    color: #000000;
    font-weight: bold;
}

/* --- Error Page Specific Styles --- */
body.error-page {
    background-color: #3e3e42;
}

.error-page .container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 420px;
    border: 1px solid #333;
}

.error-page h1 {
    text-shadow: none;
}

.error-page .home-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #555;
}

th {
    background-color: #2a2a2a;
}

td a {
    color: #1DB954;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

.artwork-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
