.brx-body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    background: #F5F5F5 !important;
}

.container>.row {
    margin: 0 auto;
    gap: 20px;
    justify-content: center;
    width: 80%;
}
.videoTitle {
    color: #000000;
    white-space: nowrap;
    width: 375px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.thumbnail {
    width: 100%;
    border-radius: 10px;
}

.progressPanel {
    background: #DBEBFB;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
}

.duration {
    color: #007FFF;
    font-weight: 500;
}

.tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    color: white;
}

.tabs li {
    cursor: pointer;
    font-family: 'Inter';
    background: #fff;
    border-radius: 10px;
    padding: 3px 30px;
    font-size: 20px;
    font-weight: 700;
    color: #007FFF;
}

.tabs li.active {
    background: #007FFF;
    border: 1px solid #007FFF;
    color: #fff;
}


.myprogress.hide,
.justVideo.hide {
    display: none;
}
.downloadButton {
    display: flex;
    align-items: center;
    justify-content: center !important;
    padding: 10px;
}

.downloadButton button {
    cursor: pointer;
    display: flex;
    background-color: #32CD32;
    color: #ffffff;
    border-radius: 10px;
    border: none;
    padding: 5px 15px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.downloadButton button:focus {
    border: 0;
}

.downloadButton .icon {
    background: url("<?= get_stylesheet_directory_uri(); ?>/directdownload.png");
    background-size: cover;
    width: 15px;
    height: 15px;
}

.downloadAudioVideo.hide {
    display: none;
}

.downloadAudioVideo a {
    display: flex;
    cursor: pointer;
    background-color: #5CB85C;
    color: #ffffff;
    border-radius: 10px;
    border: none;
    padding: 10px 25px;
    gap: 5px;
    text-decoration: none;
    align-items: center;
    width: auto;
    height: auto;
    font-size: 25px;
    font-weight: 600;
}

.downloadAudioVideo a:hover {
    text-decoration: none;
    color: #ffffff;
}

.downloadAudioVideo a .icon {
    background: url("<?= get_stylesheet_directory_uri(); ?>/directdownload.png");
    background-size: cover;
    width: 22px;
    height: 22px;
}
.social {
    gap: 30px;
    font-weight: 500;
}

.social label {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view .icon {
    background: url("<?= get_stylesheet_directory_uri(); ?>/views.png");
    background-size: cover;
    width: 18px;
    height: 18px;
}

.like .icon {
    background: url("<?= get_stylesheet_directory_uri(); ?>/likes.png");
    background-size: cover;
    width: 18px;
    height: 18px;
}

.comment .icon {
    background: url("<?= get_stylesheet_directory_uri(); ?>/comments.png");
    background-size: cover;
    width: 18px;
    height: 18px;
}

.videoDetail {
    display: flex;
}

.error-box {
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    height: 500px;
}

.error .message {
    background-color: #fffce5;
    border-color: #e8e5cf;
    padding: 18px;
    text-align: center;
}

.error {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 100%;
}

.error.hide {
    display: none;
}


/* Mobile view */

.mobile-header {
    display: none;
}

.header div,.mobile-header th {
    display: table-cell;
    width: 33.33%;
    text-align: center;
    border-width: 0px !important;
    background: #EFEFEF;
    color: #ffffff;
    padding: 13px 20px;
    font-weight: 600;
}

th,
td {
    width: 33.33%
}

#goBack {
    color: #fff;
    background-color: #007FFF;
    border-color: #007FFF;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    border: 4px solid #007FFF;
}
.tabs {
    gap: 20px;
}

.tabs input[type="button"] {
    background: blue;
    border: none;
    border-radius: 5px;
    width: 80px;
    height: 30px;
}


@keyframes shine {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}


.footer {
    min-width: 310px;
    width: 100%;
    background: #3498db;
    font-size: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 60px; */
    color: #f5f5f5;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.progress-container {
    margin: 20px 0;
}

.progress {
    height: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    background-color: #007bff;
    transition: width 0.3s ease;
}

#progressText {
    font-weight: bold;
    color: #666;
}

.download-icon {
    display: inline-block;
    background: url("<?= get_stylesheet_directory_uri(); ?>/directdownload.png");
    background-size: cover;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}
.video-info-container {
    padding: 15px;
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

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

.video-thumbnail {
    flex: 0 0 240px;
    border-radius: 12px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-content {
    flex: 1;
    min-width: 0; /* Important for text truncation */
}

.video-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    max-width: 100%;
    /* Optional: limit to specific number of characters (roughly) */
    max-width: 30ch;
    cursor: help; /* Shows pointer on hover to indicate tooltip */
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duration {
    color: #0066CC;
    font-size: 14px;
}

.stats {
    display: flex;
    gap: 15px;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.stats i {
    color: #666;
}


/*
.status-display {
    margin-top: 40px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}*/

.loading-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    text-align: center;
}

.loading-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.alert.alert-warning {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    color: #00A82D;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
}

.home-btn {
    background-color: #007FFF;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}
form#downloadForm img.thumbnail {
    width: 270px;
    height: 300px;
    object-fit: cover;
    object-position: center;
}
#brxe-90b048 {
    display: none;
}
#brxe-flqxyl {
    display: none;
}
/* Container styling */
#brxe-c215b3 {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#brxe-58066f {
    font-size: 36px;
    font-weight: 700;
    color: #004225; /* Dark green */
    margin-bottom: 30px;
}

/* Input field */
#videoURL {
    width: 100%;
    max-width: 819px;
    padding: 8px 20px;
    font-size: 16px;
    border: 1px solid #0000001A;
    border-radius: 10px;
    background-color: #FFFFFF;
    margin-bottom: 40px;
    text-align: left;
    outline: none !important;
}
#videoURL::placeholder {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 18px;
    color: #8C8C8C;
    
}

/* Download button */
.btn-text-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}
#download {
    background-color: #00A82D !important;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 30px;
    cursor: pointer;
    min-width: 90px;
    height: 30px;    
    gap: 8px;
}
.paste-btn{
    width: 102px;
    background: #00A82D0F !important;
    border-radius: 6px;
    border: 1px solid #00A82D26;
    padding: 10px 20px;
    justify-content: center;
    display: flex;
}
button#pasteBtn , button#pasteBttn {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: 0;
    text-align: center;
    color: #00A82D;
}

#download span#btn-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
}
h1#brxe-58060f {
    padding: 0px !important;
    margin: 0;
    background: white;
    color: #063A14;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    line-height: 60px;
    text-align: center;
    margin-bottom: 60px;
}

/* Remove extra Bootstrap classes that interfere */
.mt-4,
.btn,
.btn-primary,
.btn-block,
.me-4,
.downbtnedit {
    all: unset;
}
.videoThumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}
table.list {
    width: 100%;
    border-collapse: collapse;
    color: #000;
    text-align: center;
}
table.list td {
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 16px;
    vertical-align: middle;
    color: #121212;
}
table.list tr {
    border-bottom: 1px solid #EFEFEF;
}
table.list button {
    display: flex;
    justify-content: center;
    padding: 8px 18px;
    background-color: #00A82D;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    min-width: 120px;
}
span.desktop-only, span.mobile-only {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #8C8C8C;
}
.format-section {
    height: auto;
    margin: 0 auto;
    border: 1px solid #c7c7c730;
    border-radius: 20px 20px 0px 0px;
}
.myprogress {
  margin: 20px auto; /* vertical centering via margin */
  font-family: Arial, sans-serif;
}
.label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
}
.progressPanel {
  width: 100%;
  height: 24px;
  background-color: #fff;
  border: 1px solid #00A82D;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
}
.progressbar {
  height: 24px;
  width: 0%;
  background-color: #00A82D;
  border-radius: 20px;
  transition: width 0.3s ease;
}
.percentage {
  color: #0a0;
  font-weight: bold;
}
.text-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.text-label #label {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0;
    color: #121212;
}
.text-label #percentagelabel {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0;
    color: #00A82D;
}
button.btn.home-btn {
    border: 1px solid #00A82D;
    padding: 11px 30px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #00A82D;
}
#downloadLinkContainer {
    justify-content: center;
    flex-direction: column;
    gap: 25px;
}
a#finalDownloadBtn {
    text-align: center;
    margin: 0 auto;
    width: 100%; 
    max-width: 260px; 
    background: #00A82D;
    padding: 11px 30px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #FFFFFF;
}
a#finalretryBtn {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 260px;
    border: 1px solid #00A82D;
    padding: 11px 30px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0;
    color: #00A82D;
}
button#download{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loader {
   width: 20px;
   height: 20px;
   border: 2px solid #fff;
   border-top: 2px solid transparent;
   border-radius: 50%;
   display: block;
   vertical-align: middle;
   animation: spin 0.7s linear infinite;
}
@keyframes spin {
   from { transform: rotate(0deg); }
   to { transform: rotate(360deg); }
}
/* bricks css  */

h2.fbheading {
    font-family: "Instrument Sans", sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: 0;
    text-align: center;
    color: #063A14;
}
form#fbForm {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.main-container {
    padding: 20px 40px;
}
.fbcontainer {
    margin: 0 5%;
    padding-top: 0;
    padding-bottom: 80px;
}
.mt-3 {
    text-align: center;
}

.text-center.Error {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
}
.text-center.Error .mb-3 {
    text-align: center;
}
main#brx-content {
    min-height: 100vh;
}
button.btn.home-btn.btn-error {
    border: 1px solid #00A82D;
    padding: 11px 30px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
    color: #00A82D;
    width: 200px;
    text-align: center;
    margin: 0 auto;
}
.text-center.Error .mb-3 {
    font-size: 20px;
    font-weight: normal;
    font-family: 'Outfit', sans-serif;
    color: #00A82D;
}
.text-center.Error .mb-3 {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.input-wrapper {
    width: 100%;
    text-align: center;
    position: relative;
}
thead.header th {
    font-size: 16px;
    font-weight: 400;
    padding: 10px;
}
/* more button */
.caret-bold {
    width: 18px;
    height: 18px;
    color: #ffffff;
    transform: rotate(180deg);
    transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.more-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-btn .caret-bold {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.more-btn.active .caret-bold {
    transform: rotate(180deg);
}

.morebtn-options-box {
    display: none;
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 40px;
    z-index: 1000;
    margin-top: 50px;
    width: 100%;
    max-width: 540px;
}

.morebtn-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
}
.morebtn-icon {
    width: 16px;
    height: 16px;
    fill: #000000;
    opacity: 0.7;
    transform: scale(0.9);
    flex-shrink: 0;
}
/* CARET */
.caret-bold {
    width: 18px;
    height: 18px;
    color: #ffffff;
    transform: rotate(180deg);
    transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.more-btn.active .caret-bold {
    transform: rotate(0deg);
}
.wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    min-width: 450px; /* Set minimum width for desktop */
    margin: 0 auto; /* Center the wrapper */
}

button.btn.more-btn {
    display: inline-flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    padding: 8px 15px;
    text-align: center; /* Center the text */
    position: relative;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    gap: 8px; /* Space between text and icon */
}

/* Mobile styles */
@media (max-width: 767px) {
    .wrapper {
        display: block;
        width: 100%;
        min-width: 100%; /* Full width on mobile */
    }
    
    button.btn.more-btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .morebtn-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .morebtn-options-box {
        position: static;
        margin-top: 10px;
        width: 100%;
        transform: none;
        left: auto;
    }
}

/* media css*/
@media (max-width: 768px){
    form#fbForm {
        position: relative;
    }
    .header div, .mobile-header th{
        width: fit-content;        
        text-align: left;
    }
   .paste-btn {
       display: none;
       position: absolute;
       top: 5px;
       right: 10px;
       z-index: 2;
   }
   #videoURL {
       padding-right: 100px;
       overflow: hidden;
       z-index: 1;
       position: relative;
       margin-bottom: 20px;
    }
}

@media (max-width: 490px){
    div#brxe-c215b3 {
        padding: 25px 10px;
    }
    .container {
        width: 100% !important;
    }
    .header div {
        padding: 13px;
    }
    span.mobile-only {
      font-size: 13px !important;
    }
}
@media (max-width: 390px){
    main#brx-content {
        padding: 0 10px;
    }
}
@media (max-width: 770px){
    .container {
        width: 100% !important;
    }
}
@media (max-width: 470px){
    .fbcontainer {
        padding: 25px 10px 25px 10px;
    }
}

@media (max-width: 990px) {
    .myprogress {
       width: 100%;
    }
}

@media (max-width: 328px) {
    .downloadBox {
        flex-direction: column;
    }

    .videoTitle {
        width: 275px;
    }

}

@media (min-width: 328px) and (max-width: 380px) {
    .videoTitle {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .videoThumbnail {
        align-items: center;
        display: flex;
        justify-content: center;
    }
    .input-wrapper > .paste-btn {
        display: flex !important;
        top: 7px;
        width: fit-content;
    }
}

@media (max-width: 991px) {
    .container>.row {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .list,
    .header {
        width: 100%;
    }
    .input-wrapper > .paste-btn {
        display: none;
    }
}

@media (max-width: 550px) {
    .list,
    .header {
        width: 100%;
    }

    td, th {
        padding: 4px !important;
    }
    .mobile-header {
        display: contents;
    }
}

@media (min-width: 370px) {
    .container {
        margin: auto;
    }
}

@media (max-width: 412px) {

    .list,
    .header {
        width: 100%;
    }

    .mobile-header {
        display: contents;
    }

    .list td div {
        padding: 5px 5px;
    }

    .list td div span {
        float: left;
    }

    .list td div span.label {
        margin: 4px 0 0 2px;
    }

    .audio-icon,
    .music-icon {
        margin-left: 5px;
    }
}

@media (max-width: 370px) {

    .list td:nth-child(1) {
        min-width: 90px;
    }

    .list td:nth-child(2) {
        min-width: 80px;
    }
}
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }  
    button#download {
       width: 220px;
    }
    button#pasteBtn {
        font-size: 16px;
    }
    h2.fbheading {
        font-size: 30px;
        line-height: 34px;
    }
}
/* Responsive adjustments */
@media (max-width: 480px) {
    .video-flex-container {
        gap: 10px;
    }

    .video-thumbnail {
        flex: 0 0 120px;
    }

    .video-title {
        font-size: 16px;
        max-width: 20ch; /* Shorter title on mobile */
    }
}
@media (max-width: 380px){
    .fbcontainer {
        padding: 0;
    }
}
@media (max-width: 430px){
    .main-container {
        padding: 30px 0px;
    }
}
@media (max-width: 370px){
     h2.fbheading {
        font-size: 26px;
        margin-bottom: 20px;
        line-height: 34px;
    }
}
@media (max-width: 350px) {
    td, th {
        padding: 10px 0px !important;
    }
    .list td:nth-child(1) {
        min-width: 0px !important;
    }

    .list td:nth-child(2) {
        min-width: 0px !important;
    }
    table.list button {
	padding: 8px 6px;
        font-size: 15px;
    }
    input#videoURL {
        padding-right: 100px;
    }
    a#finalDownloadBtn {
        font-size: 17px;
    }
    a#finalretryBtn {
        font-size: 20px;
    }
    #download span#btn-text {
        font-size: 15px;
    }
    #download{
        padding: 11px 15px;
    }
}
@media (max-width: 660px) {
    .format-section {
        width: auto;
    }
}
@media (max-width: 790px){
    img.bricks-site-logo.css-filter {
        max-width: 160px;
    }
}
@media screen and (max-width: 1200px) {
    .container {
        width: 100% !important;
    }
}





