h2 {
    font-size: 1.7rem;
    font-weight: 400;
}

a:hover {
    text-decoration: none;
}

.thoxt-rows-div {
    display: block;
    position: relative;
    margin: 10px auto 0 0;
}

.thoxt-row {
    display: block;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    padding-right: 20px;
    margin-bottom: 10px;
}

.thoxt-row-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.see-all-link {
    font-size: .9em;
    color: #ccc;
    cursor: pointer;
}

.slide-row-content {
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}

.slide-row-content::-webkit-scrollbar {
    display: none;
}

.scroll-button-div {
    z-index: 4;
    opacity: 0;
    /* Hide by default */
    transition: opacity 0.3s;
    /* Smooth transition */
}

.thoxt-row:hover .scroll-button-div {
    opacity: 1;
    /* Show on hover */
}

.hide-scroll-buttons {
    display: none;
}

.scroll-next,
.scroll-prev {
    position: absolute;
    top: 42%;
    left: 0;
    right: auto;
    width: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: rgb(239, 239, 239);
    font-size: 1.8rem;
    padding: 6px 6px 9px 6px;
    cursor: pointer;
}

.scroll-next {
    right: 15px;
    left: auto;
}

.thoxt-row-article-outer {
    position: relative;
    width: calc(25% - 20px);
    overflow: hidden;
    margin-bottom: 35px;
}


.thoxt-row-article {
    position: relative;
    transition: width .7s ease-in, height .7s ease-in, opacity .7s ease-in;
    --row-meta-color: #aaa;
    --row-desc-color: #ccc;
    background-color: #222;
    padding: 2px;
    border-radius: 15px;
}

.thoxt-row-thot {
    --row-meta-color: white;
}

.row-cover-container {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    background-color: #333;
    overflow: hidden;
}

.video-thot .row-cover-container {
    aspect-ratio: 3 / 5;
}

.thoxt-row-thot .row-cover-container {
    aspect-ratio: unset;
    width: 100%;
    height: 39rem;
}

.video-thot .video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, .8));
}

.news-row-content .row-cover-container {
    aspect-ratio: 3 / 2;
}

.cover-image, .thot-image-small, .thot-image {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.thot-image-small {
    max-height: 150px;
    margin-top: 5px;
}

.thot-article-container {
    border-radius: 15px;
    background-color: rgb(0, 0, 0, .7);
}

.new-article-badge,
.new-text {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 25px;
    opacity: .8;
    transition: opacity .3s ease;
}

.new-article-badge {
    top: 0;
    left: 0;
    background-color: #ff0;
    border-radius: 15px 0;
    padding: 0 5px;
}

.new-text {
    top: 0;
    left: 5px;
    color: #000;
    font-size: 0.95rem;
    font-weight: bold;
}

.thoxt-row-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #333;
    border-radius: 15px;
    pointer-events: none;
    /* Ensures it doesn't interfere */
    transition: opacity .3s ease;
}

.video-thot .thoxt-row-video {
    opacity: 1;
}

.thoxt-row-thot .row-cover-container {
    opacity: 0.2;
    aspect-ratio: 1 / 2;
}

.thoxt-row-meta-desc {
    position: absolute;
    display: none;
    width: 101%;
    height: fit-content;
    align-items: flex-end;
    bottom: 0;
    left: 0;
    padding: 10px;
    font-size: 1.05rem;
    line-height: normal;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 100;
    animation: sweepUp 1s ease-in-out;
}

@keyframes sweepUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.article-meta {
    display: block;
    position: relative;
    margin: 5px;
}

.news-row-content .article-meta {
    width: inherit;
    margin-left: 10px;
}

.video-thot-meta, .thot-meta {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    margin: 10px;
    z-index: 3;
}

.thot-meta {
    top: 10px;
    margin: 0;
}

.thot-meta .author-date, .thot-meta .reply-count, .show-more-replies {
    margin: 0 10px;
}

.thot-meta .thot-body {
    margin: 0 10px 10px 10px;
}

.video-thot .thot-body {
    margin-bottom: 0;
}

.thot-meta .row-engagement-outer {
    margin: 5px 10px;
}

.video-thot .row-article-video-icon {
    bottom: 29%;
    z-index: 6;
}

.play-icon {
    width: unset;
    height: unset;
}

.video-thot .play-icon {
    display: none;
}

.article-desc.truncate-summary, .thot-body, .read-more {
    color: var(--row-desc-color);
}

.article-title {
    min-height: 52px;
    margin: 10px 3px 10px 0;
    font-size: 1.18rem;
}

.truncate-title,
.truncate-summary,
.truncate-thot {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}

.truncate-title {
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.news-row-content .truncate-title {
    font-weight: 400;
    text-align: left;
}

.no-cover {
    position: relative;
    font-size: 1.7rem;
    line-height: 1.55em;
    text-align: center;
    color: grey;
    text-shadow: 5px 5px 10px #000000;
    margin: auto;
    padding: 7px;
}

.author-date {
    display: flex;
    align-items: center;
}

.author-date, .author-name, .author-date span {
    font-size: 1rem;
    line-height: 1.55em;
    color: var(--row-meta-color);
}

.author-date span {
    --row-meta-color: #ccc;
}

.external-stories .author-name, .external-stories .author-pp {
    display: none;
}

.thoxt-row-article:hover {
    background-color: #333;
}

.row-article:not(.thoxt-row-thot-outer):hover .cover-image {
    transform: scale(1.06);
}

.thoxt-row-article-outer:hover .thoxt-row-meta-desc {
    display: flex;
}

.video-playing {
    opacity: 1;
    border: none;
}

.author-pic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-pp:hover {
    border: 2px solid rgb(229, 229, 40);
}

.meta-mini a:hover {
    color: #ccc;
}

.meta-mini {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ff0;
}

.options-menu {
    top: auto;
    bottom: 0;
}

.options-button {
    margin: 8px 0;
}

.options-icon {
    width: 1.7em;
}

.tooltip {
    top: 50px;
}

.share-options {
    left: -100%;
    z-index: 12;
}

.article-progress-bar {
    display: block;
    position: relative;
    margin: auto;
    width: 85%;
    height: 5px;
    margin: 5px auto;
    background-color: rgb(45, 45, 45);
}

.article-progress-bar-fill {
    display: block;
    position: absolute;
    width: 14px;
    height: 100%;
    background-color: #ff0;
}

.row-thot {
    min-width: 35vh;
    padding: 10px;
}

.row-thot .article-title {
    padding: 10px 0;
    border-top: 1px solid #999;
}

.row-thot-body {
    overflow: hidden;
    padding: 5px 0;
}

.truncate-thot {
    line-clamp: 4;
    -webkit-line-clamp: 4;
    max-height: calc(4 * 1.5em);
}

.news-load-helpers {
    flex-direction: column;
}

.news-load-more {
    padding: 2px 10px;
    background-color: transparent;
    color: #ccc;
    transition: all .3s ease;
}

.load-more-text {
    font-size: .9rem;
}

.news-load-more:hover {
    color: white;
    background-color: #333;
}

.story-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 9999;
    background: linear-gradient(90deg,
            rgba(255, 230, 0, 0.2) 0%,
            rgba(255, 230, 0, 1) 50%,
            rgba(255, 230, 0, 0.2) 100%);
    background-size: 200% 100%;
    animation: storyShimmer 4s infinite linear;
}

/* Animation */
@keyframes storyShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.news-row-content .thoxt-row-article-outer {
    margin: 10px 0;
}

.primary-genre-div {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1.2em;
    padding: 0 10px 4px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 15px;
    z-index: 2;
}

.primary-genre {
    font-size: .9rem;
    color: white;
}

.reply-count, .show-more-replies {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.thot-meta .article-engagement {
    margin-bottom: 10px;
}

.replies {
    padding: 5px 0;
    border-top: 1px solid #444;
}

.grand-children {
    padding-left: 15px;
}

.replies .engagement-icon {
    width: 20px;
    height: 20px;
}

.replies .counts {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.reply {
    padding: 7px 0;
    border-bottom: 1px solid #444;
}

.grand-child {
    border-bottom: unset;
}

.reply .thot-body {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.non-news-mobile, .external-stories-mobile, .article-desc.truncate-summary  {
    display: none;
}

/* Don't show read buttons on article rows */
.read-article-container {
    display: none;
}