.comicReader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 40px;
}

.comicTitle {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: relative;
    margin: 0;
}

.comicTitle h2 {
    font-size: 18px;
    margin: 0;
}

.tvWrapper {
    position: relative;
    width: 900px;
    height: 593px;
    display: grid;
    grid-template-columns: 714px 186px;
    grid-template-rows: 78px 420px auto;
    row-gap: 0;

    background-image: url(../assets/img/tvFrame.png);
    background-size: cover;
    background-position: center;
}

.tvScreen {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    width: 560px;
    height: 420px;
    overflow: hidden;
    margin-left: 70px;
    margin-top: 20px;
}

.panelImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crtWink {
    animation: wink 180ms ease-out;
}

@keyframes wink {
    0% { transform: scaleY(1); opacity: 1;}
    50% { transform: scaleY(0.1); opacity: 0.6;}
    100% {transform: scaleY(1); opacity: 1;}
}

.comicList {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.comicEntry {
    display: flex;
    gap: 16px;
    background-color: #383035;
    border: 1px solid #fefadf;
    padding: 12px;
    cursor: pointer;
}

.comicThumbnail {
    width: 160px;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.comicInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comicName {
    font-size: 18px;
    color: #fefadf;
    margin-bottom: 4px;
}

.comicMeta {
    font-size: 14px;
    color: #fefadf;
}

.tvControls {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 32px;
}

.panelCounter {
    color: #fefadf;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    align-self: center;
}

.knobWrap {
    width: 110px;
    height: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.knob {
    width: 110px;
    height: 110px;
    background-image: url(../assets/img/knob.png);
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    position: relative;
    background-color: #383035;
    background-clip: padding-box;
    transition: transform 0.25s ease-out;   
    transform-origin: center center;
}

.knobWrap:hover::after {
    content: attr(data-tip);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translate(-50%);
    background-color: #fefadf;
    color: #383035;
    padding: 4px 8px;
    font-size: 14px;
    border: 1px solid #383035;
    white-space: nowrap;
    pointer-events: none;
}

.channelBtn {
    margin-top: 10px;
    padding: 10px;
    background-color: #fefadf;
    color: #383035;
    border: none;
    cursor: pointer;
    width: 100px;
    text-transform: capitalize;
    align-self: center;
}

.tvRow {
    display: none;
}

@media (max-width: 768px) {
    .tvWrapper {
        background-image: url(../assets/img/tvFrameMobile.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        width: 100%;
        max-width: 420px;
        height: auto;
        position: relative;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        aspect-ratio: 4 / 5;
    }

    .comicTitle {
        margin-top: 12px;
    }
    .comicTitle h2 {
        font-size: 13px;
    }
    
    .tvScreen {
        position: absolute;
        left: 12%;
        width: 75%;
        top: 11%;
        height: 45%;
        margin: 0;
        overflow: hidden;
    }

    .comicList {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        padding-right: 6px;
    }

    .comicEntry {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 0;
        border-bottom: 1px solid #fefadf;
    }

    .comicThumbnail {
        width: 90px;
        height: auto;
        flex-shrink: 0;
    }

    .comicInfo {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .comicName {
        font-size: 16px;
        font-weight: bold;
    }

    .comicMeta {
        font-size: 13px;
    }

    .panelImg {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .tvControls {
        position: absolute;
        left: 8%;
        right: 8%;
        bottom: 18%;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .panelCounter {
        order: 0;
    }

    .tvRow {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 70%;
    }

    .knobWrap {
        width: 60px;
        height: 60px;
    }

    .knob {
        width: 60px;
        height: 60px;
    }

    .tvRow .knobWrap:first-child {
        order: 1;
    }

    .channelBtn {
        order: 2;
        padding: 8px 14px;
        width: auto;
        font-size: 14px;
    }

    .tvRow .knobWrap:last-child {
        order: 3;
    }

    .tvControls > .knobWrap, .tvControls > .channelBtn {
        display: none;
    }

    .tvControls::after {
        content: "";
        display: block;
    }

}