/* ===================================
   WATCH PAGE STYLES
   =================================== */

/* === BODY === */
body {
    padding-top: 0;
    font-family: 'Open Sans', sans-serif;
}

/* === MAIN LAYOUT === */
.wrapper {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    padding: 20px 8.33vw;
    /*min-height: calc(100vh - 80px);*/
    overflow: hidden;
    width: 100%;
}

.leftArea {
    flex: 1;
    max-width: calc(100% - 300px);
}

/* === VIDEO PLAYER === */
.playerWrapper {
    position: relative;
    margin-bottom: 20px;
}

#player {
    min-height: 200px;
}

/* === WATCHING OVERLAYS === */
.watching {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    right: 0;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
}

.watching .background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000000;
    opacity: 0.9;
    z-index: 101;
}

.watching .watchLabel {
    margin: 150px auto 0 auto;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    z-index: 102;
}

#watch_children.watching .watchLabel {
    margin: 100px auto 60px auto;
}

.watching .stillWatching {
    width: 269px;
    height: 60px;
    background-color: #f2b632;
    z-index: 102;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #000000;
    position: relative;
    display: block;
    border: none;
    padding-top: 8px;
    margin: 0 auto;
    cursor: pointer;
}

.watching .childSite {
    z-index: 102;
    position: relative;
    margin-top: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.watching .childSite .icon {
    width: 100px;
    margin-right: 20px;
}

.watching .childSite .name a {
    color: #f2b632;
    text-decoration: none;
}

/* === UNMUTE OVERLAY === */
#unmute {
    position: absolute;
    width: 100%;
    height: calc(100% - 40px);
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    right: 0;
    margin: 0 auto;
}

#unmute .background {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    opacity: 0.9;
    z-index: 101;
}

#unmute #icon {
    display: block;
    margin: 150px auto 0 auto;
    z-index: 102;
    position: relative;
}

#unmute #message {
    width: 460px;
    margin: 50px auto 0 auto;
    z-index: 102;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.42;
    text-align: center;
    color: #ffffff;
}

/* === OG POPUP === */
#player #ogPopup {
    position: absolute;
    right: 13px;
    bottom: 54px;
    width: 273px;
    height: 86px;
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
    box-sizing: border-box;
    padding: 6px 50px;
    overflow: hidden;
    display: none;
}

#player #ogPopup a {
    text-decoration: none;
}

#player #ogPopup .closeButton {
    position: absolute;
    top: 8px;
    right: 14px;
    height: 16px;
    cursor: pointer;
}

#player #ogPopup .more_videos {
    text-align: center;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

#player #ogPopup .more_videos_button {
    width: 134px;
    height: 28px;
    background-color: #c29444;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    margin: 0 auto;
    padding-top: 8px;
    box-sizing: border-box;
    cursor: pointer;
    margin-top: 10px;
}

#player #ogPopup .more_videos_button:hover {
    background-color: #766241;
}

/* === NO REWARDS POPUP === */
.noRewards {
    width: 530px;
    min-height: 195px;
    background-color: var(--surface);
    position: fixed;
    top: 100px;
    left: 50px;
    box-shadow: 0 4px 9px 2px rgba(0, 0, 0, 0.25);
    z-index: 5;
    opacity: 0;
    border-radius: 8px;
}

.noRewards .close {
    position: absolute;
    width: 16px;
    top: 12px;
    right: 18px;
    cursor: pointer;
}

.noRewards .icon {
    display: block;
    float: left;
    margin: 43px 20px 0 40px;
}

.noRewards .data {
    float: left;
    width: 445px;
    margin-top: 40px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    font-size: 14px;
    padding-bottom: 20px;
    margin-left: 40px;
}

.noRewards .data > .title {
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: bold;
}

.noRewards .data > .title span {
    color: #d45151;
}

.noRewards .data .description {
    margin: 14px 0;
}

.noRewards .data .button {
    width: 136px;
    height: 40px;
    background-color: #d8d8d8;
    text-align: center;
    padding-top: 13px;
    box-sizing: border-box;
    cursor: pointer;
    float: right;
    font-weight: bold;
    color: #797979;
}

.noRewards .data .button:hover {
    background-color: #CDCDCD;
}

.noRewards .data .causes {
    display: none;
}

.noRewards .data .separator {
    height: 2px;
    width: 100%;
    background-color: var(--border);
    margin: 15px 0;
}

.noRewards .data .causes .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.noRewards .data .causes li {
    margin-left: 16px;
    margin-bottom: 5px;
}

.noRewardsButton {
    float: left;
    background-color: #cdcdcd !important;
    color: #9b9b9b !important;
}

/* === HIDE NEXT VIDEO POPUPS === */
.jw-nextup-container {
    display: none !important;
}

/* Connatix next up overlay */
.cnx-next-up-container,
.cnx-nextup-container,
[class*="nextup"],
[class*="next-up"] {
    display: none !important;
}

.advertisementLabel {
    width: 114px;
    height: 31px;
    border-radius: 20px 20px 0 0;
    background-color: #000000;
    color: #FFFFFF;
    padding-top: 4px;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    display: none;
    position: absolute;
    left: 50%;
    margin-left: -57px;
    top: -20px;
    text-align: center;
}

/* === BALANCE BLOCK === */
.balance-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-block);
    padding: 10px 30px;
    margin-bottom: 20px;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
}

.pts_value {
    font-size: 34px !important;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.pts_after_text {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.balance-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--muted);
}

.balance-redeem-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: capitalize;
}

.balance-redeem-btn:hover {
    background: var(--primary-2);
}

/* === VIDEO INFO BLOCK === */
.video-info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
}

.video-info-main {
    flex: 1;
    max-width: 70%;
    padding-right: 20px;
}

.wrapper .leftArea .title, .wrapper .leftArea .title h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 48px;
    text-transform: capitalize;
    color: var(--text);
    margin: 0 0 12px 0;
}

.video-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 40%;
}

.meta-right {
    flex-shrink: 0;
}

.info {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
}

.views-date {
    font-size: 18px;
    line-height: 24px;
}

.video-channel {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.channel-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.channel-link:hover {
    color: var(--text);
}

.subscribe-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: var(--primary-2);
}

/* === VIDEO ACTIONS (Right Side Buttons) === */

.video-actions {
    display: flex;
    flex-direction: row;
    gap: 48px;
    flex: 0 0 auto;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    cursor: pointer;
}

.action-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-item:has(.action-btn.disabled) .action-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-item:has(.action-btn.disabled):hover .action-label {
    color: var(--icon-muted);
}

/* === ACTION ICONS SVG === */
.action-icon {
    width: 24px;
    height: 24px;
    color: var(--icon-muted);
    transition: color 0.2s;
}

.action-item:hover .action-icon {
    color: var(--accent);
}

/* Like button - match .action-label style */
#likes {
    color: var(--icon-muted);
    transition: color 0.2s;
}

.action-item:hover #likes {
    color: var(--accent);
}

.action-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--icon-muted);
    text-align: center;
    transition: color 0.2s;
    cursor: pointer;
}

.action-item:hover .action-label {
    color: var(--accent);
}

/* === DROPDOWN CONTENT STYLES FOR ACTION BUTTONS === */
.action-item .dropshare-content,
.action-item .dropshare-report-content,
.dropshare .dropshare-content,
.dropshare .dropshare-report-content {
    position: absolute;
    top: -10000px;
    left: 0;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    display: block;
}

/* Override the #report-video-modal display:none */
#report-video-modal.dropshare-report-content {
    display: block;
    top: -10000px;
}

/* Share Video Modal */
.share-video-modal-box {
    padding: 16px;
}

.share-video-modal-box .content-heading h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    text-align: center;
}

.share-video-modal-box .content-body .buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.share-video-modal-box .buttons .fbsharelink,
.share-video-modal-box .buttons .twitter-share-button {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    align-content: center;
    height: 30px;
}

.share-video-modal-box .buttons .fbsharelink:hover,
.share-video-modal-box .buttons .twitter-share-button:hover {
    background: var(--primary-2);
}

.share-video-modal-box .buttons .share-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    box-sizing: border-box;
}

/* Report Video Modal */
.report-video-modal-box {
    padding: 16px;
}

.report-video-modal-box .content-heading h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    text-align: center;
}

.report-video-modal-box .content-body .report-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    resize: vertical;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.report-video-modal-box .content-body .hint {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0;
}

.report-video-modal-box .content-body .hint span {
    color: #d45151;
}

.report-video-modal-box .content-body .send-report {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.report-video-modal-box .content-body .send-report:hover {
    background: var(--primary-2);
}

/* Rewards Dropdown */
.dropdown {
    position: relative;
}

.dropdown .dropdown-content {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--surface);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    display: none;
}

/* Action item dropdown positioning */
.action-item.dropdown .dropdown-content {
    top: 60px;
    left: 70%;
    transform: translateX(-50%);
}

.share-rewards-modal-box {
    padding: 10px;
}

.share-rewards-modal-box .content-heading h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    text-align: center;
}

.share-rewards-modal-box .content-body,
.share-rewards-modal-box .content-login {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
}

.share-rewards-modal-box .content-login {
    text-align: center;
}

.share-rewards-modal-box .content-login .pointsVal {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

.share-rewards-modal-box .content-login .smoresPoints {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 15px;
}

.share-rewards-modal-box .content-login #redeem_btn {
    margin: 15px 0;
}

.share-rewards-modal-box .content-login .redeem_button {
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.share-rewards-modal-box .content-login .redeem_button:hover {
    background: var(--primary-2);
}

.share-rewards-modal-box .promo-code-watch-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.share-rewards-modal-box .promo-code-watch-wrapper .daily_code_text {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.share-rewards-modal-box .promo-code-watch-wrapper .promo-input-box {
    width: 100px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    height: 30px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.share-rewards-modal-box .promo-code-watch-wrapper .enter-promo-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    margin-left: 5px;
}

.share-rewards-modal-box #infoMsg {
    margin-top: 10px;
    font-size: 12px;
}

/* Droptop content (tooltip for rewards) */
.droptop-content {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: none;
    min-width: 200px;
}

.droptop-content .earning-info {
    text-align: center;
}

.droptop-content .earning-content {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.droptop-content #gotStatus {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Like button active state */
#likes.liked-buttons {
    color: var(--primary);
}

#likes.liked-buttons .action-icon path {
    fill: var(--primary);
    stroke: var(--primary);
}

/* === ACTION BUTTONS === */

.video-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.custom-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-buttons:hover {
    background: var(--bg-2);
    border-color: var(--primary);
}

.custom-buttons img.button-icons {
    width: 20px;
    height: 20px;
}

/* Subscribe button */

.subscribe-button {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.subscribe-button:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

/* === VIDEO DESCRIPTION === */

.og_info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.og_info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.og_info a {
    color: var(--primary);
    text-decoration: none;
}

.og_info a:hover {
    text-decoration: underline;
}

.wrapper .leftArea .description {
    color: var(--text);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    white-space: pre-wrap;
}

/* === COMMENTS === */

.comments-wrapper {
    margin-top: 5px;
}

.comments-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.comment {
    border-radius: 12px;
}

#comments-container li.title {
    display: none;
}

.actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.action.reply {
    margin-right: auto;
}

.action.upvote {
    margin-left: auto;
}

.separator {
    display: none;
}

/* === RIGHT SIDEBAR === */

.rightArea {
    max-width: 270px;
    box-sizing: border-box;
    float: left;
    /*margin-bottom: 100px;*/
}

.rightArea h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rightArea .upNext {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--text);
}

.rightArea .nextVideoBox {
    margin-bottom: 20px;
}

.rightArea .sideVideoThumb {
    float: left;
}

.rightArea .nextVideoBox .thumbnail {
    width: 230px;
    height: 130px;
    margin-right: 10px;
    margin-bottom: 6px;
    background-color: var(--bg-2);
    background-size: cover;
    background-position: center;
    position: relative;
}

.rightArea .nextVideoBox .title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 5px;
}

.rightArea .nextVideoBox .duration {
    background-color: #000000;
    padding: 0 4px;
    position: absolute;
    width: auto;
    color: #ffffff;
    bottom: 4px;
    right: 4px;
    line-height: 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
}

.rightArea .nextVideoBox .name,
.rightArea .nextVideoBox .views {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.rightArea .nextVideoBox .name,
.rightArea a,
.channel-link-holder {
    text-decoration: none;
    color: var(--primary);
}

.rightArea .nextVideoBox .name:hover,
.rightArea a:hover,
.channel-link-holder:hover {
    opacity: 0.8;
}

.rightArea .upNext {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 16px;
}

.rightArea .nextVideoBox {
    margin-bottom: 20px;
}

.rightArea .sideVideoThumb {
    float: left;
}

.rightArea .nextVideoBox .thumbnail {
    width: 230px;
    height: 130px;
    margin-right: 10px;
    margin-bottom: 6px;
    background-color: var(--bg-2);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
}

.rightArea .nextVideoBox .duration {
    background-color: #000000;
    padding: 0 4px;
    position: absolute;
    width: auto;
    color: #ffffff;
    bottom: 4px;
    right: 4px;
    line-height: 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    border-radius: 4px;
}

.rightArea .nextVideoBox .title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 5px;
}

.rightArea .nextVideoBox .title a {
    color: var(--text);
    text-decoration: none;
}

.rightArea .nextVideoBox .title a:hover {
    color: var(--primary);
}

.rightArea .nextVideoBox .name,
.rightArea .nextVideoBox .views {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.rightArea .nextVideoBox .info {
    overflow: hidden;
}

/* === POPULAR VIDEOS === */
.video-card-small {
    display: flex;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 12px;
}

.video-card-small:hover {
    transform: translateX(4px);
}

.video-card-small .thumbnail {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    position: relative;
    flex-shrink: 0;
}

.video-card-small .thumbnail .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.video-card-small .video-info {
    flex: 1;
}

.video-card-small .video-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card-small .video-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: var(--muted);
}


/* === POPULAR VIDEOS SECTION === */
.popular-videos-section {
    position: relative;
}

.popular-videos-section h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
}

/* Carousel wrapper - for buttons positioning */
.popular-videos-carousel-wrapper {
    position: relative;
}

.popular-videos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-video-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.popular-video-card:hover {
    transform: translateY(-2px);
}

.popular-thumbnail {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    position: relative;
    margin-bottom: 12px;
}

.popular-thumbnail .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.popular-video-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-video-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

/* Navigation buttons - hidden by default (desktop sidebar mode) */
.popular-videos-prev,
.popular-videos-next {
    display: none;
}

/* Desktop > 1200px: sidebar mode (vertical list, no buttons) */
@media (min-width: 1201px) {
    .popular-videos-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .popular-thumbnail {
        height: 160px;
    }

    .popular-videos-prev,
    .popular-videos-next {
        display: none !important;
    }
}

/* Tablet/Small desktop 769px - 1200px: horizontal carousel with buttons */
@media (min-width: 769px) and (max-width: 1200px) {
    .rightArea {
        max-width: 100%;
        width: 100%;
        float: none;
        margin-bottom: 0;
        padding: 0;
    }

    .popular-videos-section {
        margin-left: -3.33vw;
        margin-right: -3.33vw;
        padding: 30px 0;
    }

    .popular-videos-section h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 20px 0;
        padding-left: 3.33vw;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .popular-videos-section h3::after {
        content: '';
        display: block;
        width: 30px;
        height: 4px;
        background: var(--primary);
        margin-top: 12px;
    }

    .popular-videos-carousel-wrapper {
        position: relative;
        overflow: visible;
    }

    .popular-videos-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
        margin: -20px 0;
    }

    .popular-videos-list::-webkit-scrollbar {
        display: none;
    }

    .popular-video-card {
        flex: 0 0 auto;
        width: 270px;
        transition: transform 0.3s ease;
    }

    .popular-video-card:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    .popular-thumbnail {
        width: 270px;
        height: 160px;
        border-radius: 12px;
        transition: all 0.3s;
    }

    .popular-video-card:hover .popular-thumbnail {
        border: 2px solid var(--video-card-hover-border);
        border-radius: 0;
    }

    .popular-video-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.2s ease;
        max-height: 2.8em;
        white-space: normal;
        margin-bottom: 4px;
    }

    .popular-video-card:hover .popular-video-title {
        color: var(--primary);
    }

    .popular-video-meta {
        font-size: 14px;
        color: var(--muted);
    }

    /* Show navigation buttons - same as Featured Video */
    .popular-videos-prev,
    .popular-videos-next {
        display: flex;
        position: absolute;
        top: 15px;
        width: 100px;
        height: 270px;
        background: var(--carousel-button-bg);
        backdrop-filter: blur(5px);
        border: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        transition: all 0.2s;
        overflow: hidden;
    }

    .popular-videos-prev {
        left: 0;
        transform-origin: left center;
    }

    .popular-videos-next {
        right: 0;
        transform-origin: right center;
    }

    .popular-videos-prev:hover,
    .popular-videos-next:hover {
        transform: scale(1.1);
    }

    .popular-videos-prev:hover img,
    .popular-videos-next:hover img {
        transform: scale(1.3);
    }

    .popular-videos-prev img,
    .popular-videos-next img {
        transition: transform 0.2s;
    }

    /* Light theme arrows */
    .popular-videos-prev img {
        content: url('/assets/img/left-arrow.png');
    }

    .popular-videos-next img {
        content: url('/assets/img/right-arrow.png');
    }

    /* Dark theme arrows */
    .theme-dark .popular-videos-prev img {
        content: url('/assets/img/left-arrow-dark.png');
    }

    .theme-dark .popular-videos-next img {
        content: url('/assets/img/right-arrow-dark.png');
    }

    .popular-videos-prev:disabled,
    .popular-videos-next:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

@media (max-width: 900px) {
    .popular-videos-prev,
    .popular-videos-next {
        width: 60px;
        height: 250px;
    }
}

/* Mobile <= 768px: horizontal carousel with swipe only (no buttons) */
@media (max-width: 768px) {
    .rightArea {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .popular-videos-section {
        margin-top: 0;
        padding: 0;
    }

    .popular-videos-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .popular-videos-section h3::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: var(--accent);
        margin-top: 12px;
    }

    .popular-videos-carousel-wrapper {
        position: relative;
    }

    .popular-videos-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 10px 10px;
        margin: 0;
    }

    .popular-videos-list::-webkit-scrollbar {
        display: none;
    }

    .popular-video-card {
        flex: 0 0 auto;
        width: 270px;
        scroll-snap-align: start;
    }

    .popular-thumbnail {
        width: 270px;
        height: 160px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .popular-video-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 4px;
    }

    .popular-video-meta {
        font-size: 14px;
    }

    /* Hide navigation buttons on mobile - swipe only */
    .popular-videos-prev,
    .popular-videos-next {
        display: none !important;
    }

    /* Hide banner on mobile */
    .rightArea .bannerBg {
        display: none;
    }
}

/* Disable hover effects on touch devices for Popular Videos */
@media (hover: none), (pointer: coarse) {
    .popular-videos-prev:hover,
    .popular-videos-next:hover {
        transform: none;
    }

    .popular-videos-prev:hover img,
    .popular-videos-next:hover img {
        transform: none;
    }

    .popular-video-card:hover {
        transform: none;
    }

    .popular-video-card:hover .popular-thumbnail {
        border: none;
    }
}

/* === FEATURED VIDEOS === */
.featured-videos-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.featured-videos-section h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.locationPrompt {
    display: none;
    height: 200px;
    width: 500px;
    max-width: 90%;
    background-color: #ffffff;
    position: absolute;
    border: 1px solid #AAAAAA;
    top: 250px;
    left: 0px;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
}

.locationPrompt .message {
    width: 90%;
    margin: 20px auto 50px auto;
    text-align: center;
}

.locationPrompt #locationButton {
    width: 100px;
    height: 30px;
    margin: 0 auto;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1400px) {
    .wrapper {
        padding: 20px 5.71vw;
    }

}

@media (max-width: 1200px) {
    .wrapper {
        padding: 20px 3.33vw;
        flex-direction: column;
    }

    .leftArea {
        max-width: 100%;
        padding-right: 0;
    }

    .rightArea {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .wrapper {
        padding: 16px 16px;
    }

    .title h1 {
        font-size: 20px;
    }


    /* Hide carousel buttons on mobile - use swipe instead */
    .pp-featured-video-prev,
    .pp-featured-video-next {
        display: none !important;
    }

    /* Featured Video section padding - only left */
    .pp-featured-video-container .pp-section-header {
        padding-left: 10px;
    }

    .pp-featured-video-container .pp-section-header h2 {
        font-size: 18px;
    }

    .pp-view-more {
        font-size: 18px;
    }

    .pp-featured-video-carousel-wrapper {
        padding-left: 10px;
    }

    .pp-featured-video-carousel {
        padding: 20px 0;
        margin: -20px 0;
    }

    /* Override popup.css rightArea styles */
    .wrapper .rightArea {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 425px) {
    .leftArea {
        padding-right: 10px;
    }
}

/* === UTILITY === */

.clear {
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* === Featured Video Section === */
.pp-featured-video-section {
    padding: 30px 0;
}

.pp-featured-video-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.pp-featured-video-container .pp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 160px;
    margin-bottom: 20px;
}

.pp-featured-video-container .pp-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pp-featured-video-container .pp-section-header h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background: var(--primary);
    margin-top: 12px;
}

.pp-view-more {
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
}

.pp-view-more:hover {
    opacity: 0.8;
}

.pp-featured-video-carousel-wrapper {
    position: relative;
    overflow: visible;
}

.pp-featured-video-carousel {
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}

.pp-featured-video-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s ease;
}

.pp-featured-video-item {
    flex: 0 0 auto;
    min-width: 0;
    width: 270px;
    transition: transform 0.3s ease;
}

.pp-featured-video-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.pp-featured-video-item .videoItem {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pp-featured-video-item .videoItem .image {
    width: 270px;
    height: 160px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.pp-featured-video-item:hover .videoItem .image {
    border: 2px solid var(--video-card-hover-border);
    border-radius: 0;
}

.pp-featured-video-item .videoItem .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 29, 29, 0.00) 0%, rgba(1, 15, 41, 0.72) 80.79%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.pp-featured-video-item .videoItem .image:hover .overlay {
    opacity: 1;
}

/* Play button with SVG icon */
.pp-featured-video-item .videoItem .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pp-featured-video-item .videoItem .play-button::after {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url('/assets/img/icons/play-arrow-video.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pp-featured-video-item .videoItem .image:hover .play-button {
    opacity: 1;
}

.pp-featured-video-item .videoItem .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    opacity: 1;
}

.pp-featured-video-item .videoItem .details {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-featured-video-item .videoItem .videoname_linkdiv {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    max-height: 2.8em;
}

.pp-featured-video-item .videoItem .videoname_linkdiv:hover {
    color: var(--primary);
}

.pp-featured-video-item .videoItem .video-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.pp-featured-video-item .videoItem .video-meta .meta-separator {
    color: var(--muted);
}

/* Navigation buttons */
.pp-featured-video-prev,
.pp-featured-video-next {
    position: absolute;
    top: 5px;
    width: 100px;
    height: 280px;
    background: var(--carousel-button-bg);
    backdrop-filter: blur(5px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    overflow: hidden;
}

.pp-featured-video-prev:hover,
.pp-featured-video-next:hover {
    transform: scale(1.1);
}

.pp-featured-video-prev:hover img,
.pp-featured-video-next:hover img {
    transform: scale(1.3);
}

.pp-featured-video-prev img,
.pp-featured-video-next img {
    transition: transform 0.2s;
}

.pp-featured-video-prev {
    left: 0;
    transform-origin: left center;
}

.pp-featured-video-next {
    right: 0;
    transform-origin: right center;
}

/* Light theme arrows */
.pp-featured-video-prev img {
    content: url('/assets/img/left-arrow.png');
}

.pp-featured-video-next img {
    content: url('/assets/img/right-arrow.png');
}

/* Dark theme arrows */
.theme-dark .pp-featured-video-prev img {
    content: url('/assets/img/left-arrow-dark.png');
}

.theme-dark .pp-featured-video-next img {
    content: url('/assets/img/right-arrow-dark.png');
}

.pp-featured-video-prev:disabled,
.pp-featured-video-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1600px) {
    .pp-featured-video-container .pp-section-header {
        padding: 0 80px;
    }
}

@media (max-width: 1200px) {
    .pp-featured-video-container .pp-section-header {
        padding: 0 40px;
    }

    .pp-featured-video-container .pp-section-header h2 {
        font-size: 18px;
    }

    .pp-view-more {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .pp-featured-video-container .pp-section-header {
        padding: 0 20px;
    }

    .pp-featured-video-prev,
    .pp-featured-video-next {
        width: 60px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .pp-featured-video-section {
        padding: 20px 0;
    }

    .pp-featured-video-container .pp-section-header {
        padding-left: 10px;
    }

    .pp-featured-video-container .pp-section-header h2 {
        font-size: 16px;
    }

    .pp-view-more {
        font-size: 18px;
    }

    .pp-featured-video-carousel-wrapper {
        padding-left: 10px;
    }

    .pp-featured-video-prev,
    .pp-featured-video-next {
        width: 40px;
        height: 120px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none), (pointer: coarse) {
    /* Featured Video carousel navigation */
    .pp-featured-video-prev:hover,
    .pp-featured-video-next:hover {
        transform: none;
    }

    .pp-featured-video-prev:hover img,
    .pp-featured-video-next:hover img {
        transform: none;
    }

    /* Featured Video card hover effects */
    .pp-featured-video-item:hover {
        transform: none;
        z-index: auto;
    }

    .pp-featured-video-item:hover .videoItem .image {
        border: none;
        border-radius: 12px;
    }

    .pp-featured-video-item .videoItem .image:hover .overlay {
        opacity: 0;
    }

    .pp-featured-video-item .videoItem .image:hover .play-button {
        opacity: 0;
    }
}

/* === TABLET RESPONSIVE (601px - 1024px) === */
@media (min-width: 601px) and (max-width: 1024px) {
    .video-info-block {
        flex-wrap: wrap;
    }

    .video-info-main {
        max-width: 100%;
        width: 100%;
        padding-right: 0;
    }

    .video-info-main .title,
    .video-info-main .title h1,
    .wrapper .leftArea .title,
    .wrapper .leftArea .title h1 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    /* Keep meta-line horizontal with subscribe on right of meta-left */
    .video-meta-line {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }

    .meta-left {
        flex: 1;
        min-width: 0;
    }

    .views-date {
        font-size: 14px;
        line-height: 20px;
    }

    /* Channel name */
    .video-channel {
        display: block;
        width: 100%;
    }

    /* Subscribe button - stays on right of meta-left */
    .meta-right {
        flex-shrink: 0;
    }

    .subscribe-btn {
        font-size: 14px;
        padding: 10px 20px;
        text-align: center;
        white-space: nowrap;
    }

    /* Video Actions - full width, force new row */
    .video-actions {
        width: 100%;
        flex: 0 0 100%;
        justify-content: space-between;
        gap: 0;
        margin-top: 16px;
        text-align: center;
    }

    .video-actions .action-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .action-icon {
        width: 24px;
        height: 24px;
    }

    .action-label {
        font-size: 14px;
    }

    .wrapper .leftArea .description {
        font-size: 14px;
    }
}

/* === MOBILE RESPONSIVE (600px and below) - Subscribe button full width === */
@media (max-width: 600px) {
    .video-info-block {
        flex-wrap: wrap;
    }

    .video-info-main {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .video-info-main .title,
    .video-info-main .title h1,
    .wrapper .leftArea .title,
    .wrapper .leftArea .title h1 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .video-meta-line {
        flex-direction: column;
        gap: 12px;
    }

    .meta-left {
        width: 100%;
    }

    .views-date {
        font-size: 14px;
        line-height: 20px;
    }

    /* Subscribe button - full width centered */
    .meta-right {
        width: 90%;
        margin: 0 auto;
    }

    .subscribe-btn {
        width: 100%;
        font-size: 16px;
        padding: 0;
        height: 40px;
    }

    /* Video Actions - force new row */
    .video-actions {
        width: 100%;
        flex: 0 0 100%;
        justify-content: space-between;
        gap: 0;
        margin-top: 16px;
    }

    .video-actions .action-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .action-icon {
        width: 24px;
        height: 24px;
    }

    .action-label {
        font-size: 14px;
    }

    .wrapper .leftArea .description {
        font-size: 14px;
    }
}

/* === MOBILE RESPONSIVE (425px and below) === */
@media (max-width: 425px) {
    .wrapper {
        padding: 16px 0 16px 10px;
    }


    /* Balance block */
    .balance-block {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .balance-redeem-btn {
        width: 90%;
        margin: 0 auto;
    }

    /* Breadcrumb */
}

/* === MOBILE RESPONSIVE (375px) === */
@media (max-width: 375px) {
    .wrapper {
        padding: 16px 0 16px 10px;
    }


    .video-info-block {
        gap: 12px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .video-info-main .title,
    .video-info-main .title h1,
    .wrapper .leftArea .title,
    .wrapper .leftArea .title h1 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
    }

    .video-meta-line {
        gap: 10px;
    }

    .views-date {
        font-size: 14px;
    }

    .video-channel,
    .channel-link {
        font-size: 14px;
    }

    .subscribe-btn {
        font-size: 14px;
        padding: 0;
        height: 40px;
    }

    /* Video Actions - full width spread */
    .video-actions {
        gap: 0;
    }

    .action-btn {
        width: 36px;
        height: 36px;
    }

    .action-icon {
        width: 24px;
        height: 24px;
    }

    .wrapper .leftArea .description {
        font-size: 14px;
    }

    .action-label {
        font-size: 14px;
    }

    /* Balance block */
    .balance-block {
        padding: 10px 12px;
    }

    .balance-value,
    .pts_value {
        font-size: 22px;
    }

    .pts_after_text {
        /*font-size: 13px;*/
    }

    .balance-label {
        /*font-size: 14px;*/
    }

    .balance-redeem-btn {
        padding: 10px 20px;
    }
}