body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    padding: 30px 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.profile {
    text-align: center;
    width: 100%;
    position: relative;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(167, 119, 227, 0.3);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.profile p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0;
    font-size: 14px;
}

.links {
    margin-top: 30px;
}

.links a.link-button {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    min-height: 70px;
}

.links a.link-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.links a.link-button i.fa-music,
.links a.link-button i.fa-calendar,
.links a.link-button i.fa-envelope {
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.links button i {
    font-size: 18px;
}

.iframe-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.iframe-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

#iframe-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

.share {
    position: absolute;
    top: 0;
    right: 0;
}

#shareButton {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#shareButton:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

#shareOptions {
    position: absolute;
    top: 40px;
    right: 0;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 10px;
    min-width: 150px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
    z-index: 100;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#shareOptions a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#shareOptions a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#shareOptions a i {
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 5px;
    width: 100%;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
    background-color: #FF6B00;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.5);
}

.social-link i {
    font-size: 18px;
    line-height: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #2f2f2f;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalFrame {
    width: 100%;
    height: 400px;
    border: none;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.link-item button {
    flex: 1;
}

.share-button {
    width: 35px !important;
    min-width: 35px;
    height: 35px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    aspect-ratio: 1;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
    transform: none !important;
}

.share-button i {
    font-size: 14px;
}

/* Make responsive design better */
@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 25px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 20px 0;
    }
    
    .container {
        margin: 0 auto;
        max-width: 95%;
        padding: 20px;
        border-radius: 15px;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .profile p {
        font-size: 12px;
    }
    
    .link-content {
        padding-left: 48px;
        min-height: 36px;
    }
    
    .link-icon,
    .music-item .music-artwork,
    .links a.link-button i.fa-music,
    .links a.link-button i.fa-calendar,
    .links a.link-button i.fa-envelope {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .links a.link-button {
        padding: 15px;
        min-height: 66px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .share {
        top: 0;
        right: 10px;
    }
    
    #shareButton {
        padding: 6px;
        font-size: 20px;
    }
    
    #shareOptions {
        top: 40px;
        right: 0;
    }
    
    .social-links {
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .music-item .song-title {
        font-size: 14px;
    }
    
    .music-item .song-artist {
        font-size: 12px;
    }
}

/* Music item styling within the uniform link format */
.music-item .music-artwork {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.music-item .music-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-item .music-info {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    justify-content: center;
    margin-left: -4px;
}

.music-item .song-title {
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.music-item .song-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-button:hover .copy-icon {
    color: white;
    opacity: 1;
}

.link-button {
    justify-content: space-between !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    position: relative;
    padding-left: 52px;
    min-height: 40px;
}

.music-item .link-content {
    align-items: center;
}

.music-item .music-info {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    justify-content: center;
}

/* Ensure copy icon is vertically centered */
.copy-icon {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    opacity: 0.7;
    padding-left: 10px;
    min-width: 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    right: 0;
    align-self: center;
}

.links a.link-button.music-item {
    padding: 12px 20px;
}

.music-item .music-info {
    margin-left: -4px;
}

@media (max-width: 768px) {
    .music-item .song-title {
        max-width: 220px;
    }
}

/* Style for the logo icon in the first link */
.link-icon {
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #FF6B00;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    left: 0;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Standard icon sizing */
.links a.link-button i.fa-music,
.links a.link-button i.fa-calendar,
.links a.link-button i.fa-envelope {
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Music item specific adjustments */
.music-item .music-artwork {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}

.music-item .music-info {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    justify-content: center;
}

@media (max-width: 360px) {
    .container {
        padding: 15px;
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    h1 {
        font-size: 18px;
        margin-top: 10px;
    }
    
    .link-content {
        padding-left: 44px;
        min-height: 32px;
    }
    
    .link-icon,
    .music-item .music-artwork,
    .links a.link-button i.fa-music,
    .links a.link-button i.fa-calendar,
    .links a.link-button i.fa-envelope {
        width: 32px;
        height: 32px;
    }
    
    .links a.link-button {
        padding: 14px 12px;
        min-height: 60px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .social-link i {
        font-size: 14px;
    }
}
