:root {
    --background: 40 20% 92%;
    --foreground: 30 15% 20%;
    --card: 40 25% 95%;
    --card-foreground: 30 15% 20%;
    --popover: 40 25% 95%;
    --popover-foreground: 30 15% 20%;
    --primary: 30 15% 20%;
    --primary-foreground: 40 25% 95%;
    --secondary: 35 20% 88%;
    --secondary-foreground: 30 15% 20%;
    --muted: 35 20% 88%;
    --muted-foreground: 30 10% 50%;
    --accent: 35 25% 85%;
    --accent-foreground: 30 15% 20%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 40 25% 95%;
    --border: 35 20% 85%;
    --input: 35 20% 88%;
    --ring: 30 15% 20%;
    --radius: 0.75rem;
    --sidebar-background: 35 20% 88%;
    --sidebar-foreground: 30 15% 25%;
    --sidebar-primary: 30 15% 20%;
    --sidebar-primary-foreground: 40 25% 95%;
    --sidebar-accent: 35 25% 85%;
    --sidebar-accent-foreground: 30 15% 20%;
    --sidebar-border: 35 15% 80%;
    --sidebar-ring: 30 15% 20%;
}

.dark {
    --background: 30 20% 15%;
    --foreground: 40 25% 95%;
    --card: 30 25% 18%;
    --card-foreground: 40 25% 95%;
    --popover: 30 25% 18%;
    --popover-foreground: 40 25% 95%;
    --primary: 40 25% 95%;
    --primary-foreground: 30 20% 15%;
    --secondary: 30 15% 22%;
    --secondary-foreground: 40 25% 95%;
    --muted: 30 15% 22%;
    --muted-foreground: 35 10% 60%;
    --accent: 30 20% 25%;
    --accent-foreground: 40 25% 95%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 40 25% 95%;
    --border: 30 15% 25%;
    --input: 30 15% 25%;
    --ring: 40 25% 95%;
    --sidebar-background: 30 15% 20%;
    --sidebar-foreground: 40 20% 90%;
    --sidebar-primary: 40 25% 95%;
    --sidebar-primary-foreground: 30 20% 15%;
    --sidebar-accent: 30 20% 25%;
    --sidebar-accent-foreground: 40 25% 95%;
    --sidebar-border: 30 10% 30%;
    --sidebar-ring: 40 25% 95%;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow-y: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

.sidebar {
    background-color: hsl(var(--sidebar-background));
    height: 100vh;
}

.sidebarAccent {
    background-color: hsl(var(--sidebar-accent));
}

.sidebarPrimary {
    background-color: hsl(var(--sidebar-primary));
}

.sidebarText {
    color: hsl(var(--sidebar-foreground));
}

.sidebarPrimaryText {
    color: hsl(var(--sidebar-primary));
}

.sidebarPrimaryForeground {
    color: hsl(var(--sidebar-primary-foreground));
}

.sidebarBorder {
    border-color: hsl(var(--sidebar-border));
}

.mainBorder {
    border-color: hsl(var(--border));
}

.inputBg {
    background-color: hsl(var(--input));
}

.mutedText {
    color: hsl(var(--muted-foreground));
}

.focusRing:focus {
    --tw-ring-color: hsl(var(--ring));
}

.hoverAccent:hover {
    background-color: hsl(var(--sidebar-accent));
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
}

.actionBtn {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.actionBtn:hover {
    background-color: hsl(var(--accent));
    transform: scale(1.05) !important;
}

.navItem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.navItem.active {
    background-color: hsl(var(--sidebar-primary));
    color: hsl(var(--sidebar-primary-foreground));
    transform: scale(1.01) !important;
}

.navItem:not(.active) {
    color: hsl(var(--sidebar-foreground));
}

.navItem:not(.active):hover {
    background-color: hsl(var(--sidebar-accent));
    transform: scale(1.05) !important;
}

.mobileNavItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.mobileNavItem.active {
    stroke-width: 3px;
}

.mobileNavItem:not(.active) {
    color: hsl(var(--sidebar-foreground), 0.7);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.iconSm {
    width: 1rem;
    height: 1rem;
}

.iconXs {
    width: 0.75rem;
    height: 0.75rem;
}

.videoContainer {
    position: relative;
    width: 48vh;
    aspect-ratio: 9/16;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 1rem auto 8vh auto;
    z-index: 2;
    background: none;
    display: block;
    transition: transform 0.3s ease;
}

.videoPreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 2 !important;
    aspect-ratio: 9/16;
}

.videoBG {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50% !important;
    min-width: 50% !important;
    min-height: 70% !important;
    max-height: 70% !important;
    
    z-index: 1 !important;
    border-radius: 1rem;
    filter: blur(100px);
    display: none;
}

.videoLabel {
    position: absolute;
    bottom: 1rem;
    left: 3.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.actionsContainer {
    position: absolute;
    top: 50%;
    left: auto;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0);
    height: 360px;
    width: 85px;
    padding: 1rem;
    z-index: 3;
}

.actionsContainer.expanded {
    flex-direction: row;
    width: 100%;
    height: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    justify-content: center;
    top: 72vh;
    position: fixed;
}

.searchContainer {
    position: relative;
    max-width: 28rem;
    margin: 0 auto;
}

.searchIcon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.searchInput {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.searchInput:focus {
    border: 2px solid hsl(var(--ring));
}

.logoPlaceholder {
    width: 100%;
    height: 4rem;
    border-radius: 0.5rem;
}

.userProfile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: hsla(var(--sidebar-accent), 0.5);
}

.userProfile.active {
    background-color: hsl(var(--sidebar-primary));
    color: hsl(var(--sidebar-primary-foreground));
}

.userName.active {
    color: hsl(var(--sidebar-primary-foreground));
}

.userInfo {
    flex: 1;
    min-width: 0;
}

.userName {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--sidebar-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menuBtn {
    width: 1.5rem;
    height: 1.5rem;
    color: hsla(var(--sidebar-foreground), 0.6);
    border: none;
    background: transparent;
    cursor: pointer;
}

.menuIcon {
    width: 1rem;
    height: 1rem;
}

.contentArea {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.popup {
    position: fixed;
    background-color: hsl(var(--secondary));
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--accent));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: calc(100vw - 17rem);
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.popupContent {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 98%;
    height: 97%;
    justify-content: center;
}

.popup-title {
    font-size: 1.50rem;
    font-weight: 600;
    color: hsl(var(--popover-foreground));
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
    text-shadow: 0 1px 30px rgba(255, 255, 255, 0.322);
}

.popup-subtitle {
    font-size: 1rem;
    color: hsl(var(--popover-foreground));
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

#channelPopup {
    display: flex;
}

.statsVideoPreview {
    width: 150px;
    object-fit: cover;
    border-radius: 1rem;
    position: absolute;
    top: 20px;
    left: 20px;
}

.videoStats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

#videoStatsTitle {
    top: 20px;
    left: 200px;
    width: 80%;
    text-align: left;
    position: absolute;
}

.basicStats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    left: 200px;
    top: 60px;
    position: absolute;
}

.videoStatText {
    width: 100%;
}

.videoChartContainer {
    position: relative;
    width: 100%;
    height: 45vh;
    top: 90px;
    margin: 1rem auto;
    aspect-ratio: 16/9;
}

#videoStatsChart {
    width: 100%;
    height: 100%;
}

#videoStatsViews {
    font-size: 1rem;
    color: hsl(var(--popover-foreground));
}

#videoStatsLikes {
    font-size: 1rem;
    color: hsl(var(--popover-foreground));
}

#videoStatsComments {
    font-size: 1rem;
    color: hsl(var(--popover-foreground));
}

.uploadFileInput {
    background-color: #3b332b00;
    color: #f5f3ef;
    width: 250px;
    height: 250px;
    cursor: pointer;
    line-height: 60px;
    text-align: center;
    font-size: 1rem;
    border-radius: 50%;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #e7e1da;
}

#uploadFileIcon {
    width: 100px;
    height: 100px;
    color: #3b332b;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
}

.uploadThumbnailInput {
    background-color: hsl(var(--accent));
    border: 1px solid hsl(var(--primary));
    color: #f5f3ef;
    width: 400px;
    height: 60px;
    cursor: pointer;
    line-height: 60px;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-left: 290px;
    margin-top: 15px;
    display: none;
    transition: background-color 0.3s ease;
}

.uploadThumbnailInput svg {
    stroke: hsl(var(--primary));
    height: 40px !important;
    margin-right: 0;
    margin-left: 0;
    left: 0;
    right: -110px;
    position: absolute;
}

.uploadThumbnailInput h1 {
    margin-left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

#uploadSubtitle.landscape {
    margin-top: 140px !important;
}

#uploadButton {
    background-color: #3b332b;
    color: #f5f3ef;
    width: 400px;
    height: 60px;
    cursor: pointer;
    line-height: 60px;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-left: 290px;
    margin-top: 15px;
    display: none;
    transition: background-color 0.3s ease;
}

.uploadVideoPreview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #5865F2;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: sans-serif;
    transition: background-color 0.2s;
    width: 300px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.discord-login-btn:hover {
    background-color: #4752c4;
}

.email-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: hsl(var(--primary));
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: sans-serif;
    transition: background-color 0.2s;
    width: 300px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.email-login-btn:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
}

.email-icon {
    width: 24px;
    height: 24px;
    fill: hsl(var(--secondary));
}

#emailInput {
    width: 100%;
    background: none;
    outline: none;
    border: none;
    color: hsl(var(--secondary));
}

.continueEmail {
    width: 40px;
    height: 40px;
    position: absolute;
    margin-top: 5px;
    left: 295px;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    margin-top: -5px;
    fill: hsl(var(--primary));
}

#sidebarDivider {
    min-width: 100%;
    height: 2px;
    background-color: hsl(var(--sidebar-border));
    margin-bottom: auto;
    position: relative;
}

.subscriptionTemplate {
    width: 100%;
    height: 50px;
    background-color: hsl(var(--secondary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    transition: all 0.2s;
}

.subscriptionTemplate.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary)) !important;
    transform: scale(1.01) !important;
}

.subscriptionName.active {
    color: hsl(var(--secondary)) !important;
}

.subscriptionPp {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscriptionName {
    font-size: 15px !important;
    font-weight: 500;
    color: hsl(var(--secondary-foreground));
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscriptionTemplate:hover {
    background-color: hsl(var(--sidebar-accent));
    transform: scale(1.05) !important;
}

#otpPopup {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
}

#otpDigits {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.otp-input {
    width: 50px !important;
    height: 60px !important;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--accent)) !important;
    outline: none;
}

.otp-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid hsl(var(--popover-border));
    border-radius: 0.5rem;
    background-color: #e7e1da;
    color: hsl(var(--popover-foreground));
}

#emailInputZone {
    display: inline-flex;
    align-items: center;
    background-color: hsl(var(--primary));
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: sans-serif;
    transition: background-color 0.2s;
    width: 300px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.discord-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#logoTitle {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    line-height: 4rem;
    padding-left: 20px;
    width: 100%;
}

#uploadVideoDetails {
    display: none;
    position: absolute;
}

.uploadVideoTitle, .uploadVideoDescription {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: hsl(var(--popover-foreground));

    margin-left: 290px;
}

#videoTitleInput, #videoDescriptionInput {
    font-size: 1rem;
    font-weight: 400;
    padding-left: 1rem;
    border: 1px solid hsl(var(--popover-border));
    border-radius: 0.5rem;
    background-color: hsl(var(--accent));
    color: hsl(var(--popover-foreground));

    height: 60px;
    width: 57%;
    resize: none;
    margin-left: 290px;
}

#videoDescriptionInput {
    height: 275px;
    margin-top: 0.5rem;
    padding-top: 15px;
}

#uploadPopupContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 250px;
    height: 250px;
    margin-left: 50%;
    transform: translateX(-50%);
    justify-content: center;
}

#currentVideoInfos {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.currentVideoAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    bottom: 10px;
    position: absolute;
    z-index: 999;
    cursor: pointer;
}

.ppPopup {
    left: 4%;
    top: 3%;
    position: relative;
    background-color: hsl(var(--popover));
    backdrop-filter: blur(10px);
    border: 1px solid #d1cfcf;
    border-radius: 50%;
    z-index: 1000;
    width: 110px;
    height: 110px;
    position: absolute;
}

#channelPopupHeader {
    width: 80%;
    height: 120px;
    top: 10px !important;
    position: absolute;
    margin-left: -140px;
    display: flex;
    padding-bottom: 20px;
    justify-content: flex-start !important;
    background-color: #37415100;
}

#channelPopupDisplayname {
    font-weight: 600;
    font-size: 24px;
    position: relative;
    text-shadow: none;
    text-align: left;
    width: 100%;
    margin-top: -3px;
    margin-left: 280px;
}

#channelPopupPfp {
    width: 110px;
    height: 110px;
}

#channelPopupUsername {
    font-weight: 500;
    font-size: 18px;
    position: relative;
    text-shadow: none;
    top: 0;
    width: 100%;
    margin-left: 280px;
    text-align: left;
    color: hsl(var(--popover-foreground));
}

#channelPopupSubscribers {
    font-weight: 500;
    font-size: 18px;
    position: relative;
    text-shadow: none;
    top: 0;
    width: 100%;
    margin-left: 280px;
    text-align: left;
    color: hsl(var(--popover-foreground));
}

#channelSubscribeBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    width: 200px;
    min-height: 50px;
    border-radius: 10px;
    right: -110px;
    top:  35px;
    position: absolute;
    transition: all 0.3s;
}

#channelSubscribeBtn:hover {
    background-color: hsl(var(--primary));
    opacity: 0.6;
}

#channelPopupContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 980px;
    height: 93%;
    border-radius: 1rem;
    margin-bottom: 27px;
    backdrop-filter: blur(10px);
}

#videosList {
    height: 570px;
    width: 95%;
    min-height: 500px;
    margin-bottom: -100px;
    position: absolute;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 38px;
}

.channelVideoTemplate {
    width: 200px;
    height: 300px;
    background-color: #e7e1da;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.channelVideoDetails {
    width: 100%;
    height: 100px;
    margin-top: 250px;
    margin-left: 0px;
    position: absolute;
    color: hsl(var(--secondary));
    border-radius: 12px;
}

.channelVideoTitle {
    font-size: 14px;
    margin-top: 24px;
    width: 90%;
    margin-left: 10px;
    height: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    color: white;
    text-shadow: 1px 2px 2px rgb(0, 0, 0);
}

.channelVideoViews {
    top: -220px;
    left: 10px;
    position: absolute;

    color: white;
    text-shadow: 1px 2px 2px rgb(0, 0, 0);
}

.progressBar {
    width: 100%;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    position: absolute;
    bottom: -1px;
}

.progressBarFill {
    height: 5px;
    background-color: hsl(var(--accent));
    bottom: 0;
    position: absolute;
}

#videosScrollContainer {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.viewVideoDetailsBtn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    bottom: 15px;
    left: auto;
    right: 5px;
    border-radius: 16px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out forwards;
}

.viewVideoDetailsBtn.active {
    transform: rotate(45deg);
}

.icon-plus {
    width: 20px;
    margin-left: 3px;
}

.channelVideoPreview {
    min-width: 100%;
    min-height: 100%;
    margin-left: 0px;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

#closeProfileBtn {
    bottom: 15px;
    position: absolute;
    width: 200px;
    height: 50px;

    z-index: 1001;
}

#subscriptionsContainer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

#reportOptions {
    max-width: 90vw;
}

#sendReportBtn {
    max-width: 90vw;
}

#cancelReportBtn {
    max-width: 90vw;
}

#subscriptionsList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-height: 100%;
}

.subscriptionTemplate {
    width: 100%;
    height: 60px;
    background-color: hsl(var(--secondary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.subscriptionPp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

#likeCommentBtn.liked,
#likeCommentBtn.liked path {
    fill: hsl(var(--primary)) !important;
    stroke: hsl(var(--primary)) !important;
    background: transparent !important;
}

#likeCommentBtn {
    max-width: 22px;
    cursor: pointer;
    stroke: hsl(var(--primary)) !important;
    min-width: 30px;
    min-height: 30px;
    padding-left: 4px !important;
    padding-bottom: 10px;
}

#notificationsButton {
    position: absolute;
    right: 30px;
    top: 25px;
    color: hsl(var(--primary));
    opacity: 0.7;
}

#notificationsPopup {
    display: none;
    position: absolute;
    width: 400px;
    height: 240px;
    top: 90px;
    right: 30px;
    border-radius: 16px;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--secondary));
    flex-direction: column;
    z-index: 9;
    overflow-y: scroll;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: hsl(var(--primary)) hsl(var(--secondary));
    z-index: 99999999999;
}

#notificationsPopup::-webkit-scrollbar {
    width: 8px !important;
}

#notificationsPopup::-webkit-scrollbar-track {
    background: hsl(var(--secondary));
    border-radius: 10px;
}

#notificationsPopup::-webkit-scrollbar-thumb {
    background-color: hsl(var(--primary));
    border-radius: 10px;
    border: 2px solid hsl(var(--secondary));
}

.notificationPTemplate {
    background-color: #000000;
    background-color: hsl(var(--accent));
    border-radius: 16px;
    border: 1px solid hsl(var(--accent));
    margin-top: 10px;
    min-width: 95%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.notificationPTemplate.expanded {
    min-height: 90px !important;
}

.notifPTitle.expanded {
    margin-bottom: 30px;
    width: 70%;
    margin-left: 30px;
}

.notifPDescription.expanded {
    max-width: 70% !important;
    margin-left: 30px;
    margin-bottom: 5px !important;
    position: absolute;
    font-size: 14px;
    line-height: 14px;
}

.notifPIcon.expanded {
    width: 80px;
}

.notifPIcon {
    margin-left: 5px;
    margin-top: 5px;
    border-radius: 14px;
    width: 50px;
}

.notifPTitle { 
    position: fixed;
    bottom: 27px !important;
    left: 65px;
    min-width: 80% !important;
}

.notifPDescription { 
    position: fixed;
    bottom: 7px !important;
    left: 65px;
    opacity: 0.7;
    font-size: 14.4px;
}

.info-icon {
    position: absolute;
    font-size: 12px;
    background-color: hsl(var(--primary));
    color: hsl(var(--accent));
    height: 15px;
    width: 15px;
    line-height: 15px;
    padding-left: 5px;
    border-radius: 16px;
    margin-bottom: 15px;
    margin-left: 3px;
    right: -20px;
}

@keyframes bottomToTop {
    from {
        opacity: 0.5;
        margin-bottom: -20px;
    }
    to {
        opacity: 1;
        margin-bottom: 0px;
    }
}

@keyframes topToBottom {
    from {
        opacity: 1;
        margin-bottom: 0px;
    }
    to {
        opacity: 0;
        margin-bottom: -30px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes elasticGrowWH {
    0% {
        width: 0;
        height: 0;
    }
    60% {
        width: 308px;
        height: 540px;
    }
    80% {
        width: 290px;
        height: 515px;
    }
    100% {
        width: 281px;
        height: 500px;
    }
}

@keyframes slideRightToLeft {
    from {
        right: -400px;
        opacity: 0.9;
    }
    to {
        right: 10px;
        opacity: 1;
    }
}

@keyframes slideLeftToRight {
    from {
        right: 10px;
        opacity: 1;
    }
    to {
        right: -400px;
        opacity: 0.9;
    }
}

.sendCommentAvatar {
    width: 45px;
    position: absolute;
    margin-top: 2.5px;
    margin-left: 3px;
    border-radius: 50px;
}

@media (max-width: 1115px) {
    .videoContainer.expanded {
        max-width: 70vw;
    }
}

@media (min-width: 768px) and (max-width: 1130px) {
    .videoContainer.comments-open {
        max-height: 37vh;
        bottom: 30px !important;
        position: relative;
        
        margin-left: auto !important;
        margin-right: auto !important;

        left: unset !important;
        right: unset !important;
        transform: unset !important;
        
        width: 500px !important;
    }

    #commentsPopup:not(.expanded) {
        max-height: 43vh;
        margin-top: 340px;
        width: 500px;
        position: absolute !important;
        left: 50% !important;
        margin-left: 0px;
        transform: translateX(-50%) !important;
        right: unset !important;
    }

    #videoDetailsPopup:not(.expanded) {
        max-height: 43vh;
        margin-top: 0;
        width: 500px;
        position: fixed !important;
        left: 45% !important;
        transform: translateX(-50%) !important;
        right: unset !important;

        bottom: 45px !important;
        top: unset !important;
    }

    .actionsContainer.comments-open {
        margin-right: -15px !important;
    }

    #replyToComment {
        margin-bottom: -40px !important;
    }
}

@media (min-width: 768px) and (max-width: 955px) {
    .actionsContainer.comments-open {
        right: 80px !important;
        height: 300px;
        top: 150px;
    }

    .actionsContainer.comments-open button {
        width: 40px;
        min-height: 40px !important;
    }

    #replyToComment {
        margin-bottom: -20px;
    }
}

@media (max-width: 1530px) and (min-width: 768px) {
    .commentUsername,
    .replyUsername {
        margin-left: -167px !important;
    }

    .replyUsername {
        margin-right: 18px !important;
    }
}

@media (max-width: 1530px) {
    #commentsPopup:not(.expanded) {
        left: auto;
        right: -1vw;
        position: absolute;
    }

    #videoDetailsPopup:not(.expanded) {
        left: auto;
        right: -5px;
        position: absolute;
    }

    .videoContainer.shift-left {
        transform: none !important;
    }

    .videoContainer.comments-open {
        margin-right: 450px;
    }

    .actionsContainer.comments-open {
        margin-right: 430px;
        opacity: 0.7;
    } 

    #commentsPopup.expanded {
        position: fixed !important;
        width: min(400px, 35vw) !important;
        height: 80% !important;
        right: 1vw !important;
        top: 0vh !important;
        left: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        z-index: 1000 !important;
    }

    #videoDetailsPopup.expanded {
        position: fixed !important;
        width: min(400px, 35vw) !important;
        height: 80% !important;
        right: 1vw !important;
        top: 0vh !important;
        left: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        z-index: 1000 !important;
    }

    .videoContainer.expanded.comments-open {
        position: relative !important;
        margin-left: min(30px, 2vw) !important;
        width: calc(80vw - min(400px, 35vw) - 9vw) !important; 
        max-width: calc(100vw - min(400px, 35vw) - 6vw) !important;
        box-sizing: border-box;
        z-index: 999;
    }

    .videoContainer.comments-open .videoPreview,
    .videoPreview {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        aspect-ratio: 9/16;
    }

    #addCommentSection {
        margin-bottom: 5vh !important;
    }

    .commentTemplate {
        height: 100px;
    }

    .commentInfo {
        height: 40px !important;
    }

    .commentAvatar {
        width: 40px !important;
        height: 40px !important;
    }

    .commentDisplayname {
        margin-bottom: 3px;
        right: 5px !important;
    }

    .commentUsername {
        margin-bottom: 10px;
        right: 110px !important;
    }

    .commentText {
        font-size: 16px !important;
    }

    
    #replyToComment {
        bottom: 110px !important;
    }
}

@media (max-height: 700px) {
    .videoContainer {
        margin-bottom: 80px;
    }
}

@media (max-width: 432px) {
    .channelVideoTemplate {
        width: 45%;
    }

    #videosList {
        width: 99vw;
    }
}

.longCmntReplyBtn {
    min-width: 200px !important;
    display: flex;
}

.longCmntReplyBtn svg {
    transform: rotate(90deg);
}

@media (max-width: 768px) {

    @keyframes slideRightToLeft {
        from {
            margin-top: -300px;
            backdrop-filter: blur(0px);
        }
        to {
            top: 90px;
            backdrop-filter: blur(10px);
        }
    }

    @keyframes slideLeftToRight {
        from {
            top: 90px;
            backdrop-filter: blur(10px);
        }
        to {
            margin-top: -300px;
            backdrop-filter: blur(0px);
        }
    }

    #longVideoInfos {
        top: 10px !important;
    }

    #longVideoAuthorPp {
        top: 7px !important;
    }

    #longVideoButtons {
        top: -100px !important;
    }

    #longVideoMoreInfos {
        top: -50px !important;
    }

    #longVideoComments {
        top: calc(80% + 50px) !important;
    }

    #longVideosPopupContent {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .watchLongContent {
        margin-left: 0 !important;
    }

    #longVideoPlayer {
        height: 100%;
        margin-top: 20px;
    }

    #longVideoAuthorPp {
        width: 60px !important;
    }

    #videoPlayerContainer {
        max-height: 350px;
        top: 0 !important;
        margin-top: -10px !important;
    }

    .watchLongContent {
        top: 0 !important;
        margin-top: -90px !important;
    }

    #longVideoMoreInfos {
        position: relative;
        margin-top: -30px !important;
    }

    #longSubscribeBtn {
        width: 100px !important;
    }

    #longSubscribeBtn h1 {
        font-size: 14px;
        right: 25px;
    }

    #longVideoButtons {
        position: relative;
        justify-content: left;
        margin-top: 80px !important;
        margin-left: 20px !important;
    }

    #longVideoComments {
        left: 0 !important;
        margin-left: 0 !important;
        margin-top: 0px !important;
        min-height: 350px;
    }

    #suggestedLongVideos {
        overflow: hidden !important;
        max-height: calc(100vh - 3000px) !important;

        display: none;
    }

    .longVideoTemplate {
        margin-left: -14px !important;
    }
    
    #longVideoTitle {
        font-size: 15px !important;
        left: -25px !important;
        min-width: 100% !important;
        margin-top: 14px;
    }

    #longVideoAuthor {
        font-size: 15px !important;
        left: -25px !important;
        min-width: 100% !important;
        margin-top: 0px;
    }

    #longVideoButtons {
        position: absolute;
        z-index: 999;
        justify-content: left !important;
        margin-top: 192px;
        box-sizing: border-box;
        gap: -10px;
    }

    #longVideoMoreInfos {
        margin-top: 50px;
    }

    .commentUsername {
        left: 0;
        right: auto;
    }

    .replyUsername {
        left: 0;
        right: auto;
        margin-left: 200px !important;
    }

    #replyToComment {
        margin-bottom: -55px;
    }

    #closeReplyBtn {
        left: -20px;
        position: relative;
    }

    #channelSubscribeBtn {
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        margin-top: 90px;
    }

    #friendsContainer {
        max-height: 60%;
    }

    .searchContainer {
        max-width: 75vw;
        margin-left: -10px !important;
        position: relative;
    }

    #notificationsPopup {
        width: 100%;
        height: 85%;
        position: absolute;
        right: 0;
        top: 70px;
        border-radius: 0px;
    }

    #subscriptionsBtn {
        display: block !important;
    }

    #videoStatsTitle {
        max-width: 40vw;
        font-size: 1.2rem;
        word-wrap: break-word;
        white-space: normal;
    }

    .basicStats {
        position: absolute;
        top: 60px;
        left: 190px;
        padding: 10px;
    }

    #closeProfileBtn {
        margin-bottom: 30px !important;
        position: absolute;
    }

    #videosList {
        position: fixed;
        top: 200px;
        height: calc(100vh - 350px) !important;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    #closeProfileBtn {
        display: block !important;
        opacity: 1 !important;
        bottom: -10px !important;
        z-index: 1000;
        pointer-events: auto !important;
    }

    .videoContainer.comments-open {
        height: 35vh !important;
        width: 430px !important;
        aspect-ratio: 9 / 16 !important;
        object-fit: contain !important;
        bottom: 22vh !important;

        background-color: #000000 !important;
    }

    #shareOptions {
        max-width: 90vw;
    }

    .notificationTemplate {
        position: absolute;
        top: 90px;
        left: 50%;
        max-width: 90vw;
        transform: translateX(-50%);
        opacity: 1 !important;
        background-color: hsl(var(--primary)) !important;
    }
    
    #addCommentSection {
        bottom: -30px !important;
        position: fixed;
        max-width: 90%;
    }

    #commentsList {
        max-height: 70%;
        position: absolute;
        top: 40px;
        left: -1px;
    }

    #commentsPopup {
        position: fixed !important;
        transform: translateY(40px) !important;
        width: 100% !important;
        top: 43vh !important;
        margin-right: 4px !important;
        max-height: 46.3% !important;
        max-width: 100vw !important;

        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }

    #videoDetailsPopup {
        position: fixed !important;
        top: 43vh !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        transform: translateY(40px) !important;

        width: 100vw !important;
        max-width: 800px !important;
        max-height: 46.3% !important;

        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .actionsContainer.comments-open {
        height: 300px !important;
        margin-top: -22vh !important;
        margin-right: 0;
    }

    .actionsContainer.comments-open button {
        height: 40px;
        width: 40px;
    }

    .videoContainer.comments-open {
        min-width: 100% !important;
    }

    .videoContainer {
        position: relative;
        width: 100%;
        max-width: 430px;
        max-height: 83vh;
        
        height: 100%;

        aspect-ratio: 9 / 16;
        margin: 0.5rem auto;
        overflow: hidden;
    }

    .videoPreview {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background: none;
    }

    .contentArea {
        padding: 0;
        padding-bottom: 4rem;
        height: 100vh;
        align-items: center;
    }

    .videoWrapper {
        height: 100% !important;
        max-width: 100vw;
        display: flex;
        align-items: center;
        margin: 0;
        background-color: black;
    }

    .popup {
        width: 100vw;
        min-height: 100vh !important;
        top: 0;
    }

    .actionBtn {
        opacity: 0.7;
    }

    #friendsContainer {
        min-width: 90vw;
    }

    .friendCard {
        width: 90vw;
    }

    .pendingRequest {
        width: 90vw !important;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .searchResults {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        max-width: 90vw;
        margin: 0 auto;
        overflow-y: scroll;
    }

    .searchResultItem {
        color: hsl(var(--primary));
        padding: 1rem;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: background-color 0.2s;
        min-height: 400px;
    }

    .searchResultPreview {
        width: 100%;
        border-radius: 0.5rem;
        height: auto;
    }

    .searchResultTitle {
        font-size: 16px !important;
        font-weight: 600;
        margin-top: 10px;
    }

    #videosList {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    #channelPopupPfp {
        margin-left: -30px;
    }

    #channelPopupDisplayname {
        margin-top: 15px !important;
    }

    #channelPopupDisplayname,
    #channelPopupUsername,
    #channelPopupSubscribers {
        margin-left: 110px;
    }

    #channelPopupHeader {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 600px;
        padding: 0 16px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #chatBottomBtns {
        bottom: 100px;
        position: fixed;
    }

    .chatInput {
        margin-bottom: 60px;
    }

    .sendMessageButton {
        margin-bottom: 60px;
    }

    #friendsContainer {
        justify-content: center;
        width: 100vw;
    }

    #channelPopupHeader {
        margin-bottom: 635px;
    }

    #uploadVideoDetails {
        max-width: 90vw;
    }

    #uploadButton {
        min-width: 90vw;
    }
    
    .uploadVideoPreview {
        max-width: 90vw;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        display: block;
    }

    .commentTemplate {
        max-width: 90vw;
    }

}

@media (max-width: 1415px) {
    .uploadVideoPreview.landscape {
        position: absolute;
        bottom: 18vh;
        margin-left: 46.5%;
        transform: translateX(-50%);
    }

    #uploadVideoDetails.landscape {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        width: 450px;
        top: 85px;
    }

    #uploadVideoDetails.landscape > * {
        margin-left: 0;
        width: 100%;
    }

    #uploadSubtitle.landscape {
        margin-top: 390px !important;
    }
}

@media(max-width: 1000px) {
    .uploadVideoPreview:not(.landscape) {
        top: -10px;
        margin-left: -90px !important;
        max-width: 125px !important;
        max-height: 222px;
        position: absolute;

        aspect-ratio: 9 / 16;
        height: auto;
        object-fit: contain;
    }

    #uploadPopupContent:not(.landscape) {
        min-height: 90%;
        max-width: 90%;
    }

    #uploadVideoDetails:not(.landscape) {
        position: absolute;
        top: 350px;
        max-width: 150vw;
        left: -300px;
    }

    #videoDescriptionInput:not(.landscape) {
        height: 80px;
        position: absolute;
        top: -120px;
        left: 0px;
        max-width: calc(150vw - 200px);
    }

    #videoTitleInput:not(.landscape) {
        position: absolute;
        top: -350px;
        left: 150px;
        max-width: calc(100vw - 200px);
    }

    .uploadVideoTitle {
        display: none;
    }

    .uploadVideoDescription {
        display: none;
    }

    #uploadButton {
        max-width: 85vw;
    }

    #uploadSubtitle:not(.landscape) { 
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        font-size: 12px;
        pointer-events: none;
        opacity: 0.4;
    }

    #requestDataBtn {
        max-width: 90vw;
    }

    #logOutBtn {
        max-width: 90vw;
    }

    #reportBugBtn {
        max-width: 90vw;
    }

    #changePpBtn {
        max-width: 90vw;
    }

    #subscriptionsBtn {
        max-width: 90vw;
    }

    #deleteAccountBtn {
        max-width: 90vw;
    }
}

@media(max-height: 834px) {
    
}

@media(max-width: 644px) {
    #friendsContainer {
        display: flex;
        flex-direction: row;
        width: 90vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .friendCard {
        min-width: 100%;
        min-height: 60px;
        margin: 0.5rem 0;
        position: relative;
        flex-shrink: 0;
    }

    .chatButton {
        width: 100%;
    }
}

#chatBottomBtns {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    height: 100px;
}

@media (min-width: 769px) {
    .videoWrapper {
        top: 47vh;
        transform: translateY(-50%);
    }
}

@media (max-height: 880px) {
    .videoPreview {
        object-fit: contain !important;
        background: none;
    }
}

.mobileNavBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 64px;
    background: hsl(var(--sidebar-background));
    border-top: 1px solid hsl(var(--sidebar-border));
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0;
}

#clickToPlay {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    margin-top: 40vh;
    z-index: 9;
    font-size: 18px;
    text-shadow: 2px 2px 2px rgb(0, 0, 0);
}

.videoWrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.videoWrapper.website {
    margin-bottom: 100px;
    height: 75vh !important;
}

.videoContainer.shift-left {
    transform: translateX(-45%);
    transition: transform 0.3s ease;
}

.videoContainer.expanded {
    position: relative;
    width: 100vh;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 1rem auto 8vh auto;
    z-index: 2;
    margin-top: 14vh;
    background: none;
    display: block;
}

.searchResults {
    position: relative;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    flex-direction: row;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    background-color: hsl(var(--secondary));
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.notificationTemplate {
    position: fixed;
    width: 370px;
    height: 75px;
    right: 10px;
    bottom: 10px;
    background-color: hsl(var(--primary));
    border: 2px solid hsl(var(--border));
    color: hsl(var(--secondary));
    border-radius: 10px;

    z-index: 9999;

    display: none;
    animation: slideRightToLeft 0.5 ease-out forwards;
}

.notificationTitle {
    width: 250px;
    margin-top: 10px;
    margin-left: 70px;
    font-size: large;
}

.notificationSubtitle {
    margin-left: 70px;
    color: #c4bbb2;
    font-size: 14px;
    position: absolute;
    margin-top: 35px;
}

.notificationIcon {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    margin-top: 15px;
    position: absolute;
    border-radius: 50%;
    color: hsl(var(--primary)) !important;
    filter: invert(0.5);
}

#friendsContainer {
    width: 620px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

#friendsContainer > * {
    flex: 0 0 calc(50% - 5px);
}

.chatVideoPreview {
    width: 200px;
    border-radius: 16px;
    cursor: pointer;
}

.chatVideoTitle {
    max-width: 100% !important;
    max-height: auto !important;
    position: relative;
    max-height: 60px;
    margin-top: -50px;
    font-size: 13px;
    text-shadow: 1px 1px 1px black;
    margin-left: 10px;
}

.chatVideoPreviewSrc {
    border-radius: 16px;
}

#pendingRequestsContainer {
    width: 620px;
    display: flex;
    gap: 10px;
    height: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

#pendingRequestsList {
    width: 100%;
    height: auto;
    overflow-y: auto;
}

.pendingRequest {
    width: 300px;
    height: 120px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border-radius: 16px;
    display: none;
}

.pendingRequestName {
    font-size: 18px;
    position: absolute;
    margin-top: 20px;
    margin-left: 120px;
}

.pendingRequestPp {
    width: 100px;
    border-radius: 16px;
    position: absolute;
    margin-top: 10px;
    margin-left: 10px;
}

#pendingRequestActions {
    position: absolute;
    margin-top: 80px;
    margin-left: 120px;
    display: flex;
    gap: 10px;

    margin-top: 70px;
}

.acceptRequestButton,
.declineRequestButton {
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    padding: 10px 20px;
    width: 80px;
    height: 40px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

#pendingFriendsTitle {
    position: relative;
    width: 100%;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
}

.friendCard {
    width: 300px;
    height: 150px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border-radius: 16px;
    display: none;
}

.friendName {
    font-size: 18px;
    position: absolute;

    margin-top: 20px;
    margin-left: 120px;
}

.friendStatus {
    position: absolute;
    margin-top: 45px;
    margin-left: 120px;
}

.friendPp {
    width: 100px;
    border-radius: 16px;
    position: absolute;
    margin-top: 10px;
    margin-left: 10px;
}

.chatButton {
    margin-top: 118px;
    margin-left: 157px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    width: 140px;
    border-radius: 8px;
    position: absolute;
}

.unfriendButton {
    margin-top: 118px;
    margin-left: 10px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    width: 140px;
    border-radius: 8px;
    position: absolute;
}

#addNewFriendPopup {
    width: 400px;
    height: 230px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    left: 50%;
    transform: translateX(-50%) !important;
    position: absolute;
    border-radius: 16px;
    opacity: 0;
    display: none;
}

#newFriendTitle {
    position: absolute;
    width: 100%;
    font-size: 22px;
    margin-top: 10px;
    text-align: center;
}

#newFriendInput {
    width: 350px;
    height: 60px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--accent));
    padding-left: 20px;
    border-radius: 12px;
    margin-left: 50%;
    margin-top: 60px;
    transform: translateX(-50%);
    outline: 1px solid hsl(var(--accent));
}

#sendFriendRequestBtn {
    width: 160px;
    height: 60px;
    margin-left: 105px;
    transform: translateX(-50%);
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    margin-top: 20px;
    outline: 1px solid hsl(var(--accent));
    position: absolute;
}

#cancelFriendRequestBtn {
    width: 160px;
    height: 60px;
    margin-left: 295px;
    transform: translateX(-50%);
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    margin-top: 20px;
    outline: 1px solid hsl(var(--accent));
    position: absolute;
}

.searchResultItem {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    width: 230px;
    height: 380px;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.searchResultItem:hover {
    background-color: hsl(var(--primary-foreground));
}

.userChannelCard {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    width: 300px;
    height: 120px;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.userChannelCard:hover {
    background-color: hsl(var(--primary-foreground));
}

#channelCardPp {
    height: 100px;
    border-radius: 10px;
}

.searchResultPreview {
    width: 200px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-top: 0px;
    aspect-ratio: 9/16;
}

.searchResultPp {
    width: 40px;
    border-radius: 50px;
    margin-left: -210px;
    margin-top: 300px;
}

.searchResultTitle {
    font-size: 1rem;
    font-weight: 500;
    color: white !important; 
    margin-top: 0.5rem;
    position: absolute;
    text-align: left;
    margin-left: 50px;
    margin-bottom: -289px;
    font-size: 14px;
    height: auto;
    width: 130px;
    text-shadow: 2px 1px 1px black;
}

.searchResultViews {
    text-shadow: 2px 1px 1px black;
    color: white !important;
    margin-top: -310px;
    text-align: left;
    width: 150px;
    margin-left: -50px;
}

#videoDetailsPopup {
    width: 450px;
    height: 90%;
    aspect-ratio: 9/16;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    left: 50%;
    top: 1.87%;
    margin-left: 45px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 16px;
    opacity: 1;
    display: none;
}

#videoDetailsContent {
    width: 100%;
    height: 100%;
}

.videoDetailsTitle {
    font-size: 18px;
    margin-top: 20px;
    margin-left: 20px;
    width: 90%;
    color: hsl(var(--primary))
}

.videoDetailsViewsDate {
    margin-left: 20px;
    opacity: 0.7;
    width: 90%;
    color: hsl(var(--primary))
}

.videoDetailsAuthor {
    margin-left: 20px;
    opacity: 0.5;
    width: 90%;
    color: hsl(var(--primary))
}

.videoDetailsDescription {
    margin-left: 20px;
    width: 90%;
    margin-top: 20px;
    color: hsl(var(--primary));
    word-break: break-word;
    white-space: pre-line;
}

#commentsPopup {
    max-width: 460px !important;
    height: 90%;
    aspect-ratio: 9/16;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    left: 50%;
    top: 1.87%;
    margin-left: 45px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 16px;
    opacity: 1;
    display: none;
}

#commentsPopup.expanded {
    margin-left: 250px;
}

#videoDetailsPopup.expanded {
    margin-left: 250px;
}

.videoContainer.expanded.comments-open {
    margin-left: 500px;
    margin-top: 100px;
    width: 900px;
    max-width: 45vw;
}

#closeCommentsBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding-left: 5px;
}

#closeDetailsBtn {
    position: absolute;
    top: 20px;
    right: 10px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding-left: 5px;
}

.commentsTitle {
    position: absolute;
    width: 100%;
    font-size: 22px;
    margin-top: 10px;
    text-align: center;
}

#commentsPopupContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 90%;
    margin-top: 20%;
    padding: 1rem;
}

#commentsList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
}

#addCommentSection {
    display: block;
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
}

#replyToComment {
    background-color: hsl(var(--primary));
    height: 30px;
    width: 70%;
    bottom: 70px;
    margin-left: 35px;
    border-radius: 16px;
    border-bottom-left-radius: 0px;
    position: absolute;
    display: none;
}

#replyToCommentContent {
    margin-left: 35px;
    position: absolute;
    margin-top: 4px;
    color: hsl(var(--secondary));
}

#replyToCommentIcon {
    margin-left: 10px;
    color: hsl(var(--secondary));
    width: 30px;
    height: 30px;
    position: absolute;
}

#closeReplyBtn {
    margin-left: 320px;
    color: hsl(var(--primary));
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: none;
}

#commentInput {
    width: 85%;
    height: 50px;
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--secondary));
    padding-left: 70px;
    border-radius: 50px;
    padding-top: 15px;
    resize: none;
    outline: none;
    line-height: 15px;
    white-space: nowrap;
    overflow-x: hidden;
}

.commentTemplate {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
}

.commentReplyTemplate {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
    margin-left: 30px;
    width: 90% !important;
}

.replyDisplayname {
    margin-top: 10px;
    margin-left: 10px;
}

.replyUsername {
    margin-top: 15px !important;
    margin-left: -142px !important;
}

.replyInfos {
    display: flex;
}

#commentReplies {
    height: auto !important;
}

.replyAvatarImg {
    width: 40px;
    border-radius: 50px;
}

.pinBadge {
    color: hsl(var(--primary));
    opacity: 0.7;
    font-size: 12px;
    margin-bottom: 30px !important;
    right: 0px;
    left: auto;
    display: block;
    position: relative;
    width: fit-content;
}

.commentInfo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.commentAvatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.commentAvatarZone {
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    position: relative;
}

.commentMeta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.commentDisplayname {
    font-weight: 600;
    color: hsl(var(--primary));
    font-size: 1rem;
    right: 0px;
    bottom: 12px;
    position: relative;
    width: 150px;
}

.commentUsername, .replyUsername {
    font-weight: 400;
    color: hsl(var(--primary));
    opacity: 0.8;
    font-size: 0.875rem;
    text-align: left;
    margin: 0;
    display: block;
    position: static;
    margin-left: -160px;
    width: 250px;
}

.cmntActionIcon {
    padding-left: 5px;
    padding-right: 5px;
}

.commentActionBtn {
    transition: all 0.2s;
}

.commentActionBtn:hover {
    transform: scale(1.10) !important;
}

.commentActionBtn.liked {
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--secondary)) !important;
    padding-right: 1px;
    padding-top: -1px !important;
    border-radius: 10px;
    width: 20px;
    height: 20px;
}

.commentActions {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin-top: 5px;
}

#longCmntRepliesContainer {
    margin-top: 100px;
    min-width: 100% !important;
}

#longCommentsReplyInputZone {
    margin-top: 20px;
}

#submitCommentBtn,
#longSubmitCommentBtn,
.longSubmitReplyBtn {
    width: 30px;
    height: 30px;
    margin-top: 10px;
    margin-left: 15px;
    position: absolute;
}

#longCommentsContainer {
    width: 90%;
    height: auto;
    min-height: 100px;
    overflow-y: scroll;
    margin-left: 20px;
    margin-top: 20px;
    overflow-x: hidden !important;
}

.longCommentTemplate {
    width: 90%;
    height: 100px;
    height: auto;
    margin-top: 20px;
}

.longCommentInfos {
    width: 90%;
    height: 50%;
    position: relative;
}

.longCommentAuthorPp {
    border-radius: 50px;
    width: 50px;
}

.longCommentDname {
    margin-top: -43px;
    margin-left: 60px;
}

.longCommentActionBtns {
    margin-top: 15px;
    width: 350px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.longCmntLikeBtn,
.longCmntDislikeBtn {
    display: flex;
    flex-direction: row;
    gap: 7px;
    cursor: pointer;
    z-index: 99;
}

.longCmntLikeBtn svg,
.longCmntDislikeBtn svg {
    z-index: 90000;
}

.longCmntLikeBtn.active svg,
.longCmntDislikeBtn.active svg {
    fill: hsl(var(--primary)) !important;
    stroke-width: 1px;
}

.longCommentReplies {
    cursor: pointer;
    min-width: 150px !important;
    margin-top: 15px !important;
    margin-left: -10px;
}

#registerPopupFields {
    margin-left: 50%;
    transform: translateX(-50%);
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.registerField {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    width: 100%;
    height: 50px;
    border-radius: 50px;
    padding-left: 20px;
    outline: 1px solid hsl(var(--border));
}

#registerButton {
    margin-top: 20px;
}

.longCommentReplies {
    margin-top: 20px;
    padding-left: 40px;
    height: auto;
}

.longCmntRepliesIcon {
    opacity: 0.7;
    transform: rotate(90deg);
}

.longCommentContent {
    margin-top: 10px;
    word-break: break-word;
    white-space: pre-line;
}

.longCommentUsername {
    margin-left: 60px;
    margin-top: -7px;
    opacity: 0.6;
    font-size: 14px;
}

.sendCommentIcon {
    color: hsl(var(--primary));
}

#settingsOptions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#darkModeToggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

#darkModeToggle input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid hsl(var(--secondary));
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

#darkModeToggle input[type="checkbox"]:checked {
    background-color: hsl(var(--accent));
}

#requestDataBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
}

#logOutBtn {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--secondary));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
}

.commentText {
    position: relative;
}

.replyActions {
    display: flex;
    width: 70%;
    height: 30px;
    position: relative;
    margin-top: 0px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#subscriptionsBtn {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--secondary));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
    display: none;
}

#deleteAccountBtn {
    background-color: rgb(228, 123, 123);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
}

#longVideoComments {
    position: absolute;
    top: 270px;
    left: 0;
    width: 100%;
    max-height: 500px;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
}

#longCommentsTitle {
    margin-left: 20px;
}

#longCommentsInputZone {
    margin-left: 20px;
    margin-top: 20px;
    height: 60px;
    width: 100%;
}

#longCommentPp {
    border-radius: 50px;
    margin-top: 5px !important;
    margin-left: 5px;
    height: 50px;
    position: absolute;
    z-index: 9;
}

#longCommentInput,
.longReplyInput {
    width: 87%;
    height: 60px;
    margin-top: 0px;
    margin-left: 0px;
    position: absolute;
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    outline: none;
    padding-left: 70px;
    padding-right: 65px;
    outline: none;
}

.longSubmitCommentBtn,
.longSubmitReplyBtn {
    right: 40px;
    margin-top: 15px !important;
    position: absolute;
}

#longVideosPopupContent {
    justify-content: flex-start;
    flex-direction: row;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 92%;
    width: 99%;
}

.watchLongContent {
    width: 72%;
    margin-left: 20px;
}

#suggestedLongVideos {
    height: 93%;
}

#suggestedLongVideos.under {
    position: relative;
    display: none;
}

#videoPlayerContainer {
    display: flex;
    width: 1000px;
    max-width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    top: 0 !important;
    align-self: flex-start;
}

#longVideoPlayer {
    width: 1000px !important;
    max-height: 560px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 1px 30px 30px rgba(0, 0, 0, 0.274);
    position: relative;
    top: 0px;
    z-index: 9999999;
}

#longVideoAuthorPp {
    position: absolute;
    width: 80px;
    border-radius: 50px;
    bottom: 20px;
    left: 0;
    margin: 0;
    cursor: pointer;
}

#longVideoAuthor {
    margin-left: 95px;
    position: relative;
    top: 12px;
    font-size: 15px;
    opacity: 0.8;
}

.longVideoViews {
    margin-left: 95px;
    position: relative;
    top: -57px;
    left: -14px;
    font-size: 12.5px;
    opacity: 0.7;
}

#longVideoTitle {
    margin-left: 95px;
    position: relative;
    top: 10px;
    max-width: 70%;
    font-size: 18px;
}

#longVideoInfos {
  height: 100px;
  position: relative;
  top: 30px;
  left: 0;
  width: 600px;
  max-width: 67%;
}

.longVideoBtn {
    background: none;
    height: 50px;
    width: 89px;
    border: 1px solid hsl(var(--accent));
    margin-top: 25px;
    margin-left: 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.1s ease-out;
}

.longVideoBtn svg {
    width: 25px;
    margin-top: 12px;
    margin-left: 15px;
    stroke-width: 1.3px;
}

.longVideoBtn h1 {
    margin-left: 50px;
    bottom: 23px;
    font-size: 15px;
    position: relative;
}

#longSubBtnText {
    margin-top: 37px;
    margin-left: 40px;
}

#longSubscribeBtn {
    border: 1px solid hsl(var(--accent));
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    width: 150px;
}

#longVideoMoreInfos {
    background-color: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    min-width: 100%;
    min-height: 140px;
    top: -50px;
    left: 0;
    position: relative;
    height: auto !important;
    padding-bottom: 20px;
}

#longVideoDescriptionContainer {
    width: 95%;
    margin-left: 10px;
    min-height: 60%;
    height: auto;
}

#longVideoDescription {
    word-break: break-word;
    white-space: pre-line;
    margin-top: 20px;
}

#changeLogsContainer {
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    background-color: hsl(var(--accent));
    height: 500px;
    border-radius: 16px;
}

#longVideoButtons {
    height: 100px;
    position: relative;
    top: -75px;
    width: 380px;
    right: 30px;
    left: auto;
    display: flex;
    justify-content: right;
    z-index: 9999;
    margin-left: auto;
}

#longShareBtn {
    width: 114px;
}

.longVideoTemplate {
    width: 400px;
    height: 300px;
    border-radius: 16px;
    cursor: pointer;
}

.longVideoAuthorPp {
    width: 50px;
    border-radius: 50px;
    margin-top: 10px;
    margin-left: 20px;
    cursor: pointer;
}

.longVideoThumbnail {
    width: 360px;
    border-radius: 16px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
}

.longVideoTitle {
    margin-left: 80px;
    top: -50px;
    position: relative;
}

.longVideoAuthor {
    font-size: 14px;
    opacity: 0.7;

    margin-left: 80px;
    top: -55px;
    position: relative;
}

#reportBugBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
}

#changePpPopupFields {
    margin-left: 50%;
    width: 600px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
}

.changePpChannelUrlInput {
    height: 60px;
    border-radius: 50px;
    background-color: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    outline: none;
    padding-left: 20px;
}

#importYtPpBtn {
    margin-top: 20px;
}

#changePpBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: 1px solid hsl(var(--accent));
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 400px;
}

#reportPopupOptions {
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    width: 500px;
    height: 250px;
    background-color: hsl(var(--accent));
    border-radius: 16px;
}

#bugReportInput {
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    width: 90%;
    height: 60px;
    outline: 3px solid hsl(var(--border));
    background-color: hsl(var(--background));
    border-radius: 14px;
    padding-left: 20px;
    text-align: left;
    vertical-align: top;
    display: flex;
    flex: auto;
}

#submitBugBtn {
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    background-color: hsl(var(--primary));
    color: hsl(var(--accent));
    width: 90%;
    height: 55px;
    border-radius: 10px;
    transition: all 0.3s;
}

#canceltBugBtn {
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
    width: 90%;
    height: 55px;
    border-radius: 10px;
    transition: all 0.3s;
}

#reportPopupOptions {
    max-width: 90vw;
}

#submitBugBtn:hover {
    opacity: 0.6;
}

#canceltBugBtn:hover {
    opacity: 0.6;
}

.switch {
    position: relative;
    display: flex;
    align-items: center;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 34px;
    background-color: hsl(var(--primary));
    border-radius: 34px;
    margin-right: 10px;
    transition: background-color 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: hsl(var(--secondary));
    border-radius: 50%;
    transition: transform 0.4s;
}

input:checked + .slider {
    background-color: hsl(var(--primary));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-text {
    font-size: 14px;
}

.chatInput {
    width: 90%;
    height: 60px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: 1px solid hsl(var(--accent));
    padding-left: 20px;
    padding-top: 15px;
    border-radius: 30px;
    outline: none;
    resize: none;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
}

.sendMessageButton {
    position: fixed;
    bottom: 25px;
    right: 6%;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatPopupTitle {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.chatMessages {
    width: 100%;
    height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.chatMessage {
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    height: auto;
    width: auto;
    max-width: 80%;
    word-wrap: break-word;
}

.chatAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.chatMessageContent {
    display: block;
    align-items: center;
    gap: 0.5rem;
}

.chatUserInfos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chatTimestamp {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    opacity: 0.5;
    margin-left: auto;
}

#dnDownPopup {
    width: 100vw;
    height: 100vh;
    z-index: 99999999999;

    display: none;
}

#chatBackBtn {
    position: absolute;
    top: 30px;
    left: 10px;
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding-left: 5px;
}

#downloadAppPopup {
    width: 90vw;
    height: 300px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.432);

    z-index: 99999999999;
    background-color: hsl(var(--popover));

    display: none;
    position: absolute;
}

#downloadAppBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    width: 200px;
    height: 50px;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

#downloadAppTitle {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

#downloadAppSubtitle {
    font-size: 1rem;
    text-align: center;
    color: hsl(var(--secondary-foreground));
    margin-top: 10px;
}

#closeDownloadAppBtn {
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    width: 200px;
    height: 50px;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
}

#tosPopup {
    width: 500px;
    max-width: 90vw;
    height: 300px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.432);

    z-index: 99999999999;
    background-color: hsl(var(--popover));

    display: flex;
    position: absolute;
}

#closeTosPopup {
    background-color: hsl(var(--primary));
    color: hsl(var(--secondary));
    width: 200px;
    height: 50px;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.253);
    backdrop-filter: blur(20px);
    z-index: 9;
    display: block;
}

#shareOptions {
    width: 400px;
    height: 550px;
    background-color: hsl(var(--primary));
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 1.2rem;
}

#copyLinkBox {
    background-color: hsl(var(--accent));
    height: 50px;
    width: 90%;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    border-radius: 10px;
}

#copyLinkUrl {
    line-height: 47px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#sharePlatforms {
    width: 280px;
    height: 60px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    border-radius: 50px;
    background-color: hsl(var(--accent));
    display: flex;
    flex-direction: row;
}

.platformShare {
    width: 50px;
    height: 50px;

    padding: 8px;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 50px;

    background-color: hsl(var(--secondary));

    transition: all 0.3s;
}

.platformShareLogo {
    padding-top: 0px;
}

.platformShare.discord:hover {
    background-color: #5865F2;
}

.platformShare.discord {
    padding-top: 10px;
}

.platformShare.reddit:hover {
    background-color: #FF4500;
}
.platformShare.whatsapp:hover {
    background-color: #25D366;
}
.platformShare.twitter:hover {
    background-color: #1DA1F2;
}
.platformShare.telegram:hover {
    background-color: #0088CC;
}

.platformShare:hover .platformShareLogo path {
    fill: white !important;
}

.platformShare.youtube:hover {
    background-color: #FF0000;
}

#shareWithFriends {
    background-color: hsl(var(--accent));
    width: 280px;
    height: 50%;
    border-radius: 16px;
    margin-left: 50%;
    margin-top: 25px;
    transform: translateX(-50%);
    position: fixed;
}

.shareFriendTemplate {
    width: 90%;
    height: 50px;
    background-color: hsl(var(--primary));
    margin-left: 50%;
    margin-top: 15px;
    border-radius: 10px;
    transform: translateX(-50%);
    position: relative;
}

.sFriendPP {
    width: 40px;
    height: 40px;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 5px;
    position: absolute;
}

.sFriendDisplay {
    text-align: left;
    margin-left: 55px;
    margin-top: 7px;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    color: hsl(var(--secondary));
}

.sFriendUsername {
    text-align: left;
    margin-left: 55px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 300;
    position: absolute;
    color: hsl(var(--secondary));
    opacity: 0.7;
}

.sFriendSendBtn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    margin-left: 85%;
    margin-top: 7px;
    position: absolute;

    cursor: pointer;
}

.sFriendSendBtnIcon {
    width: 60%;
    height: 60%;
    color: hsl(var(--secondary));
    stroke-width: 1px;
    margin-top: 50%;
    transform: translateY(-50%);
}

#sharePopup {
    display: none;
}

#pinPopup {
    margin: auto;
    transform: translate(-50%, -50%);
    height: 230px;
    width: 400px;
    margin-bottom: 50px;
    position: absolute;
    display: flex;
    flex-direction: column;
}

.commentLikeCount {
    margin-left: -5px;
    width: 30px;
    text-align: center;
    position: relative !important;
}

.replyLikeCount {
    margin-left: -4px;
    margin-top: 24px;
    width: 30px;
    text-align: center;
    position: absolute !important;
}

#pinConfirmBtn {
    background-color: hsl(var(--primary)) !important;
    min-height: 50px !important;
    min-width: 90% !important;
    color: hsl(var(--secondary));
    border-radius: 10px;
}

#pinCancelBtn {
    background-color: hsl(var(--accent)) !important;
    min-height: 50px !important;
    min-width: 90% !important;
    margin-top: 10px;
    color: hsl(var(--primary));
    border-radius: 10px;
}

#pinCommentBtn.pinned svg {
  fill: hsl(var(--primary)) !important;
  stroke: hsl(var(--primary));
}

#sPopupCloseBtn {
    background-color: hsl(var(--accent));
    width: 280px;
    height: 50px;
    border-radius: 16px;
    position: absolute;
    bottom: 20px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.videoSlot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.videoSlot video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#reportForm input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid hsl(var(--accent));
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background-color 0.3s, border-color 0.3s;
}

#reportForm input[type="radio"]:checked {
    background-color: hsl(var(--accent));
    border-color: black;
}

#reportForm input[type="radio"]:hover {
    border-color: #555;
}

#reportOptions {
    width: 400px;
    height: 210px;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--primary));
    color: hsl(var(--accent));
    border-radius: 16px;
}

#reportForm {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    padding-top: 30px;
}

#sendReportBtn {
    background-color: hsl(var(--primary));
    color: hsl(var(--accent));
    width: 400px;
    height: 60px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
}

.channelVideoOptions {
    min-width: 30px;
    min-height: 30px;

    position: absolute;
    z-index: 999;
    bottom: 10px;
    right: 10px;
    border-radius: 16px;

    background-color: rgba(161, 160, 157, 0.63);
    backdrop-filter: blur(10px);
    color: white;
    line-height: 23px;
    text-align: center;
    font-size: 22px;

    cursor: pointer;
}

.channelVideoContextMenu {
    min-height: 70px;
    min-width: 150px;
    bottom: 50px;
    right: 10px;

    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #838383c9;

    border-radius: 16px;

    backdrop-filter: blur(10px);
}

.deleteVideoBtn {
    z-index: 9999999999;
    min-width: 100%;
    max-height: 50px;
    margin-top: 5px;
    text-align: left;
    padding-left: 15px;
    color: white;
}

.videoSlot {
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    background: black;
}

.viewVideoStatsBtn {
    z-index: 9999999999;
    min-width: 100%;
    max-height: 50px;
    text-align: left;
    padding-left: 15px;
    color: white;
}

#uploadProgress {
    width: 400px;
    height: 15px;
    z-index: 9999999999;

    margin-left: 290px;
    margin-top: 10px;
    border-radius: 8px;
}

#uploadProgressFill {
    width: 0%;
    height: 100%;
    background-color: hsl(var(--primary));
    transition: width 0.3s ease;
    border-radius: 8px;
}

.likesCount {
    position: absolute;
    color: hsl(var(--primary));
    margin-bottom: -30px;
    margin-right: 0px;
    font-size: 14px;
}

#addFriendButton {
    background-color: hsl(var(--primary));
    color: hsl(var(--accent));
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 400px;
    max-width: 90vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

#addFriendButton:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--primary));
}

        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(30px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        #changelogsPopup {
            position: fixed;
            top: 0;
            left: 0;
            min-width: 100vw !important;
            min-height: 100vh !important;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000000000000;
        }

        #changelogsContent {
            background: linear-gradient(145deg, #ffffff, #f8faff);
            border-radius: 24px;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.2);
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #changelogsHeader {
            background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent)));
            padding: 32px;
            text-align: center;
            border-radius: 24px 24px 0 0;
            top: 0 !important;
            position: absolute;
            overflow: hidden;
            width: 100%;
            left: 0;
        }

        #changelogsHeader::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
            opacity: 0.5;
        }

        #closeChangelogs {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: hsl(var(--primary));
            font-size: 24px;
            transition: all 0.2s ease;
            z-index: 10;
            padding-bottom: 2px;
        }

        #closeChangelogs:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        #changelogsIcon {
            width: 80px;
            height: 80px;
            background: hsl(var(--accent));
            border-radius: 20px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 5;
        }

        #changelogsIcon svg {
            width: 40px;
            height: 40px;
            color: hsl(var(--primary));
        }

        #changelogsBody {
            padding: 32px;
            margin-top: 210px !important;
        }

        #changelogsWelcome {
            text-align: center;
            color: #374151;
            font-size: 18px;
            margin-bottom: 32px;
            line-height: 1.6;
        }

        #changelogsFeatures {
            display: grid;
            gap: 20px;
            margin-bottom: 32px;
        }

        #changelogFeature {
            background: linear-gradient(145deg, #f8fafc, #e2e8f0);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            transition: all 0.3s ease;
            border: 1px solid rgba(99, 102, 241, 0.1);
        }

        #changelogFeature:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(122, 122, 122, 0.15);
            border-color: rgba(143, 143, 143, 0.3);
        }

        #changelogFeatureIcon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--secondary)));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        #changelogFeatureIcon svg {
            width: 24px;
            height: 24px;
            color: hsl(var(--primary));
        }

        #changelogFeatureContent h3 {
            color: #1f2937;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        #changelogFeatureContent p {
            color: #6b7280;
            font-size: 14px;
            line-height: 1.5;
        }

        #changelogNewBadge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 12px;
            margin-left: auto;
            flex-shrink: 0;
        }

        .popup-footer {
            background: #f8fafc;
            padding: 24px 32px;
            border-radius: 0 0 24px 24px;
            display: flex;
            gap: 12px;
            margin-top: -70px;
            justify-content: flex-end;
        }

        #changelogBtn {
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }

        .changelogBtnPrimary {
            background: hsl(var(--primary));
            color: hsl(var(--secondary));
            box-shadow: 0 4px 12px rgba(155, 155, 155, 0.4);
            width: 100%;
        }

        .changelogBtnPrimary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(43, 43, 43, 0.5);
        }