/**
 * All your custom CSS should go into this file
 */

html {
  position: relative;
  min-height: 100%;
}

body {
  /*padding-top: 70px;*/
  margin-bottom: 40px;
  background: #f8f9fa;
}

/* Premium Song Header */
.song-title {
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.meta-info-container {
  padding: 8px 0;
  font-size: 14.5px;
  border-top: 1px solid #edf2f7 !important;
}

@media (min-width: 992px) {
  .meta-info-container {
    padding: 12px 0;
    letter-spacing: 0.01em;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

@media (min-width: 992px) {
  .meta-row {
    gap: 10px 16px;
  }
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2d3436;
  /* Màu dữ liệu chính đậm hơn */
}

.meta-item span {
  color: #7f8c8d;
  /* Nhãn mờ hơn một chút để tạo chiều sâu */
}

.meta-item i {
  width: 20px;
  text-align: center;
  color: #b2bec3;
  /* Màu icon xám sang trọng */
  font-size: 0.9em;
}

.meta-item a {
  color: #3498db;
  /* Xanh dịu mắt hơn */
  font-weight: 500;
}

.meta-divider {
  color: #dfe6e9;
  font-weight: 300;
}

.action-badges .badge {
  padding: 6px 12px;
  font-weight: 500;
  font-size: 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.badge-facebook {
  background-color: #ffffff !important;
  color: #1877f2 !important;
  border: 1px solid #1877f2 !important;
}

.badge-like {
  background-color: #ffffff !important;
  color: #27ae60 !important;
  border: 1px solid #27ae60 !important;
}

.badge-sheet {
  background-color: #ffffff !important;
  color: #3498db !important;
  border: 1px solid #3498db !important;
}

.action-badges .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  opacity: 0.9;
}

/* Modern Song Toolbar */
.song-toolbar {
  background: #ffffff;
  padding: 10px 0;
  margin-bottom: 18px;

  border-bottom: 1px solid #edf2f7;
  gap: 12px;
}

.song-toolbar .btn-group {
  background: #f8fbfe;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.song-toolbar .btn {
  border: none !important;
  background: transparent !important;
  color: #4a5568 !important;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Kiểu cột dọc chỉ áp dụng cho Mobile */
@media (max-width: 768px) {
  .song-toolbar .btn {
    flex-direction: column;
    padding: 6px 8px;
    font-size: 11px;
    min-width: 48px;
    gap: 2px;
  }

  .song-toolbar .btn i {
    font-size: 16px;
    height: 20px;
  }
}

.song-toolbar .btn:hover {
  background: #ffffff !important;
  color: #2b6cb0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.song-toolbar .btn.active,
.song-toolbar .btn:active {
  background: #ebf4ff !important;
  color: #2b6cb0 !important;
}

.song-toolbar .btn i {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
}

.song-toolbar .btn-tone-indicator {
  background: #f1f5f9 !important;
  color: #2b6cb0 !important;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.song-toolbar .btn-primary-action {
  color: #e53e3e !important;
  /* Màu cho các nút như 'Nhạc' */
}

.song-toolbar .btn-primary-action:hover {
  background: #fff5f5 !important;
}

/* Specific for Mobile Toolbars (Vertical alignment or scroll) */
@media (max-width: 768px) {
  .song-toolbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    border-bottom: none;
  }

  .song-toolbar::-webkit-scrollbar {
    display: none;
  }
}

#footer {
  padding-bottom: 50px;
}

.chord {
  color: #df495b;
}

pre {
  font-size: 15px;
  font-family: sans-serif;
}

/* Prevent Google Adsense from showing inside lyric */
#lyric .adsbygoogle,
#lyric ins.adsbygoogle,
#lyric .google-auto-placed {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

audio {
  width: 100%;
}

.csinger {
  color: #97bee2;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  min-height: 40px;
  height: auto;
  padding-bottom: 10px;
  background-color: #fff;
}

.footer > .container {
  padding-top: 10px;
  padding-left: 15px;
}

/* Base styles (regardless of theme) */
.bs-callout {
  margin: 20px 0;
  padding: 15px 30px 15px 15px;
  border-left: 5px solid #eee;
}

.bs-callout h4 {
  margin-top: 0;
}

.bs-callout p:last-child {
  margin-bottom: 0;
}

.bs-callout code,
.bs-callout .highlight {
  background-color: #fff;
}

.bs-callout cite {
  color: #999;
  font-style: italic;
}

.login {
  margin-top: 50px;
  padding: 0;
}

.login-form {
  background-color: #fff;
  padding: 20px;
  margin: 0 auto;
  max-width: 450px;
  border: 1px solid silver;
  -webkit-border-radius: 10px 10px 10px 10px;
  -moz-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.col-item {
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  background: #fff;
}

.col-item .photo img {
  margin: 0 auto;
  width: 100%;
  min-height: 170px;
  max-height: 170px;
}

.col-item .info {
  padding: 5px;
  border-radius: 0 0 5px 5px;
  margin-top: 1px;
}

.col-item:hover .info {
  background-color: #f5f5dc;
}

.col-item .price {
  /*width: 50%;*/
  float: left;
  margin-top: 5px;
}

.col-item .price h5 {
  line-height: 10px;
  margin: 0;
}

.col-item .separator {
  border-top: 1px solid #e1e1e1;
}

.clear-left {
  clear: left;
}

.col-item .separator p {
  line-height: 10px;
  margin-bottom: 0;
  margin-top: 10px;
  text-align: center;
}

.col-item .separator p i {
  margin-right: 5px;
}

.col-item .btn-add {
  width: 50%;
  float: left;
}

.col-item .btn-add {
  border-right: 1px solid #e1e1e1;
}

.col-item .btn-details {
  width: 50%;
  float: left;
  padding-left: 10px;
}

.controls {
  margin-top: 0px;
}

[data-slide="prev"] {
  margin-right: 5px;
}

/*.blogShort{ border-bottom:2px dotted #ddd;}*/

/* da dang */
.request_posted,
.request_posted a {
  color: #b4b1b1;
}

/*comment */
.comments {
  padding-top: 20px;
}

.comment {
  margin-bottom: 20px;
}

/* End comment */

.jplayer_chord {
  /*background-position:-30px -40px;*/
  display: block;
  float: right;
  height: 15px;
  margin: 0px 5px 0 5px !important;
  padding: 0 !important;
  width: 15px;
}

.jplayer_chord:hover {
  background-position: -45px -40px;
}

.scroll-pane {
  height: 175px;
  margin: 0;
  overflow: auto;
  padding: 0;
}

.ct-box {
  margin: 0px 0px 15px 0px;
  padding: 12px;
  background-color: #fff;
}

.ct-box h5 {
  padding: 0px 0px 10px 0px;
  color: #777777;
}

.ct-heading {
  border-bottom: 3px solid #f1f4f9;
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin: 0 0 1.5em 0;
  padding: 0 0 0.5em;
  color: rgb(160, 173, 182);
}

.album {
  height: 135px;
  width: 135px;
  position: relative;
  margin-bottom: 10px;
}

.album img {
  position: absolute;
  left: 0;
  top: 0;
}

.album .txt {
  z-index: 100;
  position: absolute;
  background: rgb(0, 0, 0);
  /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  font-size: 12px;
  font-weight: bold;
  left: 0px;
  top: 100px;
}

.centered-form {
  margin-top: 60px;
  margin-bottom: 120px;
}

.centered-form .panel {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: rgba(0, 0, 0, 0.3) 20px 20px 20px;
}

.p-right {
  padding-right: 15px;
}

.img-responsive {
  display: block;
  margin: 0 auto;
}

.m-15 {
  margin: 0 -15px;
}

/* Search Clear Button */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.search-wrapper {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  color: #999;
  display: none;
  /* Mặc định ẩn */
  line-height: 1;
}

.search-clear:hover {
  color: #333;
}

.search-wrapper .form-control {
  border-radius: 0;
}

/* --- STRICT LAYOUT PROTECTION --- */
/* Ngăn chặn quảng cáo chèn vào giữa các cột layout chính */
#main-layout-row {
  display: flex;
  flex-wrap: wrap;
}

/* Ẩn tất cả các phần tử con trực tiếp của row layout KHÔNG PHẢI là cột chính */
/* Điều này sẽ ẩn quảng cáo nếu nó chèn nhầm vào giữa col-lg-8 và col-lg-4 */
#main-layout-row > *:not(.col-lg-8):not(.col-lg-4) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
}

/* ----- Sticky Toolbar Mobile ----- */
/* Placeholder khi toolbar sticky để tránh nhảy layout */
.toolbar-placeholder {
  display: none;
}

/* Trạng thái sticky của toolbar */
#toolbar.toolbar-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  margin: 0 !important;
  padding: 8px 10px !important;
  border-top: 1px solid #e0e0e0;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

/* Đảm bảo các button trong toolbar sticky vẫn hiển thị tốt */
#toolbar.toolbar-sticky .btn-group {
  margin-bottom: 0 !important;
}

#toolbar.toolbar-sticky .btn {
  padding: 6px 10px;
}

/* About Page Styles */
.about-page-wrapper {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: #333;
}
.about-header-banner {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}
.about-header-banner h2 {
  font-weight: 700;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 28px;
}
.about-header-banner p {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 0;
}
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.about-card.card-vn {
  border-top: 4px solid #3b82f6;
}
.about-card.card-en {
  border-top: 4px solid #10b981;
}
.about-card h4 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
}
.card-vn h4 {
  color: #1e293b;
}
.card-vn h4 i {
  color: #3b82f6;
}
.card-en h4 {
  color: #1e293b;
}
.card-en h4 i {
  color: #10b981;
}
.about-card p {
  line-height: 1.8;
  color: #475569;
  text-align: justify;
  margin-bottom: 18px;
  font-size: 15px;
}
.about-highlight {
  background: #f8fafc;
  padding: 18px 20px;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  margin: 25px 0;
  font-style: italic;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}
.card-en .about-highlight {
  border-left-color: #10b981;
  background: #f0fdf4;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  background: #eff6ff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.feature-list li i {
  color: #3b82f6;
}
.contact-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
  border: 1px dashed #cbd5e1;
}
.contact-box a {
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.card-vn .contact-box a {
  color: #3b82f6;
}
.card-en .contact-box a {
  color: #10b981;
}

.contact-box a:hover {
  text-decoration: underline;
}
.contact-box p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14px;
  text-align: center;
  color: #64748b;
}
.signature {
  text-align: right;
  margin-top: 25px;
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
}
.about-card strong {
  color: #1e293b;
}
.about-col {
  margin-bottom: 30px;
}

/* Trang bài hát: ẩn quảng cáo + khối hợp âm khi xem toàn màn hình */
#song-content:fullscreen .d-fullscreen-none,
#song-content:-webkit-full-screen .d-fullscreen-none {
  display: none !important;
}
