#main-header,
#mobile-menu {
    display: none;
}

#content {
    margin: 0;
}

.content-inner {
    margin-top: 0;
}

/* Container */
.watch-outer {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding: 0;
    scrollbar-width: none;
    /* Firefox */
    scroll-snap-type: y mandatory;
    background: #000;
}

/* Inner feed */
.watch-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.watch-inner,
.modal-div {
    max-width: 500px;
    width: 100vw;
}

.back-btn {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 10;
    cursor: pointer;
}

.back-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.back-btn svg:hover {
    fill: #ccc;
}

.genre-rank-badge {
    position: absolute;
    top: 10px;
    left: auto;
    right: 10px;
    z-index: 10;
}

/* Each item (one full screen snap) */
.item-div {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    /* exactly one viewport */
    scroll-snap-align: start;
    /* snap top to viewport */
    flex-shrink: 0;
}

.engagement-outer {
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 10;
}

.article-engagement-container {
    flex-direction: column;
    gap: 0;
    padding-right: 3px;
}

.read-icon,
.social-icon {
    width: 38px;
    height: 38px;
    padding: 6px;
    fill: white;
}

.read-icon:hover,
.thots-icon svg:hover,
.active svg:hover {
    background-color: rgb(0, 0, 0, 0.5);
}

.reading-list-container,
.favorite-container {
    display: none;
}

.tooltip,
.share-options {
    top: auto;
    left: auto;
    bottom: 0;
    right: 40px;
}

/* Media containers */
.media-div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Videos */
.video {
    width: 100%;
    height: 100%;
    max-height: unset;
    object-fit: cover;
    -webkit-filter: brightness(1) !important;
    filter: brightness(1) !important;
    z-index: 0;
}

/* Cover images */
.cover-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-meta {
    width: 100%;
    margin: 0;
    padding: 0 55px 10px 10px;
    z-index: 3;
}

.title {
    font-size: 1.1em;
    margin: 15px 0;
}

.title,
.author-name,
.article-meta-desc,
.read-body-btn {
    color: white !important;
    -webkit-filter: brightness(1) !important;
    filter: brightness(1) !important;
}

.author-and-date {
    line-height: .9em;
}

.author-pp {
    width: 34px;
    height: 34px;
    margin-right: 7px;
    border: none
}

.author-name {
    font-size: .9em;
}

.views-container {
    display: none;
}

.truncate-title,
.truncate-body,
.article-meta-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    max-height: 4.4em;
}

.article-meta-desc {
    font-size: .9em;
}

.reading-time-container,
.meta-details-container {
    display: none;
}

@keyframes slide-up {
    0% {
        transform: translateY(100%);
    }

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

.read-body-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.read-body-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 0;
}

.video-article-div .article-body {
    display: none;
}

.video-article-div .title-meta {
    position: absolute;
    bottom: 0;
    color: white;
    transition:
        transform 0.3s ease,
        backdrop-filter 0.3s ease,
        background-color 0.3s ease;
}

.title-meta.visible {
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.video-article-div .title {
    margin: 7px 5px;
}

.modal-div {
    position: sticky;
    top: 0;
    height: 100%;
    margin: 0 auto;
    background-color: rgba(45, 45, 45, 0.7);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    z-index: 11;
    display: none;
    animation: slide-up 0.5s ease-in-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }

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

.no-scroll {
    overflow-y: hidden !important;
    touch-action: none !important;
    /* for mobile */
}

.modal-header { 
    display: flex;
    justify-content: flex-end;
    position: fixed;
    width: inherit;
    max-width: inherit;
    z-index: 12;
}

.close-modal {
    width: 30px;
    height: 30px;
    margin: 5px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4); 
}

.close-modal-svg {
    fill: #ccc;
    margin: 0;
}

.close-modal-svg:hover {
    fill: white;
}

.feed-topline {
    position: relative;
}

.loader-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.end-of-feed {
    color: #ccc;
    text-align: center;
    font-size: 1em;
    padding: auto;
    animation: fadein 0.5s ease-in;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.article-body {
    background-color: rgba(0, 0, 0, 0.3);
    max-width: inherit;
    animation: slide-up 0.5s;
}

.watch-body h1 {
    color: white;
}

.watch-body blockquote {
    background-color: #555;
}

.watch-body blockquote::before {
    color: #ccc;
}

.watch-body .caption {
    color: #ccc;
}

.watch-body a[href*="hashtag"] {
    color: white;
    text-decoration-color: #FF0;
}

/* Thots container/ Comments */
.feed-engagement-container {
    display: flex;
}

.comments-section {
    margin-top: 15px;
    padding: 7px;
}

.article-thot {
    padding: 10px 0;
    border-bottom: 1px solid #888;
}

.article-post-thot,
.article-thots-container input {
    color: white;
    padding: 10px 5px;
    height: fit-content;
    border-bottom: 1px solid #ccc;
}

.thot-reply-form {
    display: flex;
}

.thot-reply-form .thot-textarea {
    display: none;
}

.thot-reply-form .thot-post-btn, .thot-post-btn {
    background-color: transparent;
    color: #ccc;
}

.thot-reply-form .thot-post-btn:hover, .thot-post-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.social-counts {
    margin: 0 5px;
    font-size: .8em;
}

.article-thots .like-button, .article-thots .love-icon {
    background-color: transparent;
}

.love-icon {
    fill: white;
    transition: transform .5s ease, fill .5s ease;
}

/* ❤️ When active */
.like-button.active .love-icon {
    fill: #ff2e74;
    transform: scale(1.2);
    animation: lovePulse 0.5s ease;
}

/* Pulse glow animation */
@keyframes lovePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.heart-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 1;
}

/* Create 3 big hearts */
.like-button.active .heart-burst::before,
.like-button.active .heart-burst::after {
    content: "❤";
    position: absolute;
    font-size: 28px;
    color: #ff2e74;
    opacity: 0;
}

/* Third heart using another pseudo-element */
.like-button.active .heart-burst::before {
    animation: burstUp1 1.2s ease-out;
}

.like-button.active .heart-burst::after {
    animation: burstUp2 1s ease-out;
}

.like-button.active .heart-burst span {
    content: "❤";
    position: absolute;
    font-size: 40px;
    color: #ff2e74;
    animation: burstUp3 1.5s ease-out;
}

@keyframes burstUp1 {
    0%   { transform: translate(-50%, 0) scale(0.8) rotate(0deg); opacity: 1; }
    40%  { transform: translate(-70%, -40px) scale(1.5) rotate(-15deg); }
    100% { transform: translate(-90%, -80px) scale(0.8) rotate(-30deg); opacity: 0; }
}

@keyframes burstUp2 {
    0%   { transform: translate(-50%, 0) scale(0.8) rotate(0deg); opacity: 1; }
    40%  { transform: translate(-10%, -50px) scale(1.5) rotate(10deg); }
    100% { transform: translate(20%, -90px) scale(0.8) rotate(25deg); opacity: 0; }
}

@keyframes burstUp3 {
    0%   { transform: translate(-50%, 0) scale(0.8) rotate(0deg); opacity: 1; }
    40%  { transform: translate(-40%, -60px) scale(1.4) rotate(-5deg); }
    100% { transform: translate(-50%, -110px) scale(0.6) rotate(15deg); opacity: 0; }
}

.feed-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thot-body-div {
    margin: 10px;
}

.thot-author-pp {
    margin-bottom: -5px;
}

/* Cluster items */

.cluster-items-slider {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    touch-action: pan-x;
    margin: 10px 0;
}

.story-source {
    display: flex;
    border-radius: 15px;
    background-color: #333;
    height: fit-content;
    margin-bottom: 7px;
}

.story-source p, .story-source small {
    margin: 5px 10px;
}

.story-source-title {
    font-size: .9em;
    color: #ccc;
}

.story-cluster-image {
    width: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.story-source-details {
    display: flex;
    flex-direction: column;
    width: 160px;
    color: #888;
    fill: #888;
}

.play-pause-overlay {
    display: none;
    position: fixed;
    top: 50%;
    margin-left: 120px;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.play-pause-overlay.animate {
    display: block;
    animation: popFade 1.2s ease-out;
}

@keyframes popFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.0);
    }
}

.play-pause-svg {
    width: 80px;
    height: 80px;
    fill: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 1200px) {
    .modal-div {
        position: fixed;
        left: auto;
        right: auto;
    }

    .play-pause-overlay {
        margin-left: 90px;
    }
}

@media screen and (max-width: 600px) {
    .play-pause-overlay {
        margin-left: 0px;
        transform: none;
    }
}