* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', 'Monaco', 'Consolas', monospace;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    min-height: 100vh;
    position: relative;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
    overflow: hidden;
}

.page-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('media/background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 750px;
    width: 750px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.85);
    border-right: 1px solid #1a1a1a;
    min-height: 100vh;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 750px;
}

header {
    margin-bottom: 0;
    padding: 32px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-text {
    flex: 1;
}

.header-gif {
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: -0.5px;
}

header h1 span {
    color: #666;
}

.tagline {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

main {
    margin-bottom: 0;
}

section {
    margin-bottom: 0;
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
}

h2 {
    font-size: 1.25em;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

h2 span {
    color: #666;
}

h2 small {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: bold;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

ul li small {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}

section#hobbies ul li {
    margin-bottom: 20px;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
}

section#hobbies ul li .text-main {
    display: block;
    margin-bottom: 4px;
}

.hobby-star {
    color: #a78bfa;
    margin-right: 4px;
    display: inline;
}

.text-main {
    color: #ffffff;
}

.text-muted {
    color: #666;
    font-weight: normal;
}

a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

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

#links {
    margin-top: 0px;
}

.social-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #0f0f11;
    border: 1px solid #1f1f22;
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
    font-size: 1em;
    line-height: 1;
    letter-spacing: -0.1px;
    font-weight: bold;
}

.social-link:hover {
    background: #17171b;
    border-color: #a78bfa;
    color: #ffffff;
    text-decoration: none;
}

.social-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    display: block;
    fill: white;
}

.telegram-icon {
    width: 20px;
    height: 20px;
}

.social-text {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
}

.link-external {
    color: #a78bfa;
}

.link-external:hover {
    color: #c4b5fd;
}

.link-email {
    color: #999;
    font-style: italic;
}

.link-email:hover {
    color: #bbb;
}

.websites-skills {
    color: #bbb;
}

footer {
    margin-top: 0;
    padding: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.cryofear-credit {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.75em;
    opacity: 0.5;
    color: #666;
    z-index: 1;
    pointer-events: auto;
    font-family: 'Fira Code', 'Courier New', 'Monaco', 'Consolas', monospace;
}

.cryofear-credit a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.cryofear-credit a:hover {
    color: #888;
    text-decoration: underline;
}

footer a {
    color: #666;
}

footer a:hover {
    color: #888;
}

/* Visits section */
#visits {
    margin-top: 30px;
}

#visits p {
    margin-bottom: 8px;
}

#visits .text-main {
    color: #ffffff;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

/* Scrobbles section */
.scrobbles-container {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 12px;
    overflow: hidden;
}

.scrobbles-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.scrobbles-scroll:active {
    cursor: grabbing;
}

.scrobbles-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.scrobble-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 0.875em;
    min-width: 200px;
    max-width: 400px;
    width: auto;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.scrobble-item:hover {
    background: #222222;
}

.scrobble-item-playing {
    border: 2px solid #a78bfa !important;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.3);
}

.scrobble-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.scrobble-image-placeholder {
    width: 50px;
    height: 50px;
    background: #2a2a2a;
    border-radius: 4px;
    flex-shrink: 0;
}

.scrobble-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.scrobble-track {
    color: #ffffff;
    font-weight: normal;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.scrobble-artist {
    color: #999999;
    font-size: 0.8em;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.scrobble-time {
    color: #666;
    font-size: 0.75em;
    font-weight: normal;
    margin-top: 2px;
    line-height: 1.4;
}

.scrobbles-hint {
    text-align: center;
    color: #ffffff;
    font-size: 0.85em;
    margin-top: 10px;
    margin-bottom: 0;
    opacity: 0.8;
}


.scrobbles-loading,
.scrobbles-error {
    color: #888;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 13px;
    }
    
    .container {
        border-left: none;
        border-right: none;
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 15px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-gif {
        margin-top: 0;
        align-self: flex-end;
    }
    
    .scrobbles-container {
        padding: 10px;
        margin-top: 10px;
    }
    
    .scrobble-item {
        min-width: 180px;
        width: 180px;
        padding: 8px;
        gap: 8px;
        font-size: 0.8em;
    }
    
    .scrobble-image,
    .scrobble-image-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .cryofear-credit {
        display: none;
    }
}
