body {
    max-width: 100%;
    overflow-x: hidden !important;
    max-height: fit-content !important;
}

#listintro {
    grid-template-columns: none;
}

#contentholder {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden !important;
    height: fit-content !important;
    max-height: fit-content !important;
}

/* Debate Custom Css */
#listboxholder,
#listbox {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    height: fit-content;
    max-height: fit-content !important;
}

#listboxinner {
    width: 100%;
    margin: 2rem;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 0;
    background-color: #ffffff;
    box-shadow: none;
    font-size: 14px;
    border-radius: 0;
}

#listboxinner>#list {
    width: 100%;
    height: fit-content;
    display: flex;
    gap: 2rem;
    flex-direction: row;
    justify-content: space-between;
}

/* Debate item containers      */
.debateitemcontainer1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    gap: 1rem;
}

.debateitemcontainer2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: start;
    gap: 1rem;
}

.debateitemcontainer1,
.debateitemcontainer2 {
    width: calc(50% - 1rem);
    height: fit-content;
    max-height: fit-content !important;
    max-width: calc(50% - 1rem);
}

.movablelistitem {
    width: 100%;
    /* Maintain aspect ratio or height based on grid */
    min-height: calc(100vw / 4);
    margin: 0;
    padding: 0;
    border-radius: 3px 3px 0 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Remove old wrapping anchor style */
.movablelistitem>a {
    display: contents;
    /* If anchors persist, make them phantom */
    text-decoration: none;
    color: inherit;
}

.listitemimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Gallery component for debate items */
.movablelistitem .gallery-component {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 78%;
    background-color: #000;
}

.movablelistitem .gallery-component iframe,
.movablelistitem .gallery-component lite-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
    object-fit: cover;
}

.movablelistitem .gallery-component img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: transparent;
}

/* Fallback for items without gallery */
.debate-gallery-fallback .listitemimage {
    margin-top: 34px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.movablelistitemtext {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 0;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 10%;
    background-color: #a24242;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itemname {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    width: 100%;
    color: #fff;
}

.itemlikedislike {
    float: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 0;
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 12%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.totalLikeIcon {
    width: 20px;
    height: 20px
}

.totalDislikeIcon {
    width: 20px;
    height: 20px;
}

.itemLiked,
.itemDisliked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}


.itemlike,
.itemdislike {
    color: white;
    font: bold 14px 'Roboto', sans-serif;
}

.imageandinstractioncontainer {
    height: 3rem;
}

.contentintrothumbcontainer {
    border-radius: 5px;
}

.contenttitleintroimageholder {
    margin-top: 0 !important;
    top: 50px !important;
    border-radius: 5px !important;
    height: calc(100% - 60px) !important;
}

.debateitembackground {
    background-color: #FFFFFF;
    box-shadow: var(--white_card_shadow);
    border-radius: 3px;
    width: 100%;
}

/* Debate Item User profile and description section  */

.debateitemuserinfoanddescription {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    box-shadow: none;
    border-radius: 0 0 3px 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
}

.debateitemdescription {
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666666;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: justify;
    line-height: 1.5;
    max-height: 3.1em;
    /* line-height (1.5) * 2 lines + small buffer */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded state for debate description */
.debate-description-expanded .debateitemdescription {
    -webkit-line-clamp: unset;
    display: block;
    max-height: 1000px;
    /* Sufficiently large value */
}

/* Expanded state for container */
.debate-description-expanded .debateitemuserinfoanddescription {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
    padding-bottom: 1rem;
}

/* Show more/less button for debate items */
.showmoredebateitemdescription {
    position: relative;
    align-self: flex-end;
    margin-top: 0.5rem;
    width: 100px;
    padding: 6px 0;
    background-color: var(--light_btn_color);
    color: #555;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.showmoredebateitemdescription:hover {
    background-color: #a24242;
    color: #fff;
    border-color: #a24242;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.showmoredebateitemdescription.hidden-button {
    display: none;
}


#listholderwrapper {
    margin: 0;
    border-radius: 5px;
}

#itemcontent,
#listholderwrapper,
#commentholder {
    width: 100%;
}

#contenttitlebarwide {
    width: 100%;
    margin-bottom: 0;
    border-radius: 5px;
}

.allcontentsharebutton {
    width: auto;
}

.contentintrodescriptioncontainer {
    width: 100%;
    margin-bottom: 0;
}

.introimageclosebuttonformobile {
    display: none;
}

.editcontentbutton {
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: normal;
    color: #FFFFFF;
    background-color: var(--blue_btn_color);
    border-radius: var(--btn_radius);
    transition: var(--btn_bgcolor_animation);
}

.contenttitleintroimageclose {
    z-index: 10;
}

#analyticspopup {
    position: fixed;
    top: 60px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 70px);
    background-color: var(--white_card_bgcolor);
    border-radius: var(--card_radius_half);
    box-shadow: var(--white_card_shadow);
    z-index: 1000;
}

#analyticspopupclose {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1005;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background-image: url(../assets/spritesv2/common.png);
    background-size: 360px 800px;
    background-position: -40px -360px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: background-color .3s;
    -moz-transition: background-color .3s;
    -ms-transition: background-color .3s;
    -o-transition: background-color .3s;
    transition: background-color .3s;
}


.usersresponse_movablelistitem {
    width: calc(8rem + 3vw);
    height: calc(8rem + 3vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 0.3rem;
    background-color: var(--list_item_bg_color);
    border-radius: 5px;
    margin: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 0.6rem;
}

.usersresponse_listitemimage {
    width: 100%;
    height: 80%;
    border-radius: 3px;
    object-fit: cover;
}

.usersresponse_movablelistitemtext {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


#rankresetconfirmmessagebuttoncontainerundo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#rankresetconfirmmessagebuttonundo,
#rankresetconfirmmessagebuttondelete_hascookie {
    color: #FFFFFF;
    background-color: var(--red_btn_color);
    border-radius: var(--btn_radius);
    transition: var(--btn_bgcolor_animation);
    cursor: pointer;
}

#barpieanalyticsbutton {
    width: 0;
    height: 0;
}

.argumentrightsidepanelholderbackground {
    display: none;
}

#galleryimageonegetty,
#galleryimagetwogetty,
#galleryimagethreegetty {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
}

/* iTunes Affiliate Ads for Debates */
.itunesaffiliateholdercontainerholder {
    position: relative;
    float: left;
    width: 100%;
}

.debate_ad_native_container {
    width: 100% !important;
    margin: 0 !important;
    background-color: var(--white_card_bgcolor);
    border-radius: 0;
    overflow: hidden;
    float: left;
    clear: both;
    box-shadow: none;
}

.itunesaffiliateholder {
    position: relative;
    float: left;
    width: 100%;
    display: none;
    padding: 1rem;
}

.itunes_affiliate_image_song_price_details {
    position: relative;
    width: 100%;
    max-height: 65px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: 60px;
}

.itunesaffiliatealbumimage_holder {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.itunesaffiliatealbumimage {
    visibility: hidden;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itunes_affiliate_details_stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: 60px;
    width: calc(100% - 165px);
}

.itunesaffiliatetrackname {
    max-width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    color: #666666;
    cursor: pointer;
}


.itunesaffiliatetrackprice {
    max-width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #666666;
}

.itunesaffiliateimagefromitunes {
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.itunesaffiliateholdercontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.clickedcontentnumberofpeopleranked:after,
.contentviewnumber:after {
    margin-left: 0 !important;
    background-image: none;
    content: none;
}

#contenthighlightsbar {
    gap: 0 !important;
}

/* Users Response Popup styles */
.usersresponsesubscribe {
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.usersresponseheader_secondary {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usersresponsetitle {
    font-weight: bold;
    color: #4b5563;
}

.usersresponsetime {
    font-size: 12px;
    color: #9ca3af;
}

.usersresponsecontent {
    max-height: 430px;
    overflow-y: auto;
    padding: 10px;
    background: #f9fafb;
    height: 470px;
}

/* Debate Score Bar */
#debatecurrentrankbar {
    position: relative;
    width: calc(100% - 4rem);
    max-width: 100%;
    margin: 0 2rem;
    margin-bottom: 1.5rem;
}

.debate-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #fff;
    margin-top: 0.2rem;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
}

.debate-bar-labels .label-left,
.debate-bar-labels .label-center,
.debate-bar-labels .label-right {
    flex: 1;
    text-align: center;
    color: #666;
    font-weight: bold;
}

.debate-bar-labels .label-left {
    text-align: left;
}

.debate-bar-labels .label-center {
    text-align: center;
}

.debate-bar-labels .label-right {
    text-align: right;
}


.debate-bar {
    position: relative;
    height: 1.5rem;
    border-radius: 3px;
    overflow: hidden;
    background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
    margin-bottom: 0.25rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.debate-bar-cursor {
    position: absolute;
    top: -4px;
    left: 0;
    width: 6px;
    height: calc(100% + 8px);
    transform: translateX(-50%);
    background: #333;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    transition: left 0.5s cubic-bezier(.34, 1.56, .64, 1);
}


.debate-bar-cursor::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: -3px 0 0 rgba(0, 0, 0, 0.15),
        3px 0 0 rgba(0, 0, 0, 0.15);
}


.debate-bar-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #444;
    pointer-events: none;
    font-size: 0.9rem;
}
#adsandrelated {
    border-radius: 5px;
}
.relatedliholder{
    border-radius: 5px;
}
.relatedlisttitle {
    border-radius: 3px;
}
@media only screen and (max-width: 1180px) {
    #container {
        grid-template-columns: 1fr;
    }

    .movablelistitem {
        min-height: calc(100vw / 3);
    }
}

@media only screen and (max-width: 1080px) {
    #listboxinner {
        width: 95%;
        padding: 0;
    }

    #listboxinner>#list {
        gap: 2rem;
    }

    .debateitemcontainer1,
    .debateitemcontainer2 {
        width: 100%;
        max-width: 100%;
    }

    .movablelistitem {
        min-height: calc(100vw / 2.8);
    }

}


@media only screen and (max-width: 768px) {
    #introimageformobile {
        display: block;
    }

    #containerholderwrapper {
        width: calc(100% - 20px) !important;
        padding-top: 10px;
    }

    #selectedlistintrotext {
        display: none;
    }

    #communityranktoggleimage {
        background-color: var(--list_item_bg_color);
        border-radius: 5%;
    }

    #personalranktoggleimage {
        background-color: var(--list_item_bg_color);
        border-radius: 5%;
    }


    .selectedcommunityranktoggle,
    .selectedpersonalranktoggle {
        display: none !important;
    }

    .debateitemuserinfoanddescription {
        flex-direction: column;
        gap: 0.3rem;
    }

    .debateitemuserinfo {
        flex-direction: row;
        align-items: center;
        flex-flow: row-reverse;
    }

    .debateitemdescription {
        width: 100%;
        max-width: 100%;
    }

    .itemlikedislike {
        padding: 0.5rem 0;
    }

    .totalLikeIcon {
        width: 15px;
        height: 15px;
    }

    .totalDislikeIcon {
        width: 15px;
        height: 15px;
    }

    .itemlike,
    .itemdislike {
        font-size: 14px;
    }

    #listbox {
        padding: 0;
    }

    #listboxinner {
        width: 100%;
        padding: 0;
    }

    #listboxinner>#list {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .debateitemcontainer1,
    .debateitemcontainer2 {
        position: relative;
        width: 85vw;
        min-width: 85vw;
        max-width: 85vw;
    }

    .movablelistitem {
        min-height: calc(100vw / 1.5);
    }

    .argumentrightsidepanelholderbackground {
        position: absolute;
        height: 100%;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.6);
        z-index: 11;
        display: flex;
        align-items: center;
        justify-content: start;
        cursor: pointer;
    }

    .argumentrightsidepanelopenindicator {
        position: absolute;
        top: 50%;
        left: 5px;
        width: 40px;
        height: 40px;
        background-image: url(../assets/spritesv2/common.png);
        background-size: 360px 800px;
        background-position: -40px -400px;
        animation: argumentrightsidepanelopenindicator 2.6s linear infinite;
        will-change: transform;
    }

    /* Smooth continuous pendulum motion */
    @keyframes argumentrightsidepanelopenindicator {
        0% {
            transform: translateX(0) translateY(-50%);
        }

        12% {
            transform: translateX(8px) translateY(-50%);
        }

        25% {
            transform: translateX(0) translateY(-50%);
        }

        37% {
            transform: translateX(-10px) translateY(-50%);
        }

        50% {
            transform: translateX(0) translateY(-50%);
        }

        62% {
            transform: translateX(8px) translateY(-50%);
        }

        75% {
            transform: translateX(0) translateY(-50%);
        }

        87% {
            transform: translateX(-10px) translateY(-50%);
        }

        100% {
            transform: translateX(0) translateY(-50%);
        }
    }


}

@media only screen and (max-width: 720px) {
    .contentintroductionthumb {
        width: auto;
    }

    #listinstructions {
        position: relative;
        width: 100%;
        left: 0;
    }

    #debatecurrentrankbar {
        margin-top: 1.5rem;
    }
}

@media only screen and (max-width: 375px) {

    #containerholderwrapper {
        width: calc(100% - 20px) !important;
        padding-top: 10px;
        min-width: 355px;
    }

}

@media only screen and (max-width: 325px) {

    #containerholderwrapper {
        width: calc(100% - 15px) !important;
        padding-top: 10px;
        min-width: 310px;
    }

}

/* Center analytics popup content for debate */
#analyticspopupcontent {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    height: calc(100% - 5rem - 20px) !important;
    box-sizing: border-box;
}

#showanalytics {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#showanalytics svg.rmlline {
    margin: 0 auto;
    display: block;
}