/* ADV Angola — Biblioteca de Vídeos | Plugin CSS */
:root {
    --adv-orange: #F47920;
    --adv-orange-dark: #DC5E10;
    --adv-charcoal: #3D3D3D;
    --adv-bg: #F5F5F5;
}

/* Wrap */
.adv-vl-wrap { font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; color: #3D3D3D; }

/* Notice bar */
.adv-vl-notice {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #fde0c4;
    border-left: 4px solid var(--adv-orange);
    padding: 10px 16px; margin-bottom: 20px;
    border-radius: 0 3px 3px 0; font-size: 13.5px; color: #555;
}
.adv-vl-notice svg { flex-shrink: 0; color: var(--adv-orange); }
.adv-vl-notice a { color: var(--adv-orange); font-weight: 700; text-decoration: none; }
.adv-vl-notice a:hover { text-decoration: underline; }

/* Toolbar */
.adv-vl-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.adv-vl-search-wrap {
  position: relative;
  flex: 1;
  min-width: 450px;
  display: flex;
  align-items: center;
  top: -8px;
}
.adv-vl-search-wrap svg { position: absolute; left: 10px; pointer-events: none; top: 8px; }
#adv-vl-search {
    width: 100%; padding: 9px 12px 9px 34px;
    border: 1px solid #ddd; border-radius: 3px;
    font-size: 14px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
#adv-vl-search:focus { outline: none; border-color: var(--adv-orange); box-shadow: 0 0 0 2px rgba(244,121,32,.15); }

#adv-vl-app .adv-vl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#adv-vl-app .adv-vl-filter {
    font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .07em !important;
    padding: 6px 12px !important; border: 1.5px solid #ddd !important; border-radius: 3px !important;
    background: #fff !important; color: #666 !important; cursor: pointer !important;
    transition: all .2s !important; font-family: inherit !important;
    box-shadow: none !important; text-decoration: none !important; line-height: normal !important;
    width: auto !important; height: auto !important; margin: 0 !important; text-shadow: none !important;
}
/* hover & active colours are applied inline via JS with !important (WP sanitises CSS custom properties) */
#adv-vl-app .adv-vl-filter:hover { border-color: var(--adv-orange); color: var(--adv-orange); }
#adv-vl-app .adv-vl-filter.active { background: var(--adv-orange); border-color: var(--adv-orange); color: #fff; }

/* Grid */
.adv-vl-grid { display: grid; gap: 20px; }
.adv-vl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.adv-vl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.adv-vl-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.adv-vl-card {
    background: #fff; border-radius: 2px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.1); cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.adv-vl-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* Thumbnail */
.adv-vl-thumb { position: relative; padding-bottom: 56.25%; background: #1a1a1a; overflow: hidden; }
#adv-vl-app .adv-vl-thumb img {
    position: absolute !important; inset: 0 !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; max-width: none !important;
    object-fit: cover !important; margin: 0 !important; padding: 0 !important;
    border: none !important; border-radius: 0 !important; box-shadow: none !important; display: block !important;
}
.adv-vl-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3); transition: background .2s;
}
.adv-vl-card:hover .adv-vl-overlay { background: rgba(0,0,0,.15); }
.adv-vl-play-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--adv-orange); display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
}
.adv-vl-card:hover .adv-vl-play-btn { transform: scale(1.1); }
.adv-vl-duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.7); color: #fff; font-size: 11px;
    padding: 2px 6px; border-radius: 2px; font-family: monospace;
}

/* Card info */
.adv-vl-info { padding: 14px 14px 16px; }
.adv-vl-cat {
    display: inline-block; background: var(--adv-orange); color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    padding: 2px 7px; border-radius: 2px; margin-bottom: 8px;
}
.adv-vl-title { font-size: 13.5px; font-weight: 700; color: #3D3D3D; margin: 0 0 6px; line-height: 1.4; }
.adv-vl-desc { font-size: 12.5px; color: #888; margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Empty / no results */
.adv-vl-empty, .adv-vl-no-results { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }

/* Modal overlay */
.adv-vl-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.88);
    z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.adv-vl-modal-inner {
    background: #fff; width: 100%; max-width: 860px; border-radius: 2px;
    overflow: hidden; animation: advFadeIn .22s ease;
    max-height: 92vh; display: flex; flex-direction: column;
}
.adv-vl-access-modal-inner { max-width: 440px; }

@keyframes advFadeIn { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:scale(1); } }

/* Modal header */
.adv-vl-modal-header {
    background: var(--adv-orange); color: #fff; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    flex-shrink: 0;
}
.adv-vl-modal-header button {
    background: none; border: none; color: #fff; font-size: 18px;
    cursor: pointer; line-height: 1; opacity: .8; padding: 0;
    font-family: inherit;
}
.adv-vl-modal-header button:hover { opacity: 1; }

/* Player */
.adv-vl-player-wrap { position: relative; padding-bottom: 56.25%; background: #000; flex-shrink: 0; }
.adv-vl-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Modal body */
.adv-vl-modal-body { padding: 18px 20px 12px; overflow-y: auto; }
#adv-vl-modal-title { font-size: 17px; font-weight: 800; color: #3D3D3D; margin: 0 0 6px; }
.adv-vl-modal-cat { font-size: 11px; font-weight: 800; color: var(--adv-orange); text-transform: uppercase; letter-spacing: .07em; }
#adv-vl-modal-desc { font-size: 13.5px; color: #666; line-height: 1.6; margin: 8px 0 0; }

/* Modal footer */
.adv-vl-modal-footer {
    padding: 12px 20px; background: #f5f5f5; border-top: 1px solid #eee;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11.5px; color: #aaa; flex-shrink: 0;
}

/* Buttons */
.adv-vl-btn {
    display: inline-block; background: var(--adv-orange); color: #fff;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    padding: 9px 20px; border: 2px solid var(--adv-orange); border-radius: 2px;
    text-decoration: none; cursor: pointer; font-family: inherit;
    transition: background .2s, border-color .2s;
}
.adv-vl-btn:hover { background: var(--adv-orange-dark); border-color: var(--adv-orange-dark); color: #fff; text-decoration: none; }
.adv-vl-btn-outline {
    display: inline-block; background: transparent; color: var(--adv-orange);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    padding: 7px 18px; border: 2px solid var(--adv-orange); border-radius: 2px;
    cursor: pointer; font-family: inherit; transition: all .2s;
}
.adv-vl-btn-outline:hover { background: var(--adv-orange); color: #fff; }

/* Lock icon */
.adv-vl-lock-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #3D3D3D; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}

/* Access denied */
.adv-vl-denied { text-align: center; padding: 60px 20px; }
.adv-vl-denied h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 10px; }
.adv-vl-denied p { color: #777; font-size: 14px; line-height: 1.7; max-width: 440px; margin: 0 auto 24px; }

/* Responsive */
@media (max-width: 900px) { .adv-vl-cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
    .adv-vl-cols-3, .adv-vl-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .adv-vl-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
    .adv-vl-cols-2, .adv-vl-cols-3, .adv-vl-cols-4 { grid-template-columns: 1fr; }
}
