.mp-login-wrap,
.mp-portal-wrap {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    border-radius: 10px;
    margin: 20px 0;
}

.mp-login-card {
    max-width: 520px;
}

.mp-login-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.mp-portal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ececec;
}

.mp-portal-topbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.mp-portal-user {
    color: #666;
    font-size: 14px;
}

.mp-logout-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #d0d0d0;
    background: #fff;
}

.mp-logout-button:hover {
    background: #f2f2f2;
}

.mp-login-wrap h3,
.mp-portal-wrap h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.mp-portal-header {
    margin-bottom: 24px;
}

.mp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.mp-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.mp-filter-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.mp-filter-select {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
}

.mp-filter-actions {
    display: flex;
    align-items: end;
}

.mp-filter-reset {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.mp-filter-reset:hover {
    background: #f2f2f2;
}

.mp-portal-empty,
.mp-no-results {
    padding: 18px;
    background: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mp-year-block {
    margin-bottom: 40px;
}

.mp-year-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ececec;
    font-size: 28px;
    line-height: 1.3;
}

.mp-term-block {
    margin-bottom: 28px;
}

.mp-term-title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.3;
}

.mp-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mp-video-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.mp-video-card-inner {
    padding: 16px;
}

.mp-video-title-wrap {
    margin-bottom: 14px;
}

.mp-video-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.mp-video-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #efefef;
    font-size: 12px;
    line-height: 1.2;
}

.mp-video-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.mp-video-responsive iframe,
.mp-video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mp-video-missing {
    padding: 24px;
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}

#mp-loginform p {
    margin-bottom: 12px;
}

#mp-loginform label {
    display: block;
    margin-bottom: 6px;
}

#mp-loginform input[type="text"],
#mp-loginform input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

#mp-loginform input[type="submit"] {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .mp-portal-wrap,
    .mp-login-wrap {
        padding: 16px;
    }

    .mp-portal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-filter-field,
    .mp-filter-actions {
        width: 100%;
    }

    .mp-filter-reset {
        width: 100%;
    }

    .mp-year-title {
        font-size: 24px;
    }

    .mp-term-title {
        font-size: 20px;
    }

    .mp-video-grid {
        grid-template-columns: 1fr;
    }
}