* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #cccccc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-size: 12px;
}

.main-container {
    width: 100%;
    max-width: 800px;
    background-color: #111;
    border: 1px solid #333;
    padding: 15px 10px 10px 10px;
    position: relative;
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-pic-container {
    width: 100%;
    aspect-ratio: 1;
    background-color: #222;
    margin-bottom: 15px;
    border: 1px solid #333;
    padding: 5px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #1a1a1a;
    display: block;
    filter: contrast(110%) brightness(90%);
}

.links-section h3 {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #999999;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.link-box {
    border: 1px solid #333;
    padding: 4px;
    text-align: center;
    font-size: 10px;
    background: #1a1a1a;
    cursor: pointer;
    text-decoration: none;
    color: #999999;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 25px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.link-box:hover {
    background-color: #222222;
    border-color: #555555;
    color: #ffffff;
}

.friend-list {
    margin-top: 15px;
    border: 1px solid #333;
    padding: 8px;
    background-color: #0a0a0a;
}

.friend-list h3 {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #999999;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.friend-item {
    font-size: 10px;
    color: #cccccc;
    padding: 3px 0;
    border-bottom: 1px dashed #222;
}

.friend-item:last-child {
    border-bottom: none;
}

.content-box {
    border: 1px solid #333;
    margin-bottom: 10px;
    background-color: #0a0a0a;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    border-bottom: 1px solid #333;
    background-color: #111;
    flex-shrink: 0;
}

.box-title {
    font-weight: normal;
    color: #999999;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.box-content {
    padding: 10px;
    line-height: 1.4;
    color: #cccccc;
}

.box-content strong {
    color: #999999;
}

.bl-collection-box {
    margin-bottom: 10px;
}

.bl-collection-content {
    padding: 0;
    position: relative;
    min-height: 300px;
    height: 300px;
    overflow-y: auto;
}

.bl-collection-content::-webkit-scrollbar {
    width: 6px;
}

.bl-collection-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.bl-collection-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.bl-collection-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.bl-content {
    padding: 10px;
}

.bl-category {
    margin-bottom: 20px;
}

.bl-category h4 {
    font-size: 11px;
    font-weight: bold;
    color: #999999;
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}

.bl-list {
    list-style-type: none;
    margin-bottom: 15px;
}

.bl-list li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    font-size: 10px;
}

.bl-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999999;
}

.bl-links-content {
    padding: 15px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 200px;
}

.bl-links-content::-webkit-scrollbar {
    width: 6px;
}

.bl-links-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.bl-links-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.bl-links-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.bl-link-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bl-link {
    font-size: 10px;
    color: #999999;
    cursor: pointer;
    border: 1px solid #333;
    padding: 10px 10px;
    background: #1a1a1a;
    min-width: 70px;
    text-align: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    flex: 1;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 25px;
}

.bl-link:hover {
    color: #ffffff;
    background-color: #222222;
    border-color: #555555;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 5px 5px 2px 5px;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid #222;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 5px;
    text-align: center;
    font-size: 10px;
    color: #888888;
}

.footer-section {
    border: 1px solid #333;
    background-color: #0a0a0a;
}

.marquee-container {
    background-color: #111;
    padding: 5px;
    border-bottom: 1px solid #333;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: scroll 15s linear infinite;
    color: #999999;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.footer-links {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background-color: #111;
}

.footer-col {
    text-align: center;
    flex: 1;
    border-right: 1px solid #222;
    color: #999999;
}

.footer-col:last-child {
    border-right: none;
}

.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 2px;
    background-color: #cccccc;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

::selection {
    background-color: #333333;
    color: #ffffff;
}

::-moz-selection {
    background-color: #333333;
    color: #ffffff;
}

.star-icon, .refresh-icon {
    color: #999999;
    font-size: 10px;
}

.scroll-box {
    height: 200px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bl-collection-content {
        height: 250px;
    }
    
    .link-box,
    .bl-link,
    .music-btn,
    .popup-close {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
}