:root {
    --color-main: #6d1f4e;
    --color-accent: #d299c7;
}

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

@font-face {
    font-family: 'kodemono';
    src: url(../fonts/kodemono.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center;
}

html {
    overflow: hidden;
}

body {
    height: 100vh;
    color: var(--color-accent);
    background-color: black;
    font-family: 'kodemono', monospace;
    font-size: 12px;
    line-height: 20px;
    display: flex;
    justify-content: flex-start;
    padding: 24px;
    overflow: auto;
    scrollbar-color: var(--color-accent) var(--color-main);
    scrollbar-width: thin;
}

body::selection {
    background: var(--color-accent);
    color: var(--color-main);
}

main {
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 24px;
    padding-right: 0;
}

header, section {
    width: 270px;
    max-height: 100%;
    border: 1px double;
    display: flex;
    flex-direction: column;
    border-radius: 9px;
    overflow: hidden;
}

header {
    height: fit-content !important;
}


.section-header {
    padding: 6px 8px;
    border-bottom: 2px double;
    background: var(--color-accent);
    box-shadow: 1px 1px 0 var(--color-main);
}

h2 {
    font-size: 13px;
    line-height: 1.1;
    color: var(--color-main);
}

.section-content {
    padding: 1em;
    background-color: rgba(13, 20, 45, 0.87);
    overflow-y: auto;
    scrollbar-color: var(--color-accent) var(--color-main);
    scrollbar-width: thin;
    flex-grow: 1;
    overscroll-behavior: contain;
    text-shadow: -1px 1px rgba(0, 0, 0, .3);
    box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, .7);
}

.section-content::-webkit-scrollbar {
    width: 8px;
    background-color: var(--color-accent);
}

.section-content::-webkit-scrollbar-thumb {
    background: var(--color-main);
}

header .section-content {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 4px;
    padding: 1em;
    overflow-y: hidden;
}

.crt-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
}

header img {
    max-width: 100%;
}

header h1 {
    font-size: 14px;
    font-family: 'kodemono', monospace;
}

ul {
    list-style-type: none;
}

li + li {
    margin-top: .5em;
}

a {
    color: var(--color-main);
    text-decoration: none;
}



.crt-frame {
    width: 100%;
    height: auto;
    display: block;
}


.crt-video {
    position: absolute;
    top: 19%; 
    left: 15%; 
    width: 70%; 
    height: 52%; 
    object-fit: cover; 
}

.horizontal-scroll.section-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 16px 32px;
    overflow-x: auto;
    overflow-y: hidden;
}

.horizontal-scroll > * {
    width: 212px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.album-item {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--color-accent);
    display: block;
    object-fit: cover;
    box-shadow: -2px 3px 10px 3px rgba(0, 0, 0, .3);
}

.video-item iframe {
    width: 212px;
    height: 119px;
    border: none;
}

.video-item p {
    font-size: 0.9em;
    text-align: center;
}

#monthly-reviews {
    width: 650px;
    height: 600px;
}

#monthly-reviews .album-float {
    float: right;
    margin: 0 0 16px 16px;
    text-align: center;
    max-width: 150px;
}

#monthly-reviews .album-float img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    box-shadow: -2px 3px 10px 3px rgba(0, 0, 0, .3);
    display: block;
}

#monthly-reviews .album-float .album-info {
    margin-top: 8px;
    font-size: 0.9em;
    line-height: 1.3;
}

#monthly-reviews .review-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

#monthly-reviews .review-index {
    position: sticky;
    top: -2;
    background-color: rgba(13, 20, 45, 0.95);
    padding: 8px;
    border-bottom: 1px solid var(--color-accent);
    margin: -1em -1em 2em -1em;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

#monthly-reviews .review-index a {
    display: inline-block;
    padding: 4px 8px;
    margin: 4px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-accent);
    transition: all 0.2s;
}

#monthly-reviews .review-index a:hover {
    background-color: var(--color-accent);
    color: var(--color-main);
}

#monthly-reviews .review-item {
    clear: both;
    overflow: auto;
    margin-bottom: 32px;
}

#monthly-reviews .review-item:after {
    content: "";
    display: table;
    clear: both;
}

#monthly-reviews .review-item {
    display: none;
}

#monthly-reviews .review-item.active {
    display: block;
}

#monthly-reviews .review-index a.active {
    background-color: var(--color-accent);
    color: var(--color-main);
}

#music-rants-section {
    width: 600px;
    height: 300px;  /* Adjust this to make it shorter/taller */
}

#thoughts ul {
    padding: .5em 0;
}

#opinions li strong {
    color: var(--color-accent);
}

#liked-genres ul {
    list-style-type: circle;
    list-style-position: inside;
    list-style: none;
}

#liked-genres li::before {
    content: '♫';
    margin-right: 3px;
}


#liked-artists {
    width: 600px;
    height: 300px;
}

#liked-artists .section-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#liked-artists details {
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    padding: 8px;
    background-color: rgba(109, 31, 78, 0.1);
}

#liked-artists summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--color-accent);
    user-select: none;
    text-transform: lowercase;
}

#liked-artists summary:hover {
    opacity: 0.8;
}

#liked-artists details[open] {
    background-color: rgba(109, 31, 78, 0.2);
}

#liked-artists details p {
    padding-left: 1em;
    margin-top: 0.5em;
    line-height: 1.6;
}

#music-spotlight a {
    font-weight: bold;
}

#music-spotlight {
    height: 250px;
}

#music-spotlight .section-content {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

#music-spotlight iframe {
    border-radius: 4px;
    border: 1px solid var(--color-accent);
}

.link-home-container {
    border: 3px double var(--color-accent);
    width: fit-content;
    padding: 2px 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: fit-content;
    border-radius: 8px;
    background-color: #d299c7;
    margin: 0 0 0 auto;                  
    font-size: 10px;
    order: 3;                            
}

.link-home-container img {
    width: 18px;                   
    height: 18px;                  
    margin-left: 6px;            
}

.link-home-container a {
    margin-left: 4px;            
    color: var(--color-main);
    background: transparent;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(211, 153, 199, 0.5);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--color-accent);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

/* Video Preview Styles */
.video-preview {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-accent);
}

.video-preview img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s;
}

.video-preview:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(211, 153, 199, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-main);
    transition: all 0.3s;
}

.video-preview:hover .play-button {
    background-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

#records {
    height: 360px;
}

#thoughts {
    max-height: 40%;
}

#music-recommendation {
    height: 300px;
}

#music-recommendation .section-content {
    padding: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    main {
        flex-wrap: nowrap;
        flex-direction: column;
        height: auto;
    }

    header, section {
        width: 100%;
    }
}