/*-------------------------------------------------------------------------------- TV & MOVIES PAGE LAYOUT ----------*/

.tv-columns {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-left: 5rem;
}

.tv-column--left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tv-column--right h3 {
    font-family: "Pixel monospace", monospace;
    color: #d58b50;
    font-size: 2rem;
    margin-top: 2.5rem;
}

.tv-block {
    background-color: rgb(67, 45, 91);
    padding: 1.25rem;
    box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.2);
}

.tv-block h3 {
    font-family: "Pixel monospace", monospace;
    color: #803a9c;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

@media (max-width: 800px) {
    .tv-columns {
        grid-template-columns: 1fr;
    }
}

/*---------- currently watching & stats ----------*/

.currently-watching-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currently-watching {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.currently-watching img {
    width: 70px;
    height: auto;
    flex-shrink: 0;
}

.currently-watching-info p {
    margin: 0.15rem 0;
    font-size: 0.85rem;
    text-align: left;
}

.currently-watching-info .cw-title {
    font-weight: 700;
    color: #8a55ae;
}

.currently-watching-info .cw-type {
    font-style: italic;
    color: #dec4eb;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.stats-list .stat-label {
    color: #d7c4eb;
}

.stats-list .stat-value {
    font-weight: 700;
    color: #8355ae;
}

.currently-watching-block,
.stats-block {
    position: relative;
    isolation: isolate;
}

.currently-watching-block::after,
.stats-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/textures/old-mathematics.png");
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/*-------------------------------------------------------------------------------- WATCH LOG ----------*/

.tv-log {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.5rem;
}

.log-item {
    position: relative;
    width: 100px;
    padding-top: 0.5rem;
}

.tv-log .taped-image {
    width: 100px;
    margin-top: 0.4rem;
}

.tv-log .taped-image:before {
    width: 60px;
    height: 14px;
    margin-left: -30px;
    top: -7px;
}

.tv-log .log-item:nth-child(6n+1) .taped-image { transform: rotate(-5deg); }
.tv-log .log-item:nth-child(6n+2) .taped-image { transform: rotate(4deg); }
.tv-log .log-item:nth-child(6n+3) .taped-image { transform: rotate(-2deg); }
.tv-log .log-item:nth-child(6n+4) .taped-image { transform: rotate(6deg); }
.tv-log .log-item:nth-child(6n+5) .taped-image { transform: rotate(-4deg); }
.tv-log .log-item:nth-child(6n+6) .taped-image { transform: rotate(3deg); }

.tv-log .taped-image:hover {
    transform: rotate(0deg) scale(1.05);
    transition: transform 0.15s ease;
    z-index: 1;
}

/*-------------------------------------------------------------------------------- STAR / MEDIA RATING ----------*/

.media-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    gap: 1px;
    line-height: 0;
}

.star-rating .star {
    display: block;
    height: 14px;
    width: auto;
}

.media-rating .heart,
.media-rating .repeat {
    display: block;
    height: 14px;
    width: auto;
    position: relative;
    top: -2px;
    left: -2px;
}

/*-------------------------------------------------------------------------------- MOVIE / TV POPUP ----------*/

.movie-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 26, 24, 0.6);
}

.movie-popup.is-open {
    display: flex;
}

.movie-popup-content {
    font-family: "Default Serif", serif;
    font-size: 1rem;
    background: rgb(63, 54, 78);
    color: #302522;
    max-width: 320px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.movie-popup-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/textures/old-mathematics.png");
    opacity: 1;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
}

.movie-popup-content h2 {
    font-family: "Headlines", serif;
    color: #746e82;
    margin: 0 0 0.25rem;
}

.movie-popup-content .movie-popup-meta {
    color: #705d88;
    margin-bottom: 1rem;
    font-family: "Headlines", cursive;
    font-style: italic;
    font-size: 1.25rem;
}

.movie-popup-content .movie-popup-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.movie-popup-content .movie-popup-rating:empty {
    display: none;
}

.movie-popup-content .movie-popup-rating .star,
.movie-popup-content .movie-popup-rating .heart,
.movie-popup-content .movie-popup-rating .repeat {
    height: 18px;
    width: auto;
}

.movie-popup-content p {
    text-align: justify;
    margin-bottom: 1rem;
    color: #c2b2d5;
}

.movie-popup-content .photo-popup-image {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    filter: grayscale(100%) sepia(15%) contrast(110%) brightness(90%);
}