:root {
    --bg-dark: #07090f;
    --bg-card: rgba(15, 23, 42, 0.5);
    --border: rgba(148, 163, 184, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-pink: #f472b6;
    --accent-blue: #60a5fa;
    --grid-color: rgba(100, 150, 255, 0.04);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-blobs {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(244, 114, 182, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.04) 0%, transparent 40%);
    animation: bgMove 25s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes bgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(3deg); }
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

section {
    margin-bottom: 6rem;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, monospace;
    text-transform: lowercase;
}

h2::before {
    content: "// ";
    color: var(--accent-pink);
}

p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
}

a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fbcfe8;
    text-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(244, 114, 182, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(244, 114, 182, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: block;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.card-links a {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 999px;
}

.card-links a:hover {
    background: rgba(244, 114, 182, 0.15);
    border-color: var(--accent-pink);
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.portfolio-item:first-child {
    border-top: 1px solid var(--border);
}

.portfolio-item:hover {
    padding-left: 1.5rem;
    border-bottom-color: var(--accent-pink);
}

.portfolio-item:first-child:hover {
    border-top-color: var(--accent-pink);
}

.portfolio-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-label {
    color: var(--accent-pink);
}

.portfolio-desc {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portfolio-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.portfolio-item:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-pink);
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
}

.time-row:last-child {
    border-bottom: none;
}

.time {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.badge.official {
    background: rgba(244, 114, 182, 0.12);
    color: var(--accent-pink);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.badge.home {
    background: rgba(96, 165, 250, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--accent-pink);
}

@media (max-width: 640px) {
    main {
        padding: 2rem 1rem;
    }
    section {
        margin-bottom: 4rem;
    }
    .portfolio-label {
        font-size: 1.2rem;
    }
    .portfolio-desc {
        display: none;
    }
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.artist-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.artist-card:hover {
    border-color: rgba(244, 114, 182, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(244, 114, 182, 0.15);
}

.artist-img, .album-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    display: block;
}

.artist-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.artist-card:hover .artist-name {
    color: var(--accent-pink);
}

.album-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.album-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
}

.album-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.album-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.album-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-name:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

@media (max-width: 640px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .artist-card {
        padding: 1rem;
    }
}

.anime-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anime-card:hover {
    border-color: rgba(244, 114, 182, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(244, 114, 182, 0.15);
}

.anime-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    display: block;
}

.anime-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

.anime-card:hover .anime-title {
    color: var(--accent-pink);
}

.anime-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
    font-size: 1rem;
}

.star {
    color: rgba(148, 163, 184, 0.3);
    transition: color 0.2s;
}

.star.filled {
    color: #fbbf24;
}

.anime-card:hover .star.filled {
    color: #fcd34d;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent-pink);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-pink);
}

.page-intro {
    margin-bottom: 3rem;
}

.page-intro h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    gap: 1rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-badge.active {
    background: rgba(244, 114, 182, 0.12);
    color: var(--accent-pink);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.status-badge.paused {
    background: rgba(96, 165, 250, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.status-badge.done {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.project-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.tech-tag {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-section {
    margin-bottom: 4rem;
}

.stats-section h2 {
    margin-bottom: 1.5rem;
}

.github-graph {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.graph-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.graph-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.1);
}

.graph-day.level-1 { background: rgba(96, 165, 250, 0.2); }
.graph-day.level-2 { background: rgba(96, 165, 250, 0.4); }
.graph-day.level-3 { background: rgba(244, 114, 182, 0.5); }
.graph-day.level-4 { background: rgba(244, 114, 182, 0.9); }

.graph-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    justify-content: flex-end;
}

.now-playing-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.now-playing-card:hover {
    border-color: rgba(244, 114, 182, 0.4);
}

.np-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    flex-shrink: 0;
}

.np-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.np-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.np-artist {
    font-size: 1.1rem;
    color: var(--accent-pink);
}

.np-album {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.recent-track-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.rt-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    flex-shrink: 0;
}

.rt-info {
    overflow: hidden;
}

.rt-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rt-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.error-card {
    border-color: rgba(244, 114, 182, 0.4);
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .now-playing-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.card-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-list-item {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.card-list-item::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-pink);
    font-size: 0.8rem;
}