body.modal-open {
    overflow: hidden;
}

.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    background-color: #050505;
}

.page-hero .section-title {
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.1em;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.hobby-card {
    background: #050505;
    border: 1px solid var(--color-border);
    border-radius: var(--global-radius);
    overflow: hidden;
    transition: all 0.4s var(--transition-easing);
}

.hobby-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-text);
}

.hobby-card .hobby-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #111;
}

.hobby-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-easing);
}

.hobby-card:hover img {
    transform: scale(1.05);
}

.hobby-card-info {
    padding: 25px;
}

.hobby-card-info h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.hobby-card-info p {
    color: var(--color-text-muted);
    font-size: 0.95em;
}

.hobby-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.modal-open .hobby-modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--global-radius);
    width: 90%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s var(--transition-easing);
}

body.modal-open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#modal-title {
    font-size: 2em;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.5rem;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.modal-close-btn:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

#modal-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.modal-section {
    margin-top: 30px;
}

#modal-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--global-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}
.modal-link-btn i {
    font-size: 1.2em;
}

.modal-link-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.modal-section-title {
    font-family: var(--font-family-display);
    font-size: 1.5em;
    text-transform: uppercase;
    margin-bottom: 25px;
}


#modal-audio-container > div {
    margin-bottom: 20px;
}

.audio-player {
    background-color: #0c0c0c;
    border: 1px solid var(--color-border);
    border-radius: var(--global-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-pause-btn {
    background-color: var(--color-border);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text);
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.play-pause-btn:hover {
    background-color: #333;
}

.audio-info {
    flex-grow: 1;
    overflow: hidden;
}

.audio-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.progress-container {
    background-color: #222;
    border-radius: 10px;
    height: 6px;
    width: 100%;
}

.progress-bar {
    background-color: var(--color-text);
    width: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.85em;
    color: var(--color-text-muted);
    font-family: monospace;
    flex-shrink: 0;
}


.soundcloud-embed-container iframe {
    width: 100%;
    border-radius: var(--global-radius);
    border: 1px solid var(--color-border);
}
.soundcloud-embed-container p {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-top: 10px;
}


#modal-timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.timeline-item {
    flex-shrink: 0;
    width: 300px;
}

.timeline-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--color-text-muted);
    font-size: 0.9em;
    max-width: 100%;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}