* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
    background-color: #040a18;
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
    color: #e9f2ff;
}

a {
    color: #9bd4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-wrapper {
    max-width: 980px;
    margin: 40px auto 120px;
    background: rgba(5, 12, 30, 0.5);
    border: 2px solid #2d4f92;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: visible;
}

.side-collage {
    position: absolute;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 5;
    pointer-events: none;
}

.side-collage-left {
    left: -150px;
}

.side-collage-right {
    right: -150px;
}

.side-collage img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    transform: rotate(-6deg);
}

.side-collage img:nth-child(even) {
    transform: rotate(7deg);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(90deg, #003399, #274c8a);
    border-bottom: 2px solid #010523;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ticker {
    overflow: hidden;
    border-bottom: 2px dashed #2d4f92;
    background: rgba(2, 9, 24, 0.95);
}

.ticker-track {
    display: inline-flex;
    gap: 48px;
    padding: 10px 24px;
    animation: ticker-scroll 25s linear infinite;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff9bff;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero {
    display: flex;
    gap: 30px;
    padding: 30px 32px;
    border-bottom: 2px solid #010523;
    background: radial-gradient(circle at top left, rgba(0, 102, 255, 0.2), rgba(0, 0, 0, 0));
}

.hero-left {
    position: relative;
    width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: 260px;
    border: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.decor-ring {
    position: absolute;
    inset: -40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transform: rotate(-6deg);
}

.decor-ring img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    animation: floaty 6s ease-in-out infinite;
}

.decor-ring img:nth-child(odd) {
    animation-delay: -2s;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-panel {
    padding: 18px;
    background: rgba(4, 10, 26, 0.9);
    border: 1px solid #2d4f92;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffaa;
    text-align: center;
    margin-bottom: 12px;
}

.hero-banner {
    width: 100%;
    border: 3px solid #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-jungle {
    border: 2px solid #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    transform: rotate(-3deg);
    background: #000;
}

.hero-jungle img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.hero-strip img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    transform: rotate(-3deg);
}

.hero-strip img:nth-child(even) {
    transform: rotate(4deg);
}

.content {
    display: flex;
    gap: 26px;
    padding: 32px;
}

.left-column {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.module {
    background: rgba(4, 10, 26, 0.95);
    border: 1px solid #2d4f92;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.myspace-player {
    background: linear-gradient(180deg, rgba(217, 235, 255, 0.85), rgba(179, 208, 241, 0.92));
    color: #0a1b3f;
    border: 1px solid #7a9bcc;
    font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
    padding: 0;
    overflow: hidden;
}

.myspace-player .player-top {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(239, 248, 255, 0.96), rgba(189, 215, 244, 0.94));
    border-bottom: 1px solid #87a6cf;
}

.player-artwork {
    width: 120px;
    min-height: 120px;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(10, 27, 63, 0.3);
    overflow: hidden;
    background: #dce8f7;
}

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

.player-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2a4f8b;
}

.player-links {
    display: flex;
    gap: 6px;
}

.player-link {
    background: rgba(240, 250, 255, 0.7);
    border: 1px solid #7da0d1;
    color: #24447b;
    font-size: 10px;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 2px;
}

.player-link:hover {
    background: #f5fbff;
}

.player-track-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.04em;
    color: #123061;
}

.player-track-sub {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #345789;
}

.player-explicit-badge {
    background: linear-gradient(180deg, #c03050, #851a33);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.player-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #203a66;
}

#player-progress-bar {
    flex: 1;
    appearance: none;
    height: 6px;
    border-radius: 12px;
    background: linear-gradient(90deg, #5b8dd6, #9bd4ff);
    cursor: pointer;
    border: 1px solid #7fa5d8;
}

#player-progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3f6fb4;
}

#player-progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3f6fb4;
}

.player-visualizer {
    width: 100%;
    height: 24px;
    background: rgba(86, 120, 183, 0.2);
    border: 1px solid #88a8d1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.player-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(151, 187, 233, 0.95), rgba(119, 160, 217, 0.95));
    border-bottom: 1px solid #5e8ccc;
}

.player-btn {
    min-width: 46px;
    min-height: 46px;
    border-radius: 50%;
    border: 2px solid #274f8a;
    background: linear-gradient(180deg, #f7fbff, #c5daf3);
    color: #1c3d75;
    font-size: 15px;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(10, 27, 63, 0.25);
}

.player-btn:hover {
    background: linear-gradient(180deg, #ffffff, #d7e5f8);
}

.player-btn-play {
    min-width: 58px;
    min-height: 58px;
    font-size: 18px;
}

.player-playlist {
    background: linear-gradient(180deg, rgba(212, 232, 255, 0.85), rgba(173, 203, 240, 0.9));
    padding: 16px 18px 20px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d3c73;
    margin-bottom: 10px;
}

.playlist-header-actions {
    display: flex;
    gap: 16px;
}

.playlist-header-link {
    color: #2c5898;
}

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(246, 251, 255, 0.7);
    border: 1px solid #9ab7de;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.playlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(23, 54, 99, 0.15);
}

.playlist-item.active {
    background: linear-gradient(180deg, #fffdff, #d8e7ff);
    border-color: #4f77c0;
    box-shadow: inset 0 0 0 2px rgba(79, 119, 192, 0.4);
}

.playlist-index {
    font-size: 18px;
    font-weight: bold;
    color: #295189;
    text-align: center;
}

.playlist-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-title {
    font-size: 13px;
    font-weight: bold;
    color: #173d70;
}

.playlist-sub {
    font-size: 11px;
    color: #345789;
    display: flex;
    gap: 6px;
    align-items: center;
}

.playlist-explicit {
    background: #c03050;
    color: #fff;
    padding: 0 4px;
    border-radius: 2px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.playlist-art {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #88a9d2;
    box-shadow: 0 4px 10px rgba(20, 45, 83, 0.2);
}

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

.module h2 {
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff9bff;
}

.module p,
.module li {
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.module ul {
    margin: 0;
    padding-left: 18px;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-strip img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.friends-grid img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.friends-grid-alt {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.friends-grid-alt img {
    height: 80px;
}

.legacy-text {
    max-height: none;
    background: linear-gradient(180deg, rgba(8, 16, 38, 0.85), rgba(8, 16, 38, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legacy-text p {
    margin: 0 0 10px;
}

.footer {
    padding: 24px;
    background: rgba(2, 7, 20, 0.9);
    border-top: 2px solid #010523;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.friends-grid img,
.friends-grid-alt img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.friends-grid img:hover,
.friends-grid-alt img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.album-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.album-viewer-overlay.active {
    display: flex;
}

.album-viewer-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.album-viewer-image {
    max-width: 100%;
    max-height: 80vh;
    border: 6px solid #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.album-viewer-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.album-viewer-btn {
    background: linear-gradient(180deg, #274c8a, #1a3461);
    border: 2px solid #4a7bc4;
    color: #fff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.album-viewer-btn:hover {
    background: linear-gradient(180deg, #3a5fa8, #274c8a);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.album-viewer-btn:active {
    transform: scale(0.95);
}

.album-viewer-counter {
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #4a7bc4;
    min-width: 120px;
    text-align: center;
    letter-spacing: 0.05em;
}

.album-viewer-close {
    position: absolute;
    top: -80px;
    right: 0;
    background: linear-gradient(180deg, #8a2727, #611a1a);
    border: 2px solid #c44a4a;
    color: #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.album-viewer-close:hover {
    background: linear-gradient(180deg, #a83a3a, #8a2727);
    transform: scale(1.1);
}

@media (max-width: 1100px) {
    .page-wrapper {
        margin: 20px;
    }

    .side-collage {
        display: none;
    }

    .nav-links {
        justify-content: center;
    }

    .content {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .myspace-player .player-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .player-brand-row {
        flex-direction: column;
        gap: 6px;
    }

    .player-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .player-progress-row {
        flex-direction: column;
        gap: 6px;
    }

    .playlist-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .playlist-index {
        display: none;
    }

    .playlist-art {
        margin: 0 auto;
    }

    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .hero {
        flex-direction: column;
    }

    .hero-left {
        width: 100%;
    }

    .friends-grid-alt {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .album-viewer-close {
        top: -60px;
    }

    .album-viewer-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}
