/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f5f0eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: #1e1e2f;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd166;
    text-decoration: none;
}

nav a {
    color: #ddd;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #ffd166;
}

/* Main */
main {
    flex: 1;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #2d2d44;
}

.hero p {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #2d2d44;
    background: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn:hover {
    background: #2d2d44;
    color: #fff;
}

.btn.primary {
    background: #2d2d44;
    color: #fff;
    border-color: #2d2d44;
}

.btn.primary:hover {
    background: #1e1e2f;
}

/* Calendar */
.calendar-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header button {
    background: none;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: #eee;
}

.calendar-header h2 {
    font-size: 1.4rem;
    color: #2d2d44;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-grid .day-header {
    font-weight: 700;
    padding: 0.5rem;
    background: #f0f0f0;
    border-radius: 4px;
}

.calendar-grid .day {
    padding: 0.5rem;
    min-height: 3rem;
    background: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.calendar-grid .day:hover {
    background: #e8e8f0;
}

.calendar-grid .day.empty {
    background: transparent;
    cursor: default;
}

.calendar-grid .day.today {
    background: #ffd166;
    font-weight: bold;
}

.calendar-grid .day.has-release::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
    margin: 4px auto 0;
}

.release-details {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    min-height: 2.5rem;
}

/* Album list */
.album-list {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.album-list h2 {
    margin-bottom: 1rem;
    color: #2d2d44;
}

.album-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.album-card:hover {
    background: #f5f5f5;
}

.album-card:last-child {
    border-bottom: none;
}

.album-info {
    flex: 1;
}

.album-info strong {
    display: block;
    font-size: 1.1rem;
}

.album-info .artist {
    color: #666;
}

.album-info .date {
    color: #888;
    font-size: 0.9rem;
}

.album-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    color: #888;
    transition: color 0.2s;
}

.album-actions button:hover {
    color: #e63946;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #000;
}

form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

form input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Supporting content */
.supporting-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.supporting-content h2 {
    color: #2d2d44;
    margin-bottom: 0.75rem;
}

.supporting-content h3 {
    color: #2d2d44;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.supporting-content p {
    margin-bottom: 1rem;
    color: #333;
}

.supporting-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.supporting-content li {
    margin-bottom: 0.5rem;
}

.supporting-content dl {
    margin-top: 1rem;
}

.supporting-content dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.supporting-content dd {
    margin-left: 1rem;
    color: #555;
}

/* Footer */
footer {
    background: #1e1e2f;
    color: #ccc;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-content a {
    color: #ffd166;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content nav a {
    margin-left: 1rem;
}

.version {
    font-size: 0.85rem;
    color: #999;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .header-content, .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .actions {
        flex-direction: column;
        align-items: center;
    }
    .calendar-grid .day {
        min-height: 2.5rem;
        font-size: 0.9rem;
    }
    .supporting-content {
        padding: 1rem;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
