.gdtvf-wrap,
.gdtvf-login-screen {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2d3d;
}

.gdtvf-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px;
}

.gdtvf-topbar {
    background: linear-gradient(135deg, #0f2f57, #123f73);
    color: #fff;
    border-radius: 22px;
    padding: 32px;
    display: block;
    box-shadow: 0 18px 45px rgba(15, 47, 87, .18);
}

.gdtvf-topbar h1,
.gdtvf-login-card h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.gdtvf-topbar h1 {
    color: #ffffff !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .95);
    text-shadow: 0 3px 12px rgba(0, 0, 0, .45);
    letter-spacing: -0.02em;
}

.gdtvf-topbar-main {
    min-width: 0;
}

.gdtvf-session-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.gdtvf-welcome {
    color: #0f2f57;
    font-size: 15px;
    line-height: 1.35;
    text-align: right;
    opacity: .96;
}

.gdtvf-welcome strong {
    color: #0f2f57;
}

.gdtvf-topbar p {
    margin: 0;
    max-width: 720px;
    opacity: .92;
}

.gdtvf-logout,
.gdtvf-filters button,
.gdtvf-open-video,
.gdtvf-open-last,
.gdtvf-login-card button {
    border: 0;
    border-radius: 999px;
    background: #1577c8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gdtvf-logout:hover,
.gdtvf-filters button:hover,
.gdtvf-open-video:hover,
.gdtvf-open-last:hover,
.gdtvf-login-card button:hover {
    background: #0f5fa3;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(21, 119, 200, .25);
}

.gdtvf-logout {
    background: #1577c8;
    color: #ffffff;
    padding: 10px 18px;
    white-space: nowrap;
}

.gdtvf-last-seen {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #eef7ff;
    border: 1px solid #cae7ff;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
}

.gdtvf-open-last {
    padding: 9px 16px;
}

.gdtvf-filters {
    margin: 22px 0;
    background: #f5f7fa;
    border: 1px solid #e4e9f0;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
    align-items: stretch;
}

.gdtvf-search-wrap {
    position: relative;
}

.gdtvf-search-wrap input {
    padding-right: 48px;
}

.gdtvf-reset-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0f2f57;
    background: #eef4fa;
    border: 1px solid #d7dee8;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.gdtvf-reset-icon:hover {
    background: #dfefff;
}

.gdtvf-filters input,
.gdtvf-filters select,
.gdtvf-login-card input {
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    background: #fff;
}

.gdtvf-filters button {
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 46px;
}

.gdtvf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gdtvf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(15, 47, 87, .08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gdtvf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 47, 87, .13);
}

.gdtvf-card.is-seen {
    border-color: #8ed3bd;
    box-shadow: 0 14px 35px rgba(68, 176, 140, .13);
}

.gdtvf-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.gdtvf-card h2 {
    margin: 0 0 12px;
    font-size: 21px;
    color: #0f2f57;
}

.gdtvf-badge {
    background: #1577c8;
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gdtvf-desc {
    color: #52606d;
    font-size: 15px;
    line-height: 1.55;
}

.gdtvf-card-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
}


.gdtvf-open-video {
    padding: 10px 16px;
}

.gdtvf-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.gdtvf-modal.is-open {
    display: block;
}

.gdtvf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 15, 28, .78);
}

.gdtvf-modal-box {
    position: relative;
    width: min(960px, calc(100vw - 28px));
    margin: 5vh auto;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .35);
}

.gdtvf-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #0f2f57;
    color: #fff;
    font-size: 34px;
    line-height: 40px;
    cursor: pointer;
}

.gdtvf-modal-title {
    margin: 0 58px 18px 0;
    color: #0f2f57;
}

.gdtvf-video-player {
    width: 100%;
    max-height: 72vh;
    background: #000;
    border-radius: 14px;
}

body.gdtvf-modal-open {
    overflow: hidden;
}

.gdtvf-login-screen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: linear-gradient(135deg, #eef4fa, #ffffff);
}

.gdtvf-login-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 22px 55px rgba(15, 47, 87, .14);
}

.gdtvf-login-card h1 {
    color: #0f2f57;
}

.gdtvf-login-card p {
    color: #52606d;
}

.gdtvf-login-card label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 700;
    color: #0f2f57;
}

.gdtvf-login-card button {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    font-size: 16px;
}

.gdtvf-login-help {
    margin: 10px 0 0;
    font-size: 13px;
}

.gdtvf-login-error {
    background: #fff1f1;
    color: #9b1c1c;
    border: 1px solid #ffc9c9;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 16px 0;
    font-weight: 700;
}

@media (max-width: 920px) {
    .gdtvf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gdtvf-filters { grid-template-columns: 1fr; }
    .gdtvf-filters button { padding: 12px 18px; }
}

@media (max-width: 640px) {
    .gdtvf-topbar,
    .gdtvf-last-seen,
    .gdtvf-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .gdtvf-session-box {
        justify-content: flex-start;
        align-items: stretch;
    }
    .gdtvf-welcome {
        text-align: left;
    }
    .gdtvf-grid { grid-template-columns: 1fr; }
    .gdtvf-topbar { padding: 24px; }
    .gdtvf-modal-box { padding: 18px; margin: 3vh auto; }
    .gdtvf-modal-close { right: 12px; top: 10px; }
    .gdtvf-login-card { padding: 24px; }
}

/* Ajuste final: espacio para el icono de restablecer dentro del buscador */
.gdtvf-search-wrap input { padding-right: 50px !important; }
