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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.main-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.memory-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.memory-date {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.song-list {
    margin: 30px 0;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
}


.song-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.song-icon::before {
    content: "♪";
    color: white;
    font-size: 24px;
}

.song-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: cover;
}

.song-details {
    flex: 1;
}

.song-name-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}


.song-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #40464b;
    margin-bottom: 2px;
}

.song-name:hover {
    color: #202325;

}

.song-artist {
    font-size: 0.95rem;
    color: #6c757d;
}

.song-artist a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.song-artist a:hover {
    color: #444a50;
}

.song-artist a.active {
    color: #764ba2;
    font-weight: 600;
}

.song-date {
    font-size: 0.9rem;
    color: #868e96;
    margin-left: 15px;
    white-space: nowrap;
}

.content {
    margin: 30px 0;
    padding: 25px;
    background: #fafbfc;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.more-songs {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.side-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.side-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.side-content ul {
    list-style: none;
}

.side-content li {
    margin-bottom: 10px;
}

.side-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.side-content a:hover {
    color: #764ba2;
}

.side-content a.active {
    color: #764ba2;
    font-weight: 600;
}

/* Memory Cards */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.memory-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.memory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.memory-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.memory-card-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.memory-card-excerpt {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.memory-card-songs {
    font-size: 0.85rem;
    color: #868e96;
}

.memory-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Year Sections */
.year-section {
    margin-bottom: 50px;
}

.year-header {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

/* Playlist Cards */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.playlist-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.playlist-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.playlist-info {
    padding: 20px;
}

.playlist-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.playlist-count {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
}

/* About Page */
.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 15px;
}

/* Search Bar */
.search-bar {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: border-color 0.2s;
}

.search-bar:focus {
    outline: none;
    border-color: #667eea;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }

    .main-content {
        padding: 25px;
    }

    .memory-title, .page-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .memory-grid, .playlist-grid {
        grid-template-columns: 1fr;
    }
}