html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* ================================
   LDTV DUYET PHAT SONG - RESPONSIVE UI
   ================================ */

:root {
    --ldtv-primary: #0b5ed7;
    --ldtv-dark: #102033;
    --ldtv-soft: #f4f7fb;
    --ldtv-border: #dce3ee;
}

body {
    background: var(--ldtv-soft);
}

.ldtv-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.ldtv-header {
    background: linear-gradient(135deg, #0b5ed7, #0a3d91);
    color: white;
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ldtv-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ldtv-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.ldtv-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ldtv-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.ldtv-subtitle {
    margin: 6px 0 0 0;
    opacity: 0.92;
    font-size: 15px;
}

.ldtv-filter-card,
.ldtv-player-card,
.ldtv-file-card {
    border: 1px solid var(--ldtv-border);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.ldtv-filter-card {
    background: white;
}

.ldtv-player-card {
    background: #111;
    color: white;
    overflow: hidden;
    margin-bottom: 18px;
}

.ldtv-player-header {
    background: #1f2937;
    padding: 10px 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ldtv-player-body {
    padding: 12px;
    text-align: center;
}

.ldtv-player-body video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    border-radius: 12px;
}

.ldtv-player-body audio {
    width: 100%;
}

.ldtv-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.ldtv-file-card {
    background: white;
    padding: 14px;
}

.ldtv-file-title {
    font-weight: 800;
    font-size: 16px;
    word-break: break-word;
}

.ldtv-meta {
    color: #667085;
    font-size: 13px;
    margin-top: 4px;
}

.ldtv-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.ldtv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ldtv-actions .btn {
    border-radius: 10px;
}

.ldtv-sticky-player {
    position: sticky;
    top: 10px;
    z-index: 20;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .ldtv-header {
        border-radius: 14px;
        padding: 14px;
    }

    .ldtv-header-inner {
        align-items: flex-start;
    }

    .ldtv-logo {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        font-size: 17px;
    }

    .ldtv-title {
        font-size: 21px;
    }

    .ldtv-subtitle {
        font-size: 13px;
    }

    .ldtv-file-grid {
        grid-template-columns: 1fr;
    }

    .ldtv-player-card {
        border-radius: 14px;
    }

    .ldtv-player-body {
        padding: 8px;
    }

    .ldtv-player-body video {
        max-height: 62vh;
        border-radius: 10px;
    }

    .ldtv-actions .btn {
        flex: 1 1 auto;
        min-width: 96px;
    }
}

/* Khi xoay ngang điện thoại */
@media (max-height: 520px) and (orientation: landscape) {
    .ldtv-header {
        display: none;
    }

    .ldtv-player-body video {
        max-height: 78vh;
    }

    .ldtv-filter-card {
        display: none;
    }
}
/* LDTV branding */
.ldtv-logo {
    background: rgba(255,255,255,0.96);
    border: 2px solid rgba(255,255,255,0.55);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.ldtv-logo img {
    padding: 6px;
}

.navbar-brand img {
    border-radius: 6px;
}

.navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ldtv-header {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 34%),
        linear-gradient(135deg, #0b5ed7, #0a3d91 55%, #08245c);
}

#ldtv-update-alert {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: none;
    background: #fff7e6;
    border: 1px solid #ffcf70;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    font-size: 15px;
}

#ldtv-update-alert .ldtv-update-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#ldtv-update-alert button {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

#ldtv-update-alert .btn-refresh {
    background: #0d6efd;
    color: #fff;
}

#ldtv-update-alert .btn-close-alert {
    background: #e9ecef;
    color: #333;
}
