/*/ Ads /*/
.ads-placment .sidebar div {
    display: inline-block;
}
.ads-placment .comments div {
    background: #fff;
}
#footer_ad_ {
    padding-bottom: 0;
}

/*/ Slider /*/
.pt_feat_vid_details {
    width: 100%;
    padding: 30px;
    background-color: rgb(0 0 0 / 25%);
    border-radius: 10px;
    position: relative;
}

/*/ Related Videos /*/
.related-video-wrapper .ra-title .video-title,
.play-list-cont .playlist-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.list-bar {
    display: block;
}
@media (max-width: 992px) {
    .list-bar {
        width: 100%;
    }
}

/*/ Movie /*/
.movie, .fluid_video_wrapper video {
    width: 100% !important;
}
#movie_trailer .modal-dialog {
    width: 822.53px;
    height: auto;
    max-width: 100%;
}

/*/ Player /*/
.main-player {
    width: 100%;
}
.main-player .player-video {
    margin-bottom: 15px;
}
.fluid_video_wrapper video {
    height: 100% !important;
}

/*/ Playlist /*/
.play-list-container {
    background: none;
}
.pt_plist_hdr .next-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/*/ Search Form /*/
/* Đảm bảo ô input không bị chữ đè lên nút khi gõ dài */
.search-header .form-control, .search-header-mobile .form-control {
    padding-right: 55px;
}
.clear-search {
    display: none;
    cursor: pointer;
    pointer-events: auto;
    position: absolute;
    right: 100px;
    padding: 12px 0;
    -webkit-tap-highlight-color: transparent;
}
.clear-search .clear-search-btn,
.voice-search .voice-search-btn {
    color: #555;
    transition: all 0.2s;
}
.clear-search .clear-search-btn,
.search-header-mobile .form-group .clear-search .clear-search-btn svg,
.voice-search .voice-search-btn,
.search-header-mobile .form-group .voice-search .voice-search-btn svg {
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-search .clear-search-btn:hover,
.search-header-mobile .form-group .clear-search .clear-search-btn svg:hover {
  color: #000;
}
.search-header-mobile .form-group .clear-search {
    right: 60px;
    padding: 0;
    z-index: 10;
    height: 100%;
}
.voice-search {
    position: absolute;
    cursor: pointer;
    right: 78px;
    padding: 12px 0;
}
.voice-search .voice-search-btn:hover {
  color: #f00;
}
/* Hiệu ứng nhấp nháy đỏ khi đang lắng nghe */
.voice-search .voice-search-btn.recording {
    color: #f00;
    animation: vs-pulse 1.2s infinite;
}
@keyframes vs-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.search-header-mobile .form-group .voice-search {
    right: 2px;
    padding: 0;
    z-index: 10;
    height: 100%;
}
.search-header-mobile .form-group .voice-search .voice-search-btn svg {
    position: relative;
}
.search-header-mobile .form-group .voice-search .voice-search-btn svg:hover {
    color: #f00;
}
.search-header-mobile .form-group .voice-search .voice-search-btn.recording svg {
    color: #f00;
    animation: vs-pulse 1.2s infinite;
}

/* Voice Popup */
.voice-popup {
    display: none;
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.voice-popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* Hiệu ứng vòng tròn lan tỏa cho popup */
.pulse-ring {
    width: 10px;
    height: 10px;
    background: #f00;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    animation: ring-pulse 1.5s infinite;
}
@keyframes ring-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Voice Error Modal */
.voice-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.voice-error-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    font-family: sans-serif;
}
.voice-error-modal-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.voice-error-modal-head {
    margin-bottom: 10px;
    color: #333;
}
.voice-error-modal-body {
    color: #666;
    line-height: 1.5;
}
.voice-error-modal-button {
    margin-top: 20px;
    padding: 10px 25px;
    background: #f00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/*/ Search Page /*/
.pt_srch_vids .video-latest-list.video-wrapper {
    align-items: flex-start;
}
.pt_srch_vids .video-latest-list.video-wrapper .video-thumb {
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .pt_srch_vids .video-latest-list.video-wrapper .video-thumb {
        width: 33% !important;
    }
}
.search-result .fa {
    color: #333;
    margin-right: 5px;
}
.search-result.history-item {
    position: relative;
    display: flex;
    align-items: center;
}
.search-result.history-item a {
    width: 100%;
}
.search-result .del-h {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 22px;
    font-weight: 500;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Container thumbnail */
.video-thumb {
    position: relative;
    overflow: hidden;
}

/* Label Style */
.v-badge-thumb {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}
.b-shorts {
    background-color: rgba(255, 0, 0, 0.9) !important;
}
.b-movie {
    background-color: rgba(0, 123, 255, 0.9) !important;
}
.b-live {
    background-color: rgba(244, 67, 54, 1) !important;
}
.v-badge-thumb i {
    font-size: 10px;
}
.v-badge-thumb svg.feather {
    margin: 0;
}

/* Đảm bảo duration không đè lên nhãn nếu video quá nhỏ */
.video-duration {
    z-index: 4;
}

/* Showing Pages */
.showing_pages {
    background: #04abf2;
    border-radius: 20px;
    border: 1px solid #04abf2;
    padding: 6px 12px;
    margin-left: 0;
    gap: 8px;
    line-height: normal;
    color: #fff;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.showing_pages svg {
    margin-top: 3px;
}

/*/ Terms of use /*/
.termsofuse {
    text-align: justify;
}
.termsofuse ul {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
}

/*/ App download page /*/
.viettube-app-page {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* HEADER */
.vt-app-header {
    background: linear-gradient(135deg, #0b84ff, #00c6ff);
    color: #fff;
    padding: 30px;
}

.vt-app-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vt-app-desc {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

/* BODY */
.vt-app-body {
    padding: 30px;
}

/* INFO GRID */
.vt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.vt-info-item {
    display: flex;
    align-items: center;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 14px 16px;
}

.vt-info-item svg {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    fill: #0b84ff;
    flex-shrink: 0;
}

.vt-info-label {
    font-size: 13px;
    color: #666;
}

.vt-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* CHANGELOG BOX */
.vt-changelog-box {
    background: #f9fbff;
    border: 1px solid #e1ecff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 26px;
    text-align: left;
}

.vt-changelog-box ul {
    background: none !important;
    border-color: unset !important;
}

.vt-changelog-title {
    font-size: 15px;
    font-weight: 700;
    color: #0b84ff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-changelog-title svg {
    width: 18px;
    height: 18px;
    fill: #0b84ff;
}

.vt-changelog-list {
    padding-left: 18px;
    margin: 0;
}

.vt-changelog-list li {
    font-size: 14px;
    color: #333 !important;
    background: none !important;
    border-color: unset !important;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* DOWNLOAD BOX */
.vt-download-box {
    background: #f0f6ff;
    border: 1px dashed #0b84ff;
    border-radius: 12px;
    padding: 26px;
    text-align: center;
}

/* DOWNLOAD BUTTON */
.vt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0b84ff, #00b4ff);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* ICON DOWNLOAD */
.vt-download-btn svg {
    width: 22px;
    height: 18px;
    fill: #fff;
}

/* HOVER */
.vt-download-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #0a78e6, #009fe0);
    box-shadow: 0 6px 18px rgba(11,132,255,0.35);
    transform: translateY(-1px);
}

/* META */
.vt-download-meta {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}